@rainbow-robotics/preview-host 0.10.2-dev.0 → 0.11.1

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.
Files changed (39) hide show
  1. package/dist/assets/{AmrCapabilityControl.BGv3h4xY.js → AmrCapabilityControl.DXbqUARU.js} +1 -1
  2. package/dist/assets/{RbLocalizationProvider.5dH3Siz2.js → RbLocalizationProvider.CyiYW_3b.js} +108 -108
  3. package/dist/assets/{__federation_expose_App.DdlV3J8G.js → __federation_expose_App.ChvTErGr.js} +293 -275
  4. package/dist/assets/__federation_fn_import.DdkEuT6t.js +2 -2
  5. package/dist/assets/{cssMode.HpvLEc51.js → cssMode.BW-HZxjM.js} +1 -1
  6. package/dist/assets/{freemarker2.BX0akkIy.js → freemarker2.DIklnwGm.js} +1 -1
  7. package/dist/assets/{handlebars.DLTsEWFF.js → handlebars.BiTLM1f9.js} +1 -1
  8. package/dist/assets/{html.BMVc4wM-.js → html.DIeLL-Vk.js} +1 -1
  9. package/dist/assets/{htmlMode.DUH2JiHh.js → htmlMode.CABMQgoF.js} +1 -1
  10. package/dist/assets/index.BE31HU2F.js +26 -0
  11. package/dist/assets/{index.BBUNR3gX.js → index.BVp99JXC.js} +1 -1
  12. package/dist/assets/index.BhggDhnY.js +1 -0
  13. package/dist/assets/{javascript.CObAj1dY.js → javascript.CMV7xmIO.js} +1 -1
  14. package/dist/assets/{jsonMode.DfPdOF26.js → jsonMode.Dt3eBS-I.js} +1 -1
  15. package/dist/assets/{liquid.BsKSdLe_.js → liquid.D8pYTBOf.js} +1 -1
  16. package/dist/assets/{lspLanguageFeatures.BSk-wWsN.js → lspLanguageFeatures.Bdjz3Jpq.js} +1 -1
  17. package/dist/assets/{mdx.DDymSG1m.js → mdx.DjXOLaJ_.js} +1 -1
  18. package/dist/assets/{python.BGsjTneS.js → python.C1nwxt_J.js} +1 -1
  19. package/dist/assets/{razor.m1Wlt6aJ.js → razor.DITXP4AP.js} +1 -1
  20. package/dist/assets/remoteEntry.js +1 -1
  21. package/dist/assets/{tsMode.syBErB-g.js → tsMode.DFW5_70I.js} +1 -1
  22. package/dist/assets/{typescript.Cab8_qEX.js → typescript.DvzPm84D.js} +1 -1
  23. package/dist/assets/{useFileDownload.D4PWNCIJ.js → useParsedPointCloudData.DuvJxary.js} +201 -200
  24. package/dist/assets/{xml.C5Rknxij.js → xml.BhdphMBm.js} +1 -1
  25. package/dist/assets/{yaml.CrgePkz0.js → yaml.Br9iApwp.js} +1 -1
  26. package/dist/imgs/nexus/forms/weaving/weave_type_1.png +0 -0
  27. package/dist/imgs/nexus/forms/weaving/weave_type_2.png +0 -0
  28. package/dist/imgs/nexus/forms/weaving/weave_type_3.png +0 -0
  29. package/dist/imgs/nexus/forms/weaving/weave_type_4.png +0 -0
  30. package/dist/imgs/nexus/forms/weaving/weave_type_5.png +0 -0
  31. package/dist/imgs/nexus/forms/weaving/weave_type_6.png +0 -0
  32. package/dist/imgs/nexus/forms/weaving/weave_type_7.png +0 -0
  33. package/dist/imgs/nexus/forms/weaving/weave_type_8.png +0 -0
  34. package/dist/index.html +5 -5
  35. package/package.json +1 -1
  36. package/dist/assets/index.WghEXhVK.js +0 -26
  37. package/dist/assets/index.f_Fm6mkB.js +0 -1
  38. package/dist/assets/parseLasPointCloud.worker-BZeU-mt8.js +0 -1
  39. package/dist/assets/smoothJogHeartbeat.worker-B-WTm__D.js +0 -2
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.DdlV3J8G.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
1
+ import{l as e}from"./__federation_expose_App.ChvTErGr.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.DdlV3J8G.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
1
+ import{l as e}from"./__federation_expose_App.ChvTErGr.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
package/dist/index.html CHANGED
@@ -6,16 +6,16 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Rainbow Robotics System</title>
8
8
  <script type="importmap">{"imports":{"react":"/plugin-shared/react.js","react/jsx-runtime":"/plugin-shared/react_jsx-runtime.js","react/jsx-dev-runtime":"/plugin-shared/react_jsx-dev-runtime.js","react-dom":"/plugin-shared/react-dom.js","react-dom/client":"/plugin-shared/react-dom_client.js","@rainbow-robotics/plugin-ui/react":"/plugin-shared/plugin-ui_react.js","@rainbow-robotics/plugin-ui/sdk":"/plugin-shared/plugin-ui_sdk.js","@rainbow-robotics/plugin-ui/host-ui":"/plugin-shared/plugin-ui_host-ui.js","@rainbow-robotics/plugin-ui/ws":"/plugin-shared/plugin-ui_ws.js"}}</script>
9
- <script type="module" crossorigin src="/assets/index.BBUNR3gX.js"></script>
9
+ <script type="module" crossorigin src="/assets/index.BVp99JXC.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="/assets/__federation_fn_import.DdkEuT6t.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/index.P6snMalu.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime.CBqCNPYB.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/emotion-styled-base.browser.esm.BIcjgOzg.js">
14
- <link rel="modulepreload" crossorigin href="/assets/RbLocalizationProvider.5dH3Siz2.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/RbLocalizationProvider.CyiYW_3b.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/index.B3zY1kf7.js">
16
- <link rel="modulepreload" crossorigin href="/assets/useFileDownload.D4PWNCIJ.js">
17
- <link rel="modulepreload" crossorigin href="/assets/index.f_Fm6mkB.js">
18
- <link rel="modulepreload" crossorigin href="/assets/__federation_expose_App.DdlV3J8G.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/useParsedPointCloudData.DuvJxary.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/index.BhggDhnY.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/__federation_expose_App.ChvTErGr.js">
19
19
 
