{"ast":null,"code":"\"use strict\";\n\nmodule.exports = function (url, options) {\n  if (!options) {\n    // eslint-disable-next-line no-param-reassign\n    options = {};\n  } // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n\n\n  url = url && url.__esModule ? url.default : url;\n\n  if (typeof url !== 'string') {\n    return url;\n  } // If url is already wrapped in quotes, remove them\n\n\n  if (/^['\"].*['\"]$/.test(url)) {\n    // eslint-disable-next-line no-param-reassign\n    url = url.slice(1, -1);\n  }\n\n  if (options.hash) {\n    // eslint-disable-next-line no-param-reassign\n    url += options.hash;\n  } // Should url be wrapped?\n  // See https://drafts.csswg.org/css-values-3/#urls\n\n\n  if (/[\"'() \\t\\n]/.test(url) || options.needQuotes) {\n    return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n'), \"\\\"\");\n  }\n\n  return url;\n};","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/css-loader/dist/runtime/getUrl.js"],"names":["module","exports","url","options","__esModule","default","test","slice","hash","needQuotes","concat","replace"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,OAAP,GAAiB,UAAUC,GAAV,EAAeC,OAAf,EAAwB;AACvC,MAAI,CAACA,OAAL,EAAc;AACZ;AACAA,IAAAA,OAAO,GAAG,EAAV;AACD,GAJsC,CAIrC;;;AAGFD,EAAAA,GAAG,GAAGA,GAAG,IAAIA,GAAG,CAACE,UAAX,GAAwBF,GAAG,CAACG,OAA5B,GAAsCH,GAA5C;;AAEA,MAAI,OAAOA,GAAP,KAAe,QAAnB,EAA6B;AAC3B,WAAOA,GAAP;AACD,GAXsC,CAWrC;;;AAGF,MAAI,eAAeI,IAAf,CAAoBJ,GAApB,CAAJ,EAA8B;AAC5B;AACAA,IAAAA,GAAG,GAAGA,GAAG,CAACK,KAAJ,CAAU,CAAV,EAAa,CAAC,CAAd,CAAN;AACD;;AAED,MAAIJ,OAAO,CAACK,IAAZ,EAAkB;AAChB;AACAN,IAAAA,GAAG,IAAIC,OAAO,CAACK,IAAf;AACD,GAtBsC,CAsBrC;AACF;;;AAGA,MAAI,cAAcF,IAAd,CAAmBJ,GAAnB,KAA2BC,OAAO,CAACM,UAAvC,EAAmD;AACjD,WAAO,KAAKC,MAAL,CAAYR,GAAG,CAACS,OAAJ,CAAY,IAAZ,EAAkB,KAAlB,EAAyBA,OAAzB,CAAiC,KAAjC,EAAwC,KAAxC,CAAZ,EAA4D,IAA5D,CAAP;AACD;;AAED,SAAOT,GAAP;AACD,CA/BD","sourcesContent":["\"use strict\";\n\nmodule.exports = function (url, options) {\n  if (!options) {\n    // eslint-disable-next-line no-param-reassign\n    options = {};\n  } // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n\n\n  url = url && url.__esModule ? url.default : url;\n\n  if (typeof url !== 'string') {\n    return url;\n  } // If url is already wrapped in quotes, remove them\n\n\n  if (/^['\"].*['\"]$/.test(url)) {\n    // eslint-disable-next-line no-param-reassign\n    url = url.slice(1, -1);\n  }\n\n  if (options.hash) {\n    // eslint-disable-next-line no-param-reassign\n    url += options.hash;\n  } // Should url be wrapped?\n  // See https://drafts.csswg.org/css-values-3/#urls\n\n\n  if (/[\"'() \\t\\n]/.test(url) || options.needQuotes) {\n    return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n'), \"\\\"\");\n  }\n\n  return url;\n};"]},"metadata":{},"sourceType":"script"}