/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var t=["exports","require","vs/base/common/paths","vs/base/common/strings","vs/base/common/resources","vs/base/common/network","vs/base/common/platform","vs/base/common/uri","vs/base/common/arrays","vs/base/common/winjs.base","vs/base/common/errors","vs/workbench/parts/output/common/outputLinkComputer","vs/editor/common/core/range"],e=function(e){for(var n=[],r=0,i=e.length;r<i;r++)n[r]=t[e[r]];return n};define(t[5],e([1,0]),function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data"}(e.Schemas||(e.Schemas={}))}),define(t[2],e([1,0,6,3]),function(t,e,n,r){"use strict";function i(t,r){void 0===r&&(r=e.nativeSep);var o=~t.lastIndexOf("/")||~t.lastIndexOf("\\");if(0===o)return".";if(0==~o)return t[0]
;if(~o==t.length-1)return i(t.substring(0,t.length-1));var a=t.substring(0,~o);return n.isWindows&&":"===a[a.length-1]&&(a+=r),a}function o(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?o(t.substring(0,t.length-1)):t.substr(1+~e)}function a(t,e){if(null===t||void 0===t)return t;var r=t.length;if(0===r)return".";var i=n.isWindows&&e;if(function(t,e){return e?!h.test(t):!l.test(t)}(t,i))return t;for(var o=i?"\\":"/",a=s(t,o),c=a.length,f=!1,p="",d=a.length;d<=r;d++)if(d===r||47===t.charCodeAt(d)||92===t.charCodeAt(d)){if(u(t,c,d,"..")){var v=p.lastIndexOf(o),g=p.slice(v+1);(a||g.length>0)&&".."!==g&&(p=-1===v?"":p.slice(0,v),f=!0)}else u(t,c,d,".")&&(a||p||d<r-1)&&(f=!0);if(!f){var m=t.slice(c,d);""!==p&&p[p.length-1]!==o&&(p+=o),p+=m}c=d+1,f=!1}return a+p}function u(t,e,n,r){return e+r.length===n&&t.indexOf(r,e)===e}function s(t,e){if(void 0===e&&(e="/"),!t)return"";var n=t.length,r=t.charCodeAt(0);if(47===r||92===r){
if((47===(r=t.charCodeAt(1))||92===r)&&47!==(r=t.charCodeAt(2))&&92!==r){for(var i=3,o=i;i<n&&(47!==(r=t.charCodeAt(i))&&92!==r);i++);if(r=t.charCodeAt(i+1),o!==i&&47!==r&&92!==r)for(i+=1;i<n;i++)if(47===(r=t.charCodeAt(i))||92===r)return t.slice(0,i+1).replace(/[\\/]/g,e)}return e}if((r>=65&&r<=90||r>=97&&r<=122)&&58===t.charCodeAt(1))return 47===(r=t.charCodeAt(2))||92===r?t.slice(0,2)+e:t.slice(0,2);var a=t.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(47===(r=t.charCodeAt(a))||92===r)return t.slice(0,a+1);return""}function c(t){if(!t)return!1;var e=t.charCodeAt(0);if(47===e||92===e)return!0;if((e>=65&&e<=90||e>=97&&e<=122)&&t.length>2&&58===t.charCodeAt(1)){var n=t.charCodeAt(2);if(47===n||92===n)return!0}return!1}function f(t){return t&&47===t.charCodeAt(0)}Object.defineProperty(e,"__esModule",{value:!0}),e.sep="/",e.nativeSep=n.isWindows?"\\":"/",e.dirname=i,e.basename=o,e.extname=function(t){var e=~(t=o(t)).lastIndexOf(".");return e?t.substring(~e):""}
;var l=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,h=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;e.normalize=a,e.getRoot=s,e.join=function(){for(var t="",n=0;n<arguments.length;n++){var r=arguments[n];if(n>0){var i=t.charCodeAt(t.length-1);if(47!==i&&92!==i){var o=r.charCodeAt(0);47!==o&&92!==o&&(t+=e.sep)}}t+=r}return a(t)},e.isUNC=function(t){if(!n.isWindows)return!1;if(!t||t.length<5)return!1;var e=t.charCodeAt(0);if(92!==e)return!1;if(92!==(e=t.charCodeAt(1)))return!1;for(var r=2,i=r;r<t.length&&92!==(e=t.charCodeAt(r));r++);return i!==r&&(e=t.charCodeAt(r+1),!isNaN(e)&&92!==e)};var p=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,d=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;e.isValidBasename=function(t){return!(!t||0===t.length||/^\s+$/.test(t)||(p.lastIndex=0,p.test(t)||n.isWindows&&d.test(t)||"."===t||".."===t||n.isWindows&&"."===t[t.length-1]||n.isWindows&&t.length!==t.trim().length))},e.isEqual=function(t,e,n){var i=t===e;return!n||i?i:!(!t||!e)&&r.equalsIgnoreCase(t,e)},
e.isEqualOrParent=function(t,n,i,o){if(void 0===o&&(o=e.nativeSep),t===n)return!0;if(!t||!n)return!1;if(n.length>t.length)return!1;if(i){if(!r.startsWithIgnoreCase(t,n))return!1;if(n.length===t.length)return!0;var a=n.length;return n.charAt(n.length-1)===o&&a--,t.charAt(a)===o}return n.charAt(n.length-1)!==o&&(n+=o),0===t.indexOf(n)},e.isAbsolute=function(t){return n.isWindows?c(t):f(t)},e.isAbsolute_win32=c,e.isAbsolute_posix=f}),define(t[4],e([1,0,2,7,3,5,6]),function(t,e,n,r,i,o,a){"use strict";function u(t){return!t||t.scheme!==o.Schemas.file||!a.isLinux}function s(t,e,r){if(void 0===r&&(r=u(t)),t.scheme===e.scheme){if(t.scheme===o.Schemas.file)return n.isEqualOrParent(f(t),f(e),r);if(function(t,e,n){return t===e||n&&t&&e&&i.equalsIgnoreCase(t,e)}(t.authority,e.authority,r))return n.isEqualOrParent(t.path,e.path,r,"/")}return!1}function c(t){return n.basename(t.path)}function f(t){var e
;return e=t.authority&&t.path.length>1&&"file"===t.scheme?"//"+t.authority+t.path:a.isWindows&&47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?t.path.substr(1):t.path,a.isWindows&&(e=e.replace(/\//g,"\\")),e}Object.defineProperty(e,"__esModule",{value:!0}),e.getComparisonKey=function(t){return u(t)?t.toString().toLowerCase():t.toString()},e.hasToIgnoreCase=u,e.basenameOrAuthority=function(t){return c(t)||t.authority},e.isEqualOrParent=s,e.isEqual=function(t,e,n){return void 0===n&&(n=u(t)),!(t!==e)||!(!t||!e)&&(n?i.equalsIgnoreCase(t.toString(),e.toString()):t.toString()===e.toString())},e.basename=c,e.dirname=function(t){var e=n.dirname(t.path,"/");return t.authority&&e.length&&47!==e.charCodeAt(0)?null:t.with({path:e})},e.joinPath=function(t,e){var i;return i=t.scheme===o.Schemas.file?r.URI.file(n.join(f(t),e)).path:n.join(t.path,e),t.with({path:i})},e.normalizePath=function(t){var e
;return e=t.scheme===o.Schemas.file?r.URI.file(n.normalize(f(t))).path:n.normalize(t.path),t.with({path:e})},e.isAbsolutePath=function(t){return n.isAbsolute(t.path)},e.distinctParents=function(t,e){for(var n=[],r=function(r){var i=e(t[r]);if(t.some(function(t,n){return n!==r&&s(i,e(t))}))return"continue";n.push(t[r])},i=0;i<t.length;i++)r(i);return n},e.isMalformedFileUri=function(t){if(!t.scheme||a.isWindows&&t.scheme.match(/^[a-zA-Z]$/))return r.URI.file((t.scheme?t.scheme+":":"")+t.path)}});var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},r=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),
0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(t[8],e([1,0,10,9]),function(t,e,i,o){"use strict";function a(t,e){var n=0,r=t.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}
return n}function u(t,e){return s(t,e,0,t.length-1,[]),t}function s(t,e,n,r,i){if(!(r<=n)){var o=n+(r-n)/2|0;s(t,e,n,o,i),s(t,e,o+1,r,i),e(t[o],t[o+1])<=0||function(t,e,n,r,i,o){for(var a=n,u=r+1,s=n;s<=i;s++)o[s]=t[s];for(s=n;s<=i;s++)a>r?t[s]=o[u++]:u>i?t[s]=o[a++]:e(o[u],o[a])<0?t[s]=o[u++]:t[s]=o[a++]}(t,e,n,o,r,i)}}function c(t,e,n){function r(t,e,n){var r;if(0!==e||0!==n.length){var o=i[i.length-1];o&&o.start+o.deleteCount===t?(o.deleteCount+=e,(r=o.toInsert).push.apply(r,n)):i.push({start:t,deleteCount:e,toInsert:n})}}for(var i=[],o=0,a=0;;){if(o===t.length){r(o,0,e.slice(a));break}if(a===e.length){r(o,t.length-o,[]);break}var u=t[o],s=e[a],c=n(u,s);0===c?(o+=1,a+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[s]),a+=1)}return i}function f(t,e,n,r,i){for(var o=function(i){var o=t[r];if(e(o,n[i-1])<0){n.pop();var u=a(n,function(t){return e(o,t)<0});n.splice(u,0,o)}},u=n.length;r<i;r++)o(u)}function l(t,e){for(var n=0;n<t.length;n++){if(e(t[n]))return n}return-1}Object.defineProperty(e,"__esModule",{value:!0}),
e.tail=function(t,e){return void 0===e&&(e=0),t[t.length-(1+e)]},e.tail2=function(t){if(0===t.length)throw new Error("Invalid tail call");return[t.slice(0,t.length-1),t[t.length-1]]},e.equals=function(t,e,n){if(void 0===n&&(n=function(t,e){return t===e}),t.length!==e.length)return!1;for(var r=0,i=t.length;r<i;r++)if(!n(t[r],e[r]))return!1;return!0},e.binarySearch=function(t,e,n){for(var r=0,i=t.length-1;r<=i;){var o=(r+i)/2|0,a=n(t[o],e);if(a<0)r=o+1;else{if(!(a>0))return o;i=o-1}}return-(r+1)},e.findFirstInSorted=a,e.mergeSort=u,e.groupBy=function(t,e){for(var n,r=[],i=0,o=u(t.slice(0),e);i<o.length;i++){var a=o[i];n&&0===e(n[0],a)?n.push(a):(n=[a],r.push(n))}return r},e.sortedDiff=c,e.delta=function(t,e,n){for(var r=[],i=[],o=0,a=c(t,e,n);o<a.length;o++){var u=a[o];r.push.apply(r,t.slice(u.start,u.start+u.deleteCount)),i.push.apply(i,u.toInsert)}return{removed:r,added:i}},e.top=function(t,e,n){if(0===n)return[];var r=t.slice(0,n).sort(e);return f(t,e,r,n,t.length),r},e.topAsync=function(t,e,a,u,s){
var c=this;return 0===a?o.TPromise.as([]):new o.TPromise(function(o,l){n(c,void 0,void 0,function(){var n,o,c,l;return r(this,function(r){switch(r.label){case 0:n=t.length,o=t.slice(0,a).sort(e),c=a,l=Math.min(a+u,n),r.label=1;case 1:return c<n?c>a?[4,new Promise(function(t){return setTimeout(t)})]:[3,3]:[3,5];case 2:r.sent(),r.label=3;case 3:if(s&&s.isCancellationRequested)throw i.canceled();f(t,e,o,c,l),r.label=4;case 4:return c=l,l=Math.min(l+u,n),[3,1];case 5:return[2,o]}})}).then(o,l)})},e.coalesce=function(t,e){if(!t&&!e)return t;if(!e)return t.filter(function(t){return!!t});for(var n=0,r=0;r<t.length;r++)t[r]&&(t[n]=t[r],n+=1);t.length=n},e.move=function(t,e,n){t.splice(n,0,t.splice(e,1)[0])},e.isFalsyOrEmpty=function(t){return!Array.isArray(t)||0===t.length},e.distinct=function(t,e){if(!e)return t.filter(function(e,n){return t.indexOf(e)===n});var n=Object.create(null);return t.filter(function(t){var r=e(t);return!n[r]&&(n[r]=!0,!0)})},e.uniqueFilter=function(t){var e=Object.create(null)
;return function(n){var r=t(n);return!e[r]&&(e[r]=!0,!0)}},e.firstIndex=l,e.first=function(t,e,n){void 0===n&&(n=null);var r=l(t,e);return r<0?n:t[r]},e.commonPrefixLength=function(t,e,n){void 0===n&&(n=function(t,e){return t===e});for(var r=0,i=0,o=Math.min(t.length,e.length);i<o&&n(t[i],e[i]);i++)r++;return r},e.flatten=function(t){return[].concat.apply([],t)},e.range=function(t,e){var n="number"==typeof e?t:0;"number"==typeof e?n=t:(n=0,e=t);var r=[];if(n<=e)for(i=n;i<e;i++)r.push(i);else for(var i=n;i>e;i--)r.push(i);return r},e.fill=function(t,e,n){void 0===n&&(n=[]);for(var r=0;r<t;r++)n[r]=e();return n},e.index=function(t,e,n){return void 0===n&&(n=function(t){return t}),t.reduce(function(t,r){var i=e(r);return t[i]=n(r,t[i]),t},Object.create(null))},e.insert=function(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}},e.arrayInsert=function(t,e,n){var r=t.slice(0,e),i=t.slice(e);return r.concat(n,i)},e.shuffle=function(t,e){for(var n="number"==typeof e?function(){
var t=179426549*Math.sin(e++);return t-Math.floor(t)}:Math.random,r=t.length-1;r>0;r-=1){var i=Math.floor(n()*(r+1)),o=t[r];t[r]=t[i],t[i]=o}},e.pushToStart=function(t,e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),t.unshift(e))},e.pushToEnd=function(t,e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),t.push(e))}}),define(t[11],e([1,0,9,7,2,4,3,8,12]),function(t,e,n,r,i,o,a,u,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){this.ctx=t,this.patterns=new Map,this.computePatterns(e)}return t.prototype.computePatterns=function(e){var n=this;e.workspaceFolders.map(function(t){return r.default.parse(t)}).forEach(function(e){var r=t.createPatterns(e);n.patterns.set(e,r)})},t.prototype.getModel=function(t){for(var e=this.ctx.getMirrorModels(),n=0;n<e.length;n++){var r=e[n];if(r.uri.toString()===t)return r}return null},t.prototype.computeLinks=function(e){var r=this.getModel(e);if(r){var i=[],a=r.getValue().split(/\r\n|\r|\n/);return this.patterns.forEach(function(e,n){for(var r={
toResource:function(t){return"string"==typeof t?o.joinPath(n,t):null}},u=0,s=a.length;u<s;u++)i.push.apply(i,t.detectLinks(a[u],u+1,e,r))}),n.TPromise.as(i)}},t.createPatterns=function(t){var e=[],n="file"===t.scheme?t.fsPath:t.path;return u.distinct([i.normalize(n,!0),i.normalize(n,!1)]).forEach(function(t){var n='(?:[^\\s\\(\\):<>"]| [^\\s\\(\\):<>"])+\\.[^\\s\\(\\):<>"]+';e.push(new RegExp(a.escapeRegExpCharacters(t)+"("+n+") on line ((\\d+)(, column (\\d+))?)","gi")),e.push(new RegExp(a.escapeRegExpCharacters(t)+"("+n+"):line ((\\d+)(, column (\\d+))?)","gi")),e.push(new RegExp(a.escapeRegExpCharacters(t)+"("+n+")(\\s?\\((\\d+)(,(\\d+))?)\\)","gi")),e.push(new RegExp(a.escapeRegExpCharacters(t)+'([^\\s\\(\\):<>"]+)(:(\\d+))?(:(\\d+))?',"gi"))}),e},t.detectLinks=function(t,e,n,r){var i=[];return n.forEach(function(n){n.lastIndex=0;for(var o,u=0,c=function(){var n=a.rtrim(o[1],".").replace(/\\/g,"/"),c=void 0;try{c=r.toResource(n).toString()}catch(t){return"continue"}if(o[3]){var f=o[3];if(o[5]){var l=o[5]
;c=a.format("{0}#{1},{2}",c,f,l)}else c=a.format("{0}#{1}",c,f)}var h=a.rtrim(o[0],"."),p=t.indexOf(h,u);u+=p+h.length;var d={startColumn:p+1,startLineNumber:e,endColumn:p+1+h.length,endLineNumber:e};if(i.some(function(t){return s.Range.areIntersectingOrTouching(t.range,d)}))return{value:void 0};i.push({range:d,url:c})};null!==(o=n.exec(t));){var f=c();if("object"==typeof f)return f.value}}),i},t}();e.OutputLinkComputer=c,e.create=function(t,e){return new c(t,e)}})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5944e81f3c46a3938a82c701f96d7a59b074cfdc/core/vs/workbench/parts/output/common/outputLinkComputer.js.map
