(this.csbJsonP=this.csbJsonP||[]).push([["vue-template-compiler"],{"./src/sandbox/eval/transpilers/vue/v2/template-compiler/loader.ts":function(e,r,t){"use strict";t.r(r);var n=t("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o=t.n(n),s=t("../../node_modules/vue-template-es2015-compiler/index.js"),i=t.n(s),a=t("../../node_modules/vue-template-compiler/browser.js"),c=t("../../node_modules/raw-loader/index.js!../../node_modules/vue-hot-reload-api/dist/index.js"),u=t.n(c),l=t("../../node_modules/@babel/runtime/helpers/defineProperty.js"),p=t.n(l);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){p()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var f={img:"src",image:"xlink:href"},h=(e,r)=>{var t=e?m(m({},f),{},{userOptions:e}):f;return{postTransformNode:e=>function(e,r,t){for(var n in r)if(e.tag===n&&e.attrs){var o=r[n];"string"==typeof o?e.attrs.some(e=>v(e,o,t)):Array.isArray(o)&&o.forEach(r=>e.attrs.some(e=>v(e,r,t)))}}(e,t,r)}};function v(e,r,t){if(e.name===r){var n=e.value;if(!('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)))return;var o=n.charAt(1);return"."!==o&&"~"!==o||("~"===o&&(n='"'+n.slice(2)),e.value="require(".concat(n,")"),t(JSON.parse(n))),!0}}var b=t("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),g=t.n(b),j=function(){return{postTransformNode:e=>function(e){-1!==["img","source"].indexOf(e.tag)&&e.attrs&&e.attrs.forEach(e=>{if("srcset"===e.name){var r=e.value;if(!('"'===r.charAt(0)&&'"'===r.charAt(r.length-1)))return;const t=/( |\\t|\\n|\\f|\\r)+/g,n=r.substr(1,r.length-2).split(",").map(e=>{const r=e.replace(t," ").trim().split(" ",2),n=g()(r,2),o=n[0],s=n[1];return{require:y(o),descriptor:s}});let o="";n.forEach((e,r,t)=>{o+=e.require+' + " '+e.descriptor+(r<t.length-1?', " + ':'"')}),e.value=o}})}(e)}};function y(e){var r=e.charAt(0);if("."===r||"~"===r){if("~"===r){var t=e.charAt(1);e='"'+e.slice("/"===t?2:1)}return'require("'.concat(e,'")')}}const O="!noop-loader!/node_modules/vue-hot-reload-api.js";r.default=function(e,r){return _.apply(this,arguments)};function _(){return(_=o()((function*(e,r){r.emitModule(O,u.a,"/",!1,!1);const t=r.options,n=t.vueOptions||{},o=[],s=[h(t.transformRequire,e=>{o.push(r.addDependency(e))}),j()],c=n.compilerModules||t.compilerModules,l={preserveWhitespace:t.preserveWhitespace,modules:s.concat(c||[]),directives:n.compilerDirectives||t.compilerDirectives||{},comments:t.hasComment,scopeId:t.hasScoped?t.id:null},p=a.compile(e,l);let d;if(p.tips&&p.tips.length&&p.tips.forEach(e=>{r.emitWarning({name:"vue-warning",message:"string"==typeof e?e:"",fileName:r._module.module.parent?r._module.module.parent.path:r.path,lineNumber:1,columnNumber:1,source:"vue-template-compiler"})}),p.errors&&p.errors.length)r.emitError(new Error("\n  Error compiling template:\n".concat(w(e),"\n")+p.errors.map(e=>"  - ".concat(e)).join("\n")+"\n")),d="module.exports={render:function(){},staticRenderFns:[]}";else{const e=t.buble,r=!1!==e.transforms.stripWith,n=e.transforms.stripWithFunctional,o=p.staticRenderFns.map(e=>P(e,n));d=i()("var render = "+P(p.render,n)+"\nvar staticRenderFns = ["+o.join(",")+"]",e)+"\n",r&&(d+="render._withStripped = true\n");d+="module.exports = ".concat("{ render: render, staticRenderFns: staticRenderFns }")}{const e=n.esModule?"esExports":"module.exports";d+='\nif (module.hot) {\n  module.hot.accept()\n  if (module.hot.data) {\n    require("'+O+'")      .rerender("'+t.id+'", '+e+")\n  }\n}"}return yield Promise.all(o),d}))).apply(this,arguments)}function P(e,r){return"function ("+(r?"_h,_vm":"")+") {"+e+"}"}function w(e){return e.split(/\r?\n/).map(e=>"  ".concat(e)).join("\n")}}}]);
//# sourceMappingURL=vue-template-compiler.b8f7afc7a.chunk.js.map