1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
|
(()=>{var __webpack_modules__={395:e=>{"use strict";class LoadingLoaderError extends Error{constructor(e){super(e);this.name="LoaderRunnerError";Error.captureStackTrace(this,this.constructor)}}e.exports=LoadingLoaderError},754:(module,__unused_webpack_exports,__nccwpck_require__)=>{var LoaderLoadingError=__nccwpck_require__(395);var url;module.exports=function loadLoader(loader,callback){if(loader.type==="module"){try{if(url===undefined)url=__nccwpck_require__(310);var loaderUrl=url.pathToFileURL(loader.path);var modulePromise=eval("import("+JSON.stringify(loaderUrl.toString())+")");modulePromise.then((function(e){handleResult(loader,e,callback)}),callback);return}catch(e){callback(e)}}else{try{var module=require(loader.path)}catch(e){if(e instanceof Error&&e.code==="EMFILE"){var retry=loadLoader.bind(null,loader,callback);if(typeof setImmediate==="function"){return setImmediate(retry)}else{return process.nextTick(retry)}}return callback(e)}return handleResult(loader,module,callback)}};function handleResult(e,r,n){if(typeof r!=="function"&&typeof r!=="object"){return n(new LoaderLoadingError("Module '"+e.path+"' is not a loader (export function or es6 module)"))}e.normal=typeof r==="function"?r:r.default;e.pitch=r.pitch;e.raw=r.raw;if(typeof e.normal!=="function"&&typeof e.pitch!=="function"){return n(new LoaderLoadingError("Module '"+e.path+"' is not a loader (must have normal or pitch function)"))}n()}},147:e=>{"use strict";e.exports=require("fs")},310:e=>{"use strict";e.exports=require("url")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var r=__webpack_module_cache__[e];if(r!==undefined){return r.exports}var n=__webpack_module_cache__[e]={exports:{}};var t=true;try{__webpack_modules__[e](n,n.exports,__nccwpck_require__);t=false}finally{if(t)delete __webpack_module_cache__[e]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{var e=__webpack_exports__;var r=__nccwpck_require__(147);var n=r.readFile.bind(r);var t=__nccwpck_require__(754);function utf8BufferToString(e){var r=e.toString("utf-8");if(r.charCodeAt(0)===65279){return r.substr(1)}else{return r}}const a=/^((?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/;function parsePathQueryFragment(e){var r=a.exec(e);return{path:r[1].replace(/\0(.)/g,"$1"),query:r[2]?r[2].replace(/\0(.)/g,"$1"):"",fragment:r[3]||""}}function dirname(e){if(e==="/")return"/";var r=e.lastIndexOf("/");var n=e.lastIndexOf("\\");var t=e.indexOf("/");var a=e.indexOf("\\");var o=r>n?r:n;var u=r>n?t:a;if(o<0)return e;if(o===u)return e.substr(0,o+1);return e.substr(0,o)}function createLoaderObject(e){var r={path:null,query:null,fragment:null,options:null,ident:null,normal:null,pitch:null,raw:null,data:null,pitchExecuted:false,normalExecuted:false};Object.defineProperty(r,"request",{enumerable:true,get:function(){return r.path.replace(/#/g,"\0#")+r.query.replace(/#/g,"\0#")+r.fragment},set:function(e){if(typeof e==="string"){var n=parsePathQueryFragment(e);r.path=n.path;r.query=n.query;r.fragment=n.fragment;r.options=undefined;r.ident=undefined}else{if(!e.loader)throw new Error("request should be a string or object with loader and options ("+JSON.stringify(e)+")");r.path=e.loader;r.fragment=e.fragment||"";r.type=e.type;r.options=e.options;r.ident=e.ident;if(r.options===null)r.query="";else if(r.options===undefined)r.query="";else if(typeof r.options==="string")r.query="?"+r.options;else if(r.ident)r.query="??"+r.ident;else if(typeof r.options==="object"&&r.options.ident)r.query="??"+r.options.ident;else r.query="?"+JSON.stringify(r.options)}}});r.request=e;if(Object.preventExtensions){Object.preventExtensions(r)}return r}function runSyncOrAsync(e,r,n,t){var a=true;var o=false;var u=false;var i=false;r.async=function async(){if(o){if(i)return;throw new Error("async(): The callback was already called.")}a=false;return c};var c=r.callback=function(){if(o){if(i)return;throw new Error("callback(): The callback was already called.")}o=true;a=false;try{t.apply(null,arguments)}catch(e){u=true;throw e}};try{var s
|