(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [35],
  {
    MZF8: function (e, t, a) {
      'use strict';
      var n = a('ogwx');
      a.d(t, 'a', function () {
        return n['b'];
      });
      a('VCU9');
    },
    PzNM: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('dEAq'),
        c = a('Zxc8'),
        m = a('JjdP'),
        u = l.a.memo(m['default']['input-number-basic'].component),
        d = l.a.memo(m['default']['input-number-threesize'].component),
        o = l.a.memo(m['default']['input-number-disabled'].component),
        i = l.a.memo(m['default']['input-number-decimal'].component),
        E = l.a.memo(m['default']['input-number-keyboard'].component),
        s = l.a.memo(m['default']['input-number-nowrap'].component),
        p = l.a.memo(m['default']['input-number-outwrap'].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(
                'p',
                null,
                '\u901a\u8fc7\u9f20\u6807\u6216\u952e\u76d8\uff0c\u8f93\u5165\u8303\u56f4\u5185\u7684\u6570\u503c\u3002',
              ),
              l.a.createElement(
                'h1',
                { id: 'inputnumber-\u6570\u5b57\u8f93\u5165\u6846' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#inputnumber-\u6570\u5b57\u8f93\u5165\u6846',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'InputNumber \u6570\u5b57\u8f93\u5165\u6846',
              ),
              l.a.createElement(
                'p',
                null,
                '\u901a\u8fc7\u9f20\u6807\u6216\u952e\u76d8\uff0c\u8f93\u5165\u8303\u56f4\u5185\u7684\u6570\u503c\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(
                'p',
                null,
                '\u5f53\u9700\u8981\u83b7\u53d6\u6807\u51c6\u6570\u503c\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'],
              m['default']['input-number-basic'].previewerProps,
              l.a.createElement(u, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u4e09\u79cd\u5927\u5c0f' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e09\u79cd\u5927\u5c0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e09\u79cd\u5927\u5c0f',
              ),
            ),
            l.a.createElement(
              c['default'],
              m['default']['input-number-threesize'].previewerProps,
              l.a.createElement(d, 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'],
              m['default']['input-number-disabled'].previewerProps,
              l.a.createElement(o, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u9ad8\u7cbe\u5ea6\u5c0f\u6570' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u9ad8\u7cbe\u5ea6\u5c0f\u6570',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u9ad8\u7cbe\u5ea6\u5c0f\u6570',
              ),
            ),
            l.a.createElement(
              c['default'],
              m['default']['input-number-decimal'].previewerProps,
              l.a.createElement(i, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u952e\u76d8\u884c\u4e3a' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u952e\u76d8\u884c\u4e3a',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u952e\u76d8\u884c\u4e3a',
              ),
            ),
            l.a.createElement(
              c['default'],
              m['default']['input-number-keyboard'].previewerProps,
              l.a.createElement(E, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u65e0\u8fb9\u6846' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u65e0\u8fb9\u6846',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u65e0\u8fb9\u6846',
              ),
            ),
            l.a.createElement(
              c['default'],
              m['default']['input-number-nowrap'].previewerProps,
              l.a.createElement(s, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u8d85\u51fa\u8fb9\u754c' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u8d85\u51fa\u8fb9\u754c',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u8d85\u51fa\u8fb9\u754c',
              ),
            ),
            l.a.createElement(
              c['default'],
              m['default']['input-number-outwrap'].previewerProps,
              l.a.createElement(p, 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('p', null, '\u5c5e\u6027\u5982\u4e0b'),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u6210\u5458'),
                    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, 'autoFocus'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u81ea\u52a8\u83b7\u53d6\u7126\u70b9',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'bordered'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u662f\u5426\u6709\u8fb9\u6846',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'true'),
                    l.a.createElement('td', null, '4.12.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'decimalSeparator'),
                    l.a.createElement('td', null, '\u5c0f\u6570\u70b9'),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'defaultValue'),
                    l.a.createElement('td', null, '\u521d\u59cb\u503c'),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'disabled'),
                    l.a.createElement('td', null, '\u7981\u7528'),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'formatter'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6307\u5b9a\u8f93\u5165\u6846\u5c55\u793a\u503c\u7684\u683c\u5f0f',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      'function(value: number | string): string',
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'keyboard'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u662f\u5426\u542f\u7528\u952e\u76d8\u5feb\u6377\u884c\u4e3a',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'true'),
                    l.a.createElement('td', null, '4.12.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'max'),
                    l.a.createElement('td', null, '\u6700\u5927\u503c'),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement(
                        r['Link'],
                        {
                          to: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER',
                        },
                        'Number.MAX_SAFE_INTEGER',
                      ),
                    ),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'min'),
                    l.a.createElement('td', null, '\u6700\u5c0f\u503c'),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement(
                        r['Link'],
                        {
                          to: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER',
                        },
                        'Number.MIN_SAFE_INTEGER',
                      ),
                    ),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'parser'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6307\u5b9a\u4ece ',
                      l.a.createElement('code', null, 'formatter'),
                      ' \u91cc\u8f6c\u6362\u56de\u6570\u5b57\u7684\u65b9\u5f0f\uff0c\u548c ',
                      l.a.createElement('code', null, 'formatter'),
                      ' \u642d\u914d\u4f7f\u7528',
                    ),
                    l.a.createElement('td', null, 'function(string): number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'precision'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6570\u503c\u7cbe\u5ea6\uff0c\u914d\u7f6e ',
                      l.a.createElement('code', null, 'formatter'),
                      ' \u65f6\u4f1a\u4ee5 ',
                      l.a.createElement('code', null, 'formatter'),
                      ' \u4e3a\u51c6',
                    ),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'readOnly'),
                    l.a.createElement('td', null, '\u53ea\u8bfb'),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'size'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u8f93\u5165\u6846\u5927\u5c0f',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      l.a.createElement('code', null, 'large'),
                      ' | ',
                      l.a.createElement('code', null, 'middle'),
                      ' | ',
                      l.a.createElement('code', null, 'small'),
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'step'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6bcf\u6b21\u6539\u53d8\u6b65\u6570\uff0c\u53ef\u4ee5\u4e3a\u5c0f\u6570',
                    ),
                    l.a.createElement('td', null, 'number | string'),
                    l.a.createElement('td', null, '1'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'stringMode'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u5b57\u7b26\u503c\u6a21\u5f0f\uff0c\u5f00\u542f\u540e\u652f\u6301\u9ad8\u7cbe\u5ea6\u5c0f\u6570\u3002\u540c\u65f6 ',
                      l.a.createElement('code', null, 'onChange'),
                      ' \u5c06\u8fd4\u56de string \u7c7b\u578b',
                    ),
                    l.a.createElement('td', null, 'boolean'),
                    l.a.createElement('td', null, 'false'),
                    l.a.createElement('td', null, '4.13.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'value'),
                    l.a.createElement('td', null, '\u5f53\u524d\u503c'),
                    l.a.createElement('td', null, 'number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onChange'),
                    l.a.createElement('td', null, '\u53d8\u5316\u56de\u8c03'),
                    l.a.createElement(
                      'td',
                      null,
                      'function(value: number | string | null)',
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onPressEnter'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u6309\u4e0b\u56de\u8f66\u7684\u56de\u8c03',
                    ),
                    l.a.createElement('td', null, 'function(e)'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '-'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onStep'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u70b9\u51fb\u4e0a\u4e0b\u7bad\u5934\u7684\u56de\u8c03',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      '(value: number, info: ',
                      '{',
                      " offset: number, type: 'up' | 'down' ",
                      '}',
                      ') => void',
                    ),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.7.0'),
                  ),
                ),
              ),
              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'),
                  ),
                ),
              ),
              l.a.createElement(
                'h2',
                { id: 'faq' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'FAQ',
              ),
              l.a.createElement(
                'h3',
                {
                  id: '\u4e3a\u4f55\u53d7\u63a7\u6a21\u5f0f\u4e0bvalue-\u53ef\u4ee5\u8d85\u51fa-min-\u548c-max-\u8303\u56f4',
                },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e3a\u4f55\u53d7\u63a7\u6a21\u5f0f\u4e0bvalue-\u53ef\u4ee5\u8d85\u51fa-min-\u548c-max-\u8303\u56f4',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e3a\u4f55\u53d7\u63a7\u6a21\u5f0f\u4e0b\uff0c',
                l.a.createElement('code', null, 'value'),
                ' \u53ef\u4ee5\u8d85\u51fa ',
                l.a.createElement('code', null, 'min'),
                ' \u548c ',
                l.a.createElement('code', null, 'max'),
                ' \u8303\u56f4\uff1f',
              ),
              l.a.createElement(
                'p',
                null,
                '\u5728\u53d7\u63a7\u6a21\u5f0f\u4e0b\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u81ea\u884c\u5b58\u50a8\u76f8\u5173\u6570\u636e\u3002\u5982\u679c\u7ec4\u4ef6\u5c06\u6570\u636e\u7ea6\u675f\u56de\u8303\u56f4\u5185\uff0c\u4f1a\u5bfc\u81f4\u5c55\u793a\u6570\u636e\u4e0e\u5b9e\u9645\u5b58\u50a8\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u3002\u8fd9\u4f7f\u5f97\u4e00\u4e9b\u5982\u8868\u5355\u573a\u666f\u5b58\u5728\u6f5c\u5728\u7684\u6570\u636e\u95ee\u9898\u3002',
              ),
              l.a.createElement(
                'h3',
                {
                  id: '\u4e3a\u4f55\u52a8\u6001\u4fee\u6539-min-\u548c-max-\u8ba9-value-\u8d85\u51fa\u8303\u56f4\u4e0d\u4f1a\u89e6\u53d1-onchange-\u4e8b\u4ef6',
                },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4e3a\u4f55\u52a8\u6001\u4fee\u6539-min-\u548c-max-\u8ba9-value-\u8d85\u51fa\u8303\u56f4\u4e0d\u4f1a\u89e6\u53d1-onchange-\u4e8b\u4ef6',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4e3a\u4f55\u52a8\u6001\u4fee\u6539 ',
                l.a.createElement('code', null, 'min'),
                ' \u548c ',
                l.a.createElement('code', null, 'max'),
                ' \u8ba9 ',
                l.a.createElement('code', null, 'value'),
                ' \u8d85\u51fa\u8303\u56f4\u4e0d\u4f1a\u89e6\u53d1 ',
                l.a.createElement('code', null, 'onChange'),
                ' \u4e8b\u4ef6\uff1f',
              ),
              l.a.createElement(
                'p',
                null,
                l.a.createElement('code', null, 'onChange'),
                ' \u4e8b\u4ef6\u4e3a\u7528\u6237\u89e6\u53d1\u4e8b\u4ef6\uff0c\u81ea\u884c\u89e6\u53d1\u4f1a\u5bfc\u81f4\u8868\u5355\u5e93\u8bef\u4ee5\u4e3a\u53d8\u66f4\u6765\u81ea\u7528\u6237\u64cd\u4f5c\u3002\u6211\u4eec\u4ee5\u9519\u8bef\u6837\u5f0f\u5c55\u793a\u8d85\u51fa\u8303\u56f4\u7684\u6570\u503c\u3002',
              ),
              l.a.createElement('style', {
                dangerouslySetInnerHTML: {
                  __html:
                    '\n  .select-before {\n  width: 50px;\n}\n\n.select-after {\n  width: 50px;\n}\n\n',
                },
              }),
            ),
          ),
        )
      );
    },
    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'),
        m = a('dEAq'),
        u = a('H1Ra');
      a('RZMt');
      function d(e, t) {
        return p(e) || s(e, t) || i(e, t) || o();
      }
      function o() {
        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 i(e, t) {
        if (e) {
          if ('string' === typeof e) return E(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)
              ? E(e, t)
              : void 0
          );
        }
      }
      function E(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 s(e, t) {
        var a =
          null == e
            ? null
            : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
              e['@@iterator'];
        if (null != a) {
          var n,
            l,
            r = [],
            c = !0,
            m = !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 (u) {
            (m = !0), (l = u);
          } finally {
            try {
              c || null == a['return'] || a['return']();
            } finally {
              if (m) throw l;
            }
          }
          return r;
        }
      }
      function p(e) {
        if (Array.isArray(e)) return e;
      }
      function b(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 f = function (e) {
        var t,
          a,
          o,
          i = Object(n['useRef'])(),
          E = Object(n['useContext'])(m['context']),
          s = E.locale,
          p = Object(m['useLocaleProps'])(s, e),
          f = Object(m['useDemoUrl'])(p.identifier),
          h = p.demoUrl || f,
          v =
            (null === c['a'] || void 0 === c['a']
              ? void 0
              : c['a'].location.hash) === '#'.concat(p.identifier),
          k = 1 === Object.keys(p.sources).length,
          _ = Object(m['useCodeSandbox'])(
            (
              null === (t = p.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : p,
          ),
          N = Object(m['useRiddle'])(
            (
              null === (a = p.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : p,
          ),
          w = Object(m['useMotions'])(p.motions || [], i.current),
          g = d(w, 2),
          y = g[0],
          x = g[1],
          A = Object(m['useCopy'])(),
          I = d(A, 2),
          S = I[0],
          j = I[1],
          C = Object(n['useState'])('_'),
          L = d(C, 2),
          O = L[0],
          M = L[1],
          R = Object(n['useState'])(b(O, p.sources[O])),
          P = d(R, 2),
          T = P[0],
          F = P[1],
          z = Object(n['useState'])(Boolean(p.defaultShowCode)),
          G = d(z, 2),
          J = G[0],
          q = G[1],
          U = Object(n['useState'])(Math.random()),
          Z = d(U, 2),
          X = Z[0],
          $ = Z[1],
          B = p.sources[O][T] || p.sources[O].content,
          D = Object(m['useTSPlaygroundUrl'])(s, B),
          H = Object(n['useRef'])(),
          V = Object(m['usePrefersColor'])(),
          W = d(V, 1),
          K = W[0];
        function Q(e) {
          M(e), F(b(e, p.sources[e]));
        }
        return (
          Object(n['useEffect'])(
            function () {
              $(Math.random());
            },
            [K],
          ),
          l.a.createElement(
            'div',
            {
              style: p.style,
              className: [
                p.className,
                '__dumi-default-previewer',
                v ? '__dumi-default-previewer-target' : '',
              ]
                .filter(Boolean)
                .join(' '),
              id: p.identifier,
              'data-debug': p.debug || void 0,
              'data-iframe': p.iframe || void 0,
            },
            p.iframe &&
              l.a.createElement('div', {
                className: '__dumi-default-previewer-browser-nav',
              }),
            l.a.createElement(
              'div',
              {
                ref: i,
                className: '__dumi-default-previewer-demo',
                style: {
                  transform: p.transform ? 'translate(0, 0)' : void 0,
                  padding:
                    p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
                  background: p.background,
                },
              },
              p.iframe
                ? l.a.createElement('iframe', {
                    title: 'dumi-previewer',
                    style: {
                      height: String(p.iframe).replace(/(\d)$/, '$1px'),
                    },
                    key: X,
                    src: h,
                    ref: H,
                  })
                : p.children,
            ),
            l.a.createElement(
              'div',
              {
                className: '__dumi-default-previewer-desc',
                'data-title': p.title,
              },
              p.title &&
                l.a.createElement(
                  m['AnchorLink'],
                  { to: '#'.concat(p.identifier) },
                  p.title,
                ),
              p.description &&
                l.a.createElement('div', {
                  dangerouslySetInnerHTML: { __html: p.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: _,
                }),
              N &&
                l.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: N,
                }),
              p.motions &&
                l.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: x,
                  onClick: function () {
                    return y();
                  },
                }),
              p.iframe &&
                l.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return $(Math.random());
                  },
                }),
              !(null === (o = p.hideActions) || void 0 === o
                ? void 0
                : o.includes('EXTERNAL')) &&
                l.a.createElement(
                  m['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': j,
                onClick: function () {
                  return S(B);
                },
              }),
              'tsx' === T &&
                J &&
                l.a.createElement(
                  m['Link'],
                  { target: '_blank', to: D },
                  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: O,
                      onChange: Q,
                    },
                    Object.keys(p.sources).map(function (e) {
                      return l.a.createElement(r['a'], {
                        tab:
                          '_' === e ? 'index.'.concat(b(e, p.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                l.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  l.a.createElement(u['a'], { code: B, lang: T, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = f;
    },
  },
]);
