(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [13],
  {
    KxWB: 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']['back-top-basic'].component),
        u = l.a.memo(o['default']['back-top-custom'].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: 'backtop-\u56de\u5230\u9876\u90e8' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#backtop-\u56de\u5230\u9876\u90e8',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'BackTop \u56de\u5230\u9876\u90e8',
              ),
              l.a.createElement(
                'p',
                null,
                '\u8fd4\u56de\u9875\u9762\u9876\u90e8\u7684\u64cd\u4f5c\u6309\u94ae\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,
                  '\u5f53\u9875\u9762\u5185\u5bb9\u533a\u57df\u6bd4\u8f83\u957f\u65f6\uff1b',
                ),
                l.a.createElement(
                  'li',
                  null,
                  '\u5f53\u7528\u6237\u9700\u8981\u9891\u7e41\u8fd4\u56de\u9876\u90e8\u67e5\u770b\u76f8\u5173\u5185\u5bb9\u65f6\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']['back-top-basic'].previewerProps,
              l.a.createElement(i, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u81ea\u5b9a\u4e49\u6837\u5f0f' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u81ea\u5b9a\u4e49\u6837\u5f0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u81ea\u5b9a\u4e49\u6837\u5f0f',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['back-top-custom'].previewerProps,
              l.a.createElement(u, 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(
                'blockquote',
                null,
                l.a.createElement(
                  'p',
                  null,
                  '\u6709\u9ed8\u8ba4\u6837\u5f0f\uff0c\u8ddd\u79bb\u5e95\u90e8 ',
                  l.a.createElement('code', null, '50px'),
                  '\uff0c\u53ef\u8986\u76d6\u3002',
                ),
                l.a.createElement(
                  'p',
                  null,
                  '\u81ea\u5b9a\u4e49\u6837\u5f0f\u5bbd\u9ad8\u4e0d\u5927\u4e8e 40px * 40px\u3002',
                ),
              ),
              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('th', null, '\u7248\u672c'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'duration'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u56de\u5230\u9876\u90e8\u6240\u9700\u65f6\u95f4\uff08ms\uff09',
                    ),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '450'),
                    l.a.createElement('td', null, '4.4.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'target'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u8bbe\u7f6e\u9700\u8981\u76d1\u542c\u5176\u6eda\u52a8\u4e8b\u4ef6\u7684\u5143\u7d20\uff0c\u503c\u4e3a\u4e00\u4e2a\u8fd4\u56de\u5bf9\u5e94 DOM \u5143\u7d20\u7684\u51fd\u6570',
                    ),
                    l.a.createElement('td', null, '() => HTMLElement'),
                    l.a.createElement('td', null, '() => window'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'visibilityHeight'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6eda\u52a8\u9ad8\u5ea6\u8fbe\u5230\u6b64\u53c2\u6570\u503c\u624d\u51fa\u73b0 BackTop',
                    ),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '400'),
                    l.a.createElement('td', null),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onClick'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u70b9\u51fb\u6309\u94ae\u7684\u56de\u8c03\u51fd\u6570',
                    ),
                    l.a.createElement('td', null, 'function'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null),
                  ),
                ),
              ),
              l.a.createElement('style', {
                dangerouslySetInnerHTML: {
                  __html:
                    '\n  .site-back-top-basic {\n  color: rgba(64, 64, 64, 0.6);\n}\n',
                },
              }),
            ),
          ),
        )
      );
    },
    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 u(e, t) {
        return f(e) || E(e, t) || m(e, t) || d();
      }
      function d() {
        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 p(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,
          d,
          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),
          h = 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,
          _ = Object(o['useCodeSandbox'])(
            (
              null === (t = f.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : f,
          ),
          y = Object(o['useRiddle'])(
            (
              null === (a = f.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : f,
          ),
          w = Object(o['useMotions'])(f.motions || [], m.current),
          g = u(w, 2),
          x = g[0],
          N = g[1],
          j = Object(o['useCopy'])(),
          O = u(j, 2),
          A = O[0],
          C = O[1],
          S = Object(n['useState'])('_'),
          I = u(S, 2),
          L = I[0],
          M = I[1],
          R = Object(n['useState'])(p(L, f.sources[L])),
          T = u(R, 2),
          P = T[0],
          B = T[1],
          U = Object(n['useState'])(Boolean(f.defaultShowCode)),
          Z = u(U, 2),
          q = Z[0],
          H = Z[1],
          J = Object(n['useState'])(Math.random()),
          D = u(J, 2),
          F = D[0],
          $ = D[1],
          G = f.sources[L][P] || f.sources[L].content,
          K = Object(o['useTSPlaygroundUrl'])(E, G),
          X = Object(n['useRef'])(),
          V = Object(o['usePrefersColor'])(),
          W = u(V, 1),
          z = W[0];
        function Q(e) {
          M(e), B(p(e, f.sources[e]));
        }
        return (
          Object(n['useEffect'])(
            function () {
              $(Math.random());
            },
            [z],
          ),
          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: F,
                    src: h,
                    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' },
              _ &&
                l.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: _,
                }),
              y &&
                l.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: y,
                }),
              f.motions &&
                l.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: N,
                  onClick: function () {
                    return x();
                  },
                }),
              f.iframe &&
                l.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return $(Math.random());
                  },
                }),
              !(null === (d = f.hideActions) || void 0 === d
                ? void 0
                : d.includes('EXTERNAL')) &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: h },
                  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': C,
                onClick: function () {
                  return A(G);
                },
              }),
              'tsx' === P &&
                q &&
                l.a.createElement(
                  o['Link'],
                  { target: '_blank', to: K },
                  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(
                  q ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return H(!q);
                },
              }),
            ),
            q &&
              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(p(e, f.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                l.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  l.a.createElement(i['a'], { code: G, lang: P, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = b;
    },
  },
]);
