index.min.js.map 38.4 KB
{"version":3,"file":"index.min.js","sources":["../../sheet/src/index.js","../../stylis/src/stylis.min.js","../src/rule-sheet.js","../src/index.js"],"sourcesContent":["// @flow\n/*\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n- 'polyfills' on server side\n\n// usage\n\nimport StyleSheet from 'glamor/lib/sheet'\nlet styleSheet = new StyleSheet()\n\nstyleSheet.inject()\n- 'injects' the stylesheet into the page (or into memory if on server)\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\n// $FlowFixMe\nfunction sheetForTag(tag: HTMLStyleElement): CSSStyleSheet {\n  if (tag.sheet) {\n    // $FlowFixMe\n    return tag.sheet\n  }\n\n  // this weirdness brought to you by firefox\n  /* istanbul ignore next */\n  for (let i = 0; i < document.styleSheets.length; i++) {\n    if (document.styleSheets[i].ownerNode === tag) {\n      // $FlowFixMe\n      return document.styleSheets[i]\n    }\n  }\n}\n\nexport type Options = {\n  nonce?: string,\n  key: string,\n  container: HTMLElement,\n  speedy?: boolean,\n  maxLength?: number\n}\n\nfunction createStyleElement(options: {\n  key: string,\n  nonce: string | void\n}): HTMLStyleElement {\n  let tag = document.createElement('style')\n  tag.setAttribute('data-emotion', options.key)\n  if (options.nonce !== undefined) {\n    tag.setAttribute('nonce', options.nonce)\n  }\n  tag.appendChild(document.createTextNode(''))\n  return tag\n}\n\nexport class StyleSheet {\n  isSpeedy: boolean\n  ctr: number\n  tags: HTMLStyleElement[]\n  container: HTMLElement\n  maxLength: number\n  key: string\n  nonce: string | void\n  before: Element | null | void\n  constructor(options: Options) {\n    this.isSpeedy =\n      options.speedy === undefined\n        ? process.env.NODE_ENV === 'production'\n        : options.speedy\n    // maxLength is how many rules we have per style tag, it's 65000 in speedy mode\n    // it's 1 in dev because we insert source maps that map a single rule to a location\n    // and you can only have one source map per style tag\n    this.maxLength = this.isSpeedy ? 65000 : 1\n    this.tags = []\n    this.ctr = 0\n    this.nonce = options.nonce\n    // key is the value of the data-emotion attribute, it's used to identify different sheets\n    this.key = options.key\n    this.container = options.container\n  }\n  insert(rule: string) {\n    if (this.ctr % this.maxLength === 0) {\n      let tag = createStyleElement(this)\n      let before\n      if (this.tags.length === 0) {\n        before = this.before\n      } else {\n        before = this.tags[this.tags.length - 1].nextSibling\n      }\n      this.container.insertBefore(tag, before)\n      this.tags.push(tag)\n    }\n    const tag = this.tags[this.tags.length - 1]\n\n    if (this.isSpeedy) {\n      const sheet = sheetForTag(tag)\n      try {\n        // this is the ultrafast version, works across browsers\n        // the big drawback is that the css won't be editable in devtools\n        sheet.insertRule(rule, sheet.cssRules.length)\n      } catch (e) {\n        if (process.env.NODE_ENV !== 'production') {\n          console.warn(\n            `There was a problem inserting the following rule: \"${rule}\"`,\n            e\n          )\n        }\n      }\n    } else {\n      tag.appendChild(document.createTextNode(rule))\n    }\n    this.ctr++\n  }\n  flush() {\n    // $FlowFixMe\n    this.tags.forEach(tag => tag.parentNode.removeChild(tag))\n    this.tags = []\n    this.ctr = 0\n  }\n}\n","export default function(W) {\n  function M(d, c, e, h, a) {\n    for (\n      var m = 0,\n        b = 0,\n        v = 0,\n        n = 0,\n        q,\n        g,\n        x = 0,\n        K = 0,\n        k,\n        u = (k = q = 0),\n        l = 0,\n        r = 0,\n        I = 0,\n        t = 0,\n        B = e.length,\n        J = B - 1,\n        y,\n        f = '',\n        p = '',\n        F = '',\n        G = '',\n        C;\n      l < B;\n\n    ) {\n      g = e.charCodeAt(l)\n      l === J &&\n        0 !== b + n + v + m &&\n        (0 !== b && (g = 47 === b ? 10 : 47), (n = v = m = 0), B++, J++)\n      if (0 === b + n + v + m) {\n        if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {\n          switch (g) {\n            case 32:\n            case 9:\n            case 59:\n            case 13:\n            case 10:\n              break\n            default:\n              f += e.charAt(l)\n          }\n          g = 59\n        }\n        switch (g) {\n          case 123:\n            f = f.trim()\n            q = f.charCodeAt(0)\n            k = 1\n            for (t = ++l; l < B; ) {\n              switch ((g = e.charCodeAt(l))) {\n                case 123:\n                  k++\n                  break\n                case 125:\n                  k--\n                  break\n                case 47:\n                  switch ((g = e.charCodeAt(l + 1))) {\n                    case 42:\n                    case 47:\n                      a: {\n                        for (u = l + 1; u < J; ++u)\n                          switch (e.charCodeAt(u)) {\n                            case 47:\n                              if (\n                                42 === g &&\n                                42 === e.charCodeAt(u - 1) &&\n                                l + 2 !== u\n                              ) {\n                                l = u + 1\n                                break a\n                              }\n                              break\n                            case 10:\n                              if (47 === g) {\n                                l = u + 1\n                                break a\n                              }\n                          }\n                        l = u\n                      }\n                  }\n                  break\n                case 91:\n                  g++\n                case 40:\n                  g++\n                case 34:\n                case 39:\n                  for (; l++ < J && e.charCodeAt(l) !== g; );\n              }\n              if (0 === k) break\n              l++\n            }\n            k = e.substring(t, l)\n            0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0))\n            switch (q) {\n              case 64:\n                0 < r && (f = f.replace(N, ''))\n                g = f.charCodeAt(1)\n                switch (g) {\n                  case 100:\n                  case 109:\n                  case 115:\n                  case 45:\n                    r = c\n                    break\n                  default:\n                    r = O\n                }\n                k = M(c, r, k, g, a + 1)\n                t = k.length\n                0 < A &&\n                  ((r = X(O, f, I)),\n                  (C = H(3, k, r, c, D, z, t, g, a, h)),\n                  (f = r.join('')),\n                  void 0 !== C &&\n                    0 === (t = (k = C.trim()).length) &&\n                    ((g = 0), (k = '')))\n                if (0 < t)\n                  switch (g) {\n                    case 115:\n                      f = f.replace(da, ea)\n                    case 100:\n                    case 109:\n                    case 45:\n                      k = f + '{' + k + '}'\n                      break\n                    case 107:\n                      f = f.replace(fa, '$1 $2')\n                      k = f + '{' + k + '}'\n                      k =\n                        1 === w || (2 === w && L('@' + k, 3))\n                          ? '@-webkit-' + k + '@' + k\n                          : '@' + k\n                      break\n                    default:\n                      ;(k = f + k), 112 === h && (k = ((p += k), ''))\n                  }\n                else k = ''\n                break\n              default:\n                k = M(c, X(c, f, I), k, h, a + 1)\n            }\n            F += k\n            k = I = r = u = q = 0\n            f = ''\n            g = e.charCodeAt(++l)\n            break\n          case 125:\n          case 59:\n            f = (0 < r ? f.replace(N, '') : f).trim()\n            if (1 < (t = f.length))\n              switch ((0 === u &&\n                ((q = f.charCodeAt(0)), 45 === q || (96 < q && 123 > q)) &&\n                (t = (f = f.replace(' ', ':')).length),\n              0 < A &&\n                void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) &&\n                0 === (t = (f = C.trim()).length) &&\n                (f = '\\x00\\x00'),\n              (q = f.charCodeAt(0)),\n              (g = f.charCodeAt(1)),\n              q)) {\n                case 0:\n                  break\n                case 64:\n                  if (105 === g || 99 === g) {\n                    G += f + e.charAt(l)\n                    break\n                  }\n                default:\n                  58 !== f.charCodeAt(t - 1) &&\n                    (p += P(f, q, g, f.charCodeAt(2)))\n              }\n            I = r = u = q = 0\n            f = ''\n            g = e.charCodeAt(++l)\n        }\n      }\n      switch (g) {\n        case 13:\n        case 10:\n          47 === b\n            ? (b = 0)\n            : 0 === 1 + q &&\n              107 !== h &&\n              0 < f.length &&\n              ((r = 1), (f += '\\x00'))\n          0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h)\n          z = 1\n          D++\n          break\n        case 59:\n        case 125:\n          if (0 === b + n + v + m) {\n            z++\n            break\n          }\n        default:\n          z++\n          y = e.charAt(l)\n          switch (g) {\n            case 9:\n            case 32:\n              if (0 === n + m + b)\n                switch (x) {\n                  case 44:\n                  case 58:\n                  case 9:\n                  case 32:\n                    y = ''\n                    break\n                  default:\n                    32 !== g && (y = ' ')\n                }\n              break\n            case 0:\n              y = '\\\\0'\n              break\n            case 12:\n              y = '\\\\f'\n              break\n            case 11:\n              y = '\\\\v'\n              break\n            case 38:\n              0 === n + b + m && ((r = I = 1), (y = '\\f' + y))\n              break\n            case 108:\n              if (0 === n + b + m + E && 0 < u)\n                switch (l - u) {\n                  case 2:\n                    112 === x && 58 === e.charCodeAt(l - 3) && (E = x)\n                  case 8:\n                    111 === K && (E = K)\n                }\n              break\n            case 58:\n              0 === n + b + m && (u = l)\n              break\n            case 44:\n              0 === b + v + n + m && ((r = 1), (y += '\\r'))\n              break\n            case 34:\n            case 39:\n              0 === b && (n = n === g ? 0 : 0 === n ? g : n)\n              break\n            case 91:\n              0 === n + b + v && m++\n              break\n            case 93:\n              0 === n + b + v && m--\n              break\n            case 41:\n              0 === n + b + m && v--\n              break\n            case 40:\n              if (0 === n + b + m) {\n                if (0 === q)\n                  switch (2 * x + 3 * K) {\n                    case 533:\n                      break\n                    default:\n                      q = 1\n                  }\n                v++\n              }\n              break\n            case 64:\n              0 === b + v + n + m + u + k && (k = 1)\n              break\n            case 42:\n            case 47:\n              if (!(0 < n + m + v))\n                switch (b) {\n                  case 0:\n                    switch (2 * g + 3 * e.charCodeAt(l + 1)) {\n                      case 235:\n                        b = 47\n                        break\n                      case 220:\n                        ;(t = l), (b = 42)\n                    }\n                    break\n                  case 42:\n                    47 === g &&\n                      42 === x &&\n                      t + 2 !== l &&\n                      (33 === e.charCodeAt(t + 2) &&\n                        (p += e.substring(t, l + 1)),\n                      (y = ''),\n                      (b = 0))\n                }\n          }\n          0 === b && (f += y)\n      }\n      K = x\n      x = g\n      l++\n    }\n    t = p.length\n    if (0 < t) {\n      r = c\n      if (\n        0 < A &&\n        ((C = H(2, p, r, d, D, z, t, h, a, h)),\n        void 0 !== C && 0 === (p = C).length)\n      )\n        return G + p + F\n      p = r.join(',') + '{' + p + '}'\n      if (0 !== w * E) {\n        2 !== w || L(p, 2) || (E = 0)\n        switch (E) {\n          case 111:\n            p = p.replace(ha, ':-moz-$1') + p\n            break\n          case 112:\n            p =\n              p.replace(Q, '::-webkit-input-$1') +\n              p.replace(Q, '::-moz-$1') +\n              p.replace(Q, ':-ms-input-$1') +\n              p\n        }\n        E = 0\n      }\n    }\n    return G + p + F\n  }\n  function X(d, c, e) {\n    var h = c.trim().split(ia)\n    c = h\n    var a = h.length,\n      m = d.length\n    switch (m) {\n      case 0:\n      case 1:\n        var b = 0\n        for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b)\n          c[b] = Z(d, c[b], e, m).trim()\n        break\n      default:\n        var v = (b = 0)\n        for (c = []; b < a; ++b)\n          for (var n = 0; n < m; ++n) c[v++] = Z(d[n] + ' ', h[b], e, m).trim()\n    }\n    return c\n  }\n  function Z(d, c, e) {\n    var h = c.charCodeAt(0)\n    33 > h && (h = (c = c.trim()).charCodeAt(0))\n    switch (h) {\n      case 38:\n        return c.replace(F, '$1' + d.trim())\n      case 58:\n        return d.trim() + c.replace(F, '$1' + d.trim())\n      default:\n        if (0 < 1 * e && 0 < c.indexOf('\\f'))\n          return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim())\n    }\n    return d + c\n  }\n  function P(d, c, e, h) {\n    var a = d + ';',\n      m = 2 * c + 3 * e + 4 * h\n    if (944 === m) {\n      d = a.indexOf(':', 9) + 1\n      var b = a.substring(d, a.length - 1).trim()\n      b = a.substring(0, d).trim() + b + ';'\n      return 1 === w || (2 === w && L(b, 1)) ? '-webkit-' + b + b : b\n    }\n    if (0 === w || (2 === w && !L(a, 1))) return a\n    switch (m) {\n      case 1015:\n        return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a\n      case 951:\n        return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a\n      case 963:\n        return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a\n      case 1009:\n        if (100 !== a.charCodeAt(4)) break\n      case 969:\n      case 942:\n        return '-webkit-' + a + a\n      case 978:\n        return '-webkit-' + a + '-moz-' + a + a\n      case 1019:\n      case 983:\n        return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a\n      case 883:\n        if (45 === a.charCodeAt(8)) return '-webkit-' + a + a\n        if (0 < a.indexOf('image-set(', 11))\n          return a.replace(ja, '$1-webkit-$2') + a\n        break\n      case 932:\n        if (45 === a.charCodeAt(4))\n          switch (a.charCodeAt(5)) {\n            case 103:\n              return (\n                '-webkit-box-' +\n                a.replace('-grow', '') +\n                '-webkit-' +\n                a +\n                '-ms-' +\n                a.replace('grow', 'positive') +\n                a\n              )\n            case 115:\n              return (\n                '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a\n              )\n            case 98:\n              return (\n                '-webkit-' +\n                a +\n                '-ms-' +\n                a.replace('basis', 'preferred-size') +\n                a\n              )\n          }\n        return '-webkit-' + a + '-ms-' + a + a\n      case 964:\n        return '-webkit-' + a + '-ms-flex-' + a + a\n      case 1023:\n        if (99 !== a.charCodeAt(8)) break\n        b = a\n          .substring(a.indexOf(':', 15))\n          .replace('flex-', '')\n          .replace('space-between', 'justify')\n        return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a\n      case 1005:\n        return ka.test(a)\n          ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a\n          : a\n      case 1e3:\n        b = a.substring(13).trim()\n        c = b.indexOf('-') + 1\n        switch (b.charCodeAt(0) + b.charCodeAt(c)) {\n          case 226:\n            b = a.replace(G, 'tb')\n            break\n          case 232:\n            b = a.replace(G, 'tb-rl')\n            break\n          case 220:\n            b = a.replace(G, 'lr')\n            break\n          default:\n            return a\n        }\n        return '-webkit-' + a + '-ms-' + b + a\n      case 1017:\n        if (-1 === a.indexOf('sticky', 9)) break\n      case 975:\n        c = (a = d).length - 10\n        b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a)\n          .substring(d.indexOf(':', 7) + 1)\n          .trim()\n        switch ((m = b.charCodeAt(0) + (b.charCodeAt(7) | 0))) {\n          case 203:\n            if (111 > b.charCodeAt(8)) break\n          case 115:\n            a = a.replace(b, '-webkit-' + b) + ';' + a\n            break\n          case 207:\n          case 102:\n            a =\n              a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') +\n              ';' +\n              a.replace(b, '-webkit-' + b) +\n              ';' +\n              a.replace(b, '-ms-' + b + 'box') +\n              ';' +\n              a\n        }\n        return a + ';'\n      case 938:\n        if (45 === a.charCodeAt(5))\n          switch (a.charCodeAt(6)) {\n            case 105:\n              return (\n                (b = a.replace('-items', '')),\n                '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a\n              )\n            case 115:\n              return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a\n            default:\n              return (\n                '-webkit-' +\n                a +\n                '-ms-flex-line-pack' +\n                a.replace('align-content', '').replace(ba, '') +\n                a\n              )\n          }\n        break\n      case 973:\n      case 989:\n        if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break\n      case 931:\n      case 953:\n        if (!0 === la.test(d))\n          return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0)\n            ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(\n                ':fill-available',\n                ':stretch'\n              )\n            : a.replace(b, '-webkit-' + b) +\n                a.replace(b, '-moz-' + b.replace('fill-', '')) +\n                a\n        break\n      case 962:\n        if (\n          ((a =\n            '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a),\n          211 === e + h &&\n            105 === a.charCodeAt(13) &&\n            0 < a.indexOf('transform', 10))\n        )\n          return (\n            a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') +\n            a\n          )\n    }\n    return a\n  }\n  function L(d, c) {\n    var e = d.indexOf(1 === c ? ':' : '{'),\n      h = d.substring(0, 3 !== c ? e : 10)\n    e = d.substring(e + 1, d.length - 1)\n    return R(2 !== c ? h : h.replace(na, '$1'), e, c)\n  }\n  function ea(d, c) {\n    var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2))\n    return e !== c + ';'\n      ? e.replace(oa, ' or ($1)').substring(4)\n      : '(' + c + ')'\n  }\n  function H(d, c, e, h, a, m, b, v, n, q) {\n    for (var g = 0, x = c, w; g < A; ++g)\n      switch ((w = S[g].call(B, d, x, e, h, a, m, b, v, n, q))) {\n        case void 0:\n        case !1:\n        case !0:\n        case null:\n          break\n        default:\n          x = w\n      }\n    if (x !== c) return x\n  }\n  function T(d) {\n    switch (d) {\n      case void 0:\n      case null:\n        A = S.length = 0\n        break\n      default:\n        switch (d.constructor) {\n          case Array:\n            for (var c = 0, e = d.length; c < e; ++c) T(d[c])\n            break\n          case Function:\n            S[A++] = d\n            break\n          case Boolean:\n            Y = !!d | 0\n        }\n    }\n    return T\n  }\n  function U(d) {\n    d = d.prefix\n    void 0 !== d &&\n      ((R = null),\n      d ? ('function' !== typeof d ? (w = 1) : ((w = 2), (R = d))) : (w = 0))\n    return U\n  }\n  function B(d, c) {\n    var e = d\n    33 > e.charCodeAt(0) && (e = e.trim())\n    V = e\n    e = [V]\n    if (0 < A) {\n      var h = H(-1, c, e, e, D, z, 0, 0, 0, 0)\n      void 0 !== h && 'string' === typeof h && (c = h)\n    }\n    var a = M(O, e, c, 0, 0)\n    0 < A &&\n      ((h = H(-2, a, e, e, D, z, a.length, 0, 0, 0)), void 0 !== h && (a = h))\n    V = ''\n    E = 0\n    z = D = 1\n    return a\n  }\n  var ca = /^\\0+/g,\n    N = /[\\0\\r\\f]/g,\n    aa = /: */g,\n    ka = /zoo|gra/,\n    ma = /([,: ])(transform)/g,\n    ia = /,\\r+?/g,\n    F = /([\\t\\r\\n ])*\\f?&/g,\n    fa = /@(k\\w+)\\s*(\\S*)\\s*/,\n    Q = /::(place)/g,\n    ha = /:(read-only)/g,\n    G = /[svh]\\w+-[tblr]{2}/,\n    da = /\\(\\s*(.*)\\s*\\)/g,\n    oa = /([\\s\\S]*?);/g,\n    ba = /-self|flex-/g,\n    na = /[^]*?(:[rp][el]a[\\w-]+)[^]*/,\n    la = /stretch|:\\s*\\w+\\-(?:conte|avail)/,\n    ja = /([^-])(image-set\\()/,\n    z = 1,\n    D = 1,\n    E = 0,\n    w = 1,\n    O = [],\n    S = [],\n    A = 0,\n    R = null,\n    Y = 0,\n    V = ''\n  B.use = T\n  B.set = U\n  void 0 !== W && U(W)\n  return B\n}\n","// @flow\n// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet\n// inlined to avoid umd wrapper and peerDep warnings/installing stylis\n// since we use stylis after closure compiler\n\nimport type { StylisPlugin } from './types'\n\nconst delimiter = '/*|*/'\nconst needle = delimiter + '}'\n\nfunction toSheet(block) {\n  if (block) {\n    current.push(block + '}')\n  }\n}\n\nlet ruleSheet: StylisPlugin = (\n  context,\n  content,\n  selectors,\n  parents,\n  line,\n  column,\n  length,\n  at,\n  depth\n) => {\n  switch (context) {\n    case -1: {\n      current = []\n      break\n    }\n    case 2:\n      if (at === 0) return content + delimiter\n      break\n    // at-rule\n    case 3:\n      switch (at) {\n        // @font-face, @page\n        case 102:\n        case 112: {\n          current.push(selectors[0] + content)\n          return ''\n        }\n        default: {\n          return content + delimiter\n        }\n      }\n    case -2: {\n      content.split(needle).forEach(toSheet)\n      return current\n    }\n  }\n}\n\nlet current\n\nexport default ruleSheet\n","// @flow\nimport { StyleSheet } from '@emotion/sheet'\nimport { isBrowser, type CSSContextType } from '@emotion/utils'\nimport Stylis from '@emotion/stylis'\nimport ruleSheetPlugin from './rule-sheet'\nimport type { StylisPlugin } from './types'\n\nexport type PrefixOption =\n  | boolean\n  | ((key: string, value: string, context: 1 | 2 | 3) => boolean)\n\ntype StylisPlugins = StylisPlugin[] | StylisPlugin\n\nexport type Options = {\n  nonce?: string,\n  stylisPlugins?: StylisPlugins,\n  prefix?: PrefixOption,\n  key?: string,\n  container?: HTMLElement\n}\n\nlet createCache = (options?: Options): CSSContextType => {\n  if (options === undefined) options = {}\n  let key = options.key || 'css'\n  let stylisOptions\n\n  if (options.prefix !== undefined) {\n    stylisOptions = {\n      prefix: options.prefix\n    }\n  }\n\n  let stylis = new Stylis(stylisOptions)\n\n  stylis.use(options.stylisPlugins)(ruleSheetPlugin)\n\n  if (process.env.NODE_ENV !== 'production') {\n    // $FlowFixMe\n    if (/[^a-z-]/.test(key)) {\n      throw new Error(\n        `Emotion key must only contain lower case alphabetical characters and - but \"${key}\" was passed`\n      )\n    }\n    let sourceMapRegEx = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//\n    let currentSourceMap\n    stylis.use((context, content, selectors) => {\n      switch (context) {\n        case -1: {\n          let result = sourceMapRegEx.exec(content)\n          if (result) {\n            currentSourceMap = result[0]\n          }\n          break\n        }\n        case 2: {\n          for (let i = 0, len = selectors.length; len > i; i++) {\n            // :last-child isn't included here since it's safe\n            // because a style element will never be the last element\n            let match = selectors[i].match(/:(first|nth|nth-last)-child/)\n            if (match !== null) {\n              console.error(\n                `The pseudo class \"${\n                  match[1]\n                }\" is potentially unsafe when doing server-side rendering. Try changing it to \"${\n                  match[1]\n                }-of-type\"`\n              )\n            }\n          }\n          break\n        }\n        case -2: {\n          if (currentSourceMap) {\n            content.forEach((rule, i) => {\n              content[i] = rule + currentSourceMap\n            })\n\n            currentSourceMap = ''\n          }\n        }\n      }\n    })\n  }\n  let inserted = {}\n  // $FlowFixMe\n  let container: HTMLElement\n  if (isBrowser) {\n    container = options.container || document.head\n\n    const nodes = document.querySelectorAll(`style[data-emotion-${key}]`)\n\n    Array.prototype.forEach.call(nodes, (node: HTMLStyleElement) => {\n      const attrib = node.getAttribute(`data-emotion-${key}`)\n      // $FlowFixMe\n      attrib.split(' ').forEach(id => {\n        inserted[id] = true\n      })\n      if (node.parentNode !== container) {\n        container.appendChild(node)\n      }\n    })\n  }\n\n  const context: CSSContextType = {\n    stylis,\n    key,\n    sheet: new StyleSheet({\n      key,\n      container,\n      nonce: options.nonce\n    }),\n    inserted,\n    registered: {},\n    theme: {}\n  }\n  return context\n}\n\nexport default createCache\n"],"names":["StyleSheet","options","isSpeedy","undefined","speedy","maxLength","this","tags","ctr","nonce","key","container","insert","rule","before","tag","document","createElement","setAttribute","appendChild","createTextNode","length","nextSibling","insertBefore","push","sheet","i","styleSheets","ownerNode","sheetForTag","insertRule","cssRules","e","flush","forEach","parentNode","removeChild","W","X","d","c","h","trim","split","ia","a","m","b","Z","v","n","charCodeAt","replace","F","indexOf","P","substring","w","L","ja","ka","test","aa","G","ba","la","ma","R","na","ea","oa","H","q","g","x","A","S","call","B","U","prefix","D","z","M","k","y","C","K","u","l","r","I","t","J","f","p","N","charAt","ca","O","join","da","fa","Y","E","ha","Q","use","T","constructor","Array","Function","Boolean","set","delimiter","toSheet","block","current","ruleSheet","context","content","selectors","parents","line","column","at","depth","stylisOptions","stylis","Stylis","stylisPlugins","ruleSheetPlugin","inserted","head","nodes","querySelectorAll","prototype","node","getAttribute","id","registered","theme"],"mappings":"4LA+DaA,EAAb,sBAScC,QACLC,cACgBC,IAAnBF,EAAQG,QAEJH,EAAQG,YAITC,UAAYC,KAAKJ,SAAW,KAAQ,OACpCK,KAAO,QACPC,IAAM,OACNC,MAAQR,EAAQQ,WAEhBC,IAAMT,EAAQS,SACdC,UAAYV,EAAQU,qCAE3BC,gBAAOC,MACDP,KAAKE,IAAMF,KAAKD,WAAc,EAAG,KAE/BS,EADAC,GAxCkBd,EAwCOK,MApC7BS,EAAMC,SAASC,cAAc,UAC7BC,aAAa,eAAgBjB,EAAQS,UACnBP,IAAlBF,EAAQQ,OACVM,EAAIG,aAAa,QAASjB,EAAQQ,OAEpCM,EAAII,YAAYH,SAASI,eAAe,KACjCL,GAiCDD,EADuB,IAArBR,KAAKC,KAAKc,OACHf,KAAKQ,OAELR,KAAKC,KAAKD,KAAKC,KAAKc,OAAS,GAAGC,iBAEtCX,UAAUY,aAAaR,EAAKD,QAC5BP,KAAKiB,KAAKT,GAhDrB,IAA4Bd,EAItBc,EA8CIA,EAAMT,KAAKC,KAAKD,KAAKC,KAAKc,OAAS,MAErCf,KAAKJ,SAAU,KACXuB,EA7EZ,SAAqBV,MACfA,EAAIU,aAECV,EAAIU,UAKR,IAAIC,EAAI,EAAGA,EAAIV,SAASW,YAAYN,OAAQK,OAC3CV,SAASW,YAAYD,GAAGE,YAAcb,SAEjCC,SAASW,YAAYD,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