20
20
 
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-robotics/preview-host",
3
- "version": "0.10.2-dev.0",
3
+ "version": "0.11.1",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -1,26 +0,0 @@
1
- import{aw as k,aZ as j,a$ as _}from"./useFileDownload.D4PWNCIJ.js";import{aB as ge,b0 as he,aS as fe,aP as xe,b1 as be,b2 as Ne,b3 as ye,ax as ue,b4 as ve,aC as we,b5 as Pe,aA as Te,b6 as ke,b7 as Me,b8 as je,b9 as Oe,ba as Ae,aN as $e,aD as Re,aM as Se,aO as De,bb as Le,bc as Ce,bd as _e,aQ as Ee,be as ze,bf as Ie,bg as Fe,aR as Ue,bh as Ge,aU as Ve,aW as He,aV as Ye,bi as qe,bj as Be,bk as Ke,aT as Xe,bl as Ze,bm as We,bn as Je,bo as Qe,bp as ea,bq as aa,br as ta,aF as sa,bs as la,az as ra,aL as na,aK as ca,ay as ia,aI as oa,aJ as ma,aH as da,aG as pa,aE as ga}from"./useFileDownload.D4PWNCIJ.js";import{c as y,H as a,j as e,cA as E,co as $,c1 as n,gd as z,ge as I,U as r,gf as F,ff as U,a$ as N,eA as G,eI as V,gg as H,gh as Y,gi as q,gj as B,eq as K}from"./RbLocalizationProvider.5dH3Siz2.js";/**
2
- * @license lucide-react v0.486.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const X=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Z=y("activity",X);/**
7
- * @license lucide-react v0.486.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const W=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],J=y("hard-drive",W);/**
12
- * @license lucide-react v0.486.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const Q=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],P=y("radar",Q);/**
17
- * @license lucide-react v0.486.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ee=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],ae=y("thermometer",ee);/**
22
- * @license lucide-react v0.486.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const te=[["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"}]],O=y("video",te),ce=({systemStatus:t,expandedSections:i,toggleSection:m})=>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:()=>m("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(P,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"2D LiDAR"})]}),e(k,{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(P,{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:()=>m("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(P,{className:"h-4 w-4 text-purple-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"3D LiDAR"})]}),e(k,{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(P,{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:()=>m("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(O,{className:"h-4 w-4 text-cyan-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"Cameras"})]}),e(k,{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(O,{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))})]})]})]}),ie=({systemStatus:t,expandedSections:i,toggleSection:m})=>{const s=(o,f,x)=>o>=x?"text-red-400":o>=f?"text-yellow-400":"text-green-400";return a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>m("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(j,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"System Resources"})]}),e(k,{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(j,{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(Z,{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(J,{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(ae,{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"]})]})})]})]})},A=t=>{const i=Math.floor(t/3600).toString().padStart(2,"0"),m=Math.floor(t%3600/60).toString().padStart(2,"0"),s=Math.floor(t%60).toString().padStart(2,"0");return`${i}:${m}:${s}`},oe=({mappingStatus:t="idle",elapsedSeconds:i=0,completedKeyframeCount:m=0,totalKeyframePoints:s=0,onStartMapping:o,onStopMapping:f,onSaveMapping:x,onDiscard:u,mapList:M})=>{const{modal:v}=E(),{t:l}=$(),c=t==="recording",g=t==="stopped"||t==="saving"||t==="discarding",h=t==="saving"||t==="discarding",d=m>0,w=l(d?"move.amr.rightPanel.map.mapping.readyToSave":"move.amr.rightPanel.map.mapping.cannotSaveYet"),p=d?null:l("move.amr.rightPanel.map.mapping.noKeyframeReceived"),R=async()=>{try{await o?.()}catch(b){console.error(b)}},S=async()=>{try{await f?.()}catch(b){console.error(b)}},D=async()=>{await u?.()},L=async b=>x?.(b)??{ok:!1,reason:"save-failed"},C=()=>{v({component:_,props:{onSaveMapping:L,completedKeyframeCount:m,totalKeyframePoints:s,durationSeconds:i,existingMapNames:M}})};return a(n,{className:"h-full overflow-y-auto p-3",children:[!c&&!g&&a(n,{className:"flex-1 items-center gap-1 pt-[4rem]",children:[e(z,{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")]})]}),c&&a(n,{className:"flex-1 pt-[4rem]",children:[a(n,{className:"items-center gap-1",children:[e(I,{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(n,{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(n,{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 ${d?"text-fg-success":"text-fg-danger"}`,children:w})]}),p&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:p}),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:m.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:A(i)})]})]})]})]}),g&&a(n,{className:"flex-1 pt-[4rem]",children:[a(n,{className:"items-center gap-1",children:[e(F,{className:`${d?"text-fg-success":"text-fg-danger"} size-8`}),e("p",{className:`typo-compact-xs-semibold ${d?"text-fg-success":"text-fg-danger"}`,children:l(d?"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(d?"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(d?"move.amr.rightPanel.map.mapping.canSaveAsNewMap":"move.amr.rightPanel.map.mapping.keyframeRequired")})]}),a(n,{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(n,{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 ${d?"text-fg-success":"text-fg-danger"}`,children:w})]}),p&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:p}),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:m.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:A(i)})]})]})]})]}),!g&&a(r,{className:"shrink-0 justify-between gap-2",children:[e(N,{onClick:S,disabled:!c||h,className:"gap-1 px-3.5",leadingIcon:e(U,{}),variant:"danger",children:l("move.amr.rightPanel.common.stop")}),e(N,{onClick:R,disabled:c||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l("move.amr.rightPanel.map.mapping.startMapping")})]}),g&&a(n,{className:"shrink-0 gap-2",children:[!d&&e(n,{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(N,{onClick:D,disabled:h,className:"gap-1 px-3.5",children:l(t==="discarding"?"move.amr.rightPanel.map.mapping.discarding":"move.amr.rightPanel.common.discard")}),e(N,{onClick:C,disabled:!d||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")})]})]})]})},se=()=>({GOAL:0,ROUTE:0,ALIGN:0}),le=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`,T=t=>`${t<0?"-":"+"}${Math.abs(t).toFixed(1)}m`,me=({currentMapName:t,createdAt:i,lastModified:m,mapCloudCount:s,mapBounds:o,topologyCount:f,nodeTypeCounts:x,onLoadMap:u,loadMapDisabled:M,onDownloadMap:v,downloadMapDisabled:l})=>{const{t:c}=$(),g=o?`${T(o.minX)} ~ ${T(o.maxX)}`:"--",h=o?`${T(o.minY)} ~ ${T(o.maxY)}`:"--",d=o?Math.abs(o.maxX-o.minX)*Math.abs(o.maxY-o.minY):null,w=d===null?"--":`${d.toFixed(1)} m²`,p=x??se();return a(n,{className:"h-full justify-between overflow-y-auto",children:[a(n,{className:"items-start",children:[a(n,{className:"border-border-subtler w-full gap-1.5 border-b-[1px] p-3",children:[u?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:u,children:[a(n,{className:"min-w-0 gap-0.5",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default truncate",children:t})]}),e(G,{className:"text-fg-subtle size-4 shrink-0"})]}):a(n,{className:"gap-0.5 self-stretch",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default",children:t})]}),a(n,{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:c("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:c("move.amr.rightPanel.map.info.lastModified")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:m??"--"})]})]})]}),a(n,{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:c("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(V,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.map.info.nodes")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f})]}),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(H,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.map.info.pointCloud")})]})}),a("p",{className:"typo-compact-xs2-normal text-fg-default",children:[le(s)," pts"]})]})]}),a(n,{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:c("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:c("move.amr.rightPanel.map.info.xRange")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:g})]}),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:c("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:c("move.amr.rightPanel.map.info.totalArea")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:w})]})]}),a(n,{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:c("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(Y,{className:"text-fg-warning size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.topology.nodeType.goal")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:p.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(q,{className:"text-fg-brand size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.topology.nodeType.route")})]})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:p.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(B,{className:"text-fg-success size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:c("move.amr.rightPanel.topology.nodeType.align")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:p.ALIGN})]})]})]}),v?e(n,{className:"shrink-0 gap-2 p-3",children:e(N,{variant:"brand",size:"sm",leadingIcon:e(K,{}),disabled:l,onClick:v,children:c("move.amr.rightPanel.map.info.downloadMap")})}):null]})};export{ge as AMRNodeFromTo,he as ArrowHelper2,fe as BottomStatusBar,xe as CameraStreamsPanel,be as DEFAULT_EDITOR_CAMERA,Ne as DEFAULT_NAVIGATION_TOOLS,ye as DEFAULT_TOOL_GROUPS,ue as DEFAULT_TOPOLOGY_FORMAT_VERSION,ve as DEFAULT_TOPOLOGY_LINK_CREATION_SETTINGS,we as DEFAULT_TRANSFORM_TOOLS,Pe as DockControl,Te as EDITOR_CAMERA_POSITION_KEY,ke as EDITOR_MODE,Me as Editor,je as Eraser,Oe as EraserTab,Ae as EventHandler,$e as HUDStatusPanel,Re as LeftToolBar,me as MapInfo,Se as MapLoadDialog,De as MapNameHUD,oe as MappingTab,Le as MarkerControl,ce as MonitorSensorsTab,Ce as NODE_TYPE,_e as NodeManager,Ee as ObstacleMapPanel,ze as Overview,Ie as PathDrawer,Fe as PduInfo,Ue as RobotControlPanel,Ge as RobotManager,Ve as SelectedLinkOverlay,He as SelectedNodeOverlay,Ye as SelectedZoneOverlay,qe as Selector,ie as SystemResources,Be as TaskInformation,Ke as TopologyActionFooter,Xe as TopologyControl,Ze as TopologyLinkTabPanel,We as TopologyNodeAddSection,Je as TopologyNodeEditSection,Qe as TopologyNodeTabPanel,ea as TopologyOverviewTabPanel,aa as TopologyZoneTabPanel,ta as TrajectoryDrawer,sa as ViewControlsPanel,la as Viewport,ra as WorldStudio,na as useBottomStatusBar,ca as useEditorKeyboardShortcut,ia as useEditorState,oa as useEditorTool,ma as useEditorViewportOptions,da as useFileDownload,pa as useOverlayPosition,ga as useTopologyLinkCreationSettings};
@@ -1 +0,0 @@
1
- import{j as g,co as F,U as z,a$ as V,x as _,bg as K,cw as Y,eh as E,g7 as Q,db as P,eg as M,cu as X,gF as u}from"./RbLocalizationProvider.5dH3Siz2.js";import{importShared as k}from"./__federation_fn_import.DdkEuT6t.js";const Z=()=>!0,J=()=>Z()&&!L(),L=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,ee=()=>J(),Le=(e,t)=>e?.find(s=>s.point===t),ye=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},_e=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en},Pe=e=>e.toLocaleLowerCase()==="rainbowrobotics",Me=e=>e===void 0?"—":`${e.toFixed(1)}%`,Ue=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 be={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999};function x(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=x(e);return t?t.exp*1e3:null}function v(){const e=c();return e?x(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 we(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 te(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:se}=await k("@tanstack/react-query"),O="/auth/me",ne=[O],oe=()=>q.get(O,{}),re=({enabled:e})=>se({queryKey:ne,queryFn:oe,enabled:e}),{createContext:ae,useCallback:ie,useContext:ce,useEffect:N,useState:ue}=await k("react"),le={id:"GUEST",username:"게스트",role:y.SUPERVISOR,sid:""},C=ae({isLoggedIn:!1,setLoggedIn:()=>{}});let T=null;function $(e){T?.(e)}function xe({children:e}){const[t,s]=ue(!!c()),n=ie(r=>{s(r)},[]);return N(()=>(T=n,()=>{T=null}),[n]),g(C.Provider,{value:{isLoggedIn:t,setLoggedIn:n},children:e})}function de(){const{isLoggedIn:e,setLoggedIn:t}=ce(C),s=c(),n=p(),r=h(),{data:a}=re({enabled:e}),i=a?{id:a.user_id,username:a.username??a.user_id,role:a.role??y.GUEST,sid:v()}:le;return N(()=>{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 fe=({className:e,open:t,onOpenChange:s,onConfirm:n})=>{const{t:r}=F(),a=()=>{s(!1),n()};return g(K,{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(z,{className:_("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:g(V,{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")})})})},ve="/muscat/app/log",R="/muscat/app/login",{useMutation:ge}=await k("@tanstack/react-query"),me="/logout",G=async e=>q.post(me,{sid:e}),Oe=()=>{const{setLoggedIn:e,user:t}=de(),s=Y();return ge({mutationFn:async()=>{if(t?.sid)return G(t.sid)},onSettled:()=>{A(),e(!1),s(R)}})},he=`http://${L()||window.location.hostname}:undefined`,pe=1e4,Se=1e4,b=5e3;let D=null,j=null;function Ne(e){D=e}function Ce(e){j=e}let I=!1,H=0;function Ae(){return!!(I||Date.now()-H<pe)}const w=()=>{if(window.location.pathname===R)return;const e=async()=>{const t=v();if(t)try{await G(t)}catch{}A(),$(!1),j?.(R)};Q.openModal({component:fe,props:{onConfirm:e,onClose:e},options:{componentName:"SessionExpiredModal"}})};async function B(){if(Ae())return null;const e=p();if(!e)return w(),null;I=!0;try{const t=await E.post(`${he}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:n}=t.data;return te(s,n,h()),$(!0),D?.("auth",{token:s,autoLogin:h()?"true":"false"}),H=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 W(){m&&(clearTimeout(m),m=null)}function S(){W();const e=U(c());if(!e)return;const t=Math.max(e-Date.now(),0),s=Math.min(Math.max(e-Date.now()-Se,b),t);m=setTimeout(async()=>{try{if(!p())return;!await B()&&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():W())});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 B();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"||ee()||t.skipErrorToast||X.openToast({title:e.config.url?`[API Error] ${e.config.url}`:M("common.toast.apiError.title"),content:r,type:"basic",variant:"warning"}),Promise.reject(e)}},Ee=3e3,d=`http://${L()||window.location.hostname}:${Ee}`,q=u({baseURL:`${d}/common`},l),$e=u({baseURL:`${d}/manipulate`},l),Ge=u({baseURL:`${d}/log`},l),De=u({baseURL:`${d}/amr`},l),je=u({baseURL:`${d}/rby1`},l);u({baseURL:`${d}/deploy`},l);const He=u({baseURL:`${d}/host`},l);export{we as A,A as B,G as C,He as D,xe as E,y as J,ve as L,d as M,be as R,De as a,c as b,q as c,L as d,ye as e,Le as f,h as g,Z as h,J as i,_e as j,Me as k,Ge as l,$e as m,Ue as n,R as o,Oe as p,Ne as q,je as r,B as s,W as t,de as u,Ce as v,ne as w,Pe as x,te as y,S as z};
@@ -1 +0,0 @@
1
- const X="LASF";const R=(e,t,r)=>{let o="";for(let s=0;s<r;s+=1)o+=String.fromCharCode(e.getUint8(t+s));return o},m=(e,t)=>{const r=e.getBigUint64(t,!0);if(r>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("LAS point count exceeds Number.MAX_SAFE_INTEGER.");return Number(r)},D=e=>{switch(e){case 2:return 20;case 3:return 28;case 7:return 30;case 8:return 30;default:return null}},f=e=>Math.min(1,Math.max(0,e)),c=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,w=e=>{const t=f(Math.sqrt(e/255));return{r:f(.13572138+t*(4.6153926+t*(-42.66032258+t*(132.13108234+t*(-152.94239396+t*59.28637943))))),g:f(.09140261+t*(2.19418839+t*(4.84296658+t*(-14.18503333+t*(4.27729857+t*2.82956604))))),b:f(.1066733+t*(12.64194608+t*(-60.58204836+t*(110.36276771+t*(-89.90310912+t*27.34824973)))))}},U=e=>({minX:e.getFloat64(187,!0),minY:e.getFloat64(203,!0),minZ:e.getFloat64(219,!0),maxX:e.getFloat64(179,!0),maxY:e.getFloat64(195,!0),maxZ:e.getFloat64(211,!0)}),y=e=>{const t=new DataView(e);if(t.byteLength<227)throw new Error("Invalid LAS buffer: header is too short.");if(R(t,0,4)!==X)throw new Error("Invalid LAS buffer: LASF signature not found.");const r=t.getUint16(94,!0),o=t.getUint32(96,!0),F=t.getUint8(104)&63,O=t.getUint16(105,!0),N=t.getUint32(107,!0),_=N>0&&F<=5?N:m(t,247);if(r>o||o>t.byteLength)throw new Error("Invalid LAS buffer: point data offset is out of range.");if(O<20)throw new Error("Invalid LAS buffer: point record length is too short.");if(o+_*O>t.byteLength)throw new Error("Invalid LAS buffer: point records exceed buffer length.");const d=t.getFloat64(131,!0),M=t.getFloat64(139,!0),h=t.getFloat64(147,!0),L=t.getFloat64(155,!0),p=t.getFloat64(163,!0),b=t.getFloat64(171,!0),S=new Float32Array(_*3),I=new Float32Array(_),u=new Float32Array(_*3),i=D(F),a=i===null?void 0:new Float32Array(_*3);let C=!1;for(let T=0;T<_;T+=1){const E=o+T*O,n=T*3;S[n]=t.getInt32(E,!0)*d+L,S[n+1]=t.getInt32(E+4,!0)*M+p,S[n+2]=t.getInt32(E+8,!0)*h+b;const l=t.getUint16(E+12,!0);I[T]=l,l>0&&(C=!0);const g=w(l);u[n]=c(g.r),u[n+1]=c(g.g),u[n+2]=c(g.b),a&&i!==null&&i+6<=O&&(a[n]=c(t.getUint16(E+i,!0)/65535),a[n+1]=c(t.getUint16(E+i+2,!0)/65535),a[n+2]=c(t.getUint16(E+i+4,!0)/65535))}return{pointCount:_,positions:S,colors:a,intensities:C?I:void 0,intensityColors:u,bounds:U(t)}},A=self;A.onmessage=e=>{const{id:t,buffer:r}=e.data;try{const o=y(r),s={id:t,type:"success",data:o},F=[o.positions.buffer];o.colors&&F.push(o.colors.buffer),o.intensities&&F.push(o.intensities.buffer),o.intensityColors&&F.push(o.intensityColors.buffer),A.postMessage(s,F)}catch(o){const s={id:t,type:"error",message:o instanceof Error?o.message:"Unknown LAS parse error."};A.postMessage(s)}};
@@ -1,2 +0,0 @@
1
- function Ct(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var D={exports:{}},R={},J,ve;function ct(){if(ve)return J;ve=1;var l=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];J=function(i){var u=i,o=i.indexOf("["),f=i.indexOf("]");o!=-1&&f!=-1&&(i=i.substring(0,o)+i.substring(o,f).replace(/:/g,";")+i.substring(f,i.length));for(var e=l.exec(i||""),n={},t=14;t--;)n[c[t]]=e[t]||"";return o!=-1&&f!=-1&&(n.source=u,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=h(n,n.path),n.queryKey=r(n,n.query),n};function h(d,i){var u=/\/{2,9}/g,o=i.replace(u,"/").split("/");return(i.substr(0,1)=="/"||i.length===0)&&o.splice(0,1),i.substr(i.length-1,1)=="/"&&o.splice(o.length-1,1),o}function r(d,i){var u={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,f,e){f&&(u[f]=e)}),u}return J}var L={exports:{}},W,ke;function ge(){if(ke)return W;ke=1;var l=1e3,c=l*60,h=c*60,r=h*24,d=r*7,i=r*365.25;W=function(n,t){t=t||{};var s=typeof n;if(s==="string"&&n.length>0)return u(n);if(s==="number"&&isFinite(n))return t.long?f(n):o(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function u(n){if(n=String(n),!(n.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(t){var s=parseFloat(t[1]),a=(t[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"weeks":case"week":case"w":return s*d;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*h;case"minutes":case"minute":case"mins":case"min":case"m":return s*c;case"seconds":case"second":case"secs":case"sec":case"s":return s*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function o(n){var t=Math.abs(n);return t>=r?Math.round(n/r)+"d":t>=h?Math.round(n/h)+"h":t>=c?Math.round(n/c)+"m":t>=l?Math.round(n/l)+"s":n+"ms"}function f(n){var t=Math.abs(n);return t>=r?e(n,t,r,"day"):t>=h?e(n,t,h,"hour"):t>=c?e(n,t,c,"minute"):t>=l?e(n,t,l,"second"):n+" ms"}function e(n,t,s,a){var p=t>=s*1.5;return Math.round(n/s)+" "+a+(p?"s":"")}return W}var Y,Fe;function bt(){if(Fe)return Y;Fe=1;function l(c){r.debug=r,r.default=r,r.coerce=e,r.disable=u,r.enable=i,r.enabled=o,r.humanize=ge(),r.destroy=n,Object.keys(c).forEach(t=>{r[t]=c[t]}),r.names=[],r.skips=[],r.formatters={};function h(t){let s=0;for(let a=0;a<t.length;a++)s=(s<<5)-s+t.charCodeAt(a),s|=0;return r.colors[Math.abs(s)%r.colors.length]}r.selectColor=h;function r(t){let s,a=null,p,m;function g(...y){if(!g.enabled)return;const C=g,b=Number(new Date),v=b-(s||b);C.diff=v,C.prev=s,C.curr=b,s=b,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let w=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(k,S)=>{if(k==="%%")return"%";w++;const F=r.formatters[S];if(typeof F=="function"){const x=y[w];k=F.call(C,x),y.splice(w,1),w--}return k}),r.formatArgs.call(C,y),(C.log||r.log).apply(C,y)}return g.namespace=t,g.useColors=r.useColors(),g.color=r.selectColor(t),g.extend=d,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>a!==null?a:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(t)),m),set:y=>{a=y}}),typeof r.init=="function"&&r.init(g),g}function d(t,s){const a=r(this.namespace+(typeof s>"u"?":":s)+t);return a.log=this.log,a}function i(t){r.save(t),r.namespaces=t,r.names=[],r.skips=[];let s;const a=(typeof t=="string"?t:"").split(/[\s,]+/),p=a.length;for(s=0;s<p;s++)a[s]&&(t=a[s].replace(/\*/g,".*?"),t[0]==="-"?r.skips.push(new RegExp("^"+t.slice(1)+"$")):r.names.push(new RegExp("^"+t+"$")))}function u(){const t=[...r.names.map(f),...r.skips.map(f).map(s=>"-"+s)].join(",");return r.enable(""),t}function o(t){if(t[t.length-1]==="*")return!0;let s,a;for(s=0,a=r.skips.length;s<a;s++)if(r.skips[s].test(t))return!1;for(s=0,a=r.names.length;s<a;s++)if(r.names[s].test(t))return!0;return!1}function f(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function e(t){return t instanceof Error?t.stack||t.message:t}function n(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return Y=l,Y}var Ee;function z(){return Ee||(Ee=1,(function(l,c){var h={};c.formatArgs=d,c.save=i,c.load=u,c.useColors=r,c.storage=o(),c.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let t=0,s=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(t++,a==="%c"&&(s=t))}),e.splice(s,0,n)}c.log=console.debug||console.log||(()=>{});function i(e){try{e?c.storage.setItem("debug",e):c.storage.removeItem("debug")}catch{}}function u(){let e;try{e=c.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=h.DEBUG),e}function o(){try{return localStorage}catch{}}l.exports=bt()(c);const{formatters:f}=l.exports;f.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}})(L,L.exports)),L.exports}var _e;function wt(){if(_e)return R;_e=1,Object.defineProperty(R,"__esModule",{value:!0}),R.url=void 0;const l=ct(),c=z()("socket.io-client:url");function h(r,d="",i){let u=r;i=i||typeof location<"u"&&location,r==null&&(r=i.protocol+"//"+i.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=i.protocol+r:r=i.host+r),/^(https?|wss?):\/\//.test(r)||(c("protocol-less url %s",r),typeof i<"u"?r=i.protocol+"//"+r:r="https://"+r),c("parse %s",r),u=l(r)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const f=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+f+":"+u.port+d,u.href=u.protocol+"://"+f+(i&&i.port===u.port?"":":"+u.port),u}return R.url=h,R}var B={},E={exports:{}},I={},M={exports:{}},Ae;function vt(){if(Ae)return M.exports;Ae=1;try{M.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{M.exports=!1}return M.exports}var G,qe;function K(){return qe||(qe=1,G=typeof self<"u"?self:typeof window<"u"?window:Function("return this")()),G}var Z,Se;function at(){if(Se)return Z;Se=1;const l=vt(),c=K();return Z=function(h){const r=h.xdomain,d=h.xscheme,i=h.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!r||l))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!d&&i)return new XDomainRequest}catch{}if(!r)try{return new c[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},Z}var j={exports:{}},Q,xe;function ut(){if(xe)return Q;xe=1;const l=Object.create(null);l.open="0",l.close="1",l.ping="2",l.pong="3",l.message="4",l.upgrade="5",l.noop="6";const c=Object.create(null);return Object.keys(l).forEach(r=>{c[l[r]]=r}),Q={PACKET_TYPES:l,PACKET_TYPES_REVERSE:c,ERROR_PACKET:{type:"error",data:"parser error"}},Q}var $,Re;function kt(){if(Re)return $;Re=1;const{PACKET_TYPES:l}=ut(),c=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",h=typeof ArrayBuffer=="function",r=u=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(u):u&&u.buffer instanceof ArrayBuffer,d=({type:u,data:o},f,e)=>c&&o instanceof Blob?f?e(o):i(o,e):h&&(o instanceof ArrayBuffer||r(o))?f?e(o):i(new Blob([o]),e):e(l[u]+(o||"")),i=(u,o)=>{const f=new FileReader;return f.onload=function(){const e=f.result.split(",")[1];o("b"+e)},f.readAsDataURL(u)};return $=d,$}var U={},Be;function Ft(){return Be||(Be=1,(function(l){U.encode=function(c){var h=new Uint8Array(c),r,d=h.length,i="";for(r=0;r<d;r+=3)i+=l[h[r]>>2],i+=l[(h[r]&3)<<4|h[r+1]>>4],i+=l[(h[r+1]&15)<<2|h[r+2]>>6],i+=l[h[r+2]&63];return d%3===2?i=i.substring(0,i.length-1)+"=":d%3===1&&(i=i.substring(0,i.length-2)+"=="),i},U.decode=function(c){var h=c.length*.75,r=c.length,d,i=0,u,o,f,e;c[c.length-1]==="="&&(h--,c[c.length-2]==="="&&h--);var n=new ArrayBuffer(h),t=new Uint8Array(n);for(d=0;d<r;d+=4)u=l.indexOf(c[d]),o=l.indexOf(c[d+1]),f=l.indexOf(c[d+2]),e=l.indexOf(c[d+3]),t[i++]=u<<2|o>>4,t[i++]=(o&15)<<4|f>>2,t[i++]=(f&3)<<6|e&63;return n}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),U}var ee,Te;function Et(){if(Te)return ee;Te=1;const{PACKET_TYPES_REVERSE:l,ERROR_PACKET:c}=ut(),h=typeof ArrayBuffer=="function";let r;h&&(r=Ft());const d=(o,f)=>{if(typeof o!="string")return{type:"message",data:u(o,f)};const e=o.charAt(0);return e==="b"?{type:"message",data:i(o.substring(1),f)}:l[e]?o.length>1?{type:l[e],data:o.substring(1)}:{type:l[e]}:c},i=(o,f)=>{if(r){const e=r.decode(o);return u(e,f)}else return{base64:!0,data:o}},u=(o,f)=>{switch(f){case"blob":return o instanceof ArrayBuffer?new Blob([o]):o;case"arraybuffer":default:return o}};return ee=d,ee}var te,Oe;function P(){if(Oe)return te;Oe=1;const l=kt(),c=Et(),h="";return te={protocol:4,encodePacket:l,encodePayload:(i,u)=>{const o=i.length,f=new Array(o);let e=0;i.forEach((n,t)=>{l(n,!1,s=>{f[t]=s,++e===o&&u(f.join(h))})})},decodePacket:c,decodePayload:(i,u)=>{const o=i.split(h),f=[];for(let e=0;e<o.length;e++){const n=c(o[e],u);if(f.push(n),n.type==="error")break}return f}},te}var re={exports:{}},Pe;function q(){return Pe||(Pe=1,(function(l){l.exports=c;function c(r){if(r)return h(r)}function h(r){for(var d in c.prototype)r[d]=c.prototype[d];return r}c.prototype.on=c.prototype.addEventListener=function(r,d){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(d),this},c.prototype.once=function(r,d){function i(){this.off(r,i),d.apply(this,arguments)}return i.fn=d,this.on(r,i),this},c.prototype.off=c.prototype.removeListener=c.prototype.removeAllListeners=c.prototype.removeEventListener=function(r,d){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+r];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var u,o=0;o<i.length;o++)if(u=i[o],u===d||u.fn===d){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+r],this},c.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var d=new Array(arguments.length-1),i=this._callbacks["$"+r],u=1;u<arguments.length;u++)d[u-1]=arguments[u];if(i){i=i.slice(0);for(var u=0,o=i.length;u<o;++u)i[u].apply(this,d)}return this},c.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},c.prototype.hasListeners=function(r){return!!this.listeners(r).length}})(re)),re.exports}var V={exports:{}},ne,Ne;function _t(){if(Ne)return ne;Ne=1;function l(c){r.debug=r,r.default=r,r.coerce=e,r.disable=u,r.enable=i,r.enabled=o,r.humanize=ge(),r.destroy=n,Object.keys(c).forEach(t=>{r[t]=c[t]}),r.names=[],r.skips=[],r.formatters={};function h(t){let s=0;for(let a=0;a<t.length;a++)s=(s<<5)-s+t.charCodeAt(a),s|=0;return r.colors[Math.abs(s)%r.colors.length]}r.selectColor=h;function r(t){let s,a=null,p,m;function g(...y){if(!g.enabled)return;const C=g,b=Number(new Date),v=b-(s||b);C.diff=v,C.prev=s,C.curr=b,s=b,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let w=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(k,S)=>{if(k==="%%")return"%";w++;const F=r.formatters[S];if(typeof F=="function"){const x=y[w];k=F.call(C,x),y.splice(w,1),w--}return k}),r.formatArgs.call(C,y),(C.log||r.log).apply(C,y)}return g.namespace=t,g.useColors=r.useColors(),g.color=r.selectColor(t),g.extend=d,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>a!==null?a:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(t)),m),set:y=>{a=y}}),typeof r.init=="function"&&r.init(g),g}function d(t,s){const a=r(this.namespace+(typeof s>"u"?":":s)+t);return a.log=this.log,a}function i(t){r.save(t),r.namespaces=t,r.names=[],r.skips=[];let s;const a=(typeof t=="string"?t:"").split(/[\s,]+/),p=a.length;for(s=0;s<p;s++)a[s]&&(t=a[s].replace(/\*/g,".*?"),t[0]==="-"?r.skips.push(new RegExp("^"+t.slice(1)+"$")):r.names.push(new RegExp("^"+t+"$")))}function u(){const t=[...r.names.map(f),...r.skips.map(f).map(s=>"-"+s)].join(",");return r.enable(""),t}function o(t){if(t[t.length-1]==="*")return!0;let s,a;for(s=0,a=r.skips.length;s<a;s++)if(r.skips[s].test(t))return!1;for(s=0,a=r.names.length;s<a;s++)if(r.names[s].test(t))return!0;return!1}function f(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function e(t){return t instanceof Error?t.stack||t.message:t}function n(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return ne=l,ne}var De;function N(){return De||(De=1,(function(l,c){var h={};c.formatArgs=d,c.save=i,c.load=u,c.useColors=r,c.storage=o(),c.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let t=0,s=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(t++,a==="%c"&&(s=t))}),e.splice(s,0,n)}c.log=console.debug||console.log||(()=>{});function i(e){try{e?c.storage.setItem("debug",e):c.storage.removeItem("debug")}catch{}}function u(){let e;try{e=c.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=h.DEBUG),e}function o(){try{return localStorage}catch{}}l.exports=_t()(c);const{formatters:f}=l.exports;f.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}})(V,V.exports)),V.exports}var se,Le;function ye(){if(Le)return se;Le=1;const l=P(),c=q(),h=N()("engine.io-client:transport");class r extends c{constructor(i){super(),this.opts=i,this.query=i.query,this.readyState="",this.socket=i.socket}onError(i,u){const o=new Error(i);return o.type="TransportError",o.description=u,this.emit("error",o),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"?this.write(i):h("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,this.emit("open")}onData(i){const u=l.decodePacket(i,this.socket.binaryType);this.onPacket(u)}onPacket(i){this.emit("packet",i)}onClose(){this.readyState="closed",this.emit("close")}}return se=r,se}var H={},Ie;function Ce(){return Ie||(Ie=1,H.encode=function(l){var c="";for(var h in l)l.hasOwnProperty(h)&&(c.length&&(c+="&"),c+=encodeURIComponent(h)+"="+encodeURIComponent(l[h]));return c},H.decode=function(l){for(var c={},h=l.split("&"),r=0,d=h.length;r<d;r++){var i=h[r].split("=");c[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return c}),H}var oe,Me;function lt(){if(Me)return oe;Me=1;var l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c=64,h={},r=0,d=0,i;function u(e){var n="";do n=l[e%c]+n,e=Math.floor(e/c);while(e>0);return n}function o(e){var n=0;for(d=0;d<e.length;d++)n=n*c+h[e.charAt(d)];return n}function f(){var e=u(+new Date);return e!==i?(r=0,i=e):e+"."+u(r++)}for(;d<c;d++)h[l[d]]=d;return f.encode=u,f.decode=o,oe=f,oe}var ie,je;function ft(){if(je)return ie;je=1;const l=ye(),c=Ce(),h=P(),r=lt(),d=N()("engine.io-client:polling");class i extends l{get name(){return"polling"}doOpen(){this.poll()}pause(o){const f=this;this.readyState="pausing";function e(){d("paused"),f.readyState="paused",o()}if(this.polling||!this.writable){let n=0;this.polling&&(d("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){d("pre-pause polling complete"),--n||e()})),this.writable||(d("we are currently writing - waiting to pause"),n++,this.once("drain",function(){d("pre-pause writing complete"),--n||e()}))}else e()}poll(){d("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}onData(o){const f=this;d("polling got data %s",o);const e=function(n,t,s){if(f.readyState==="opening"&&n.type==="open"&&f.onOpen(),n.type==="close")return f.onClose(),!1;f.onPacket(n)};h.decodePayload(o,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():d('ignoring poll - transport state "%s"',this.readyState))}doClose(){const o=this;function f(){d("writing close packet"),o.write([{type:"close"}])}this.readyState==="open"?(d("transport open - closing"),f()):(d("transport not open - deferring close"),this.once("open",f))}write(o){this.writable=!1,h.encodePayload(o,f=>{this.doWrite(f,()=>{this.writable=!0,this.emit("drain")})})}uri(){let o=this.query||{};const f=this.opts.secure?"https":"http";let e="";this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=r()),!this.supportsBinary&&!o.sid&&(o.b64=1),o=c.encode(o),this.opts.port&&(f==="https"&&Number(this.opts.port)!==443||f==="http"&&Number(this.opts.port)!==80)&&(e=":"+this.opts.port),o.length&&(o="?"+o);const n=this.opts.hostname.indexOf(":")!==-1;return f+"://"+(n?"["+this.opts.hostname+"]":this.opts.hostname)+e+this.opts.path+o}}return ie=i,ie}var ce={},Ue;function ht(){return Ue||(Ue=1,ce.pick=(l,...c)=>c.reduce((h,r)=>(l.hasOwnProperty(r)&&(h[r]=l[r]),h),{})),ce}var Ve;function At(){if(Ve)return j.exports;Ve=1;const l=at(),c=ft(),h=q(),{pick:r}=ht(),d=K(),i=N()("engine.io-client:polling-xhr");function u(){}const o=(function(){return new l({xdomain:!1}).responseType!=null})();class f extends c{constructor(s){if(super(s),typeof location<"u"){const p=location.protocol==="https:";let m=location.port;m||(m=p?443:80),this.xd=typeof location<"u"&&s.hostname!==location.hostname||m!==s.port,this.xs=s.secure!==p}const a=s&&s.forceBase64;this.supportsBinary=o&&!a}request(s={}){return Object.assign(s,{xd:this.xd,xs:this.xs},this.opts),new e(this.uri(),s)}doWrite(s,a){const p=this.request({method:"POST",data:s}),m=this;p.on("success",a),p.on("error",function(g){m.onError("xhr post error",g)})}doPoll(){i("xhr poll");const s=this.request(),a=this;s.on("data",function(p){a.onData(p)}),s.on("error",function(p){a.onError("xhr poll error",p)}),this.pollXhr=s}}class e extends h{constructor(s,a){super(),this.opts=a,this.method=a.method||"GET",this.uri=s,this.async=a.async!==!1,this.data=a.data!==void 0?a.data:null,this.create()}create(){const s=r(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized");s.xdomain=!!this.opts.xd,s.xscheme=!!this.opts.xs;const a=this.xhr=new l(s),p=this;try{i("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let m in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(m)&&a.setRequestHeader(m,this.opts.extraHeaders[m])}}catch{}if(this.method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(a.timeout=this.opts.requestTimeout),this.hasXDR()?(a.onload=function(){p.onLoad()},a.onerror=function(){p.onError(a.responseText)}):a.onreadystatechange=function(){a.readyState===4&&(a.status===200||a.status===1223?p.onLoad():setTimeout(function(){p.onError(typeof a.status=="number"?a.status:0)},0))},i("xhr data %s",this.data),a.send(this.data)}catch(m){setTimeout(function(){p.onError(m)},0);return}typeof document<"u"&&(this.index=e.requestsCount++,e.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(s){this.emit("data",s),this.onSuccess()}onError(s){this.emit("error",s),this.cleanup(!0)}cleanup(s){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,s)try{this.xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this.index],this.xhr=null}}onLoad(){const s=this.xhr.responseText;s!==null&&this.onData(s)}hasXDR(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR}abort(){this.cleanup()}}if(e.requestsCount=0,e.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",n);else if(typeof addEventListener=="function"){const t="onpagehide"in d?"pagehide":"unload";addEventListener(t,n,!1)}}function n(){for(let t in e.requests)e.requests.hasOwnProperty(t)&&e.requests[t].abort()}return j.exports=f,j.exports.Request=e,j.exports}var ae,He;function qt(){if(He)return ae;He=1;const l=ft(),c=K(),h=/\n/g,r=/\\n/g;let d;class i extends l{constructor(o){super(o),this.query=this.query||{},d||(d=c.___eio=c.___eio||[]),this.index=d.length;const f=this;d.push(function(e){f.onData(e)}),this.query.j=this.index}get supportsBinary(){return!1}doClose(){this.script&&(this.script.onerror=()=>{},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),super.doClose()}doPoll(){const o=this,f=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),f.async=!0,f.src=this.uri(),f.onerror=function(t){o.onError("jsonp poll error",t)};const e=document.getElementsByTagName("script")[0];e?e.parentNode.insertBefore(f,e):(document.head||document.body).appendChild(f),this.script=f,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){const t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)}doWrite(o,f){const e=this;let n;if(!this.form){const a=document.createElement("form"),p=document.createElement("textarea"),m=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=m,a.method="POST",a.setAttribute("accept-charset","utf-8"),p.name="d",a.appendChild(p),document.body.appendChild(a),this.form=a,this.area=p}this.form.action=this.uri();function t(){s(),f()}function s(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(a){e.onError("jsonp polling iframe removal error",a)}try{const a='<iframe src="javascript:0" name="'+e.iframeId+'">';n=document.createElement(a)}catch{n=document.createElement("iframe"),n.name=e.iframeId,n.src="javascript:0"}n.id=e.iframeId,e.form.appendChild(n),e.iframe=n}s(),o=o.replace(r,`\\
2
- `),this.area.value=o.replace(h,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){e.iframe.readyState==="complete"&&t()}:this.iframe.onload=t}}return ae=i,ae}var ue,Xe;function St(){if(Xe)return ue;Xe=1;const l=K();return ue={WebSocket:l.WebSocket||l.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer"},ue}var le,ze;function xt(){if(ze)return le;ze=1;const l=ye(),c=P(),h=Ce(),r=lt(),{pick:d}=ht(),{WebSocket:i,usingBrowserWebSocket:u,defaultBinaryType:o}=St(),f=N()("engine.io-client:websocket"),e=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class n extends l{constructor(s){super(s),this.supportsBinary=!s.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const s=this.uri(),a=this.opts.protocols,p=e?{}:d(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(p.headers=this.opts.extraHeaders);try{this.ws=u&&!e?a?new i(s,a):new i(s):new i(s,a,p)}catch(m){return this.emit("error",m)}this.ws.binaryType=this.socket.binaryType||o,this.addEventListeners()}addEventListeners(){const s=this;this.ws.onopen=function(){s.onOpen()},this.ws.onclose=function(){s.onClose()},this.ws.onmessage=function(a){s.onData(a.data)},this.ws.onerror=function(a){s.onError("websocket error",a)}}write(s){const a=this;this.writable=!1;let p=s.length,m=0;const g=p;for(;m<g;m++)(function(C){c.encodePacket(C,a.supportsBinary,function(b){const v={};u||(C.options&&(v.compress=C.options.compress),a.opts.perMessageDeflate&&(typeof b=="string"?Buffer.byteLength(b):b.length)<a.opts.perMessageDeflate.threshold&&(v.compress=!1));try{u?a.ws.send(b):a.ws.send(b,v)}catch{f("websocket closed before onclose event")}--p||y()})})(s[m]);function y(){a.emit("flush"),setTimeout(function(){a.writable=!0,a.emit("drain")},0)}}onClose(){l.prototype.onClose.call(this)}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let s=this.query||{};const a=this.opts.secure?"wss":"ws";let p="";this.opts.port&&(a==="wss"&&Number(this.opts.port)!==443||a==="ws"&&Number(this.opts.port)!==80)&&(p=":"+this.opts.port),this.opts.timestampRequests&&(s[this.opts.timestampParam]=r()),this.supportsBinary||(s.b64=1),s=h.encode(s),s.length&&(s="?"+s);const m=this.opts.hostname.indexOf(":")!==-1;return a+"://"+(m?"["+this.opts.hostname+"]":this.opts.hostname)+p+this.opts.path+s}check(){return!!i&&!("__initialize"in i&&this.name===n.prototype.name)}}return le=n,le}var Ke;function dt(){if(Ke)return I;Ke=1;const l=at(),c=At(),h=qt(),r=xt();I.polling=d,I.websocket=r;function d(i){let u,o=!1,f=!1;const e=i.jsonp!==!1;if(typeof location<"u"){const n=location.protocol==="https:";let t=location.port;t||(t=n?443:80),o=i.hostname!==location.hostname||t!==i.port,f=i.secure!==n}if(i.xdomain=o,i.xscheme=f,u=new l(i),"open"in u&&!i.forceJSONP)return new c(i);if(!e)throw new Error("JSONP disabled");return new h(i)}return I}var fe,Je;function Rt(){if(Je)return fe;Je=1;const l=dt(),c=q(),h=N()("engine.io-client:socket"),r=P(),d=ct(),i=Ce();class u extends c{constructor(e,n={}){super(),e&&typeof e=="object"&&(n=e,e=null),e?(e=d(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=d(n.host).host),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=i.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.open()}createTransport(e){h('creating transport "%s"',e);const n=o(this.opts.query);n.EIO=r.protocol,n.transport=e,this.id&&(n.sid=this.id);const t=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return h("options: %j",t),new l[e](t)}open(){let e;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){const n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(n){h("error while creating transport: %s",n),this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){h("setting transport %s",e.name);const n=this;this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){n.onDrain()}).on("packet",function(t){n.onPacket(t)}).on("error",function(t){n.onError(t)}).on("close",function(){n.onClose("transport close")})}probe(e){h('probing transport "%s"',e);let n=this.createTransport(e,{probe:1}),t=!1;const s=this;u.priorWebsocketSuccess=!1;function a(){if(s.onlyBinaryUpgrades){const v=!this.supportsBinary&&s.transport.supportsBinary;t=t||v}t||(h('probe transport "%s" opened',e),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(v){if(!t)if(v.type==="pong"&&v.data==="probe"){if(h('probe transport "%s" pong',e),s.upgrading=!0,s.emit("upgrading",n),!n)return;u.priorWebsocketSuccess=n.name==="websocket",h('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){t||s.readyState!=="closed"&&(h("changing transport and sending upgrade packet"),b(),s.setTransport(n),n.send([{type:"upgrade"}]),s.emit("upgrade",n),n=null,s.upgrading=!1,s.flush())})}else{h('probe transport "%s" failed',e);const w=new Error("probe error");w.transport=n.name,s.emit("upgradeError",w)}}))}function p(){t||(t=!0,b(),n.close(),n=null)}function m(v){const w=new Error("probe error: "+v);w.transport=n.name,p(),h('probe transport "%s" failed because of error: %s',e,v),s.emit("upgradeError",w)}function g(){m("transport closed")}function y(){m("socket closed")}function C(v){n&&v.name!==n.name&&(h('"%s" works - aborting "%s"',v.name,n.name),p())}function b(){n.removeListener("open",a),n.removeListener("error",m),n.removeListener("close",g),s.removeListener("close",y),s.removeListener("upgrading",C)}n.once("open",a),n.once("error",m),n.once("close",g),this.once("close",y),this.once("upgrading",C),n.open()}onOpen(){if(h("socket open"),this.readyState="open",u.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){h("starting upgrade probes");let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(h('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else h('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout)}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()}flush(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(h("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}write(e,n,t){return this.sendPacket("message",e,n,t),this}send(e,n,t){return this.sendPacket("message",e,n,t),this}sendPacket(e,n,t,s){if(typeof n=="function"&&(s=n,n=void 0),typeof t=="function"&&(s=t,t=null),this.readyState==="closing"||this.readyState==="closed")return;t=t||{},t.compress=t.compress!==!1;const a={type:e,data:n,options:t};this.emit("packetCreate",a),this.writeBuffer.push(a),s&&this.once("flush",s),this.flush()}close(){const e=this;(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",function(){this.upgrading?s():n()}):this.upgrading?s():n());function n(){e.onClose("forced close"),h("socket closing - telling transport to close"),e.transport.close()}function t(){e.removeListener("upgrade",t),e.removeListener("upgradeError",t),n()}function s(){e.once("upgrade",t),e.once("upgradeError",t)}return this}onError(e){h("socket error %j",e),u.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){h('socket close with reason: "%s"',e);const t=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,n),t.writeBuffer=[],t.prevBufferLen=0}}filterUpgrades(e){const n=[];let t=0;const s=e.length;for(;t<s;t++)~this.transports.indexOf(e[t])&&n.push(e[t]);return n}}u.priorWebsocketSuccess=!1,u.protocol=r.protocol;function o(f){const e={};for(let n in f)f.hasOwnProperty(n)&&(e[n]=f[n]);return e}return fe=u,fe}var We;function Bt(){if(We)return E.exports;We=1;const l=Rt();return E.exports=(c,h)=>new l(c,h),E.exports.Socket=l,E.exports.protocol=l.protocol,E.exports.Transport=ye(),E.exports.transports=dt(),E.exports.parser=P(),E.exports}var T={},he={},_={},A={},Ye;function pt(){if(Ye)return A;Ye=1,Object.defineProperty(A,"__esModule",{value:!0}),A.hasBinary=A.isBinary=void 0;const l=typeof ArrayBuffer=="function",c=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer,h=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&h.call(Blob)==="[object BlobConstructor]",d=typeof File=="function"||typeof File<"u"&&h.call(File)==="[object FileConstructor]";function i(o){return l&&(o instanceof ArrayBuffer||c(o))||r&&o instanceof Blob||d&&o instanceof File}A.isBinary=i;function u(o,f){if(!o||typeof o!="object")return!1;if(Array.isArray(o)){for(let e=0,n=o.length;e<n;e++)if(u(o[e]))return!0;return!1}if(i(o))return!0;if(o.toJSON&&typeof o.toJSON=="function"&&arguments.length===1)return u(o.toJSON(),!0);for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)&&u(o[e]))return!0;return!1}return A.hasBinary=u,A}var Ge;function Tt(){if(Ge)return _;Ge=1,Object.defineProperty(_,"__esModule",{value:!0}),_.reconstructPacket=_.deconstructPacket=void 0;const l=pt();function c(i){const u=[],o=i.data,f=i;return f.data=h(o,u),f.attachments=u.length,{packet:f,buffers:u}}_.deconstructPacket=c;function h(i,u){if(!i)return i;if(l.isBinary(i)){const o={_placeholder:!0,num:u.length};return u.push(i),o}else if(Array.isArray(i)){const o=new Array(i.length);for(let f=0;f<i.length;f++)o[f]=h(i[f],u);return o}else if(typeof i=="object"&&!(i instanceof Date)){const o={};for(const f in i)i.hasOwnProperty(f)&&(o[f]=h(i[f],u));return o}return i}function r(i,u){return i.data=d(i.data,u),i.attachments=void 0,i}_.reconstructPacket=r;function d(i,u){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<u.length)return u[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let o=0;o<i.length;o++)i[o]=d(i[o],u);else if(typeof i=="object")for(const o in i)i.hasOwnProperty(o)&&(i[o]=d(i[o],u));return i}return _}var X={exports:{}},de,Ze;function Ot(){if(Ze)return de;Ze=1;function l(c){r.debug=r,r.default=r,r.coerce=e,r.disable=u,r.enable=i,r.enabled=o,r.humanize=ge(),r.destroy=n,Object.keys(c).forEach(t=>{r[t]=c[t]}),r.names=[],r.skips=[],r.formatters={};function h(t){let s=0;for(let a=0;a<t.length;a++)s=(s<<5)-s+t.charCodeAt(a),s|=0;return r.colors[Math.abs(s)%r.colors.length]}r.selectColor=h;function r(t){let s,a=null,p,m;function g(...y){if(!g.enabled)return;const C=g,b=Number(new Date),v=b-(s||b);C.diff=v,C.prev=s,C.curr=b,s=b,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let w=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(k,S)=>{if(k==="%%")return"%";w++;const F=r.formatters[S];if(typeof F=="function"){const x=y[w];k=F.call(C,x),y.splice(w,1),w--}return k}),r.formatArgs.call(C,y),(C.log||r.log).apply(C,y)}return g.namespace=t,g.useColors=r.useColors(),g.color=r.selectColor(t),g.extend=d,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>a!==null?a:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(t)),m),set:y=>{a=y}}),typeof r.init=="function"&&r.init(g),g}function d(t,s){const a=r(this.namespace+(typeof s>"u"?":":s)+t);return a.log=this.log,a}function i(t){r.save(t),r.namespaces=t,r.names=[],r.skips=[];let s;const a=(typeof t=="string"?t:"").split(/[\s,]+/),p=a.length;for(s=0;s<p;s++)a[s]&&(t=a[s].replace(/\*/g,".*?"),t[0]==="-"?r.skips.push(new RegExp("^"+t.slice(1)+"$")):r.names.push(new RegExp("^"+t+"$")))}function u(){const t=[...r.names.map(f),...r.skips.map(f).map(s=>"-"+s)].join(",");return r.enable(""),t}function o(t){if(t[t.length-1]==="*")return!0;let s,a;for(s=0,a=r.skips.length;s<a;s++)if(r.skips[s].test(t))return!1;for(s=0,a=r.names.length;s<a;s++)if(r.names[s].test(t))return!0;return!1}function f(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function e(t){return t instanceof Error?t.stack||t.message:t}function n(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return de=l,de}var Qe;function Pt(){return Qe||(Qe=1,(function(l,c){var h={};c.formatArgs=d,c.save=i,c.load=u,c.useColors=r,c.storage=o(),c.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let t=0,s=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(t++,a==="%c"&&(s=t))}),e.splice(s,0,n)}c.log=console.debug||console.log||(()=>{});function i(e){try{e?c.storage.setItem("debug",e):c.storage.removeItem("debug")}catch{}}function u(){let e;try{e=c.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=h.DEBUG),e}function o(){try{return localStorage}catch{}}l.exports=Ot()(c);const{formatters:f}=l.exports;f.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}})(X,X.exports)),X.exports}var $e;function be(){return $e||($e=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.Decoder=l.Encoder=l.PacketType=l.protocol=void 0;const c=q(),h=Tt(),r=pt(),d=Pt()("socket.io-parser");l.protocol=5;var i;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(i=l.PacketType||(l.PacketType={}));class u{encode(t){return d("encoding packet %j",t),(t.type===i.EVENT||t.type===i.ACK)&&r.hasBinary(t)?(t.type=t.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let s=""+t.type;return(t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK)&&(s+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(s+=t.nsp+","),t.id!=null&&(s+=t.id),t.data!=null&&(s+=JSON.stringify(t.data)),d("encoded %j as %s",t,s),s}encodeAsBinary(t){const s=h.deconstructPacket(t),a=this.encodeAsString(s.packet),p=s.buffers;return p.unshift(a),p}}l.Encoder=u;class o extends c{constructor(){super()}add(t){let s;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(t),s.type===i.BINARY_EVENT||s.type===i.BINARY_ACK?(this.reconstructor=new e(s),s.attachments===0&&super.emit("decoded",s)):super.emit("decoded",s)}else if(r.isBinary(t)||t.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(t),s&&(this.reconstructor=null,super.emit("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let s=0;const a={type:Number(t.charAt(0))};if(i[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===i.BINARY_EVENT||a.type===i.BINARY_ACK){const m=s+1;for(;t.charAt(++s)!=="-"&&s!=t.length;);const g=t.substring(m,s);if(g!=Number(g)||t.charAt(s)!=="-")throw new Error("Illegal attachments");a.attachments=Number(g)}if(t.charAt(s+1)==="/"){const m=s+1;for(;++s&&!(t.charAt(s)===","||s===t.length););a.nsp=t.substring(m,s)}else a.nsp="/";const p=t.charAt(s+1);if(p!==""&&Number(p)==p){const m=s+1;for(;++s;){const g=t.charAt(s);if(g==null||Number(g)!=g){--s;break}if(s===t.length)break}a.id=Number(t.substring(m,s+1))}if(t.charAt(++s)){const m=f(t.substr(s));if(o.isPayloadValid(a.type,m))a.data=m;else throw new Error("invalid payload")}return d("decoded %s as %j",t,a),a}static isPayloadValid(t,s){switch(t){case i.CONNECT:return typeof s=="object";case i.DISCONNECT:return s===void 0;case i.CONNECT_ERROR:return typeof s=="string"||typeof s=="object";case i.EVENT:case i.BINARY_EVENT:return Array.isArray(s)&&s.length>0;case i.ACK:case i.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}l.Decoder=o;function f(n){try{return JSON.parse(n)}catch{return!1}}class e{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const s=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(he)),he}var O={},et;function mt(){if(et)return O;et=1,Object.defineProperty(O,"__esModule",{value:!0}),O.on=void 0;function l(c,h,r){return c.on(h,r),function(){c.off(h,r)}}return O.on=l,O}var tt;function gt(){if(tt)return T;tt=1,Object.defineProperty(T,"__esModule",{value:!0}),T.Socket=void 0;const l=be(),c=q(),h=mt(),r=z()("socket.io-client:socket"),d=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class i extends c{constructor(o,f,e){super(),this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=o,this.nsp=f,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},e&&e.auth&&(this.auth=e.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const o=this.io;this.subs=[h.on(o,"open",this.onopen.bind(this)),h.on(o,"packet",this.onpacket.bind(this)),h.on(o,"error",this.onerror.bind(this)),h.on(o,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...o){return o.unshift("message"),this.emit.apply(this,o),this}emit(o,...f){if(d.hasOwnProperty(o))throw new Error('"'+o+'" is a reserved event name');f.unshift(o);const e={type:l.PacketType.EVENT,data:f};e.options={},e.options.compress=this.flags.compress!==!1,typeof f[f.length-1]=="function"&&(r("emitting packet with ack id %d",this.ids),this.acks[this.ids]=f.pop(),e.id=this.ids++);const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)?r("discard packet as the transport is not currently writable"):this.connected?this.packet(e):this.sendBuffer.push(e),this.flags={},this}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){r("transport is open - connecting"),typeof this.auth=="function"?this.auth(o=>{this.packet({type:l.PacketType.CONNECT,data:o})}):this.packet({type:l.PacketType.CONNECT,data:this.auth})}onerror(o){this.connected||super.emit("connect_error",o)}onclose(o){r("close (%s)",o),this.connected=!1,this.disconnected=!0,delete this.id,super.emit("disconnect",o)}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case l.PacketType.CONNECT:if(o.data&&o.data.sid){const n=o.data.sid;this.onconnect(n)}else super.emit("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case l.PacketType.EVENT:this.onevent(o);break;case l.PacketType.BINARY_EVENT:this.onevent(o);break;case l.PacketType.ACK:this.onack(o);break;case l.PacketType.BINARY_ACK:this.onack(o);break;case l.PacketType.DISCONNECT:this.ondisconnect();break;case l.PacketType.CONNECT_ERROR:const e=new Error(o.data.message);e.data=o.data.data,super.emit("connect_error",e);break}}onevent(o){const f=o.data||[];r("emitting event %j",f),o.id!=null&&(r("attaching ack callback to event"),f.push(this.ack(o.id))),this.connected?this.emitEvent(f):this.receiveBuffer.push(Object.freeze(f))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const f=this._anyListeners.slice();for(const e of f)e.apply(this,o)}super.emit.apply(this,o)}ack(o){const f=this;let e=!1;return function(...n){e||(e=!0,r("sending ack %j",n),f.packet({type:l.PacketType.ACK,id:o,data:n}))}}onack(o){const f=this.acks[o.id];typeof f=="function"?(r("calling ack %s with %j",o.id,o.data),f.apply(this,o.data),delete this.acks[o.id]):r("bad ack %s",o.id)}onconnect(o){r("socket connected with id %s",o),this.id=o,this.connected=!0,this.disconnected=!1,super.emit("connect"),this.emitBuffered()}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>this.packet(o)),this.sendBuffer=[]}ondisconnect(){r("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(r("performing disconnect (%s)",this.nsp),this.packet({type:l.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const f=this._anyListeners;for(let e=0;e<f.length;e++)if(o===f[e])return f.splice(e,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}return T.Socket=i,T}var pe,rt;function Nt(){if(rt)return pe;rt=1,pe=l;function l(c){c=c||{},this.ms=c.min||100,this.max=c.max||1e4,this.factor=c.factor||2,this.jitter=c.jitter>0&&c.jitter<=1?c.jitter:0,this.attempts=0}return l.prototype.duration=function(){var c=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var h=Math.random(),r=Math.floor(h*this.jitter*c);c=(Math.floor(h*10)&1)==0?c-r:c+r}return Math.min(c,this.max)|0},l.prototype.reset=function(){this.attempts=0},l.prototype.setMin=function(c){this.ms=c},l.prototype.setMax=function(c){this.max=c},l.prototype.setJitter=function(c){this.jitter=c},pe}var nt;function st(){if(nt)return B;nt=1,Object.defineProperty(B,"__esModule",{value:!0}),B.Manager=void 0;const l=Bt(),c=gt(),h=q(),r=be(),d=mt(),i=Nt(),u=z()("socket.io-client:manager");class o extends h{constructor(e,n){super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new i({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const t=n.parser||r;this.encoder=new t.Encoder,this.decoder=new t.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(u("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=l(this.uri,this.opts);const n=this.engine,t=this;this._readyState="opening",this.skipReconnect=!1;const s=d.on(n,"open",function(){t.onopen(),e&&e()}),a=d.on(n,"error",p=>{u("error"),t.cleanup(),t._readyState="closed",super.emit("error",p),e?e(p):t.maybeReconnectOnOpen()});if(this._timeout!==!1){const p=this._timeout;u("connect attempt will timeout after %d",p),p===0&&s();const m=setTimeout(()=>{u("connect attempt timed out after %d",p),s(),n.close(),n.emit("error",new Error("timeout"))},p);this.subs.push(function(){clearTimeout(m)})}return this.subs.push(s),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){u("open"),this.cleanup(),this._readyState="open",super.emit("open");const e=this.engine;this.subs.push(d.on(e,"ping",this.onping.bind(this)),d.on(e,"data",this.ondata.bind(this)),d.on(e,"error",this.onerror.bind(this)),d.on(e,"close",this.onclose.bind(this)),d.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){super.emit("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){super.emit("packet",e)}onerror(e){u("error",e),super.emit("error",e)}socket(e,n){let t=this.nsps[e];return t||(t=new c.Socket(this,e,n),this.nsps[e]=t),t}_destroy(e){const n=Object.keys(this.nsps);for(const t of n)if(this.nsps[t].active){u("socket %s is still active, skipping close",t);return}this._close()}_packet(e){u("writing packet %j",e);const n=this.encoder.encode(e);for(let t=0;t<n.length;t++)this.engine.write(n[t],e.options)}cleanup(){u("cleanup"),this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){u("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this._readyState==="opening"&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){u("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",super.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),super.emit("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();u("will wait %dms before reconnect attempt",n),this._reconnecting=!0;const t=setTimeout(()=>{e.skipReconnect||(u("attempting reconnect"),super.emit("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(u("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),super.emit("reconnect_error",s)):(u("reconnect success"),e.onreconnect())}))},n);this.subs.push(function(){clearTimeout(t)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),super.emit("reconnect",e)}}return B.Manager=o,B}var ot;function Dt(){return ot||(ot=1,(function(l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Socket=c.io=c.Manager=c.protocol=void 0;const h=wt(),r=st(),d=gt();Object.defineProperty(c,"Socket",{enumerable:!0,get:function(){return d.Socket}});const i=z()("socket.io-client");l.exports=c=o;const u=c.managers={};function o(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const s=h.url(n,t.path),a=s.source,p=s.id,m=s.path,g=u[p]&&m in u[p].nsps,y=t.forceNew||t["force new connection"]||t.multiplex===!1||g;let C;return y?(i("ignoring socket cache for %s",a),C=new r.Manager(a,t)):(u[p]||(i("new io instance for %s",a),u[p]=new r.Manager(a,t)),C=u[p]),s.query&&!t.query&&(t.query=s.queryKey),C.socket(s.path,t)}c.io=o;var f=be();Object.defineProperty(c,"protocol",{enumerable:!0,get:function(){return f.protocol}}),c.connect=o;var e=st();Object.defineProperty(c,"Manager",{enumerable:!0,get:function(){return e.Manager}})})(D,D.exports)),D.exports}var Lt=Dt(),yt=Ct(Lt);yt.Manager;const It=50;let me=null,it;self.onmessage=({data:l})=>{if(l.type==="connect"){me??=yt(l.url,{path:"/common/socket.io",transports:["websocket"]}),me.auth=l.auth;return}clearInterval(it),l.type!=="stop"&&(it=setInterval(()=>me?.volatile.emit(l.topic,{}),It))};