"use strict";(self.webpackChunkfeno_web=self.webpackChunkfeno_web||[]).push([["9908"],{3750(e,i,n){n.d(i,{L:()=>t});var o,t,r=n(67947);(o||(o={})).isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id},function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";let i=RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){let o=i.exec(e.id);if(!o)return n(r.W.error);let[,t,s]=o,c=["codicon","codicon-"+t];return s&&c.push("codicon-modifier-"+s.substring(1)),c}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||o.isThemeColor(e.color))};let t=RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){let i=t.exec(e);if(!i)return;let[,n]=i;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,i){let n=e.id,o=n.lastIndexOf("~");return -1!==o&&(n=n.substring(0,o)),i&&(n=`${n}~${i}`),{id:n}},e.getModifier=function(e){let i=e.id.lastIndexOf("~");if(-1!==i)return e.id.substring(i+1)},e.isEqual=function(e,i){return e.id===i.id&&e.color?.id===i.color?.id}}(t||(t={}))},53823(e,i,n){n.r(i),n.d(i,{getIconClasses:()=>f});var o=n(90391),t=n(85792),r=n(45683),s=n(11202),c=n(8596),a=n(3750);let l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function f(e,i,n,f,d){if(a.L.isThemeIcon(d))return[`codicon-${d.id}`,"predefined-file-icon"];if(r.r.isUri(d))return[];let p=f===c.p.ROOT_FOLDER?["rootfolder-icon"]:f===c.p.FOLDER?["folder-icon"]:["file-icon"];if(n){let r;if(n.scheme===o.ny.data)r=t.B6.parseMetaData(n).get(t.B6.META_DATA_LABEL);else{let e=n.path.match(l);e?(r=u(e[2].toLowerCase()),e[1]&&p.push(`${u(e[1].toLowerCase())}-name-dir-icon`)):r=u(n.authority.toLowerCase())}if(f===c.p.ROOT_FOLDER)p.push(`${r}-root-name-folder-icon`);else if(f===c.p.FOLDER)p.push(`${r}-name-folder-icon`);else{if(r){if(p.push(`${r}-name-file-icon`),p.push("name-file-icon"),r.length<=255){let e=r.split(".");for(let i=1;i<e.length;i++)p.push(`${e.slice(i).join(".")}-ext-file-icon`)}p.push("ext-file-icon")}let c=function(e,i,n){if(!n)return null;let r=null;if(n.scheme===o.ny.data){let e=t.B6.parseMetaData(n).get(t.B6.META_DATA_MIME);e&&(r=i.getLanguageIdByMimeType(e))}else{let i=e.getModel(n);i&&(r=i.getLanguageId())}return r&&r!==s.vH?r:i.guessLanguageIdByFilepathOrFirstLine(n)}(e,i,n);c&&p.push(`${u(c)}-lang-file-icon`)}}return p}function u(e){return e.replace(/[\s]/g,"/")}},8596(e,i,n){var o,t;n.d(i,{p:()=>o}),(t=o||(o={}))[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"}}]);