{"version":3,"sources":["jsdelivr-header.js","/npm/glamor-plugin-extract-to-comment@1.0.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAMA,SAAS,yBAAyB,EAAK,GAAQ,IAAI,EAAS,CAAC,EAAG,IAAK,IAAI,KAAK,EAAW,EAAK,QAAQ,IAAM,GAAkB,OAAO,UAAU,eAAe,KAAK,EAAK,KAAc,EAAO,GAAK,EAAI,IAAM,OAAO,CAAQ,CAJ3N,OAAO,eAAe,QAAS,aAAc,CAC3C,OAAO,IAKT,IAAI,QAAS,EAET,KAAO,SAAc,EAAQ,GAC/B,IAAI,EAAM,CAAC,EAMX,OALA,OAAO,KAAK,GAAQ,SAAQ,SAAU,GAChC,IAAQ,IACV,EAAI,GAAO,EAAO,GAEtB,IACO,CACT,EAEA,QAAQ,QAAU,WAChB,IAAI,EAAW,UAAU,QAAU,QAAsB,IAAjB,UAAU,GAAmB,QAAU,UAAU,GACrF,EAAiB,UAAU,QAAU,QAAsB,IAAjB,UAAU,IAA0B,UAAU,GACxF,EAAU,UAAU,QAAU,QAAsB,IAAjB,UAAU,GAAmB,GAAK,UAAU,GAEnF,OAAI,EAAS,UAEN,SACH,QAAQ,KAAK,uFACb,QAAQ,KAAK,oEACb,QAAS,GAEJ,GAGF,SAAU,GASf,IARA,IAAI,EAAW,EAAK,SAChB,EAAQ,EAAK,MACb,EAAS,EAKT,GAJQ,EAAO,MAER,yBAAyB,EAAQ,CAAC,UAE/B,EAAM,IAAa,IACxB,EAAI,EAAQ,OAAQ,EAAI,EAAS,IACxC,GAAW,IAMb,OAJA,EAAW,MAAQ,EAAU,MAAQ,EACjC,QAAsC,IAApB,EAAM,KAC1B,EAAQ,KAAK,EAAO,IAEf,CAAE,SAAU,EAAU,MAAO,EACtC,CACF","file":"/npm/glamor-plugin-extract-to-comment@1.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/glamor-plugin-extract-to-comment@1.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nvar warned = false;\n\nvar omit = function omit(object, property) {\n  var acc = {};\n  Object.keys(object).forEach(function (key) {\n    if (key !== property) {\n      acc[key] = object[key];\n    }\n  });\n  return acc;\n};\n\nexports.default = function () {\n  var property = arguments.length <= 0 || arguments[0] === undefined ? 'label' : arguments[0];\n  var removeProperty = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];\n  var padding = arguments.length <= 2 || arguments[2] === undefined ? 20 : arguments[2];\n\n  if (property.selector) {\n    // Misuse\n    if (!warned) {\n      console.warn('extract-to-comment: This plugin exports factory that should be called before usage.');\n      console.warn('extract-to-comment: plugins.add(extractToComment(\\'label\\', true))');\n      warned = true;\n    }\n    return property;\n  }\n\n  return function (_ref) {\n    var selector = _ref.selector;\n    var style = _ref.style;\n    var _style = style;\n    var label = _style.label;\n\n    var rest = _objectWithoutProperties(_style, ['label']);\n\n    var comment = style[property] || '';\n    for (var i = comment.length; i < padding; i++) {\n      comment += ' ';\n    }\n    selector = '/* ' + comment + '*/ ' + selector;\n    if (removeProperty && style[property] !== undefined) {\n      style = omit(style, property);\n    }\n    return { selector: selector, style: style };\n  };\n};"]}