Analysis-Services/BismNormalizer/AlmToolkit/html-resources/dist/3.chunk.js

1 line
20 KiB
JavaScript
Raw Normal View History

2019-09-14 13:26:01 +08:00
webpackJsonp([3],{"SG+P":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,u,s,c,f,l,d,g,h,m,p,v,b,_,k,y,C,w,S,A,I,x,P,T=monaco.Promise,M=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return t._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._stopWorker()})}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t,n,r,i,o=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return t=this._getClient().then(function(t){e=t}).then(function(e){return o._worker.withSyncedResources(a)}).then(function(t){return e}),i=new T(function(e,t){n=e,r=t},function(){}),t.then(n,r),i},e}();!function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return O.defined(t)&&O.number(t.line)&&O.number(t.character)}}(r||(r={})),function(e){e.create=function(e,t,n,i){if(O.number(e)&&O.number(t)&&O.number(n)&&O.number(i))return{start:r.create(e,t),end:r.create(n,i)};if(r.is(e)&&r.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+i+"]")},e.is=function(e){var t=e;return O.defined(t)&&r.is(t.start)&&r.is(t.end)}}(i||(i={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return O.defined(t)&&i.is(t.range)&&(O.string(t.uri)||O.undefined(t.uri))}}(o||(o={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(a||(a={})),function(e){e.create=function(e,t,n,r,i){var o={range:e,message:t};return O.defined(n)&&(o.severity=n),O.defined(r)&&(o.code=r),O.defined(i)&&(o.source=i),o},e.is=function(e){var t=e;return O.defined(t)&&i.is(t.range)&&O.string(t.message)&&(O.number(t.severity)||O.undefined(t.severity))&&(O.number(t.code)||O.string(t.code)||O.undefined(t.code))&&(O.string(t.source)||O.undefined(t.source))}}(u||(u={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return O.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return O.defined(t)&&O.string(t.title)&&O.string(t.title)}}(s||(s={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}}}(c||(c={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return O.defined(t)&&d.is(t.textDocument)&&Array.isArray(t.edits)}}(f||(f={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return O.defined(t)&&O.string(t.uri)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return O.defined(t)&&O.string(t.uri)&&O.number(t.version)}}(d||(d={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return O.defined(t)&&O.string(t.uri)&&O.string(t.languageId)&&O.number(t.version)&&O.string(t.text)}}(g||(g={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(h||(h={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constan