You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
31 KiB
4 lines
31 KiB
|
2 months ago
|
"use strict";var define,AMDLoader,_amdLoaderGlobal=this,_commonjsGlobal="object"==typeof global?global:{};!function(e){e.global=_amdLoaderGlobal;var t=(Object.defineProperty(r.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),r.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=r._isWindows(),this._isNode="undefined"!=typeof module&&!!module.exports,this._isElectronRenderer="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type,this._isWebWorker="function"==typeof e.global.importScripts,this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"worker"===process.type)},r._isWindows=function(){return!!("undefined"!=typeof navigator&&navigator.userAgent&&0<=navigator.userAgent.indexOf("Windows"))||"undefined"!=typeof process&&"win32"===process.platform},r);function r(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}e.Environment=t}(AMDLoader=AMDLoader||{}),function(r){var n=function(e,t,r){this.type=e,this.detail=t,this.timestamp=r};r.LoaderEvent=n;var e=(t.prototype.record=function(e,t){this._events.push(new n(e,t,r.Utilities.getHighPerformanceTimestamp()))},t.prototype.getEvents=function(){return this._events},t);function t(e){this._events=[new n(1,"",e)]}r.LoaderEventRecorder=e;o.prototype.record=function(e,t){},o.prototype.getEvents=function(){return[]},o.INSTANCE=new o,e=o;function o(){}r.NullLoaderEventRecorder=e}(AMDLoader=AMDLoader||{}),function(e){var t=(n.fileUriToFilePath=function(e,t){if(t=decodeURI(t).replace(/%23/g,"#"),e){if(/^file:\/\/\//.test(t))return t.substr(8);if(/^file:\/\//.test(t))return t.substr(5)}else if(/^file:\/\//.test(t))return t.substr(7);return t},n.startsWith=function(e,t){return e.length>=t.length&&e.substr(0,t.length)===t},n.endsWith=function(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t},n.containsQueryString=function(e){return/^[^\#]*\?/gi.test(e)},n.isAbsolutePath=function(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)},n.forEachProperty=function(e,t){if(e){var r=void 0;for(r in e)e.hasOwnProperty(r)&&t(r,e[r])}},n.isEmpty=function(e){var t=!0;return n.forEachProperty(e,function(){t=!1}),t},n.recursiveClone=function(e){if(!e||"object"!=typeof e||e instanceof RegExp||!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype)return e;var r=Array.isArray(e)?[]:{};return n.forEachProperty(e,function(e,t){r[e]=t&&"object"==typeof t?n.recursiveClone(t):t}),r},n.generateAnonymousModule=function(){return"===anonymous"+n.NEXT_ANONYMOUS_ID+++"==="},n.isAnonymousModule=function(e){return n.startsWith(e,"===anonymous")},n.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),(this.HAS_PERFORMANCE_NOW?e.global.performance:Date).now()},n.NEXT_ANONYMOUS_ID=1,n.PERFORMANCE_NOW_PROBED=!1,n.HAS_PERFORMANCE_NOW=!1,n);function n(){}e.Utilities=t}(AMDLoader=AMDLoader||{}),function(d){function r(e){if(e instanceof Error)return e;var t=new Error(e.message||String(e)||"Unknown Error");return e.stack&&(t.stack=e.stack),t}d.ensureError=r;var o=(n.validateConfigurationOptions=function(e){var t;return"stri
|
||
|
|
//# sourceURL=`+t,(d?self.eval(d.createScript("",e)):new Function(e)).call(self),r()}).then(void 0,n)}},n),a=(g.prototype._init=function(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))},g.prototype._initNodeRequire=function(e,u){var l,c,h=u.getConfig().getOptionsLiteral().nodeCachedData;function p(r){function e(e){return r.require(e)}var n=r.constructor;return(e.resolve=function(e,t){return n._resolveFilename(e,r,!1,t)}).paths=function(e){return n._resolveLookupPaths(e,r)},e.main=process.mainModule,e.extensions=n._extensions,e.cache=n._cache,e}h&&!this._didPatchNodeRequire&&(this._didPatchNodeRequire=!0,l=this,(c=e("module")).prototype._compile=function(e,t){var r=c.wrap(e.replace(/^#!.*/,"")),n=u.getRecorder(),o=l._getCachedDataPath(h,t),i={filename:t};try{var s=l._fs.readFileSync(o),d=s.slice(0,16);i.cachedData=s.slice(16),n.record(60,o)}catch{n.record(61,o)}var a=new l._vm.Script(r,i),e=a.runInThisContext(i),s=l._path.dirname(t),n=p(this),s=[this.exports,n,this,t,s,process,_commonjsGlobal,Buffer],s=e.apply(this.exports,s);return l._handleCachedData(a,r,o,!i.cachedData,u),l._verifyCachedData(a,r,o,d,u),s})},g.prototype.load=function(o,e,i,s){var d=this,t=o.getConfig().getOptionsLiteral(),r=v(o.getRecorder(),t.nodeRequire||_.global.nodeRequire),a=t.nodeInstrumenter||function(e){return e};this._init(r),this._initNodeRequire(r,o);var n=o.getRecorder();if(/^node\|/.test(e)){var u=e.split("|"),l=null;try{l=r(u[1])}catch(e){return void s(e)}o.enqueueDefineAnonymousModule([],function(){return l}),i()}else{e=_.Utilities.fileUriToFilePath(this._env.isWindows,e);var c=this._path.normalize(e),h=this._getElectronRendererScriptPathOrUri(c),p=Boolean(t.nodeCachedData),f=p?this._getCachedDataPath(t.nodeCachedData,e):void 0;this._readSourceAndCachedData(c,f,n,function(e,t,r,n){e?s(e):(e=t.charCodeAt(0)===g._BOM?g._PREFIX+t.substring(1)+g._SUFFIX:g._PREFIX+t+g._SUFFIX,e=a(e,c),t=d._createAndEvalScript(o,e,{filename:h,cachedData:r},i,s),d._handleCachedData(t,e,f,p&&!r,o),d._verifyCachedData(t,e,f,n,o))})}},g.prototype._createAndEvalScript=function(e,t,r,n,o){var i=e.getRecorder();i.record(31,r.filename);var s=new this._vm.Script(t,r),d=s.runInThisContext(r),a=e.getGlobalAMDDefineFunc(),u=!1,t=function(){return u=!0,a.apply(null,arguments)};return t.amd=a.amd,d.call(_.global,e.getGlobalAMDRequireFunc(),t,r.filename,this._path.dirname(r.filename)),i.record(32,r.filename),u?n():o(new Error("Didn't receive define call in "+r.filename+"!")),s},g.prototype._getElectronRendererScriptPathOrUri=function(e){if(!this._env.isElectronRenderer)return e;var t=e.match(/^([a-z])\:(.*)/i);return t?"file:///"+(t[1].toUpperCase()+":"+t[2]).replace(/\\/g,"/"):"file://"+e},g.prototype._getCachedDataPath=function(e,t){var r=this._crypto.createHash("md5").update(t,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),t=this._path.basename(t).replace(/\.js$/,"");return this._path.join(e.path,t+"-"+r+".code")},g.prototype._handleCachedData=function(t,r,n,e,o){var i=this;t.cachedDataRejected?this._fs.unlink(n,function(e){o.getRecorder().record(62,n),i._createAndWriteCachedData(t,r,n,o),e&&o.getConfig().onError(e)}):e&&this._createAndWriteCachedData(t,r,n,o)},g.prototype._createAndWriteCachedData=function(t,r,n,o){var i=this,e=Math.ceil(o.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),s=-1,d=0,a=void 0,u=function(){setTimeout(function(){a=a||i._crypto.createHash("md5").update(r,"utf8").digest();var e=t.createCachedData();0===e.length||e.length===s||5<=d||(e.length<s?u():(s=e.length,i._fs.writeFile(n,Buffer.concat([a,e]),function(e){e&&o.getConfig().onError(e),o.getRecorder().record(63,n),u()})))},e*Math.pow(4,d++))};u()},g.prototype._readSourceAndCachedData=function(e,r,n,t){var o,i,s,d,a;r?(s=i=o=void 0,d=2,a=function(e){e?t(e):0==--d&&t(void 0,o,i,s)},this._fs.readFile(e,{encoding:"utf8"},function(e,t){o=t,a(e)}),this._fs.readFile(r,function(e,t){!e&&t&&0<t.length?(s=t.slice(0,16),i=t.slice(16),n.record(60,r)):n.record(61,r),a()})):this._
|
||
|
|
});`,g);function g(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}function n(){this._cachedCanUseEval=null}function v(t,r){if(r.__$__isRecorded)return r;function e(e){t.record(33,e);try{return r(e)}finally{t.record(34,e)}}return e.__$__isRecorded=!0,e}_.ensureRecordedNodeRequire=v,_.createScriptLoader=function(e){return new t(e)}}(AMDLoader=AMDLoader||{}),function(i){var a=(t._normalizeModuleId=function(e){for(var t=e,r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,"")},t.prototype.resolveModule=function(e){return i.Utilities.isAbsolutePath(e)||(i.Utilities.startsWith(e,"./")||i.Utilities.startsWith(e,"../"))&&(e=t._normalizeModuleId(this.fromModulePath+e)),e},t.ROOT=new t(""),t);function t(e){var t=e.lastIndexOf("/");this.fromModulePath=-1!==t?e.substr(0,t+1):""}i.ModuleIdResolver=a;var h=(o._safeInvokeFunction=function(e,t){try{return{returnedValue:e.apply(i.global,t),producedError:null}}catch(e){return{returnedValue:null,producedError:e}}},o._invokeFactory=function(e,t,r,n){return e.isBuild()&&!i.Utilities.isAnonymousModule(t)?{returnedValue:null,producedError:null}:e.shouldCatchError()?this._safeInvokeFunction(r,n):{returnedValue:r.apply(i.global,n),producedError:null}},o.prototype.complete=function(e,t,r){this._isComplete=!0;var n=null;this._callback&&("function"==typeof this._callback?(e.record(21,this.strId),n=(r=o._invokeFactory(t,this.strId,this._callback,r)).producedError,e.record(22,this.strId),n||void 0===r.returnedValue||this.exportsPassedIn&&!i.Utilities.isEmpty(this.exports)||(this.exports=r.returnedValue)):this.exports=this._callback),n&&((n=i.ensureError(n)).phase="factory",n.moduleId=this.strId,this.error=n,t.onError(n)),this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},o.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,!!this._errorback&&(this._errorback(e),!0)},o.prototype.isComplete=function(){return this._isComplete},o);function o(e,t,r,n,o,i){this.id=e,this.strId=t,this.dependencies=r,this._callback=n,this._errorback=o,this.moduleIdResolver=i,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}i.Module=h;var s=(r.prototype.getMaxModuleId=function(){return this._nextId},r.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return void 0===t&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},r.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},r),c=(e.EXPORTS=new e(0),e.MODULE=new e(1),e.REQUIRE=new e(2),e);function e(e){this.id=e}function r(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}i.RegularDependency=c;var u=function(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r};i.PluginDependency=u;var n=(l.prototype.reset=function(){return new l(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},l.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},l.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},l._findRelevantLocationInStack=function(e,t){for(var r=function(e){return e.replace(/\\/g,"/")},n=r(e),o=t.split(/\n/),i=0;i<o.length;i++){var s=o[i].match(/(.*):(\d+):(\d+)\)?$/);if(s){var d=s[1],a=s[2],u=s[3],s=Math.max(d.lastIndexOf(" ")+1,d.lastIndexOf("(")+1);if((d=r(d=d.substr(s)))===n){u={line:parseInt(a,10),col:parseInt(u,10)};return 1===u.line&&(u.col-="(function (require, define, __filename, __dirname) { ".length),u}}}throw new Error("Could not correlate define call site for needle "+e)},l.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var e=[],t=0,r=0,n=this._modules2.length;r<
|
||
|
|
`)),e.unresolvedDependenciesCount--):(this._inverseDependencies2[i.id]=this._inverseDependencies2[i.id]||[],this._inverseDependencies2[i.id].push(e.id),i instanceof u?(s=this._modules2[i.pluginId])&&s.isComplete()?this._loadPluginDependency(s.exports,i):((s=this._inversePluginDependencies2.get(i.pluginId))||this._inversePluginDependencies2.set(i.pluginId,s=[]),s.push(i),this._loadModule(i.pluginId)):this._loadModule(i.id))}else e.unresolvedDependenciesCount--;else e.unresolvedDependenciesCount--;else e.exportsPassedIn=!0,e.unresolvedDependenciesCount--}0===e.unresolvedDependenciesCount&&this._onModuleComplete(e)},l.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var n=e.dependencies,o=[];if(n)for(var i=0,s=n.length;i<s;i++){var d=n[i];d!==c.EXPORTS?d!==c.MODULE?d!==c.REQUIRE?(d=this._modules2[d.id],o[i]=d?d.exports:null):o[i]=this._createRequire(e.moduleIdResolver):o[i]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}}:o[i]=e.exports}e.complete(r,this._config,o);var a=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,a)for(i=0,s=a.length;i<s;i++){var u=a[i],u=this._modules2[u];u.unresolvedDependenciesCount--,0===u.unresolvedDependenciesCount&&this._onModuleComplete(u)}var l=this._inversePluginDependencies2.get(e.id);if(l){this._inversePluginDependencies2.delete(e.id);for(i=0,s=l.length;i<s;i++)this._loadPluginDependency(e.exports,l[i])}}},l);function l(e,t,r,n,o){void 0===o&&(o=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=o,this._defineFunc=r,this._requireFunc=n,this._moduleIdProvider=new s,this._config=new i.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}i.ModuleManager=n}(AMDLoader=AMDLoader||{}),function(t){function r(e,t,r){"string"!=typeof e&&(r=t,t=e,e=null),"object"==typeof t&&Array.isArray(t)||(r=t,t=null),t=t||["require","exports","module"],e?o.defineModule(e,t,r,null,null):o.enqueueDefineAnonymousModule(t,r)}var n=new t.Environment,o=null;r.amd={jQuery:!0};function e(e,t){o.configure(e,t=void 0===t?!1:t)}function i(){if(1===arguments.length){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0]))return void e(arguments[0]);if("string"==typeof arguments[0])return o.synchronousRequire(arguments[0])}if(2!==arguments.length&&3!==arguments.length||!Array.isArray(arguments[0]))throw new Error("Unrecognized require call");o.defineModule(t.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null)}function s(){var e;void 0===t.global.require&&"undefined"==typeof require||"function"==typeof(e=t.global.require||require)&&"function"==typeof e.resolve&&(e=t.ensureRecordedNodeRequire(o.getRecorder(),e),t.global.nodeRequire=e,i.nodeRequire=e,i.__$__nodeRequire=e),!n.isNode||n.isElectronRenderer||n.isElectronNodeIntegrationWebWorker?(n.isElectronRenderer||(t.global.define=r),t.global.require=i):(module.exports=i,require=i)}i.config=e,i.getConfig=function(){return o.getConfig().getOptionsLiteral()},i.reset=function(){o=o.reset()},i.getBuildInfo=function(){return o.getBuildInfo()},i.getStats=function(){return o.getLoaderEvents()},i.define=r,t.init=s,"function"==typeof t.global.define&&t.global.define.amd||(o=new t.ModuleManager(n,t.createScriptLoader(n),r,i,t.Utilities.getHighPerformanceTimestamp()),void 0!==t.global.require&&"function"!=typeof t.global.require&&i.config(t.global.require),(define=function(){return r.apply(null,arguments)}).amd=r.amd,"undefined"==typeof doNotInitLoader&&s())}(AMDLoader=AMDLoader||{});
|