module.exports=function(e,n){"use strict";var t={};function __webpack_require__(n){if(t[n]){return t[n].exports}var r=t[n]={i:n,l:false,exports:{}};e[n].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(696)}return startup()}({87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},399:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(129);var f=_interopRequireDefault(r);var u=t(457);var o=_interopRequireDefault(u);var a=t(633);var i=_interopRequireDefault(a);var l=t(584);var s=_interopRequireDefault(l);var h=t(711);var c=_interopRequireDefault(h);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const y=t.ab+"worker.js";let v=0;class PoolWorker{constructor(e,n){this.disposed=false;this.nextJobId=0;this.jobs=Object.create(null);this.activeJobs=0;this.onJobDone=n;this.id=v;v+=1;const r=(e.nodeArgs||[]).filter(e=>!!e);this.worker=f.default.spawn(process.execPath,[].concat(r).concat(t.ab+"worker.js",e.parallelJobs),{detached:true,stdio:["ignore","pipe","pipe","pipe","pipe"]});this.worker.unref();if(!this.worker.stdio){throw new Error(`Failed to create the worker pool with workerId: ${v} and ${""}configuration: ${JSON.stringify(e)}. Please verify if you hit the OS open files limit.`)}const[,,,u,o]=this.worker.stdio;this.readPipe=u;this.writePipe=o;this.listenStdOutAndErrFromWorker(this.worker.stdout,this.worker.stderr);this.readNextMessage()}listenStdOutAndErrFromWorker(e,n){if(e){e.on("data",this.writeToStdout)}if(n){n.on("data",this.writeToStderr)}}ignoreStdOutAndErrFromWorker(e,n){if(e){e.removeListener("data",this.writeToStdout)}if(n){n.removeListener("data",this.writeToStderr)}}writeToStdout(e){if(!this.disposed){process.stdout.write(e)}}writeToStderr(e){if(!this.disposed){process.stderr.write(e)}}run(e,n){const t=this.nextJobId;this.nextJobId+=1;this.jobs[t]={data:e,callback:n};this.activeJobs+=1;this.writeJson({type:"job",id:t,data:e})}warmup(e){this.writeJson({type:"warmup",requires:e})}writeJson(e){const n=Buffer.alloc(4);const t=Buffer.from(JSON.stringify(e),"utf-8");n.writeInt32BE(t.length,0);this.writePipe.write(n);this.writePipe.write(t)}writeEnd(){const e=Buffer.alloc(4);e.writeInt32BE(0,0);this.writePipe.write(e)}readNextMessage(){this.state="read length";this.readBuffer(4,(e,n)=>{if(e){console.error(`Failed to communicate with worker (read length) ${e}`);return}this.state="length read";const t=n.readInt32BE(0);this.state="read message";this.readBuffer(t,(e,n)=>{if(e){console.error(`Failed to communicate with worker (read message) ${e}`);return}this.state="message read";const t=n.toString("utf-8");const r=JSON.parse(t);this.state="process message";this.onWorkerMessage(r,e=>{if(e){console.error(`Failed to communicate with worker (process message) ${e}`);return}this.state="soon next";setImmediate(()=>this.readNextMessage())})})})}onWorkerMessage(e,n){const{type:t,id:r}=e;switch(t){case"job":{const{data:t,error:f,result:u}=e;(0,i.default)(t,(e,n)=>this.readBuffer(e,n),(e,t)=>{const{callback:o}=this.jobs[r];const a=(e,t)=>{if(o){delete this.jobs[r];this.activeJobs-=1;this.onJobDone();if(e){o(e instanceof Error?e:new Error(e),t)}else{o(null,t)}}n()};if(e){a(e);return}let i=0;if(u.result){u.result=u.result.map(e=>{if(e.buffer){const n=t[i];i+=1;if(e.string){return n.toString("utf-8")}return n}return e.data})}if(f){a(this.fromErrorObj(f),u);return}a(null,u)});break}case"resolve":{const{context:t,request:f,questionId:u}=e;const{data:o}=this.jobs[r];o.resolve(t,f,(e,n)=>{this.writeJson({type:"result",id:u,error:e?{message:e.message,details:e.details,missing:e.missing}:null,result:n})});n();break}case"emitWarning":{const{data:t}=e;const{data:f}=this.jobs[r];f.emitWarning(this.fromErrorObj(t));n();break}case"emitError":{const{data:t}=e;const{data:f}=this.jobs[r];f.emitError(this.fromErrorObj(t));n();break}default:{console.error(`Unexpected worker message ${t} in WorkerPool.`);n();break}}}fromErrorObj(e){let n;if(typeof e==="string"){n={message:e}}else{n=e}return new c.default(n,this.id)}readBuffer(e,n){(0,s.default)(this.readPipe,e,n)}dispose(){if(!this.disposed){this.disposed=true;this.ignoreStdOutAndErrFromWorker(this.worker.stdout,this.worker.stderr);this.writeEnd()}}}class WorkerPool{constructor(e){this.options=e||{};this.numberOfWorkers=e.numberOfWorkers;this.poolTimeout=e.poolTimeout;this.workerNodeArgs=e.workerNodeArgs;this.workerParallelJobs=e.workerParallelJobs;this.workers=new Set;this.activeJobs=0;this.timeout=null;this.poolQueue=(0,o.default)(this.distributeJob.bind(this),e.poolParallelJobs);this.terminated=false;this.setupLifeCycle()}isAbleToRun(){return!this.terminated}terminate(){if(this.terminated){return}this.terminated=true;this.poolQueue.kill();this.disposeWorkers(true)}setupLifeCycle(){process.on("exit",()=>{this.terminate()})}run(e,n){if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.activeJobs+=1;this.poolQueue.push(e,n)}distributeJob(e,n){let t;for(const e of this.workers){if(!t||e.activeJobs=this.numberOfWorkers)){t.run(e,n);return}const r=this.createWorker();r.run(e,n)}createWorker(){const e=new PoolWorker({nodeArgs:this.workerNodeArgs,parallelJobs:this.workerParallelJobs},()=>this.onJobDone());this.workers.add(e);return e}warmup(e){while(this.workers.sizethis.disposeWorkers(),this.poolTimeout)}}disposeWorkers(e){if(!this.options.poolRespawn&&!e){this.terminate();return}if(this.activeJobs===0||e){for(const e of this.workers){e.dispose()}this.workers.clear()}}}n.default=WorkerPool},457:function(e,n,t){"use strict";e.exports=t(747).queue},584:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=readBuffer;function readBuffer(e,n,t){if(n===0){t(null,Buffer.alloc(0));return}let r=n;const f=[];const u=()=>{const u=o=>{let a=o;let i;if(a.length>r){i=a.slice(r);a=a.slice(0,r);r=0}else{r-=a.length}f.push(a);if(r===0){e.removeListener("data",u);e.pause();if(i){e.unshift(i)}t(null,Buffer.concat(f,n))}};e.on("data",u);e.resume()};u()}},633:function(e,n,t){"use strict";e.exports=t(747).mapSeries},696:function(e,n,t){"use strict";e.exports=t(824)},710:function(e){e.exports=require("loader-utils")},711:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=(e,n,t)=>{const r=(e.stack||"").split("\n").filter(e=>e.trim().startsWith("at"));const f=n.split("\n").filter(e=>e.trim().startsWith("at"));const u=f.slice(0,f.length-r.length).join("\n");r.unshift(u);r.unshift(e.message);r.unshift(`Thread Loader (Worker ${t})`);return r.join("\n")};class WorkerError extends Error{constructor(e,n){super(e);this.name=e.name;this.message=e.message;Error.captureStackTrace(this,this.constructor);this.stack=t(e,this.stack,n)}}n.default=WorkerError},747:function(e,n){(function(e,t){"use strict";true?t(n):undefined})(this,function(e){"use strict";var n=function noop(){};var t=function throwError(){throw new Error("Callback was already called.")};var r=5;var f=0;var u="object";var o="function";var a=Array.isArray;var i=Object.keys;var l=Array.prototype.push;var s=typeof Symbol===o&&Symbol.iterator;var h,c,y;createImmediate();var v=createEach(arrayEach,baseEach,symbolEach);var d=createMap(arrayEachIndex,baseEachIndex,symbolEachIndex,true);var p=createMap(arrayEachIndex,baseEachKey,symbolEachKey,false);var I=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,true);var g=createFilterSeries(true);var m=createFilterLimit(true);var W=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,false);var b=createFilterSeries(false);var w=createFilterLimit(false);var j=createDetect(arrayEachValue,baseEachValue,symbolEachValue,true);var C=createDetectSeries(true);var K=createDetectLimit(true);var _=createEvery(arrayEachValue,baseEachValue,symbolEachValue);var L=createEverySeries();var A=createEveryLimit();var O=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,true);var S=createPickSeries(true);var E=createPickLimit(true);var B=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,false);var P=createPickSeries(false);var D=createPickLimit(false);var N=createTransform(arrayEachResult,baseEachResult,symbolEachResult);var V=createSortBy(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue);var J=createConcat(arrayEachIndex,baseEachIndex,symbolEachIndex);var R=createGroupBy(arrayEachValue,baseEachValue,symbolEachValue);var q=createParallel(arrayEachFunc,baseEachFunc);var F=createApplyEach(d);var x=createApplyEach(mapSeries);var M=createLogger("log");var Q=createLogger("dir");var $={VERSION:"2.6.1",each:v,eachSeries:eachSeries,eachLimit:eachLimit,forEach:v,forEachSeries:eachSeries,forEachLimit:eachLimit,eachOf:v,eachOfSeries:eachSeries,eachOfLimit:eachLimit,forEachOf:v,forEachOfSeries:eachSeries,forEachOfLimit:eachLimit,map:d,mapSeries:mapSeries,mapLimit:mapLimit,mapValues:p,mapValuesSeries:mapValuesSeries,mapValuesLimit:mapValuesLimit,filter:I,filterSeries:g,filterLimit:m,select:I,selectSeries:g,selectLimit:m,reject:W,rejectSeries:b,rejectLimit:w,detect:j,detectSeries:C,detectLimit:K,find:j,findSeries:C,findLimit:K,pick:O,pickSeries:S,pickLimit:E,omit:B,omitSeries:P,omitLimit:D,reduce:reduce,inject:reduce,foldl:reduce,reduceRight:reduceRight,foldr:reduceRight,transform:N,transformSeries:transformSeries,transformLimit:transformLimit,sortBy:V,sortBySeries:sortBySeries,sortByLimit:sortByLimit,some:some,someSeries:someSeries,someLimit:someLimit,any:some,anySeries:someSeries,anyLimit:someLimit,every:_,everySeries:L,everyLimit:A,all:_,allSeries:L,allLimit:A,concat:J,concatSeries:concatSeries,concatLimit:concatLimit,groupBy:R,groupBySeries:groupBySeries,groupByLimit:groupByLimit,parallel:q,series:series,parallelLimit:parallelLimit,tryEach:tryEach,waterfall:waterfall,angelFall:angelFall,angelfall:angelFall,whilst:whilst,doWhilst:doWhilst,until:until,doUntil:doUntil,during:during,doDuring:doDuring,forever:forever,compose:compose,seq:seq,applyEach:F,applyEachSeries:x,queue:queue,priorityQueue:priorityQueue,cargo:cargo,auto:auto,autoInject:autoInject,retry:retry,retryable:retryable,iterator:iterator,times:times,timesSeries:timesSeries,timesLimit:timesLimit,race:race,apply:apply,nextTick:c,setImmediate:y,memoize:memoize,unmemoize:unmemoize,ensureAsync:ensureAsync,constant:constant,asyncify:asyncify,wrapSync:asyncify,log:M,dir:Q,reflect:reflect,reflectAll:reflectAll,timeout:timeout,createLogger:createLogger,safe:safe,fast:fast};e["default"]=$;baseEachSync($,function(n,t){e[t]=n},i($));function createImmediate(e){var n=function delay(e){var n=slice(arguments,1);setTimeout(function(){e.apply(null,n)})};y=typeof setImmediate===o?setImmediate:n;if(typeof process===u&&typeof process.nextTick===o){h=/^v0.10/.test(process.version)?y:process.nextTick;c=/^v0/.test(process.version)?y:process.nextTick}else{c=h=y}if(e===false){h=function(e){e()}}}function createArray(e){var n=-1;var t=e.length;var r=Array(t);while(++n=n&&e[o]>=r){o--}if(u>o){break}swap(e,f,u++,o--)}return u}function swap(e,n,t,r){var f=e[t];e[t]=e[r];e[r]=f;var u=n[t];n[t]=n[r];n[r]=u}function quickSort(e,n,t,r){if(n===t){return}var f=n;while(++f<=t&&e[n]===e[f]){var u=f-1;if(r[u]>r[f]){var o=r[u];r[u]=r[f];r[f]=o}}if(f>t){return}var a=e[n]>e[f]?n:f;f=partition(e,n,t,e[a],r);quickSort(e,n,f-1,r);quickSort(e,f,t,r)}function makeConcatResult(e){var t=[];arrayEachSync(e,function(e){if(e===n){return}if(a(e)){l.apply(t,e)}else{t.push(e)}});return t}function arrayEach(e,n,t){var r=-1;var f=e.length;if(n.length===3){while(++rc?c:f,m);function arrayIterator(){y=w++;if(yl?l:r,I);function arrayIterator(){if(ml?l:r,g);function arrayIterator(){c=W++;if(cl?l:r,I);function arrayIterator(){c=W++;if(cc?c:f,m);function arrayIterator(){y=b++;if(yc?c:f,m);function arrayIterator(){y=w++;if(yl?l:t,I);function arrayIterator(){c=W++;if(cl?l:r,W);function arrayIterator(){if(w=2){l.apply(g,slice(arguments,1))}if(e){f(e,g)}else if(++m===o){p=t;f(null,g)}else if(I){h(p)}else{I=true;p()}I=false}}function concatLimit(e,r,f,o){o=o||n;var l,c,y,v,d,p;var I=false;var g=0;var m=0;if(a(e)){l=e.length;d=f.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(s&&e[s]){l=Infinity;p=[];y=e[s]();d=f.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===u){var W=i(e);l=W.length;d=f.length===3?objectIteratorWithKey:objectIterator}if(!l||isNaN(r)||r<1){return o(null,[])}p=p||Array(l);timesSync(r>l?l:r,d);function arrayIterator(){if(gl?l:r,g);function arrayIterator(){if(Wo?o:r,v);function arrayIterator(){l=p++;if(l1){var f=slice(arguments,1);return r.apply(this,f)}else{return r}}}function DLL(){this.head=null;this.tail=null;this.length=0}DLL.prototype._removeLink=function(e){var n=e.prev;var t=e.next;if(n){n.next=t}else{this.head=t}if(t){t.prev=n}else{this.tail=n}e.prev=null;e.next=null;this.length--;return e};DLL.prototype.empty=DLL;DLL.prototype._setInitial=function(e){this.length=1;this.head=this.tail=e};DLL.prototype.insertBefore=function(e,n){n.prev=e.prev;n.next=e;if(e.prev){e.prev.next=n}else{this.head=n}e.prev=n;this.length++};DLL.prototype.unshift=function(e){if(this.head){this.insertBefore(this.head,e)}else{this._setInitial(e)}};DLL.prototype.push=function(e){var n=this.tail;if(n){e.prev=n;e.next=n.next;this.tail=e;n.next=e;this.length++}else{this._setInitial(e)}};DLL.prototype.shift=function(){return this.head&&this._removeLink(this.head)};DLL.prototype.splice=function(e){var n;var t=[];while(e--&&(n=this.shift())){t.push(n)}return t};DLL.prototype.remove=function(e){var n=this.head;while(n){if(e(n)){this._removeLink(n)}n=n.next}return this};function baseQueue(e,r,f,u){if(f===undefined){f=1}else if(isNaN(f)||f<1){throw new Error("Concurrency must not be zero")}var o=0;var i=[];var s,c;var y={_tasks:new DLL,concurrency:f,payload:u,saturated:n,unsaturated:n,buffer:f/4,empty:n,drain:n,error:n,started:false,paused:false,push:push,kill:kill,unshift:unshift,remove:remove,process:e?runQueue:runCargo,length:getLength,running:running,workersList:getWorkersList,idle:idle,pause:pause,resume:resume,_worker:r};return y;function push(e,n){_insert(e,n)}function unshift(e,n){_insert(e,n,true)}function _exec(e){var n={data:e,callback:s};if(c){y._tasks.unshift(n)}else{y._tasks.push(n)}h(y.process)}function _insert(e,t,r){if(t==null){t=n}else if(typeof t!=="function"){throw new Error("task callback must be a function")}y.started=true;var f=a(e)?e:[e];if(e===undefined||!f.length){if(y.idle()){h(y.drain)}return}c=r;s=t;arrayEachSync(f,_exec)}function kill(){y.drain=n;y._tasks.empty()}function _next(e,n){var r=false;return function done(f,u){if(r){t()}r=true;o--;var a;var l=-1;var s=i.length;var h=-1;var c=n.length;var y=arguments.length>2;var v=y&&createArray(arguments);while(++h=l.priority){l=l.next}while(i--){var s={data:u[i],priority:t,callback:f};if(l){r._tasks.insertBefore(l,s)}else{r._tasks.push(s)}h(r.process)}}}function cargo(e,n){return baseQueue(false,e,1,n)}function auto(e,r,f){if(typeof r===o){f=r;r=null}var u=i(e);var l=u.length;var s={};if(l===0){return f(null,s)}var h=0;var c=[];var y=Object.create(null);f=onlyOnce(f||n);r=r||l;baseEachSync(e,iterator,u);proceedQueue();function iterator(e,r){var o,i;if(!a(e)){o=e;i=0;c.push([o,i,done]);return}var v=e.length-1;o=e[v];i=v;if(v===0){c.push([o,i,done]);return}var d=-1;while(++d=e){f(null,u);f=t}else if(o){h(iterate)}else{o=true;iterate()}o=false}}function timesLimit(e,r,f,u){u=u||n;e=+e;if(isNaN(e)||e<1||isNaN(r)||r<1){return u(null,[])}var o=Array(e);var a=false;var i=0;var l=0;timesSync(r>e?e:r,iterate);function iterate(){var n=i++;if(n=e){u(null,o);u=t}else if(a){h(iterate)}else{a=true;iterate()}a=false}}}function race(e,t){t=once(t||n);var r,f;var o=-1;if(a(e)){r=e.length;while(++o2){t=slice(arguments,1)}n(null,{value:t})}}}function reflectAll(e){var n,t;if(a(e)){n=Array(e.length);arrayEachSync(e,iterate)}else if(e&&typeof e===u){t=i(e);n={};baseEachSync(e,iterate,t)}return n;function iterate(e,t){n[t]=reflect(e)}}function createLogger(e){return function(e){var n=slice(arguments,1);n.push(done);e.apply(null,n)};function done(n){if(typeof console===u){if(n){if(console.error){console.error(n)}return}if(console[e]){var t=slice(arguments,1);arrayEachSync(t,function(n){console[e](n)})}}}}function safe(){createImmediate();return e}function fast(){createImmediate(false);return e}})},824:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.warmup=n.pitch=undefined;var r=t(710);var f=_interopRequireDefault(r);var u=t(837);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function pitch(){const e=f.default.getOptions(this)||{};const n=(0,u.getPool)(e);if(!n.isAbleToRun()){return}const t=this.async();n.run({loaders:this.loaders.slice(this.loaderIndex+1).map(e=>{return{loader:e.path,options:e.options,ident:e.ident}}),resource:this.resourcePath+(this.resourceQuery||""),sourceMap:this.sourceMap,emitError:this.emitError,emitWarning:this.emitWarning,resolve:this.resolve,target:this.target,minimize:this.minimize,resourceQuery:this.resourceQuery,optionsContext:this.rootContext||this.options.context},(e,n)=>{if(n){n.fileDependencies.forEach(e=>this.addDependency(e));n.contextDependencies.forEach(e=>this.addContextDependency(e))}if(e){t(e);return}t(null,...n.result)})}function warmup(e,n){const t=(0,u.getPool)(e);t.warmup(n)}n.pitch=pitch;n.warmup=warmup},837:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.getPool=undefined;var r=t(87);var f=_interopRequireDefault(r);var u=t(399);var o=_interopRequireDefault(u);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=Object.create(null);function calculateNumberOfWorkers(){const e=f.default.cpus()||{length:1};return Math.max(1,e.length-1)}function getPool(e){const n={name:e.name||"",numberOfWorkers:e.workers||calculateNumberOfWorkers(),workerNodeArgs:e.workerNodeArgs,workerParallelJobs:e.workerParallelJobs||20,poolTimeout:e.poolTimeout||500,poolParallelJobs:e.poolParallelJobs||200,poolRespawn:e.poolRespawn||false};const t=JSON.stringify(n);a[t]=a[t]||new o.default(n);const r=a[t];return r}n.getPool=getPool}});