@rainbow-robotics/preview-host 0.11.1 → 0.11.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AmrCapabilityControl.DXbqUARU.js → AmrCapabilityControl.5JPgsSoR.js} +1 -1
- package/dist/assets/{RbLocalizationProvider.CyiYW_3b.js → RbLocalizationProvider.6wdT7WY9.js} +96 -91
- package/dist/assets/{__federation_expose_App.ChvTErGr.js → __federation_expose_App.C_beiC6X.js} +378 -287
- package/dist/assets/__federation_fn_import.DdkEuT6t.js +2 -2
- package/dist/assets/{cssMode.BW-HZxjM.js → cssMode.f4FeviXh.js} +1 -1
- package/dist/assets/{freemarker2.DIklnwGm.js → freemarker2.B9IjV80o.js} +1 -1
- package/dist/assets/{handlebars.BiTLM1f9.js → handlebars.ce13EvEW.js} +1 -1
- package/dist/assets/{html.DIeLL-Vk.js → html.DLKUMOEg.js} +1 -1
- package/dist/assets/{htmlMode.CABMQgoF.js → htmlMode.DTPata5W.js} +1 -1
- package/dist/assets/{index.BhggDhnY.js → index.BPi3qPPC.js} +1 -1
- package/dist/assets/{index.BVp99JXC.js → index.Y2rHkgnC.js} +1 -1
- package/dist/assets/{index.BE31HU2F.js → index.jRC7zSWR.js} +2 -2
- package/dist/assets/{javascript.CMV7xmIO.js → javascript.B2eEkT__.js} +1 -1
- package/dist/assets/{jsonMode.Dt3eBS-I.js → jsonMode.B4ss9Cwa.js} +1 -1
- package/dist/assets/{liquid.D8pYTBOf.js → liquid.B_pWb41O.js} +1 -1
- package/dist/assets/{lspLanguageFeatures.Bdjz3Jpq.js → lspLanguageFeatures.Ugz3kGYC.js} +1 -1
- package/dist/assets/{mdx.DjXOLaJ_.js → mdx.DQDtSef7.js} +1 -1
- package/dist/assets/{python.C1nwxt_J.js → python.qjwY-oSU.js} +1 -1
- package/dist/assets/{razor.DITXP4AP.js → razor.ox5OgvAl.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.DFW5_70I.js → tsMode.DlZ1E1XF.js} +1 -1
- package/dist/assets/{typescript.DvzPm84D.js → typescript.DddPiD6C.js} +1 -1
- package/dist/assets/{useParsedPointCloudData.DuvJxary.js → useParsedPointCloudData.CjDZIVgK.js} +17 -17
- package/dist/assets/{xml.BhdphMBm.js → xml.BzC2RAU8.js} +1 -1
- package/dist/assets/{yaml.Br9iApwp.js → yaml.DLsEIYG7.js} +1 -1
- package/dist/index.html +5 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,l as s}from"./__federation_expose_App.
|
|
1
|
+
import{a as h,l as s}from"./__federation_expose_App.C_beiC6X.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as I}from"./lspLanguageFeatures.Ugz3kGYC.js";import{h as b,i as H,j as y,t as U,k as T}from"./lspLanguageFeatures.Ugz3kGYC.js";const A=120*1e3;class C{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>A&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/assets/css.worker-uch7pA5g.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(a=>e)}}function F(n){const o=[],e=[],a=new C(n);o.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=n;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,n.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),o.push(d(e)),d(o)}function d(n){return{dispose:()=>g(n)}}function g(n){for(;n.length;)n.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,b as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,C as WorkerManager,H as fromPosition,y as fromRange,F as setupMode,U as toRange,T as toTextEdit};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as c}from"./__federation_expose_App.
|
|
1
|
+
import{l as c}from"./__federation_expose_App.C_beiC6X.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
|
|
2
2
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
|
|
3
3
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./__federation_expose_App.
|
|
1
|
+
import{l as e}from"./__federation_expose_App.C_beiC6X.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./__federation_expose_App.
|
|
1
|
+
import{l as e}from"./__federation_expose_App.C_beiC6X.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D,l as t}from"./__federation_expose_App.
|
|
1
|
+
import{a as D,l as t}from"./__federation_expose_App.C_beiC6X.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as _,C as R}from"./lspLanguageFeatures.Ugz3kGYC.js";import{a as E,e as H,d as b,R as y,i as T,j as U,t as x,k as M}from"./lspLanguageFeatures.Ugz3kGYC.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/assets/html.worker-C8KWqYYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...s)=>n.getLanguageServiceWorker(...s);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function A(i){const n=[],e=[],r=new f(i);n.push(r);const s=(...o)=>r.getLanguageServiceWorker(...o);function P(){const{languageId:o,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(o,new v(s))),a.hovers&&e.push(t.registerHoverProvider(o,new d(s))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(o,new l(s))),a.links&&e.push(t.registerLinkProvider(o,new c(s))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(o,new h(s))),a.rename&&e.push(t.registerRenameProvider(o,new p(s))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(o,new u(s))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(o,new m(s))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(o,new w(s))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(o,new _(s)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,E as DefinitionAdapter,H as DiagnosticsAdapter,b as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,y as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,T as fromPosition,U as fromRange,A as setupMode,W as setupMode1,x as toRange,M as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as g,co as F,U as V,a$ as K,x as _,bg as Y,cx as Q,
|
|
1
|
+
import{j as g,co as F,U as V,a$ as K,x as _,bg as Y,cx as Q,e_ as x,el as E,ge as X,de as P,ek as M,cv as Z,gM as u}from"./RbLocalizationProvider.6wdT7WY9.js";import{importShared as k}from"./__federation_fn_import.DdkEuT6t.js";const J=()=>!0,ee=()=>J()&&!L(),L=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,te=()=>ee(),ye=(e,t)=>e?.find(s=>s.point===t),_e=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},Pe=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en},Me=e=>e.toLocaleLowerCase()==="rainbowrobotics",Ue=e=>e===void 0?"—":`${e.toFixed(1)}%`,be=e=>{if(e===void 0)return"—";const t=e/1024/1024;return t<1024?`${Math.round(t)} MB`:`${(t/1024).toFixed(1)} GB`};var y=(e=>(e[e.SUPERVISOR=0]="SUPERVISOR",e[e.ADMIN=1]="ADMIN",e[e.MANAGER=2]="MANAGER",e[e.OPERATOR=3]="OPERATOR",e[e.USER=4]="USER",e[e.GUEST=999999]="GUEST",e))(y||{});const we={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999};function v(e){try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(atob(t))}catch{return null}}function U(e){if(!e)return null;const t=v(e);return t?t.exp*1e3:null}function O(){const e=c();return e?v(e)?.sid??"":""}const o={isAutoLogin:"isAutoLogin",accessToken:"access_token",refreshToken:"refresh_token"};function A(){localStorage.removeItem(o.accessToken),localStorage.removeItem(o.refreshToken),sessionStorage.removeItem(o.accessToken),sessionStorage.removeItem(o.refreshToken)}function h(){return localStorage.getItem(o.isAutoLogin)==="true"}function xe(e){localStorage.setItem(o.isAutoLogin,e?"true":"false")}function c(){return h()?localStorage.getItem(o.accessToken):sessionStorage.getItem(o.accessToken)}function p(){return h()?localStorage.getItem(o.refreshToken):sessionStorage.getItem(o.refreshToken)}function se(e,t,s){s?(localStorage.setItem(o.isAutoLogin,"true"),localStorage.setItem(o.accessToken,e),localStorage.setItem(o.refreshToken,t)):(localStorage.setItem(o.isAutoLogin,"false"),sessionStorage.setItem(o.accessToken,e),sessionStorage.setItem(o.refreshToken,t))}const{useQuery:ne}=await k("@tanstack/react-query"),N="/auth/me",oe=[N],re=()=>z.get(N,{}),ae=({enabled:e})=>ne({queryKey:oe,queryFn:re,enabled:e}),{createContext:ie,useCallback:ce,useContext:ue,useEffect:C,useState:le}=await k("react"),de={id:"GUEST",username:"게스트",role:y.SUPERVISOR,sid:""},G=ie({isLoggedIn:!1,setLoggedIn:()=>{}});let T=null;function D(e){T?.(e)}function ve({children:e}){const[t,s]=le(!!c()),n=ce(r=>{s(r)},[]);return C(()=>(T=n,()=>{T=null}),[n]),g(G.Provider,{value:{isLoggedIn:t,setLoggedIn:n},children:e})}function fe(){const{isLoggedIn:e,setLoggedIn:t}=ue(G),s=c(),n=p(),r=h(),{data:a}=ae({enabled:e}),i=a?{id:a.user_id,username:a.username??a.user_id,role:a.role??y.GUEST,sid:O()}:de;return C(()=>{const f=!!s&&!!n;e!==f&&t(f)},[e,s,n,t]),{isLoggedIn:e,setLoggedIn:t,user:i,accessToken:s,refreshToken:n,isAutoLogin:r,isAtLeast:f=>i.role<=f,hasRole:f=>i.role===f}}const ge=({className:e,open:t,onOpenChange:s,onConfirm:n})=>{const{t:r}=F(),a=()=>{s(!1),n()};return g(Y,{className:_(e,"w-100 max-w-full border-none p-0"),enableDimClose:!1,hideCloseButton:!0,open:t,onOpenChange:s,header:{title:r("login.modal.title.sessionExpired")},footer:g(V,{className:_("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:g(K,{variant:"brand",size:"sm",onClick:a,children:r("login.modal.button.sessionExpiredConfirm")})}),children:g("div",{className:"px-4 pt-3 pb-0",children:g("span",{className:"text-fg-default typo-compact-sm-normal",children:r("login.modal.desc.sessionExpired")})})})},Oe="/muscat/app/log",R="/muscat/app/login",{useMutation:me}=await k("@tanstack/react-query"),he="/logout",$=async e=>z.post(he,{sid:e}),Ne=()=>{const{setLoggedIn:e,user:t}=fe(),s=Q();return me({mutationFn:async()=>{if(t?.sid)return $(t.sid)},onSettled:()=>{A(),e(!1),s(R)}})},pe=x(L()||window.location.hostname,void 0),Se=1e4,Ae=1e4,b=5e3;let j=null,H=null;function Ce(e){j=e}function Ge(e){H=e}let I=!1,B=0;function Ee(){return!!(I||Date.now()-B<Se)}const w=()=>{if(window.location.pathname===R)return;const e=async()=>{const t=O();if(t)try{await $(t)}catch{}A(),D(!1),H?.(R)};X.openModal({component:ge,props:{onConfirm:e,onClose:e},options:{componentName:"SessionExpiredModal"}})};async function W(){if(Ee())return null;const e=p();if(!e)return w(),null;I=!0;try{const t=await E.post(`${pe}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:n}=t.data;return se(s,n,h()),D(!0),j?.("auth",{token:s,autoLogin:h()?"true":"false"}),B=Date.now(),S(),s}catch(t){console.log("Token refresh failed:",t);const s=E.isAxiosError(t)?t.response?.status:null;if(s===403||s===401||s===409)return A(),w(),null;throw t}finally{I=!1}}let m=null;function q(){m&&(clearTimeout(m),m=null)}function S(){q();const e=U(c());if(!e)return;const t=Math.max(e-Date.now(),0),s=Math.min(Math.max(e-Date.now()-Ae,b),t);m=setTimeout(async()=>{try{if(!p())return;!await W()&&p()&&S()}catch{if(c()){const n=U(c());if(n&&n>Date.now()){const r=Math.min(b*2,n-Date.now());r>0&&(m=setTimeout(S,r))}}}},s)}window.addEventListener("storage",e=>{e.key!==o.accessToken&&e.key!==o.refreshToken||(c()&&p()?S():q())});const l={onRequest({config:e}){if(e.url?.endsWith("/login")||e.url?.endsWith("/logout")||e.url?.endsWith("/refresh")||/^https?:\/\//i.test(e.url??"")&&!e.url?.startsWith(e.baseURL??""))return e;const n=c();return n&&e.headers&&(e.headers.Authorization=`Bearer ${n}`),e},onResponse({response:e}){return e?.data},async onResponseError({error:e}){const t=e.config;if(!t)return Promise.reject(e);if(t.url?.endsWith("/login")||t.url?.endsWith("/logout")||t.url?.endsWith("/refresh"))return A(),Promise.reject(e);if(e.response?.status===401&&!t._retry){t._retry=!0;try{const i=await W();return i?(t.headers.Authorization=`Bearer ${i}`,E(t)):Promise.reject(e)}catch(i){return Promise.reject(i)}}const n=e?.response?.data;P("useSimulator")!=="false"&&P("useSimulator");const r=typeof n=="object"&&"message"in n&&typeof n.message=="string"?n.message:M("common.toast.apiError.content"),a=e.status??e.response?.status;return[502,504].includes(a)||e.code==="ERR_NETWORK"||te()||t.skipErrorToast||Z.openToast({title:e.config.url?`[API Error] ${e.config.url}`:M("common.toast.apiError.title"),content:r,type:"basic",variant:"warning"}),Promise.reject(e)}},Te=3e3,d=x(L()||window.location.hostname,Te),z=u({baseURL:`${d}/common`},l),De=u({baseURL:`${d}/manipulate`},l),$e=u({baseURL:`${d}/log`},l),je=u({baseURL:`${d}/amr`},l),He=u({baseURL:`${d}/rby1`},l);u({baseURL:`${d}/deploy`},l);const Be=u({baseURL:`${d}/host`},l);export{S as A,xe as B,A as C,$ as D,ve as E,y as J,Oe as L,d as M,we as R,je as a,c as b,z as c,L as d,_e as e,ye as f,h as g,Be as h,ee as i,J as j,Pe as k,$e as l,De as m,Ue as n,be as o,R as p,Ne as q,He as r,Ce as s,W as t,fe as u,q as v,Ge as w,oe as x,Me as y,se as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as n}from"./__federation_fn_import.DdkEuT6t.js";import{j as s}from"./RbLocalizationProvider.
|
|
1
|
+
import{importShared as n}from"./__federation_fn_import.DdkEuT6t.js";import{j as s}from"./RbLocalizationProvider.6wdT7WY9.js";import d,{c as f}from"./__federation_expose_App.C_beiC6X.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function c(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=c(e);fetch(e.href,r)}})();const{StrictMode:l}=await n("react");f.createRoot(document.getElementById("root")).render(s(l,{children:s(d,{})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a_ as _,a$ as E,b0 as z,av as A,aY as R,b1 as I}from"./useParsedPointCloudData.CjDZIVgK.js";import{aA as ye,b2 as ve,aR as we,aO as Pe,b3 as Te,b4 as ke,b5 as Me,aw as je,b6 as Ae,aB as Oe,b7 as $e,az as Se,b8 as Ce,b9 as Re,ba as De,bb as Le,bc as _e,aM as Ee,aC as ze,aL as Ie,aN as Fe,bd as Ue,be as Ye,bf as Ge,aP as He,bg as Be,bh as Ve,aQ as Xe,bi as qe,aT as Ze,aV as Ke,aU as We,bj as Je,bk as Qe,bl as ea,aS as aa,bm as ta,bn as sa,bo as la,bp as ra,bq as ca,br as na,bs as ia,au as oa,bt as ma,ay as da,aK as pa,aJ as ga,ax as ha,aH as fa,aI as xa,aG as ba,aE as ua,aF as Na,aD as ya}from"./useParsedPointCloudData.CjDZIVgK.js";import{c as T,co as C,H as a,j as e,c1 as c,U as r,gk as F,eK as U,X as Y,cB as G,gl as H,gm as B,gn as V,fm as X,a$ as P,eH as q,eP as Z,go as K,gp as W,gq as J,gr as Q,ex as ee}from"./RbLocalizationProvider.6wdT7WY9.js";/**
|
|
2
2
|
* @license lucide-react v0.486.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -23,4 +23,4 @@ import{b0 as _,b1 as E,b2 as I,ax as A,a_ as R,b3 as z}from"./useParsedPointClou
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const ie=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],D=T("video",ie),ge=({amrStatus:t,robotVersion:i,selectedTool:d="select",onToolChange:s,onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N,onBuildInfoOpenChange:y})=>{const{t:m}=C(),x=g=>{const k=Number(g);return Number.isFinite(k)?k:0},l=t?.locState?.locStatus??"none",n=t?.autoMove??"none",b=t?.obsState??"none",h=t?.operatingMode??"none",p=x(t?.pose?.x),v=x(t?.pose?.y),f=x(t?.pose?.z),O=x(t?.pose?.rz),$=t?.vel?Math.hypot(t.vel.vx??0,t.vel.vy??0):0,S=[{label:m("move.amr.rightPanel.overview.buildInfo.branch"),value:i?.gitBranch},{label:m("move.amr.rightPanel.overview.buildInfo.commit"),value:i?.gitCommit},{label:m("move.amr.rightPanel.overview.buildInfo.buildUser"),value:i?.gitAuthor},{label:m("move.amr.rightPanel.overview.buildInfo.buildDate"),value:i?.buildDate}];return a(c,{className:"overflow-y-auto",children:[e(_,{className:"border-subtler border-b p-3",localizationStatus:l,cursorEnabled:d==="target",onCursorEnabledChange:g=>{s?.(g?"target":"select")},onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.moveStatus.title")}),a("div",{className:"bg-fill-disabled grid grid-cols-2 gap-x-3 gap-y-3 rounded-md px-3 py-3",children:[a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.autoMove")}),a(r,{className:"items-center gap-1.5",children:[e(F,{className:`h-3 w-3 ${E(n)}`}),e("p",{className:"typo-compact-xs2-medium text-fg-default",children:n})]})]}),a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.operationMode")}),e("p",{className:`typo-compact-xs2-medium uppercase ${h==="auto"?"text-fg-information":h==="manual"?"text-fg-caution":"text-fg-subtler"}`,children:h})]})]}),a(r,{className:"bg-fill-disabled items-center justify-between rounded-md p-3",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:m("move.amr.rightPanel.hud.obstacleDetect")}),a(r,{className:"items-center gap-1.5",children:[e(U,{className:`h-3 w-3 ${I(b)}`}),e("p",{className:"typo-compact-sm-semibold text-fg-default",children:b})]})]})]}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("label",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.robotTransform.title")}),a("div",{className:"space-y-2",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle",children:m("move.amr.rightPanel.overview.robotTransform.position")}),a("div",{className:"mt-2 flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-danger uppercase",children:"X"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[p.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-success uppercase",children:"Y"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[v.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-brand uppercase",children:"Z"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[f.toFixed(3)," m"]})]})]}),a("div",{className:"flex items-center gap-4",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.overview.robotTransform.rotation")}),e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.common.speed")})]}),a("div",{className:"flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"typo-compact-xs2-normal text-fg-danger uppercase",children:"RZ"}),a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[O.toFixed(3),"°"]})]}),e("div",{className:"flex min-w-0 flex-1 items-center",children:a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[$.toFixed(2)," m/s"]})})]})]})]}),e(c,{className:"border-subtler border-b px-1",children:e(Y,{handleOpenChange:g=>{y?.(g)},title:e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.buildInfo.title")}),children:e("div",{className:"bg-fill-disabled flex w-full flex-col items-start justify-start gap-2 rounded-md p-2 px-2.5",children:S.map(g=>a("div",{className:"flex w-full items-center justify-between gap-3",children:[e("div",{className:"text-fg-subtle shrink-0 text-xs leading-4 font-normal",children:g.label}),e("div",{className:"text-fg-default min-w-0 truncate text-right text-xs leading-4 font-normal",children:g.value||"-"})]},g.label))})})})]})},he=({systemStatus:t,expandedSections:i,toggleSection:d})=>a("div",{className:"h-full space-y-3 overflow-y-auto",children:[e("h3",{className:"mb-4 text-sm font-semibold tracking-wide text-gray-400 uppercase",children:"Sensor Information"}),a("div",{className:"space-y-2 pb-4",children:[a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar2d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"2D LiDAR"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar2d?"rotate-180":""}`})]}),i.lidar2d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-blue-400"}),a("span",{className:"text-gray-400",children:["LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar3d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-purple-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"3D LiDAR"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar3d?"rotate-180":""}`})]}),i.lidar3d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar3D.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-purple-400"}),a("span",{className:"text-gray-400",children:["3D LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("cameras"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-4 w-4 text-cyan-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"Cameras"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.cameras?"rotate-180":""}`})]}),i.cameras&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.cam.map(s=>a("div",{className:"rounded bg-gray-900 px-3 py-2",children:[a("div",{className:"mb-1.5 flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-3.5 w-3.5 text-cyan-400"}),a("span",{className:"text-gray-400",children:["Camera ",s.index]})]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]}),a("div",{className:"grid grid-cols-2 gap-2 text-xs text-gray-500",children:[a("div",{children:["RGB: ",s.rgb_w,"×",s.rgb_h]}),a("div",{children:["Depth: ",s.depth_w,"×",s.depth_h]})]})]},s.index))})]})]})]}),fe=({systemStatus:t,expandedSections:i,toggleSection:d})=>{const s=(o,u,N)=>o>=N?"text-red-400":o>=u?"text-yellow-400":"text-green-400";return a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("systemResources"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"System Resources"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.systemResources?"rotate-180":""}`})]}),i.systemResources&&a("div",{className:"space-y-3 border-t border-gray-800 bg-gray-900 px-3 py-3",children:[a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-3.5 w-3.5 text-blue-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.cpu,70,85)}`,children:[t.cpu,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.cpu>=85?"bg-red-500":t.cpu>=70?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.cpu}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(te,{className:"h-3.5 w-3.5 text-purple-400"}),e("span",{className:"text-xs text-gray-400",children:"RAM"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.memory,75,90)}`,children:[t.memory,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.memory>=90?"bg-red-500":t.memory>=75?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.memory}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(le,{className:"h-3.5 w-3.5 text-cyan-400"}),e("span",{className:"text-xs text-gray-400",children:"Storage"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.disk,80,95)}`,children:[t.disk,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.disk>=95?"bg-red-500":t.disk>=80?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.disk}%`}})})]}),e("div",{children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(ne,{className:"h-3.5 w-3.5 text-orange-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU Temp"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.temperature,60,75)}`,children:[t.temperature,"°C"]})]})})]})]})},L=t=>{const i=Math.floor(t/3600).toString().padStart(2,"0"),d=Math.floor(t%3600/60).toString().padStart(2,"0"),s=Math.floor(t%60).toString().padStart(2,"0");return`${i}:${d}:${s}`},xe=({mappingStatus:t="idle",elapsedSeconds:i=0,completedKeyframeCount:d=0,totalKeyframePoints:s=0,onStartMapping:o,onStopMapping:u,onSaveMapping:N,onDiscard:y,mapList:m})=>{const{modal:x}=G(),{t:l}=C(),n=t==="recording",b=t==="stopped"||t==="saving"||t==="discarding",h=t==="saving"||t==="discarding",p=d>0,v=l(p?"move.amr.rightPanel.map.mapping.readyToSave":"move.amr.rightPanel.map.mapping.cannotSaveYet"),f=p?null:l("move.amr.rightPanel.map.mapping.noKeyframeReceived"),O=async()=>{try{await o?.()}catch(w){console.error(w)}},$=async()=>{try{await u?.()}catch(w){console.error(w)}},S=async()=>{await y?.()},g=async w=>N?.(w)??{ok:!1,reason:"save-failed"},k=()=>{x({component:z,props:{onSaveMapping:g,completedKeyframeCount:d,totalKeyframePoints:s,durationSeconds:i,existingMapNames:m}})};return a(c,{className:"h-full overflow-y-auto p-3",children:[!n&&!b&&a(c,{className:"flex-1 items-center gap-1 pt-[4rem]",children:[e(H,{className:"text-fg-brand size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-brand",children:l("move.amr.rightPanel.map.mapping.readyToMap")}),a("p",{className:"typo-title-02-bold text-fg-default text-center",children:[l("move.amr.rightPanel.map.mapping.clickStartMapping"),e("br",{}),l("move.amr.rightPanel.map.mapping.toBegin")]})]}),n&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(B,{className:"text-fg-danger size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-danger",children:l("move.amr.rightPanel.map.mapping.recordingActive")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l("move.amr.rightPanel.map.mapping.buildingKeyframes")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.captureStatus")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),b&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(V,{className:`${p?"text-fg-success":"text-fg-danger"} size-8`}),e("p",{className:`typo-compact-xs-semibold ${p?"text-fg-success":"text-fg-danger"}`,children:l(p?"move.amr.rightPanel.map.mapping.readyToSaveTitle":"move.amr.rightPanel.map.mapping.noKeyframeCaptured")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l(p?"move.amr.rightPanel.map.mapping.mapReadyToSave":"move.amr.rightPanel.map.mapping.cannotSaveRecording")}),e("p",{className:"typo-compact-xs-normal text-fg-subtler text-center",children:l(p?"move.amr.rightPanel.map.mapping.canSaveAsNewMap":"move.amr.rightPanel.map.mapping.keyframeRequired")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.result")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),!b&&a(r,{className:"shrink-0 justify-between gap-2",children:[e(P,{onClick:$,disabled:!n||h,className:"gap-1 px-3.5",leadingIcon:e(X,{}),variant:"danger",children:l("move.amr.rightPanel.common.stop")}),e(P,{onClick:O,disabled:n||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l("move.amr.rightPanel.map.mapping.startMapping")})]}),b&&a(c,{className:"shrink-0 gap-2",children:[!p&&e(c,{className:"items-center",children:e("p",{className:"typo-compact-2xs-normal text-fg-danger",children:l("move.amr.rightPanel.map.mapping.keyframeRequired")})}),a(r,{className:"justify-between gap-2",children:[e(P,{onClick:S,disabled:h,className:"gap-1 px-3.5",children:l(t==="discarding"?"move.amr.rightPanel.map.mapping.discarding":"move.amr.rightPanel.common.discard")}),e(P,{onClick:k,disabled:!p||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l(t==="saving"?"move.amr.rightPanel.common.saving":"move.amr.rightPanel.common.save")})]})]})]})},oe=()=>({GOAL:0,ROUTE:0,ALIGN:0}),me=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`,j=t=>`${t<0?"-":"+"}${Math.abs(t).toFixed(1)}m`,be=({currentMapName:t,createdAt:i,lastModified:d,mapCloudCount:s,mapBounds:o,topologyCount:u,nodeTypeCounts:N,onLoadMap:y,loadMapDisabled:m,onDownloadMap:x,downloadMapDisabled:l})=>{const{t:n}=C(),b=o?`${j(o.minX)} ~ ${j(o.maxX)}`:"--",h=o?`${j(o.minY)} ~ ${j(o.maxY)}`:"--",p=o?Math.abs(o.maxX-o.minX)*Math.abs(o.maxY-o.minY):null,v=p===null?"--":`${p.toFixed(1)} m²`,f=N??oe();return a(c,{className:"h-full justify-between overflow-y-auto",children:[a(c,{className:"items-start",children:[a(c,{className:"border-border-subtler w-full gap-1.5 border-b-[1px] p-3",children:[y?a("button",{type:"button",className:"hover:bg-fill-subtlest flex w-full items-center justify-between gap-3 rounded-md p-2 text-left disabled:cursor-not-allowed disabled:opacity-50",disabled:m,onClick:y,children:[a(c,{className:"min-w-0 gap-0.5",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default truncate",children:t})]}),e(Z,{className:"text-fg-subtle size-4 shrink-0"})]}):a(c,{className:"gap-0.5 self-stretch",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default",children:t})]}),a(c,{className:"items-start gap-1 self-stretch",children:[a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.common.created")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:i??"--"})]}),a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.map.info.lastModified")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:d??"--"})]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.statistics")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(q,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.nodes")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:u})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(K,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.pointCloud")})]})}),a("p",{className:"typo-compact-xs2-normal text-fg-default",children:[me(s)," pts"]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.mapBoundaries")}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.xRange")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:b})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.yRange")})})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:h})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.totalArea")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:v})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.menu.topology")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-warning-subtler flex size-6 items-center justify-center rounded-full",children:e(W,{className:"text-fg-warning size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.goal")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.GOAL})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-brand-subtler flex size-6 items-center justify-center rounded-full",children:e(J,{className:"text-fg-brand size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.route")})]})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ROUTE})]}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-success-subtler flex size-6 items-center justify-center rounded-full",children:e(Q,{className:"text-fg-success size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.align")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ALIGN})]})]})]}),x?e(c,{className:"shrink-0 gap-2 p-3",children:e(P,{variant:"brand",size:"sm",leadingIcon:e(ee,{}),disabled:l,onClick:x,children:n("move.amr.rightPanel.map.info.downloadMap")})}):null]})};export{ye as AMRNodeFromTo,ve as ArrowHelper2,we as BottomStatusBar,Pe as CameraStreamsPanel,Te as DEFAULT_EDITOR_CAMERA,ke as DEFAULT_NAVIGATION_TOOLS,Me as DEFAULT_TOOL_GROUPS,je as DEFAULT_TOPOLOGY_FORMAT_VERSION,Ae as DEFAULT_TOPOLOGY_LINK_CREATION_SETTINGS,Oe as DEFAULT_TRANSFORM_TOOLS,$e as DockControl,Se as EDITOR_CAMERA_POSITION_KEY,Ce as EDITOR_MODE,Re as Editor,De as Eraser,Le as EraserTab,_e as EventHandler,Ee as HUDStatusPanel,Ie as LeftToolBar,be as MapInfo,ze as MapLoadDialog,Fe as MapNameHUD,xe as MappingTab,Ue as MarkerControl,he as MonitorSensorsTab,Ye as NODE_TYPE,Ge as NodeManager,He as ObstacleMapPanel,ge as Overview,Be as PathDrawer,Ve as PduInfo,Xe as RobotControlPanel,Ze as RobotManager,qe as SelectedLinkOverlay,Ke as SelectedNodeOverlay,We as SelectedZoneOverlay,Je as Selector,fe as SystemResources,Qe as TaskInformation,ea as TopologyActionFooter,aa as TopologyControl,ta as TopologyLinkTabPanel,sa as TopologyNodeAddSection,la as TopologyNodeEditSection,ra as TopologyNodeTabPanel,ca as TopologyOverviewTabPanel,na as TopologyZoneTabPanel,ia as TrajectoryDrawer,oa as ViewControlsPanel,ma as Viewport,da as WorldStudio,pa as useBottomStatusBar,ga as useEditorKeyboardShortcut,ha as useEditorState,fa as useEditorTool,xa as useEditorViewportOptions,ba as useFileDownload,ua as useOverlayPosition,Na as useParsedPointCloudData,ya as useTopologyLinkCreationSettings};
|
|
26
|
+
*/const ie=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],D=T("video",ie),ge=({amrStatus:t,robotVersion:i,selectedTool:d="select",onToolChange:s,onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N,onBuildInfoOpenChange:y})=>{const{t:m}=C(),x=g=>{const k=Number(g);return Number.isFinite(k)?k:0},l=t?.locState?.locStatus??"none",n=t?.autoMove??"none",b=t?.obsState??"none",h=t?.operatingMode??"none",p=x(t?.pose?.x),v=x(t?.pose?.y),f=x(t?.pose?.z),O=x(t?.pose?.rz),$=t?.vel?Math.hypot(t.vel.vx??0,t.vel.vy??0):0,S=[{label:m("move.amr.rightPanel.overview.buildInfo.branch"),value:i?.gitBranch},{label:m("move.amr.rightPanel.overview.buildInfo.commit"),value:i?.gitCommit},{label:m("move.amr.rightPanel.overview.buildInfo.buildUser"),value:i?.gitAuthor},{label:m("move.amr.rightPanel.overview.buildInfo.buildDate"),value:i?.buildDate}];return a(c,{className:"overflow-y-auto",children:[e(_,{className:"border-subtler border-b p-3",localizationStatus:l,cursorEnabled:d==="target",onCursorEnabledChange:g=>{s?.(g?"target":"select")},onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.moveStatus.title")}),a("div",{className:"bg-fill-disabled grid grid-cols-2 gap-x-3 gap-y-3 rounded-md px-3 py-3",children:[a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.autoMove")}),a(r,{className:"items-center gap-1.5",children:[e(F,{className:`h-3 w-3 ${E(n)}`}),e("p",{className:"typo-compact-xs2-medium text-fg-default",children:n})]})]}),a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.operationMode")}),e("p",{className:`typo-compact-xs2-medium uppercase ${h==="auto"?"text-fg-information":h==="manual"?"text-fg-caution":"text-fg-subtler"}`,children:h})]})]}),a(r,{className:"bg-fill-disabled items-center justify-between rounded-md p-3",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:m("move.amr.rightPanel.hud.obstacleDetect")}),a(r,{className:"items-center gap-1.5",children:[e(U,{className:`h-3 w-3 ${z(b)}`}),e("p",{className:"typo-compact-sm-semibold text-fg-default",children:b})]})]})]}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("label",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.robotTransform.title")}),a("div",{className:"space-y-2",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle",children:m("move.amr.rightPanel.overview.robotTransform.position")}),a("div",{className:"mt-2 flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-danger uppercase",children:"X"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[p.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-success uppercase",children:"Y"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[v.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-brand uppercase",children:"Z"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[f.toFixed(3)," m"]})]})]}),a("div",{className:"flex items-center gap-4",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.overview.robotTransform.rotation")}),e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.common.speed")})]}),a("div",{className:"flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"typo-compact-xs2-normal text-fg-danger uppercase",children:"RZ"}),a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[O.toFixed(3),"°"]})]}),e("div",{className:"flex min-w-0 flex-1 items-center",children:a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[$.toFixed(2)," m/s"]})})]})]})]}),e(c,{className:"border-subtler border-b px-1",children:e(Y,{handleOpenChange:g=>{y?.(g)},title:e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.buildInfo.title")}),children:e("div",{className:"bg-fill-disabled flex w-full flex-col items-start justify-start gap-2 rounded-md p-2 px-2.5",children:S.map(g=>a("div",{className:"flex w-full items-center justify-between gap-3",children:[e("div",{className:"text-fg-subtle shrink-0 text-xs leading-4 font-normal",children:g.label}),e("div",{className:"text-fg-default min-w-0 truncate text-right text-xs leading-4 font-normal",children:g.value||"-"})]},g.label))})})})]})},he=({systemStatus:t,expandedSections:i,toggleSection:d})=>a("div",{className:"h-full space-y-3 overflow-y-auto",children:[e("h3",{className:"mb-4 text-sm font-semibold tracking-wide text-gray-400 uppercase",children:"Sensor Information"}),a("div",{className:"space-y-2 pb-4",children:[a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar2d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"2D LiDAR"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar2d?"rotate-180":""}`})]}),i.lidar2d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-blue-400"}),a("span",{className:"text-gray-400",children:["LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar3d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-purple-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"3D LiDAR"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar3d?"rotate-180":""}`})]}),i.lidar3d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar3D.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-purple-400"}),a("span",{className:"text-gray-400",children:["3D LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("cameras"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-4 w-4 text-cyan-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"Cameras"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.cameras?"rotate-180":""}`})]}),i.cameras&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.cam.map(s=>a("div",{className:"rounded bg-gray-900 px-3 py-2",children:[a("div",{className:"mb-1.5 flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-3.5 w-3.5 text-cyan-400"}),a("span",{className:"text-gray-400",children:["Camera ",s.index]})]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]}),a("div",{className:"grid grid-cols-2 gap-2 text-xs text-gray-500",children:[a("div",{children:["RGB: ",s.rgb_w,"×",s.rgb_h]}),a("div",{children:["Depth: ",s.depth_w,"×",s.depth_h]})]})]},s.index))})]})]})]}),fe=({systemStatus:t,expandedSections:i,toggleSection:d})=>{const s=(o,u,N)=>o>=N?"text-red-400":o>=u?"text-yellow-400":"text-green-400";return a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("systemResources"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"System Resources"})]}),e(A,{className:`h-4 w-4 text-gray-500 transition-transform ${i.systemResources?"rotate-180":""}`})]}),i.systemResources&&a("div",{className:"space-y-3 border-t border-gray-800 bg-gray-900 px-3 py-3",children:[a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-3.5 w-3.5 text-blue-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.cpu,70,85)}`,children:[t.cpu,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.cpu>=85?"bg-red-500":t.cpu>=70?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.cpu}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(te,{className:"h-3.5 w-3.5 text-purple-400"}),e("span",{className:"text-xs text-gray-400",children:"RAM"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.memory,75,90)}`,children:[t.memory,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.memory>=90?"bg-red-500":t.memory>=75?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.memory}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(le,{className:"h-3.5 w-3.5 text-cyan-400"}),e("span",{className:"text-xs text-gray-400",children:"Storage"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.disk,80,95)}`,children:[t.disk,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.disk>=95?"bg-red-500":t.disk>=80?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.disk}%`}})})]}),e("div",{children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(ne,{className:"h-3.5 w-3.5 text-orange-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU Temp"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.temperature,60,75)}`,children:[t.temperature,"°C"]})]})})]})]})},L=t=>{const i=Math.floor(t/3600).toString().padStart(2,"0"),d=Math.floor(t%3600/60).toString().padStart(2,"0"),s=Math.floor(t%60).toString().padStart(2,"0");return`${i}:${d}:${s}`},xe=({mappingStatus:t="idle",elapsedSeconds:i=0,completedKeyframeCount:d=0,totalKeyframePoints:s=0,onStartMapping:o,onStopMapping:u,onSaveMapping:N,onDiscard:y,mapList:m})=>{const{modal:x}=G(),{t:l}=C(),n=t==="recording",b=t==="stopped"||t==="saving"||t==="discarding",h=t==="saving"||t==="discarding",p=d>0,v=l(p?"move.amr.rightPanel.map.mapping.readyToSave":"move.amr.rightPanel.map.mapping.cannotSaveYet"),f=p?null:l("move.amr.rightPanel.map.mapping.noKeyframeReceived"),O=async()=>{try{await o?.()}catch(w){console.error(w)}},$=async()=>{try{await u?.()}catch(w){console.error(w)}},S=async()=>{await y?.()},g=async w=>N?.(w)??{ok:!1,reason:"save-failed"},k=()=>{x({component:I,props:{onSaveMapping:g,completedKeyframeCount:d,totalKeyframePoints:s,durationSeconds:i,existingMapNames:m}})};return a(c,{className:"h-full overflow-y-auto p-3",children:[!n&&!b&&a(c,{className:"flex-1 items-center gap-1 pt-[4rem]",children:[e(H,{className:"text-fg-brand size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-brand",children:l("move.amr.rightPanel.map.mapping.readyToMap")}),a("p",{className:"typo-title-02-bold text-fg-default text-center",children:[l("move.amr.rightPanel.map.mapping.clickStartMapping"),e("br",{}),l("move.amr.rightPanel.map.mapping.toBegin")]})]}),n&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(B,{className:"text-fg-danger size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-danger",children:l("move.amr.rightPanel.map.mapping.recordingActive")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l("move.amr.rightPanel.map.mapping.buildingKeyframes")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.captureStatus")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),b&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(V,{className:`${p?"text-fg-success":"text-fg-danger"} size-8`}),e("p",{className:`typo-compact-xs-semibold ${p?"text-fg-success":"text-fg-danger"}`,children:l(p?"move.amr.rightPanel.map.mapping.readyToSaveTitle":"move.amr.rightPanel.map.mapping.noKeyframeCaptured")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l(p?"move.amr.rightPanel.map.mapping.mapReadyToSave":"move.amr.rightPanel.map.mapping.cannotSaveRecording")}),e("p",{className:"typo-compact-xs-normal text-fg-subtler text-center",children:l(p?"move.amr.rightPanel.map.mapping.canSaveAsNewMap":"move.amr.rightPanel.map.mapping.keyframeRequired")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.result")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),!b&&a(r,{className:"shrink-0 justify-between gap-2",children:[e(P,{onClick:$,disabled:!n||h,className:"gap-1 px-3.5",leadingIcon:e(X,{}),variant:"danger",children:l("move.amr.rightPanel.common.stop")}),e(P,{onClick:O,disabled:n||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l("move.amr.rightPanel.map.mapping.startMapping")})]}),b&&a(c,{className:"shrink-0 gap-2",children:[!p&&e(c,{className:"items-center",children:e("p",{className:"typo-compact-2xs-normal text-fg-danger",children:l("move.amr.rightPanel.map.mapping.keyframeRequired")})}),a(r,{className:"justify-between gap-2",children:[e(P,{onClick:S,disabled:h,className:"gap-1 px-3.5",children:l(t==="discarding"?"move.amr.rightPanel.map.mapping.discarding":"move.amr.rightPanel.common.discard")}),e(P,{onClick:k,disabled:!p||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l(t==="saving"?"move.amr.rightPanel.common.saving":"move.amr.rightPanel.common.save")})]})]})]})},oe=()=>({GOAL:0,ROUTE:0,ALIGN:0}),me=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`,j=t=>`${t<0?"-":"+"}${Math.abs(t).toFixed(1)}m`,be=({currentMapName:t,createdAt:i,lastModified:d,mapCloudCount:s,mapBounds:o,topologyCount:u,nodeTypeCounts:N,onLoadMap:y,loadMapDisabled:m,onDownloadMap:x,downloadMapDisabled:l})=>{const{t:n}=C(),b=o?`${j(o.minX)} ~ ${j(o.maxX)}`:"--",h=o?`${j(o.minY)} ~ ${j(o.maxY)}`:"--",p=o?Math.abs(o.maxX-o.minX)*Math.abs(o.maxY-o.minY):null,v=p===null?"--":`${p.toFixed(1)} m²`,f=N??oe();return a(c,{className:"h-full justify-between overflow-y-auto",children:[a(c,{className:"items-start",children:[a(c,{className:"border-border-subtler w-full gap-1.5 border-b-[1px] p-3",children:[y?a("button",{type:"button",className:"hover:bg-fill-subtlest flex w-full items-center justify-between gap-3 rounded-md p-2 text-left disabled:cursor-not-allowed disabled:opacity-50",disabled:m,onClick:y,children:[a(c,{className:"min-w-0 gap-0.5",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default truncate",children:t})]}),e(q,{className:"text-fg-subtle size-4 shrink-0"})]}):a(c,{className:"gap-0.5 self-stretch",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default",children:t})]}),a(c,{className:"items-start gap-1 self-stretch",children:[a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.common.created")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:i??"--"})]}),a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.map.info.lastModified")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:d??"--"})]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.statistics")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(Z,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.nodes")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:u})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(K,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.pointCloud")})]})}),a("p",{className:"typo-compact-xs2-normal text-fg-default",children:[me(s)," pts"]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.mapBoundaries")}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.xRange")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:b})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.yRange")})})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:h})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.totalArea")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:v})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.menu.topology")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-warning-subtler flex size-6 items-center justify-center rounded-full",children:e(W,{className:"text-fg-warning size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.goal")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.GOAL})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-brand-subtler flex size-6 items-center justify-center rounded-full",children:e(J,{className:"text-fg-brand size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.route")})]})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ROUTE})]}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-success-subtler flex size-6 items-center justify-center rounded-full",children:e(Q,{className:"text-fg-success size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.align")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ALIGN})]})]})]}),x?e(c,{className:"shrink-0 gap-2 p-3",children:e(P,{variant:"brand",size:"sm",leadingIcon:e(ee,{}),disabled:l,onClick:x,children:n("move.amr.rightPanel.map.info.downloadMap")})}):null]})};export{ye as AMRNodeFromTo,ve as ArrowHelper2,we as BottomStatusBar,Pe as CameraStreamsPanel,Te as DEFAULT_EDITOR_CAMERA,ke as DEFAULT_NAVIGATION_TOOLS,Me as DEFAULT_TOOL_GROUPS,je as DEFAULT_TOPOLOGY_FORMAT_VERSION,Ae as DEFAULT_TOPOLOGY_LINK_CREATION_SETTINGS,Oe as DEFAULT_TRANSFORM_TOOLS,$e as DockControl,Se as EDITOR_CAMERA_POSITION_KEY,Ce as EDITOR_MODE,Re as Editor,De as Eraser,Le as EraserTab,_e as EventHandler,Ee as HUDStatusPanel,ze as LeftToolBar,be as MapInfo,Ie as MapLoadDialog,Fe as MapNameHUD,xe as MappingTab,Ue as MarkerControl,he as MonitorSensorsTab,Ye as NODE_TYPE,Ge as NodeManager,He as ObstacleMapPanel,ge as Overview,Be as PathDrawer,Ve as PduInfo,Xe as RobotControlPanel,qe as RobotManager,Ze as SelectedLinkOverlay,Ke as SelectedNodeOverlay,We as SelectedZoneOverlay,Je as Selector,fe as SystemResources,Qe as TaskInformation,ea as TopologyActionFooter,aa as TopologyControl,ta as TopologyLinkTabPanel,sa as TopologyNodeAddSection,la as TopologyNodeEditSection,ra as TopologyNodeTabPanel,ca as TopologyOverviewTabPanel,na as TopologyZoneTabPanel,ia as TrajectoryDrawer,oa as ViewControlsPanel,ma as Viewport,da as WorldStudio,pa as useBottomStatusBar,ga as useEditorKeyboardShortcut,ha as useEditorState,fa as useEditorTool,xa as useEditorViewportOptions,ba as useFileDownload,ua as useOverlayPosition,Na as useParsedPointCloudData,ya as useTopologyLinkCreationSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{conf as t,language as e}from"./typescript.
|
|
1
|
+
import{conf as t,language as e}from"./typescript.DddPiD6C.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P,l as _,e as B}from"./__federation_expose_App.
|
|
1
|
+
import{a as P,l as _,e as B}from"./__federation_expose_App.C_beiC6X.js";import{f as Q,g as y,C as J,H as Y,b as G,d as X,F as Z,S as $,e as K}from"./lspLanguageFeatures.Ugz3kGYC.js";import{a as Ae,D as Oe,h as Ie,R as Ne,c as Ee,i as Le,j as Ue,t as De,k as Be}from"./lspLanguageFeatures.Ugz3kGYC.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/assets/json.worker-MyEhrfQg.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,u="",g=0,l=16,o=0,p=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,u="",g=0,l=16,c=0}function E(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
|
|
2
2
|
`;break;case 114:s+="\r";break;case 116:s+=" ";break;case 117:const f=O(4);f>=0?s+=String.fromCharCode(f):c=4;break;default:c=5}m=n;continue}if(a>=0&&a<=31)if(I(a)){s+=e.substring(m,n),c=2;break}else c=6;n++}return s}function D(){if(u="",c=0,g=n,p=o,v=w,n>=t)return g=t,l=17;let s=e.charCodeAt(n);if(L(s)){do n++,u+=String.fromCharCode(s),s=e.charCodeAt(n);while(L(s));return l=15}if(I(s))return n++,u+=String.fromCharCode(s),s===13&&e.charCodeAt(n)===10&&(n++,u+=`
|
|
3
3
|
`),o++,w=n,l=14;switch(s){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,u=q(),l=10;case 47:const m=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<t&&!I(e.charCodeAt(n));)n++;return u=e.substring(m,n),l=12}if(e.charCodeAt(n+1)===42){n+=2;const a=t-1;let r=!1;for(;n<a;){const f=e.charCodeAt(n);if(f===42&&e.charCodeAt(n+1)===47){n+=2,r=!0;break}n++,I(f)&&(f===13&&e.charCodeAt(n)===10&&n++,o++,w=n)}return r||(n++,c=1),u=e.substring(m,n),l=13}return u+=String.fromCharCode(s),n++,l=16;case 45:if(u+=String.fromCharCode(s),n++,n===t||!T(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u+=E(),l=11;default:for(;n<t&&d(s);)n++,s=e.charCodeAt(n);if(g!==n){switch(u=e.substring(g,n),u){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return u+=String.fromCharCode(s),n++,l=16}}function d(s){if(L(s)||I(s))return!1;switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function z(){let s;do s=D();while(s>=12&&s<=15);return s}return{setPosition:U,getPosition:()=>n,scan:i?z:D,getToken:()=>l,getTokenValue:()=>u,getTokenOffset:()=>g,getTokenLength:()=>n-g,getTokenStartLine:()=>p,getTokenStartCharacter:()=>g-v,getTokenError:()=>c}}function L(e){return e===32||e===9}function I(e){return e===10||e===13}function T(e){return e>=48&&e<=57}var R;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(R||(R={}));new Array(20).fill(0).map((e,i)=>" ".repeat(i));const A=200;new Array(A).fill(0).map((e,i)=>`
|
|
4
4
|
`+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>"\r"+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>`\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./__federation_expose_App.
|
|
1
|
+
import{l as e}from"./__federation_expose_App.C_beiC6X.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{n as conf,o as language};
|