(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [59],
  {
    MZF8: function (e, t, a) {
      'use strict';
      var n = a('ogwx');
      a.d(t, 'a', function () {
        return n['b'];
      });
      a('VCU9');
    },
    RZMt: function (e, t, a) {},
    Zxc8: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('k3GJ'),
        c = a('MZF8'),
        o = a('dEAq'),
        i = a('H1Ra');
      a('RZMt');
      function d(e, t) {
        return f(e) || E(e, t) || m(e, t) || u();
      }
      function u() {
        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 m(e, t) {
        if (e) {
          if ('string' === typeof e) return s(e, t);
          var a = Object.prototype.toString.call(e).slice(8, -1);
          return (
            'Object' === a && e.constructor && (a = e.constructor.name),
            'Map' === a || 'Set' === a
              ? Array.from(e)
              : 'Arguments' === a ||
                /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
              ? s(e, t)
              : void 0
          );
        }
      }
      function s(e, t) {
        (null == t || t > e.length) && (t = e.length);
        for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
        return n;
      }
      function E(e, t) {
        var a =
          null == e
            ? null
            : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
              e['@@iterator'];
        if (null != a) {
          var n,
            l,
            r = [],
            c = !0,
            o = !1;
          try {
            for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
              if ((r.push(n.value), t && r.length === t)) break;
          } catch (i) {
            (o = !0), (l = i);
          } finally {
            try {
              c || null == a['return'] || a['return']();
            } finally {
              if (o) throw l;
            }
          }
          return r;
        }
      }
      function f(e) {
        if (Array.isArray(e)) return e;
      }
      function h(e, t) {
        var a,
          n =
            null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
        return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
      }
      var b = function (e) {
        var t,
          a,
          u,
          m = Object(n['useRef'])(),
          s = Object(n['useContext'])(o['context']),
          E = s.locale,
          f = Object(o['useLocaleProps'])(E, e),
          b = Object(o['useDemoUrl'])(f.identifier),
          p = f.demoUrl || b,
          v =
            (null === c['a'] || void 0 === c['a']
              ? void 0
              : c['a'].location.hash) === '#'.concat(f.identifier),
          k = 1 === Object.keys(f.sources).length,
          w = Object(o['useCodeSandbox'])(
            (
              null === (t = f.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : f,
          ),
          _ = Object(o['useRiddle'])(
            (
              null === (a = f.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : f,
          ),
          y = Object(o['useMotions'])(f.motions || [], m.current),
          N = d(y, 2),
          g = N[0],
          x = N[1],
          A = Object(o['useCopy'])(),
          C = d(A, 2),
          j = C[0],
          O = C[1],
          I = Object(n['useState'])('_'),
          S = d(I, 2),
          L = S[0],
          R = S[1],
          P = Object(n['useState'])(h(L, f.sources[L])),
          M = d(P, 2),
          T = M[0],
          U = M[1],
          Z = Object(n['useState'])(Boolean(f.defaultShowCode)),
          F = d(Z, 2),
          J = F[0],
          q = F[1],
          $ = Object(n['useState'])(Math.random()),
          z = d($, 2),
          B = z[0],
          D = z[1],
          G = f.sources[L][T] || f.sources[L].content,
          H = Object(o['useTSPlaygroundUrl'])(E, G),
          X = Object(n['useRef'])(),
          K = Object(o['usePrefersColor'])(),
          V = d(K, 1),
          Y = V[0];
        function Q(e) {
          R(e), U(h(e, f.sources[e]));
        }
        return (
          Object(n['useEffect'])(
            function () {
              D(Math.random());
            },
            [Y],
          ),
          l.a.createElement(
            'div',
            {
              style: f.style,
              className: [
                f.className,
                '__dumi-default-previewer',
                v ? '__dumi-default-previewer-target' : '',
              ]
                .filter(Boolean)
                .join(' '),
              id: f.identifier,
              'data-debug': f.debug || void 0,
              'data-iframe': f.iframe || void 0,
            },
            f.iframe &&
              l.a.createElement('div', {
                className: '__dumi-default-previewer-browser-nav',
              }),
            l.a.createElement(
              'div',
              {
                ref: m,
                className: '__dumi-default-previewer-demo',
                style: {
                  transform: f.transform ? 'translate(0, 0)' : void 0,
                  padding:
                    f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
                  background: f.background,
                },
              },
              f.iframe
                ? l.a.createElement('iframe', {
                    title: 'dumi-previewer',
                    style: {
                      height: String(f.iframe).replace(/(\d)$/, '$1px'),
                    },
                    key: B,
                    src: p,
                    ref: X,
                  })
                : f.children,
            ),
            l.a.createElement(
              'div',
              {
                className: '__dumi-default-previewer-desc',
                'data-title': f.title,
              },
              f.title &&
                l.a.createElement(
                  o['AnchorLink'],
                  { to: '#'.concat(f.identifier) },
                  f.title,
                ),
              f.description &&
                l.a.createElement('div', {
                  dangerouslySetInnerHTML: { __html: f.description },
                }),
            ),
            l.a.createElement(
              'div',
              { className: '__dumi-default-previewer-actions' },
              w &&
                l.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: w,
                }),
              _ &&
                l.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: _,
                }),
              f.motions &&
                l.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: x,
                  onClick: function () {
                    return g();
                  },
                }),
              f.iframe &&
                l.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return D(Math.random());
                  },
                }),
              !(null === (u = f.hideActions) || void 0 === u
                ? void 0
                : u.includes('EXTERNAL')) &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: p },
                  l.a.createElement('button', {
                    title: 'Open demo in new tab',
                    className: '__dumi-default-icon',
                    role: 'open-demo',
                    type: 'button',
                  }),
                ),
              l.a.createElement('span', null),
              l.a.createElement('button', {
                title: 'Copy source code',
                className: '__dumi-default-icon',
                role: 'copy',
                'data-status': O,
                onClick: function () {
                  return j(G);
                },
              }),
              'tsx' === T &&
                J &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: H },
                  l.a.createElement('button', {
                    title: 'Get JSX via TypeScript Playground',
                    className: '__dumi-default-icon',
                    role: 'change-tsx',
                    type: 'button',
                  }),
                ),
              l.a.createElement('button', {
                title: 'Toggle source code panel',
                className: '__dumi-default-icon'.concat(
                  J ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return q(!J);
                },
              }),
            ),
            J &&
              l.a.createElement(
                'div',
                { className: '__dumi-default-previewer-source-wrapper' },
                !k &&
                  l.a.createElement(
                    r['b'],
                    {
                      className: '__dumi-default-previewer-source-tab',
                      prefixCls: '__dumi-default-tabs',
                      moreIcon: '\xb7\xb7\xb7',
                      defaultActiveKey: L,
                      onChange: Q,
                    },
                    Object.keys(f.sources).map(function (e) {
                      return l.a.createElement(r['a'], {
                        tab:
                          '_' === e ? 'index.'.concat(h(e, f.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                l.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  l.a.createElement(i['a'], { code: G, lang: T, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = b;
    },
    bYhw: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('dEAq'),
        c = a('Zxc8'),
        o = a('JjdP'),
        i = l.a.memo(o['default']['switch-basic'].component),
        d = l.a.memo(o['default']['switch-size'].component),
        u = l.a.memo(o['default']['switch-text'].component),
        m = l.a.memo(o['default']['switch-loading'].component),
        s = l.a.memo(o['default']['switch-disabled'].component);
      t['default'] = (e) => (
        l.a.useEffect(() => {
          var t;
          null !== e &&
            void 0 !== e &&
            null !== (t = e.location) &&
            void 0 !== t &&
            t.hash &&
            r['AnchorLink'].scrollToAnchor(
              decodeURIComponent(e.location.hash.slice(1)),
            );
        }, []),
        l.a.createElement(
          l.a.Fragment,
          null,
          l.a.createElement(
            l.a.Fragment,
            null,
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h1',
                { id: 'switch-\u5f00\u5173' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#switch-\u5f00\u5173',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Switch \u5f00\u5173',
              ),
              l.a.createElement(
                'p',
                null,
                '\u5f00\u5173\u9009\u62e9\u5668\u3002',
              ),
              l.a.createElement(
                'h2',
                { id: '\u4f55\u65f6\u4f7f\u7528' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4f55\u65f6\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4f55\u65f6\u4f7f\u7528',
              ),
              l.a.createElement(
                'ul',
                null,
                l.a.createElement(
                  'li',
                  null,
                  '\u9700\u8981\u8868\u793a\u5f00\u5173\u72b6\u6001/\u4e24\u79cd\u72b6\u6001\u4e4b\u95f4\u7684\u5207\u6362\u65f6\uff1b',
                ),
                l.a.createElement(
                  'li',
                  null,
                  '\u548c ',
                  l.a.createElement('code', null, 'checkbox'),
                  ' \u7684\u533a\u522b\u662f\uff0c\u5207\u6362 ',
                  l.a.createElement('code', null, 'switch'),
                  ' \u4f1a\u76f4\u63a5\u89e6\u53d1\u72b6\u6001\u6539\u53d8\uff0c\u800c ',
                  l.a.createElement('code', null, 'checkbox'),
                  ' \u4e00\u822c\u7528\u4e8e\u72b6\u6001\u6807\u8bb0\uff0c\u9700\u8981\u548c\u63d0\u4ea4\u64cd\u4f5c\u914d\u5408\u3002',
                ),
              ),
              l.a.createElement(
                'h2',
                { id: '\u4ee3\u7801\u6f14\u793a' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4ee3\u7801\u6f14\u793a',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4ee3\u7801\u6f14\u793a',
              ),
              l.a.createElement(
                'h3',
                { id: '\u57fa\u672c' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u57fa\u672c',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['switch-basic'].previewerProps,
              l.a.createElement(i, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u4e24\u79cd\u5927\u5c0f' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e24\u79cd\u5927\u5c0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e24\u79cd\u5927\u5c0f',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['switch-size'].previewerProps,
              l.a.createElement(d, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u6587\u5b57\u548c\u56fe\u6807' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u6587\u5b57\u548c\u56fe\u6807',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u6587\u5b57\u548c\u56fe\u6807',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['switch-text'].previewerProps,
              l.a.createElement(u, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u52a0\u8f7d\u4e2d' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u52a0\u8f7d\u4e2d',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u52a0\u8f7d\u4e2d',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['switch-loading'].previewerProps,
              l.a.createElement(m, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u4e0d\u53ef\u7528' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e0d\u53ef\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e0d\u53ef\u7528',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['switch-disabled'].previewerProps,
              l.a.createElement(s, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h2',
                { id: 'api' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'API',
              ),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u53c2\u6570'),
                    l.a.createElement('th', null, '\u8bf4\u660e'),
                    l.a.createElement('th', null, '\u7c7b\u578b'),
                    l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'autoFocus'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u7ec4\u4ef6\u81ea\u52a8\u83b7\u53d6\u7126\u70b9',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'checked'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6307\u5b9a\u5f53\u524d\u662f\u5426\u9009\u4e2d',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'checkedChildren'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u9009\u4e2d\u65f6\u7684\u5185\u5bb9',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'className'),
                    l.a.createElement('td', null, 'Switch \u5668\u7c7b\u540d'),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'defaultChecked'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u521d\u59cb\u662f\u5426\u9009\u4e2d',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'disabled'),
                    l.a.createElement('td', null, '\u662f\u5426\u7981\u7528'),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'loading'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u52a0\u8f7d\u4e2d\u7684\u5f00\u5173',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'size'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5f00\u5173\u5927\u5c0f\uff0c\u53ef\u9009\u503c\uff1a',
                      l.a.createElement('code', null, 'default'),
                      ' ',
                      l.a.createElement('code', null, 'small'),
                    ),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'default'),
                    ),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'unCheckedChildren'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u975e\u9009\u4e2d\u65f6\u7684\u5185\u5bb9',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onChange'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u53d8\u5316\u65f6\u56de\u8c03\u51fd\u6570',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      'function(checked: boolean, event: Event)',
                    ),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onClick'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u70b9\u51fb\u65f6\u56de\u8c03\u51fd\u6570',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      'function(checked: boolean, event: Event)',
                    ),
                    l.a.createElement('td', null, '-'),
                  ),
                ),
              ),
              l.a.createElement(
                'h2',
                { id: '\u65b9\u6cd5' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#\u65b9\u6cd5', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u65b9\u6cd5',
              ),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u540d\u79f0'),
                    l.a.createElement('th', null, '\u63cf\u8ff0'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'blur()'),
                    l.a.createElement('td', null, '\u79fb\u9664\u7126\u70b9'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'focus()'),
                    l.a.createElement('td', null, '\u83b7\u53d6\u7126\u70b9'),
                  ),
                ),
              ),
            ),
          ),
        )
      );
    },
  },
]);
