try { a(n.throw(e)); } catch (e) { r(e); } }, a = t => t.done ? e(t.value) : Promise.resolve(t.value).then(o, i); a((n = n.apply(t, null)).next()); }) ); var t, n; })(t || o); c(e); } catch (e) { throw (p(e), e); } } }), new Promise((t, r) => { var o = e => { try { a(n.next(e)); } catch (e) { r(e); } }, i = e => { try { a(n.throw(e)); } catch (e) { r(e); } }, a = e => e.done ? t(e.value) : Promise.resolve(e.value).then(o, i); a((n = n.apply(e, null)).next()); }) ); var e, n; })(); }, [t, o]); const d = n.useMemo(() => { if (!l) return null; try { return new ey(l, o, i); } catch (e) { throw (a && a(e), e); } }, [l, o, i]); return ( n.useEffect(() => { d && a && a(); }, [d, a]), s({ loading: !d, store: d }) ); } const Fu = e => pa\` \${e} { cursor: pointer; margin-left: -20px; padding: 0; line-height: 1; width: 20px; display: inline-block; outline: 0; } \${e}:before { content: ''; width: 15px; height: 15px; background-size: contain; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg=='); opacity: 0.5; visibility: hidden; display: inline-block; vertical-align: middle; } h1:hover > \${e}::before, h2:hover > \${e}::before, \${e}:hover::before { visibility: visible; } \`, zu = ga(function (e) { const t = n.useContext(Nu), r = n.useCallback( n => { t && (function (e, t, n) { t.defaultPrevented || 0 !== t.button || (e => !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey))( t ) || (t.preventDefault(), e.replace(encodeURI(n))); })(t.menu.history, n, e.to); }, [t, e.to] ); return t ? n.createElement( 'a', { className: e.className, href: t.menu.history.linkForId(e.to), onClick: r, 'aria-label': e.to }, e.children ) : null; })\` \${Fu('&')}; \`; function Uu(e) { return n.createElement(zu, { to: e.to }); } const Vu = { left: '90deg', right: '-90deg', up: '-180deg', down: '0' }, Bu = ga(e => n.createElement( 'svg', { className: e.className, style: e.style, version: '1.1', viewBox: '0 0 24 24', x: '0', xmlns: 'http://www.w3.org/2000/svg', y: '0', 'aria-hidden': 'true' }, n.createElement('polygon', { points: '17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 ' }) ) )\` height: \${e => e.size || '18px'}; width: \${e => e.size || '18px'}; min-width: \${e => e.size || '18px'}; vertical-align: middle; float: \${e => e.float || ''}; transition: transform 0.2s ease-out; transform: rotateZ(\${e => Vu[e.direction || 'down']}); polygon { fill: \${({ color: e, theme: t }) => (e && t.colors.responses[e] && t.colors.responses[e].color) || e}; } \`, qu = ga.span\` display: inline-block; padding: 2px 8px; margin: 0; background-color: \${e => e.theme.colors[e.type].main}; color: \${e => e.theme.colors[e.type].contrastText}; font-size: \${e => e.theme.typography.code.fontSize}; vertical-align: middle; line-height: 1.6; border-radius: 4px; font-weight: \${({ theme: e }) => e.typography.fontWeightBold}; font-size: 12px; + span[type] { margin-left: 4px; } \`, Wu = pa\` text-decoration: line-through; color: #707070; \`, Hu = ga.caption\` text-align: right; font-size: 0.9em; font-weight: normal; color: \${e => e.theme.colors.text.secondary}; \`, Yu = ga.td\` border-left: 1px solid \${e => e.theme.schema.linesColor}; box-sizing: border-box; position: relative; padding: 10px 10px 10px 0; \${ma('small')\` display: block; overflow: hidden; \`} tr:first-of-type > &, tr.last > & { border-left-width: 0; background-position: top left; background-repeat: no-repeat; background-size: 1px 100%; } tr:first-of-type > & { background-image: linear-gradient( to bottom, transparent 0%, transparent 22px, \${e => e.theme.schema.linesColor} 22px, \${e => e.theme.schema.linesColor} 100% ); } tr.last > & { background-image: linear-gradient( to bottom, \${e => e.theme.schema.linesColor} 0%, \${e => e.theme.schema.linesColor} 22px, transparent 22px, transparent 100% ); } tr.last + tr > & { border-left-color: transparent; } tr.last:first-child > & { background: none; border-left-color: transparent; } \`, Ku = ga(Yu)\` padding: 0; \`, Gu = ga(Yu)\` vertical-align: top; line-height: 20px; white-space: nowrap; font-size: 13px; font-family: \${e => e.theme.typography.code.fontFamily}; &.deprecated { \${Wu}; } \${({ kind: e }) => 'patternProperties' === e && pa\` > span.property-name { display: inline-table; white-space: break-spaces; margin-right: 20px; ::before, ::after { content: '/'; filter: opacity(0.2); } } \`} \${({ kind: e = '' }) => ['field', 'additionalProperties', 'patternProperties'].includes(e) ? '' : 'font-style: italic'}; \${ya('PropertyNameCell')}; \`, Qu = ga.td\` border-bottom: 1px solid #9fb4be; padding: 10px 0; width: \${e => e.theme.schema.defaultDetailsWidth}; box-sizing: border-box; tr.expanded & { border-bottom: none; } \${ma('small')\` padding: 0 20px; border-bottom: none; border-left: 1px solid \${e => e.theme.schema.linesColor}; tr.last > & { border-left: none; } \`} \${ya('PropertyDetailsCell')}; \`, Xu = ga.span\` color: \${e => e.theme.schema.linesColor}; font-family: \${e => e.theme.typography.code.fontFamily}; margin-right: 10px; &::before { content: ''; display: inline-block; vertical-align: middle; width: 10px; height: 1px; background: \${e => e.theme.schema.linesColor}; } &::after { content: ''; display: inline-block; vertical-align: middle; width: 1px; background: \${e => e.theme.schema.linesColor}; height: 7px; } \`, Ju = ga.div\` padding: \${({ theme: e }) => e.schema.nestingSpacing}; \`, Zu = ga.table\` border-collapse: separate; border-radius: 3px; font-size: \${e => e.theme.typography.fontSize}; border-spacing: 0; width: 100%; > tr { vertical-align: middle; } \${ma('small')\` display: block; > tr, > tbody > tr { display: block; } \`} \${ma('small', !1, ' and (-ms-high-contrast:none)')\` td { float: left; width: 100%; } \`} & \${Ju}, & \${Ju} \${Ju} \${Ju}, & \${Ju} \${Ju} \${Ju} \${Ju} \${Ju} { margin: \${({ theme: e }) => e.schema.nestingSpacing}; margin-right: 0; background: \${({ theme: e }) => e.schema.nestedBackground}; } & \${Ju} \${Ju}, & \${Ju} \${Ju} \${Ju} \${Ju}, & \${Ju} \${Ju} \${Ju} \${Ju} \${Ju} \${Ju} { background: #ffffff; } \`, ep = ga.div\` margin: 0 0 3px 0; display: inline-block; \`, tp = ga.span\` font-size: 0.9em; margin-right: 10px; color: \${e => e.theme.colors.primary.main}; font-family: \${e => e.theme.typography.headings.fontFamily}; } \`, np = ga.button\` display: inline-block; margin-right: 10px; margin-bottom: 5px; font-size: 0.8em; cursor: pointer; border: 1px solid \${e => e.theme.colors.primary.main}; padding: 2px 10px; line-height: 1.5em; outline: none; &:focus { box-shadow: 0 0 0 1px \${e => e.theme.colors.primary.main}; } \${({ deprecated: e }) => (e && Wu) || ''}; \${e => e.active ? \`\\n color: white;\\n background-color: \${ e.theme.colors.primary.main };\\n &:focus {\\n box-shadow: none;\\n background-color: \${Rr( 0.15, e.theme.colors.primary.main )};\\n }\\n \` : \`\\n color: \${e.theme.colors.primary.main};\\n background-color: white;\\n \`} \`, rp = ga.div\` font-size: 0.9em; font-family: \${e => e.theme.typography.code.fontFamily}; &::after { content: ' ['; } \`, op = ga.div\` font-size: 0.9em; font-family: \${e => e.theme.typography.code.fontFamily}; &::after { content: ']'; } \`; function ip(e) { return function (t) { return !!t.type && t.type.tabsRole === e; }; } var ap = ip('Tab'), sp = ip('TabList'), lp = ip('TabPanel'); function cp() { return ( (cp = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), cp.apply(this, arguments) ); } function up(e, t) { return n.Children.map(e, function (e) { return null === e ? null : (function (e) { return ap(e) || sp(e) || lp(e); })(e) ? t(e) : e.props && e.props.children && 'object' == typeof e.props.children ? (0, n.cloneElement)( e, cp({}, e.props, { children: up(e.props.children, t) }) ) : e; }); } function pp(e, t) { return n.Children.forEach(e, function (e) { null !== e && (ap(e) || lp(e) ? t(e) : e.props && e.props.children && 'object' == typeof e.props.children && (sp(e) && t(e), pp(e.props.children, t))); }); } function dp(e) { var t, n, r = ''; if ('string' == typeof e || 'number' == typeof e) r += e; else if ('object' == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = dp(e[t])) && (r && (r += ' '), (r += n)); else for (t in e) e[t] && (r && (r += ' '), (r += t)); return r; } function fp() { for (var e, t, n = 0, r = ''; n < arguments.length; ) (e = arguments[n++]) && (t = dp(e)) && (r && (r += ' '), (r += t)); return r; } var hp, mp = 0; function gp() { return 'react-tabs-' + mp++; } function yp(e) { var t = 0; return ( pp(e, function (e) { ap(e) && t++; }), t ); } function vp() { return ( (vp = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), vp.apply(this, arguments) ); } function bp(e, t) { return ( (bp = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), bp(e, t) ); } function wp(e) { return e && 'getAttribute' in e; } function xp(e) { return wp(e) && 'tab' === e.getAttribute('role'); } function kp(e) { return wp(e) && 'true' === e.getAttribute('aria-disabled'); } var _p = (function (e) { var t, r; function o() { for ( var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++ ) r[o] = arguments[o]; return ( ((t = e.call.apply(e, [this].concat(r)) || this).tabNodes = []), (t.handleKeyDown = function (e) { var n = t.props, r = n.direction, o = n.disableUpDownKeys; if (t.isTabFromContainer(e.target)) { var i = t.props.selectedIndex, a = !1, s = !1; (32 !== e.keyCode && 13 !== e.keyCode) || ((a = !0), (s = !1), t.handleClick(e)), 37 === e.keyCode || (!o && 38 === e.keyCode) ? ((i = 'rtl' === r ? t.getNextTab(i) : t.getPrevTab(i)), (a = !0), (s = !0)) : 39 === e.keyCode || (!o && 40 === e.keyCode) ? ((i = 'rtl' === r ? t.getPrevTab(i) : t.getNextTab(i)), (a = !0), (s = !0)) : 35 === e.keyCode ? ((i = t.getLastTab()), (a = !0), (s = !0)) : 36 === e.keyCode && ((i = t.getFirstTab()), (a = !0), (s = !0)), a && e.preventDefault(), s && t.setSelected(i, e); } }), (t.handleClick = function (e) { var n = e.target; do { if (t.isTabFromContainer(n)) { if (kp(n)) return; var r = [].slice .call(n.parentNode.children) .filter(xp) .indexOf(n); return void t.setSelected(r, e); } } while (null != (n = n.parentNode)); }), t ); } (r = e), ((t = o).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), bp(t, r); var i = o.prototype; return ( (i.setSelected = function (e, t) { if (!(e < 0 || e >= this.getTabsCount())) { var n = this.props; (0, n.onSelect)(e, n.selectedIndex, t); } }), (i.getNextTab = function (e) { for (var t = this.getTabsCount(), n = e + 1; n < t; n++) if (!kp(this.getTab(n))) return n; for (var r = 0; r < e; r++) if (!kp(this.getTab(r))) return r; return e; }), (i.getPrevTab = function (e) { for (var t = e; t--; ) if (!kp(this.getTab(t))) return t; for (t = this.getTabsCount(); t-- > e; ) if (!kp(this.getTab(t))) return t; return e; }), (i.getFirstTab = function () { for (var e = this.getTabsCount(), t = 0; t < e; t++) if (!kp(this.getTab(t))) return t; return null; }), (i.getLastTab = function () { for (var e = this.getTabsCount(); e--; ) if (!kp(this.getTab(e))) return e; return null; }), (i.getTabsCount = function () { return yp(this.props.children); }), (i.getPanelsCount = function () { return ( (e = this.props.children), (t = 0), pp(e, function (e) { lp(e) && t++; }), t ); var e, t; }), (i.getTab = function (e) { return this.tabNodes['tabs-' + e]; }), (i.getChildren = function () { var e = this, t = 0, r = this.props, o = r.children, i = r.disabledTabClassName, a = r.focus, s = r.forceRenderTabPanel, l = r.selectedIndex, c = r.selectedTabClassName, u = r.selectedTabPanelClassName, p = r.environment; (this.tabIds = this.tabIds || []), (this.panelIds = this.panelIds || []); for (var d = this.tabIds.length - this.getTabsCount(); d++ < 0; ) this.tabIds.push(gp()), this.panelIds.push(gp()); return up(o, function (r) { var o = r; if (sp(r)) { var d = 0, f = !1; null == hp && (function (e) { var t = e || ('undefined' != typeof window ? window : void 0); try { hp = !( void 0 === t || !t.document || !t.document.activeElement ); } catch (e) { hp = !1; } })(p), hp && (f = n.Children.toArray(r.props.children) .filter(ap) .some(function (t, n) { var r = p || ('undefined' != typeof window ? window : void 0); return r && r.document.activeElement === e.getTab(n); })), (o = (0, n.cloneElement)(r, { children: up(r.props.children, function (t) { var r = 'tabs-' + d, o = l === d, s = { tabRef: function (t) { e.tabNodes[r] = t; }, id: e.tabIds[d], panelId: e.panelIds[d], selected: o, focus: o && (a || f) }; return ( c && (s.selectedClassName = c), i && (s.disabledClassName = i), d++, (0, n.cloneElement)(t, s) ); }) })); } else if (lp(r)) { var h = { id: e.panelIds[t], tabId: e.tabIds[t], selected: l === t }; s && (h.forceRender = s), u && (h.selectedClassName = u), t++, (o = (0, n.cloneElement)(r, h)); } return o; }); }), (i.isTabFromContainer = function (e) { if (!xp(e)) return !1; var t = e.parentElement; do { if (t === this.node) return !0; if (t.getAttribute('data-tabs')) break; t = t.parentElement; } while (t); return !1; }), (i.render = function () { var e = this, t = this.props, r = (t.children, t.className), o = (t.disabledTabClassName, t.domRef), i = (t.focus, t.forceRenderTabPanel, t.onSelect, t.selectedIndex, t.selectedTabClassName, t.selectedTabPanelClassName, t.environment, t.disableUpDownKeys, (function (e, t) { if (null == e) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(t, [ 'children', 'className', 'disabledTabClassName', 'domRef', 'focus', 'forceRenderTabPanel', 'onSelect', 'selectedIndex', 'selectedTabClassName', 'selectedTabPanelClassName', 'environment', 'disableUpDownKeys' ])); return n.createElement( 'div', vp({}, i, { className: fp(r), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: function (t) { (e.node = t), o && o(t); }, 'data-tabs': !0 }), this.getChildren() ); }), o ); })(n.Component); function Op(e, t) { return ( (Op = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), Op(e, t) ); } (_p.defaultProps = { className: 'react-tabs', focus: !1 }), (_p.propTypes = {}); var Sp = (function (e) { var t, r; function o(t) { var n; return ( ((n = e.call(this, t) || this).handleSelected = function ( e, t, r ) { var o = n.props.onSelect, i = n.state.mode; if ('function' != typeof o || !1 !== o(e, t, r)) { var a = { focus: 'keydown' === r.type }; 1 === i && (a.selectedIndex = e), n.setState(a); } }), (n.state = o.copyPropsToState(n.props, {}, t.defaultFocus)), n ); } return ( (r = e), ((t = o).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), Op(t, r), (o.getDerivedStateFromProps = function (e, t) { return o.copyPropsToState(e, t); }), (o.getModeFromProps = function (e) { return null === e.selectedIndex ? 1 : 0; }), (o.copyPropsToState = function (e, t, n) { void 0 === n && (n = !1); var r = { focus: n, mode: o.getModeFromProps(e) }; if (1 === r.mode) { var i, a = Math.max(0, yp(e.children) - 1); (i = null != t.selectedIndex ? Math.min(t.selectedIndex, a) : e.defaultIndex || 0), (r.selectedIndex = i); } return r; }), (o.prototype.render = function () { var e = this.props, t = e.children, r = (e.defaultIndex, e.defaultFocus, (function (e, t) { if (null == e) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(e, ['children', 'defaultIndex', 'defaultFocus'])), o = this.state, i = o.focus, a = o.selectedIndex; return ( (r.focus = i), (r.onSelect = this.handleSelected), null != a && (r.selectedIndex = a), n.createElement(_p, r, t) ); }), o ); })(n.Component); function Ep() { return ( (Ep = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), Ep.apply(this, arguments) ); } function Pp(e, t) { return ( (Pp = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), Pp(e, t) ); } (Sp.defaultProps = { defaultFocus: !1, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1 }), (Sp.propTypes = {}), (Sp.tabsRole = 'Tabs'); var Ap = (function (e) { var t, r; function o() { return e.apply(this, arguments) || this; } return ( (r = e), ((t = o).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), Pp(t, r), (o.prototype.render = function () { var e = this.props, t = e.children, r = e.className, o = (function (e, t) { if (null == e) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(e, ['children', 'className']); return n.createElement( 'ul', Ep({}, o, { className: fp(r), role: 'tablist' }), t ); }), o ); })(n.Component); function $p() { return ( ($p = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), $p.apply(this, arguments) ); } function Cp(e, t) { return ( (Cp = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), Cp(e, t) ); } (Ap.defaultProps = { className: 'react-tabs__tab-list' }), (Ap.propTypes = {}), (Ap.tabsRole = 'TabList'); var Rp = 'react-tabs__tab', jp = (function (e) { var t, r; function o() { return e.apply(this, arguments) || this; } (r = e), ((t = o).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), Cp(t, r); var i = o.prototype; return ( (i.componentDidMount = function () { this.checkFocus(); }), (i.componentDidUpdate = function () { this.checkFocus(); }), (i.checkFocus = function () { var e = this.props, t = e.selected, n = e.focus; t && n && this.node.focus(); }), (i.render = function () { var e, t = this, r = this.props, o = r.children, i = r.className, a = r.disabled, s = r.disabledClassName, l = (r.focus, r.id), c = r.panelId, u = r.selected, p = r.selectedClassName, d = r.tabIndex, f = r.tabRef, h = (function (e, t) { if (null == e) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(r, [ 'children', 'className', 'disabled', 'disabledClassName', 'focus', 'id', 'panelId', 'selected', 'selectedClassName', 'tabIndex', 'tabRef' ]); return n.createElement( 'li', $p({}, h, { className: fp(i, ((e = {}), (e[p] = u), (e[s] = a), e)), ref: function (e) { (t.node = e), f && f(e); }, role: 'tab', id: l, 'aria-selected': u ? 'true' : 'false', 'aria-disabled': a ? 'true' : 'false', 'aria-controls': c, tabIndex: d || (u ? '0' : null) }), o ); }), o ); })(n.Component); function Tp() { return ( (Tp = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), Tp.apply(this, arguments) ); } function Ip(e, t) { return ( (Ip = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), Ip(e, t) ); } (jp.defaultProps = { className: Rp, disabledClassName: Rp + '--disabled', focus: !1, id: null, panelId: null, selected: !1, selectedClassName: Rp + '--selected' }), (jp.propTypes = {}), (jp.tabsRole = 'Tab'); var Np = (function (e) { var t, r; function o() { return e.apply(this, arguments) || this; } return ( (r = e), ((t = o).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), Ip(t, r), (o.prototype.render = function () { var e, t = this.props, r = t.children, o = t.className, i = t.forceRender, a = t.id, s = t.selected, l = t.selectedClassName, c = t.tabId, u = (function (e, t) { if (null == e) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(t, [ 'children', 'className', 'forceRender', 'id', 'selected', 'selectedClassName', 'tabId' ]); return n.createElement( 'div', Tp({}, u, { className: fp(o, ((e = {}), (e[l] = s), e)), role: 'tabpanel', id: a, 'aria-labelledby': c }), i || s ? r : null ); }), o ); })(n.Component); (Np.defaultProps = { className: 'react-tabs__tab-panel', forceRender: !1, selectedClassName: 'react-tabs__tab-panel--selected' }), (Np.propTypes = {}), (Np.tabsRole = 'TabPanel'); const Dp = ga(Sp)\` > ul { list-style: none; padding: 0; margin: 0; margin: 0 -5px; > li { padding: 5px 10px; display: inline-block; background-color: \${({ theme: e }) => e.codeBlock.backgroundColor}; border-bottom: 1px solid rgba(0, 0, 0, 0.5); cursor: pointer; text-align: center; outline: none; color: \${({ theme: e }) => Rr(e.colors.tonalOffset, e.rightPanel.textColor)}; margin: 0 \${({ theme: e }) => \`\${e.spacing.unit}px \${e.spacing.unit}px \${e.spacing.unit}px\`}; border: 1px solid \${({ theme: e }) => Rr(0.05, e.codeBlock.backgroundColor)}; border-radius: 5px; min-width: 60px; font-size: 0.9em; font-weight: bold; &.react-tabs__tab--selected { color: \${e => e.theme.colors.text.primary}; background: \${({ theme: e }) => e.rightPanel.textColor}; &:focus { outline: auto; } } &:only-child { flex: none; min-width: 100px; } &.tab-success { color: \${e => e.theme.colors.responses.success.tabTextColor}; } &.tab-redirect { color: \${e => e.theme.colors.responses.redirect.tabTextColor}; } &.tab-info { color: \${e => e.theme.colors.responses.info.tabTextColor}; } &.tab-error { color: \${e => e.theme.colors.responses.error.tabTextColor}; } } } > .react-tabs__tab-panel { background: \${({ theme: e }) => e.codeBlock.backgroundColor}; & > div, & > pre { padding: \${e => 4 * e.theme.spacing.unit}px; margin: 0; } & > div > pre { padding: 0; } } \`, Lp = (ga(Dp)\` > ul { display: block; > li { padding: 2px 5px; min-width: auto; margin: 0 15px 0 0; font-size: 13px; font-weight: normal; border-bottom: 1px dashed; color: \${({ theme: e }) => Rr(e.colors.tonalOffset, e.rightPanel.textColor)}; border-radius: 0; background: none; &:last-child { margin-right: 0; } &.react-tabs__tab--selected { color: \${({ theme: e }) => e.rightPanel.textColor}; background: none; } } } > .react-tabs__tab-panel { & > div, & > pre { padding: \${e => 2 * e.theme.spacing.unit}px 0; } } \`, ga.div\` /** * Based on prism-dark.css */ code[class*='language-'], pre[class*='language-'] { /* color: white; background: none; */ text-shadow: 0 -0.1em 0.2em black; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } @media print { code[class*='language-'], pre[class*='language-'] { text-shadow: none; } } /* Code blocks */ pre[class*='language-'] { padding: 1em; margin: 0.5em 0; overflow: auto; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: hsl(30, 20%, 50%); } .token.punctuation { opacity: 0.7; } .namespace { opacity: 0.7; } .token.property, .token.tag, .token.number, .token.constant, .token.symbol { color: #4a8bb3; } .token.boolean { color: #e64441; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #a0fbaa; & + a, & + a:visited { color: #4ed2ba; text-decoration: underline; } } .token.property.string { color: white; } .token.operator, .token.entity, .token.url, .token.variable { color: hsl(40, 90%, 60%); } .token.atrule, .token.attr-value, .token.keyword { color: hsl(350, 40%, 70%); } .token.regex, .token.important { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } .token.deleted { color: red; } \${ya('Prism')}; \`), Mp = ga.div\` opacity: 0.7; transition: opacity 0.3s ease; text-align: right; &:focus-within { opacity: 1; } > button { background-color: transparent; border: 0; color: inherit; padding: 2px 10px; font-family: \${({ theme: e }) => e.typography.fontFamily}; font-size: \${({ theme: e }) => e.typography.fontSize}; line-height: \${({ theme: e }) => e.typography.lineHeight}; cursor: pointer; outline: 0; :hover, :focus { background: rgba(255, 255, 255, 0.1); } } \`, Fp = ga.div\` &:hover \${Mp} { opacity: 1; } \`, zp = ga(Lp.withComponent('pre'))\` font-family: \${e => e.theme.typography.code.fontFamily}; font-size: \${e => e.theme.typography.code.fontSize}; overflow-x: auto; margin: 0; white-space: \${({ theme: e }) => e.typography.code.wrap ? 'pre-wrap' : 'pre'}; \`; function Up(e) { return getComputedStyle(e); } function Vp(e, t) { for (var n in t) { var r = t[n]; 'number' == typeof r && (r += 'px'), (e.style[n] = r); } return e; } function Bp(e) { var t = document.createElement('div'); return (t.className = e), t; } var qp = 'undefined' != typeof Element && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector); function Wp(e, t) { if (!qp) throw new Error('No element matching method supported'); return qp.call(e, t); } function Hp(e) { e.remove ? e.remove() : e.parentNode && e.parentNode.removeChild(e); } function Yp(e, t) { return Array.prototype.filter.call(e.children, function (e) { return Wp(e, t); }); } var Kp = function (e) { return 'ps__thumb-' + e; }, Gp = function (e) { return 'ps__rail-' + e; }, Qp = 'ps__child--consume', Xp = 'ps--focus', Jp = 'ps--clicking', Zp = function (e) { return 'ps--active-' + e; }, ed = function (e) { return 'ps--scrolling-' + e; }, td = { x: null, y: null }; function nd(e, t) { var n = e.element.classList, r = ed(t); n.contains(r) ? clearTimeout(td[t]) : n.add(r); } function rd(e, t) { td[t] = setTimeout(function () { return e.isAlive && e.element.classList.remove(ed(t)); }, e.settings.scrollingThreshold); } var od = function (e) { (this.element = e), (this.handlers = {}); }, id = { isEmpty: { configurable: !0 } }; (od.prototype.bind = function (e, t) { void 0 === this.handlers[e] && (this.handlers[e] = []), this.handlers[e].push(t), this.element.addEventListener(e, t, !1); }), (od.prototype.unbind = function (e, t) { var n = this; this.handlers[e] = this.handlers[e].filter(function (r) { return ( !(!t || r === t) || (n.element.removeEventListener(e, r, !1), !1) ); }); }), (od.prototype.unbindAll = function () { for (var e in this.handlers) this.unbind(e); }), (id.isEmpty.get = function () { var e = this; return Object.keys(this.handlers).every(function (t) { return 0 === e.handlers[t].length; }); }), Object.defineProperties(od.prototype, id); var ad = function () { this.eventElements = []; }; function sd(e) { if ('function' == typeof window.CustomEvent) return new CustomEvent(e); var t = document.createEvent('CustomEvent'); return t.initCustomEvent(e, !1, !1, void 0), t; } function ld(e, t, n, r, o) { var i; if ((void 0 === r && (r = !0), void 0 === o && (o = !1), 'top' === t)) i = [ 'contentHeight', 'containerHeight', 'scrollTop', 'y', 'up', 'down' ]; else { if ('left' !== t) throw new Error('A proper axis should be provided'); i = [ 'contentWidth', 'containerWidth', 'scrollLeft', 'x', 'left', 'right' ]; } !(function (e, t, n, r, o) { var i = n[0], a = n[1], s = n[2], l = n[3], c = n[4], u = n[5]; void 0 === r && (r = !0), void 0 === o && (o = !1); var p = e.element; (e.reach[l] = null), p[s] < 1 && (e.reach[l] = 'start'), p[s] > e[i] - e[a] - 1 && (e.reach[l] = 'end'), t && (p.dispatchEvent(sd('ps-scroll-' + l)), t < 0 ? p.dispatchEvent(sd('ps-scroll-' + c)) : t > 0 && p.dispatchEvent(sd('ps-scroll-' + u)), r && (function (e, t) { nd(e, t), rd(e, t); })(e, l)), e.reach[l] && (t || o) && p.dispatchEvent(sd('ps-' + l + '-reach-' + e.reach[l])); })(e, n, i, r, o); } function cd(e) { return parseInt(e, 10) || 0; } (ad.prototype.eventElement = function (e) { var t = this.eventElements.filter(function (t) { return t.element === e; })[0]; return t || ((t = new od(e)), this.eventElements.push(t)), t; }), (ad.prototype.bind = function (e, t, n) { this.eventElement(e).bind(t, n); }), (ad.prototype.unbind = function (e, t, n) { var r = this.eventElement(e); r.unbind(t, n), r.isEmpty && this.eventElements.splice(this.eventElements.indexOf(r), 1); }), (ad.prototype.unbindAll = function () { this.eventElements.forEach(function (e) { return e.unbindAll(); }), (this.eventElements = []); }), (ad.prototype.once = function (e, t, n) { var r = this.eventElement(e), o = function (e) { r.unbind(t, o), n(e); }; r.bind(t, o); }); var ud = { isWebKit: 'undefined' != typeof document && 'WebkitAppearance' in document.documentElement.style, supportsTouch: 'undefined' != typeof window && ('ontouchstart' in window || ('maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints > 0) || (window.DocumentTouch && document instanceof window.DocumentTouch)), supportsIePointer: 'undefined' != typeof navigator && navigator.msMaxTouchPoints, isChrome: 'undefined' != typeof navigator && /Chrome/i.test(navigator && navigator.userAgent) }; function pd(e) { var t = e.element, n = Math.floor(t.scrollTop), r = t.getBoundingClientRect(); (e.containerWidth = Math.round(r.width)), (e.containerHeight = Math.round(r.height)), (e.contentWidth = t.scrollWidth), (e.contentHeight = t.scrollHeight), t.contains(e.scrollbarXRail) || (Yp(t, Gp('x')).forEach(function (e) { return Hp(e); }), t.appendChild(e.scrollbarXRail)), t.contains(e.scrollbarYRail) || (Yp(t, Gp('y')).forEach(function (e) { return Hp(e); }), t.appendChild(e.scrollbarYRail)), !e.settings.suppressScrollX && e.containerWidth + e.settings.scrollXMarginOffset < e.contentWidth ? ((e.scrollbarXActive = !0), (e.railXWidth = e.containerWidth - e.railXMarginWidth), (e.railXRatio = e.containerWidth / e.railXWidth), (e.scrollbarXWidth = dd( e, cd((e.railXWidth * e.containerWidth) / e.contentWidth) )), (e.scrollbarXLeft = cd( ((e.negativeScrollAdjustment + t.scrollLeft) * (e.railXWidth - e.scrollbarXWidth)) / (e.contentWidth - e.containerWidth) ))) : (e.scrollbarXActive = !1), !e.settings.suppressScrollY && e.containerHeight + e.settings.scrollYMarginOffset < e.contentHeight ? ((e.scrollbarYActive = !0), (e.railYHeight = e.containerHeight - e.railYMarginHeight), (e.railYRatio = e.containerHeight / e.railYHeight), (e.scrollbarYHeight = dd( e, cd((e.railYHeight * e.containerHeight) / e.contentHeight) )), (e.scrollbarYTop = cd( (n * (e.railYHeight - e.scrollbarYHeight)) / (e.contentHeight - e.containerHeight) ))) : (e.scrollbarYActive = !1), e.scrollbarXLeft >= e.railXWidth - e.scrollbarXWidth && (e.scrollbarXLeft = e.railXWidth - e.scrollbarXWidth), e.scrollbarYTop >= e.railYHeight - e.scrollbarYHeight && (e.scrollbarYTop = e.railYHeight - e.scrollbarYHeight), (function (e, t) { var n = { width: t.railXWidth }, r = Math.floor(e.scrollTop); t.isRtl ? (n.left = t.negativeScrollAdjustment + e.scrollLeft + t.containerWidth - t.contentWidth) : (n.left = e.scrollLeft), t.isScrollbarXUsingBottom ? (n.bottom = t.scrollbarXBottom - r) : (n.top = t.scrollbarXTop + r), Vp(t.scrollbarXRail, n); var o = { top: r, height: t.railYHeight }; t.isScrollbarYUsingRight ? t.isRtl ? (o.right = t.contentWidth - (t.negativeScrollAdjustment + e.scrollLeft) - t.scrollbarYRight - t.scrollbarYOuterWidth - 9) : (o.right = t.scrollbarYRight - e.scrollLeft) : t.isRtl ? (o.left = t.negativeScrollAdjustment + e.scrollLeft + 2 * t.containerWidth - t.contentWidth - t.scrollbarYLeft - t.scrollbarYOuterWidth) : (o.left = t.scrollbarYLeft + e.scrollLeft), Vp(t.scrollbarYRail, o), Vp(t.scrollbarX, { left: t.scrollbarXLeft, width: t.scrollbarXWidth - t.railBorderXWidth }), Vp(t.scrollbarY, { top: t.scrollbarYTop, height: t.scrollbarYHeight - t.railBorderYWidth }); })(t, e), e.scrollbarXActive ? t.classList.add(Zp('x')) : (t.classList.remove(Zp('x')), (e.scrollbarXWidth = 0), (e.scrollbarXLeft = 0), (t.scrollLeft = !0 === e.isRtl ? e.contentWidth : 0)), e.scrollbarYActive ? t.classList.add(Zp('y')) : (t.classList.remove(Zp('y')), (e.scrollbarYHeight = 0), (e.scrollbarYTop = 0), (t.scrollTop = 0)); } function dd(e, t) { return ( e.settings.minScrollbarLength && (t = Math.max(t, e.settings.minScrollbarLength)), e.settings.maxScrollbarLength && (t = Math.min(t, e.settings.maxScrollbarLength)), t ); } function fd(e, t) { var n = t[0], r = t[1], o = t[2], i = t[3], a = t[4], s = t[5], l = t[6], c = t[7], u = t[8], p = e.element, d = null, f = null, h = null; function m(t) { t.touches && t.touches[0] && (t[o] = t.touches[0].pageY), (p[l] = d + h * (t[o] - f)), nd(e, c), pd(e), t.stopPropagation(), t.type.startsWith('touch') && t.changedTouches.length > 1 && t.preventDefault(); } function g() { rd(e, c), e[u].classList.remove(Jp), e.event.unbind(e.ownerDocument, 'mousemove', m); } function y(t, a) { (d = p[l]), a && t.touches && (t[o] = t.touches[0].pageY), (f = t[o]), (h = (e[r] - e[n]) / (e[i] - e[s])), a ? e.event.bind(e.ownerDocument, 'touchmove', m) : (e.event.bind(e.ownerDocument, 'mousemove', m), e.event.once(e.ownerDocument, 'mouseup', g), t.preventDefault()), e[u].classList.add(Jp), t.stopPropagation(); } e.event.bind(e[a], 'mousedown', function (e) { y(e); }), e.event.bind(e[a], 'touchstart', function (e) { y(e, !0); }); } var hd = { 'click-rail': function (e) { e.element, e.event.bind(e.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); }), e.event.bind(e.scrollbarYRail, 'mousedown', function (t) { var n = t.pageY - window.pageYOffset - e.scrollbarYRail.getBoundingClientRect().top > e.scrollbarYTop ? 1 : -1; (e.element.scrollTop += n * e.containerHeight), pd(e), t.stopPropagation(); }), e.event.bind(e.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); }), e.event.bind(e.scrollbarXRail, 'mousedown', function (t) { var n = t.pageX - window.pageXOffset - e.scrollbarXRail.getBoundingClientRect().left > e.scrollbarXLeft ? 1 : -1; (e.element.scrollLeft += n * e.containerWidth), pd(e), t.stopPropagation(); }); }, 'drag-thumb': function (e) { fd(e, [ 'containerWidth', 'contentWidth', 'pageX', 'railXWidth', 'scrollbarX', 'scrollbarXWidth', 'scrollLeft', 'x', 'scrollbarXRail' ]), fd(e, [ 'containerHeight', 'contentHeight', 'pageY', 'railYHeight', 'scrollbarY', 'scrollbarYHeight', 'scrollTop', 'y', 'scrollbarYRail' ]); }, keyboard: function (e) { var t = e.element; e.event.bind(e.ownerDocument, 'keydown', function (n) { if ( !( (n.isDefaultPrevented && n.isDefaultPrevented()) || n.defaultPrevented ) && (Wp(t, ':hover') || Wp(e.scrollbarX, ':focus') || Wp(e.scrollbarY, ':focus')) ) { var r, o = document.activeElement ? document.activeElement : e.ownerDocument.activeElement; if (o) { if ('IFRAME' === o.tagName) o = o.contentDocument.activeElement; else for (; o.shadowRoot; ) o = o.shadowRoot.activeElement; if ( Wp((r = o), 'input,[contenteditable]') || Wp(r, 'select,[contenteditable]') || Wp(r, 'textarea,[contenteditable]') || Wp(r, 'button,[contenteditable]') ) return; } var i = 0, a = 0; switch (n.which) { case 37: i = n.metaKey ? -e.contentWidth : n.altKey ? -e.containerWidth : -30; break; case 38: a = n.metaKey ? e.contentHeight : n.altKey ? e.containerHeight : 30; break; case 39: i = n.metaKey ? e.contentWidth : n.altKey ? e.containerWidth : 30; break; case 40: a = n.metaKey ? -e.contentHeight : n.altKey ? -e.containerHeight : -30; break; case 32: a = n.shiftKey ? e.containerHeight : -e.containerHeight; break; case 33: a = e.containerHeight; break; case 34: a = -e.containerHeight; break; case 36: a = e.contentHeight; break; case 35: a = -e.contentHeight; break; default: return; } (e.settings.suppressScrollX && 0 !== i) || (e.settings.suppressScrollY && 0 !== a) || ((t.scrollTop -= a), (t.scrollLeft += i), pd(e), (function (n, r) { var o = Math.floor(t.scrollTop); if (0 === n) { if (!e.scrollbarYActive) return !1; if ( (0 === o && r > 0) || (o >= e.contentHeight - e.containerHeight && r < 0) ) return !e.settings.wheelPropagation; } var i = t.scrollLeft; if (0 === r) { if (!e.scrollbarXActive) return !1; if ( (0 === i && n < 0) || (i >= e.contentWidth - e.containerWidth && n > 0) ) return !e.settings.wheelPropagation; } return !0; })(i, a) && n.preventDefault()); } }); }, wheel: function (e) { var t = e.element; function n(n) { var r = (function (e) { var t = e.deltaX, n = -1 * e.deltaY; return ( (void 0 !== t && void 0 !== n) || ((t = (-1 * e.wheelDeltaX) / 6), (n = e.wheelDeltaY / 6)), e.deltaMode && 1 === e.deltaMode && ((t *= 10), (n *= 10)), t != t && n != n && ((t = 0), (n = e.wheelDelta)), e.shiftKey ? [-n, -t] : [t, n] ); })(n), o = r[0], i = r[1]; if ( !(function (e, n, r) { if (!ud.isWebKit && t.querySelector('select:focus')) return !0; if (!t.contains(e)) return !1; for (var o = e; o && o !== t; ) { if (o.classList.contains(Qp)) return !0; var i = Up(o); if (r && i.overflowY.match(/(scroll|auto)/)) { var a = o.scrollHeight - o.clientHeight; if ( a > 0 && ((o.scrollTop > 0 && r < 0) || (o.scrollTop < a && r > 0)) ) return !0; } if (n && i.overflowX.match(/(scroll|auto)/)) { var s = o.scrollWidth - o.clientWidth; if ( s > 0 &&