@nuxt/devtools 0.8.1 → 0.8.3

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 (106) hide show
  1. package/dist/chunks/analyze-build.mjs +38 -6
  2. package/dist/chunks/module-main.mjs +1 -1
  3. package/dist/client/200.html +31 -31
  4. package/dist/client/404.html +31 -31
  5. package/dist/client/__blank/index.html +31 -31
  6. package/dist/client/_nuxt/{Badge.2520e67e.js → Badge.efa8b534.js} +1 -1
  7. package/dist/client/_nuxt/{CodeDiff.vue.978c6a6f.js → CodeDiff.vue.52d6bbaa.js} +1 -1
  8. package/dist/client/_nuxt/{ComposableItem.vue.2d866a7f.js → ComposableItem.vue.1525d3d2.js} +1 -1
  9. package/dist/client/_nuxt/{DataSchemaButton.vue.900aabf0.js → DataSchemaButton.vue.dabda5da.js} +1 -1
  10. package/dist/client/_nuxt/{DataSchemaDrawer.01ce7a66.js → DataSchemaDrawer.345f79f6.js} +2 -2
  11. package/dist/client/_nuxt/{DrawerRight.vue.5715b906.js → DrawerRight.vue.e75b5510.js} +1 -1
  12. package/dist/client/_nuxt/{DurationDisplay.vue.700f989f.js → DurationDisplay.vue.73c682ac.js} +1 -1
  13. package/dist/client/_nuxt/{FilepathItem.vue.6f5b0e95.js → FilepathItem.vue.253590ec.js} +1 -1
  14. package/dist/client/_nuxt/{HelpFab.vue.8daa9789.js → HelpFab.vue.b3c1cf3a.js} +1 -1
  15. package/dist/client/_nuxt/{LaunchPage.vue.7c46fca6.js → LaunchPage.vue.45c2e269.js} +1 -1
  16. package/dist/client/_nuxt/{NCheckbox.vue.e0da702b.js → NCheckbox.vue.e6a37232.js} +1 -1
  17. package/dist/client/_nuxt/{NCodeBlock.vue.070d4546.js → NCodeBlock.vue.28dd841e.js} +1 -1
  18. package/dist/client/_nuxt/{NDropdown.vue.13a95889.js → NDropdown.vue.36b68b91.js} +1 -1
  19. package/dist/client/_nuxt/{NIconTitle.vue.1a740209.js → NIconTitle.vue.635c5682.js} +1 -1
  20. package/dist/client/_nuxt/{NLink.vue.4d6f9b4a.js → NLink.vue.19da93af.js} +1 -1
  21. package/dist/client/_nuxt/{NMarkdown.vue.ac2cc78f.js → NMarkdown.vue.283d6615.js} +1 -1
  22. package/dist/client/_nuxt/{NSectionBlock.9ba1ed51.js → NSectionBlock.e780f891.js} +1 -1
  23. package/dist/client/_nuxt/{NSelect.vue.50512422.js → NSelect.vue.60befa30.js} +1 -1
  24. package/dist/client/_nuxt/{NSelectTabs.vue.f9f19824.js → NSelectTabs.vue.1cae281d.js} +1 -1
  25. package/dist/client/_nuxt/{NSwitch.vue.687752dc.js → NSwitch.vue.eb1bdf97.js} +1 -1
  26. package/dist/client/_nuxt/{NTip.vue.e10afe8f.js → NTip.vue.eef318b6.js} +1 -1
  27. package/dist/client/_nuxt/{Navbar.vue.6532550c.js → Navbar.vue.d85c454f.js} +1 -1
  28. package/dist/client/_nuxt/{StateEditor.vue.f97aa771.js → StateEditor.vue.83907c9e.js} +1 -1
  29. package/dist/client/_nuxt/{__blank.5a331261.js → __blank.fd22bfe8.js} +1 -1
  30. package/dist/client/_nuxt/{analyze-build.72962dac.js → analyze-build.3961243f.js} +1 -1
  31. package/dist/client/_nuxt/{assets.44d4e864.js → assets.22c374b3.js} +4 -4
  32. package/dist/client/_nuxt/{client.20a78c8d.js → client.766a1bb7.js} +1 -1
  33. package/dist/client/_nuxt/{components.19031b9b.js → components.f4ae9003.js} +1 -1
  34. package/dist/client/_nuxt/{css.5abce139.js → css.a67813b3.js} +12 -8
  35. package/dist/client/_nuxt/{custom-_name_.72163621.js → custom-_name_.4e0a3203.js} +1 -1
  36. package/dist/client/_nuxt/{default.7fafc9ad.js → default.7b425b73.js} +1 -1
  37. package/dist/client/_nuxt/entry.13b4d578.css +1 -0
  38. package/dist/client/_nuxt/entry.2f74e286.js +27 -0
  39. package/dist/client/_nuxt/{error-404.6a1d031f.js → error-404.9d0e04bf.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.6ecf4027.js → error-500.10115977.js} +1 -1
  41. package/dist/client/_nuxt/{full.70864884.js → full.4288bf38.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.8f58bab5.js → hooks.1d6c1af1.js} +1 -1
  43. package/dist/client/_nuxt/{html.66e44e78.js → html.af01869e.js} +1 -1
  44. package/dist/client/_nuxt/{imports.e2b0659c.js → imports.39a7562f.js} +1 -1
  45. package/dist/client/_nuxt/{index.a42dc69d.js → index.14b447a4.js} +1 -1
  46. package/dist/client/_nuxt/{index.0580e715.js → index.94061115.js} +1 -1
  47. package/dist/client/_nuxt/{javascript.ddb4c460.js → javascript.b7d6d348.js} +7 -7
  48. package/dist/client/_nuxt/{json-editor-vue.daaf9bf6.js → json-editor-vue.87488a70.js} +53 -53
  49. package/dist/client/_nuxt/{middleware.74529e65.js → middleware.66f1417a.js} +1 -1
  50. package/dist/client/_nuxt/{modules.33fc5088.js → modules.3b512e2b.js} +1 -1
  51. package/dist/client/_nuxt/{none.8eb9bb52.js → none.d43da723.js} +1 -1
  52. package/dist/client/_nuxt/{open-graph.17155ec0.js → open-graph.c7507223.js} +1 -1
  53. package/dist/client/_nuxt/{overview.d7fae067.js → overview.dae47b2d.js} +1 -1
  54. package/dist/client/_nuxt/{pages.547750e8.js → pages.0902f86b.js} +1 -1
  55. package/dist/client/_nuxt/{payload.8e277da6.js → payload.7de203b9.js} +1 -1
  56. package/dist/client/_nuxt/{plugins.555a2eb4.js → plugins.30d46375.js} +1 -1
  57. package/dist/client/_nuxt/{runtime-configs.949fefd1.js → runtime-configs.a32dc753.js} +1 -1
  58. package/dist/client/_nuxt/{server-routes.e6b60f13.js → server-routes.7e333622.js} +1 -1
  59. package/dist/client/_nuxt/{settings.8eec4b34.js → settings.5586d729.js} +1 -1
  60. package/dist/client/_nuxt/shellscript.9d056341.js +4 -0
  61. package/dist/client/_nuxt/{state-components.58a8ab6e.js → state-components.7549d0ff.js} +1 -1
  62. package/dist/client/_nuxt/{state-modules.b446bb25.js → state-modules.a4af1949.js} +1 -1
  63. package/dist/client/_nuxt/{storage-options.bdca1e26.js → storage-options.0b849b9a.js} +1 -1
  64. package/dist/client/_nuxt/{storage.2e03df22.js → storage.6d27a7d0.js} +1 -1
  65. package/dist/client/_nuxt/{terminals.d42a6ee5.js → terminals.2f1b22dc.js} +1 -1
  66. package/dist/client/_nuxt/{timeline.bac8e997.js → timeline.849dbd44.js} +1 -1
  67. package/dist/client/_nuxt/{typescript.3ef79501.js → typescript.24e7badf.js} +7 -7
  68. package/dist/client/_nuxt/unocss-runtime.e58f9c20.js +2 -0
  69. package/dist/client/_nuxt/virtual-files.d393fac8.js +1 -0
  70. package/dist/client/_nuxt/{vue-html.b80b464f.js → vue-html.0806679f.js} +1 -1
  71. package/dist/client/_nuxt/{vue.5b4e1de3.js → vue.24311fdc.js} +18 -18
  72. package/dist/client/index.html +31 -31
  73. package/dist/client/modules/analyze-build/index.html +31 -31
  74. package/dist/client/modules/assets/index.html +31 -31
  75. package/dist/client/modules/components/index.html +31 -31
  76. package/dist/client/modules/hooks/index.html +31 -31
  77. package/dist/client/modules/imports/index.html +31 -31
  78. package/dist/client/modules/middleware/index.html +31 -31
  79. package/dist/client/modules/modules/index.html +31 -31
  80. package/dist/client/modules/open-graph/index.html +31 -31
  81. package/dist/client/modules/overview/index.html +31 -31
  82. package/dist/client/modules/pages/index.html +31 -31
  83. package/dist/client/modules/payload/index.html +31 -31
  84. package/dist/client/modules/plugins/index.html +31 -31
  85. package/dist/client/modules/runtime-configs/index.html +31 -31
  86. package/dist/client/modules/server-routes/index.html +31 -31
  87. package/dist/client/modules/storage/index.html +31 -31
  88. package/dist/client/modules/terminals/index.html +31 -31
  89. package/dist/client/modules/timeline/index.html +31 -31
  90. package/dist/client/modules/virtual-files/index.html +31 -31
  91. package/dist/client/settings/index.html +31 -31
  92. package/dist/dirs.d.mts +7 -0
  93. package/dist/module.d.mts +9 -0
  94. package/dist/module.d.ts +1 -1
  95. package/dist/module.json +1 -1
  96. package/dist/runtime/plugins/view/client.mjs +1 -1
  97. package/dist/shared/devtools.2a48a9e5.d.ts +62 -0
  98. package/dist/types.d.mts +42 -0
  99. package/dist/types.d.ts +2 -2
  100. package/package.json +27 -28
  101. package/dist/client/_nuxt/entry.a2a7b315.css +0 -1
  102. package/dist/client/_nuxt/entry.ecba488a.js +0 -27
  103. package/dist/client/_nuxt/shellscript.3d8bff4d.js +0 -4
  104. package/dist/client/_nuxt/unocss-runtime.dc09e3b2.js +0 -2
  105. package/dist/client/_nuxt/virtual-files.56c1d2cb.js +0 -1
  106. /package/dist/{global-2a48a9e5.d.ts → shared/devtools.2a48a9e5.d.mts} +0 -0
@@ -1,4 +0,0 @@
1
- const e=Object.freeze({information_for_contributors:["This file has been converted from https://github.com/jeff-hykin/better-shell-syntax/blob/master/autogenerated/shell.tmLanguage.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],version:"https://github.com/jeff-hykin/better-shell-syntax/commit/1bad17d8badf6283125aaa7c31be06ba64146a0f",name:"shellscript",scopeName:"source.shell",patterns:[{include:"#initial_context"}],repository:{alias_statement:{begin:"(alias)[ \\t]*+[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.type.alias.shell"},2:{name:"storage.modifier.$2.shell"},3:{name:"variable.other.assignment.shell"},4:{name:"punctuation.definition.array.access.shell"},5:{name:"variable.other.assignment.shell"},6:{name:"punctuation.definition.array.access.shell"},7:{name:"keyword.operator.assignment.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#normal_statement_context"}]},argument:{begin:"[ \\t]++(?!(?:&|\\||\\(|\\[|#|\\n|$|;))",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.argument.shell",patterns:[{include:"#argument_context"},{include:"#line_continuation"}]},argument_context:{patterns:[{match:`[ \\t]*+([^
2
- '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>))`,captures:{1:{name:"string.unquoted.argument.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}}},{include:"#normal_statement_context"}]},assignment:{patterns:[{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))[ \\t]*+(\\()",end:"\\)",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"punctuation.shell"}},endCaptures:{0:{name:"punctuation.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]},{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]}]},basic_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))|((?!"|'|\\\\\\n?$)[^!'" \\t\\n\\r]+?))(?:(?= |\\t)|(?=;|\\||&|\\n|\\)|\\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))`,captures:{1:{name:"storage.modifier.$1.shell"},2:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"(?<!\\w)(?:return|break)(?!\\w)",name:"keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|unsetopt|autoload|suspend|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"support.function.builtin.shell"},{include:"#variable"}]}},name:"meta.statement.command.name.basic.shell"},block_comment:{begin:"\\s*+(\\/\\*)",end:"\\*\\/",beginCaptures:{1:{name:"punctuation.definition.comment.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.comment.end.shell"}},name:"comment.block.shell"},boolean:{match:"\\b(?:true|false)\\b",name:"constant.language.$0.shell"},"case-clause":{patterns:[{begin:"(?=\\S)",end:";;",endCaptures:{0:{name:"punctuation.terminator.case-clause.shell"}},name:"meta.scope.case-clause.shell",patterns:[{begin:"\\(|(?=\\S)",beginCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},name:"meta.scope.case-pattern.shell",patterns:[{match:"\\|",name:"punctuation.separator.pipe-sign.shell"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#pathname"}]},{begin:"(?<=\\))",end:"(?=;;)",name:"meta.scope.case-clause-body.shell",patterns:[{include:"#initial_context"}]}]}]},comment:{match:"(?:^|[ \\t]++)(?:((#!).*)|((#).*))",captures:{1:{name:"comment.line.number-sign.shell meta.shebang.shell"},2:{name:"punctuation.definition.comment.shebang.shell"},3:{name:"comment.line.number-sign.shell"},4:{name:"punctuation.definition.comment.shell"}}},comments:{patterns:[{include:"#block_comment"},{include:"#line_comment"}]},"compound-command":{patterns:[{begin:"\\[{1,2}",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},end:"\\]{1,2}",endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical-expression"},{include:"#initial_context"}]},{begin:"\\({2}",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\){2}",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.subshell.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.subshell.shell"}},name:"meta.scope.subshell.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=\\s|^){(?=\\s|$)",beginCaptures:{0:{name:"punctuation.definition.group.shell"}},end:"(?<=^|;)\\s*(})",endCaptures:{1:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},continuation_of_double_quoted_command_name:{begin:'\\G(?<=")',end:'"',beginCaptures:{},endCaptures:{0:{name:"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},continuation_of_single_quoted_command_name:{begin:"\\G(?<=')",end:"'",beginCaptures:{},endCaptures:{0:{name:"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command"},custom_command_names:{patterns:[]},custom_commands:{patterns:[]},double_quote_context:{patterns:[{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},double_quote_escape_char:{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},function_definition:{begin:"[ \\t]*+(?:(\\bfunction\\b)[ \\t]*+([^ \\t\\n\\r\\(\\)=]+)(?:(\\()[ \\t]*+(\\)))?|([^ \\t\\n\\r\\(\\)=]+)[ \\t]*+(\\()[ \\t]*+(\\)))",end:"(?<=\\}|\\))",beginCaptures:{1:{name:"storage.type.function.shell"},2:{name:"entity.name.function.shell"},3:{name:"punctuation.definition.arguments.shell"},4:{name:"punctuation.definition.arguments.shell"},5:{name:"entity.name.function.shell"},6:{name:"punctuation.definition.arguments.shell"},7:{name:"punctuation.definition.arguments.shell"}},endCaptures:{},name:"meta.function.shell",patterns:[{match:"\\G(?:\\t| |\\n)"},{begin:"\\{",end:"\\}",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]},{begin:"\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]}],applyEndPatternLast:1},heredoc:{patterns:[{begin:`((?<!<)<<-)[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^\\t*(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.indent",patterns:[]},{begin:`((?<!<)<<(?!<))[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.no-indent",patterns:[]},{begin:`((?<!<)<<-)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^\\t*(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]},{begin:`((?<!<)<<(?!<))[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.no-indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]}]},herestring:{patterns:[{begin:"(<<<)\\s*(('))",beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.single.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:"(')",endCaptures:{0:{name:"string.quoted.single.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.single.shell"},{begin:'(<<<)\\s*(("))',beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.double.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:'(")',endCaptures:{0:{name:"string.quoted.double.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.double.shell",patterns:[{include:"#double_quote_context"}]},{captures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.unquoted.herestring.shell",patterns:[{include:"#initial_context"}]}},match:"(<<<)\\s*(([^\\s)\\\\]|\\\\.)+)",name:"meta.herestring.shell"}]},initial_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#logical_expression_double"},{include:"#logical_expression_single"},{include:"#misc_ranges"},{include:"#loop"},{include:"#function_definition"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#alias_statement"},{include:"#normal_statement"},{include:"#string"},{include:"#support"}]},inline_comment:{match:"(\\/\\*)((?:[^\\*]|(?:\\*)++[^\\/])*+((?:\\*)++\\/))",captures:{1:{name:"comment.block.shell punctuation.definition.comment.begin.shell"},2:{name:"comment.block.shell"},3:{patterns:[{match:"\\*\\/",name:"comment.block.shell punctuation.definition.comment.end.shell"},{match:"\\*",name:"comment.block.shell"}]}}},interpolation:{patterns:[{begin:"\\$\\({2}",beginCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.begin.shell"}},end:"\\)\\s*\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"`",beginCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},end:"`",endCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},name:"string.interpolated.backtick.shell",patterns:[{match:"\\\\[`\\\\$]",name:"constant.character.escape.shell"},{begin:"(?<=\\W)(?=#)(?!#{)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.shell"}},end:"(?!\\G)",patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.shell"}},end:"(?=`)",name:"comment.line.number-sign.shell"}]},{include:"#initial_context"}]},{begin:"\\$\\(",beginCaptures:{0:{name:"punctuation.definition.evaluation.parens.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.parens.end.shell"}},name:"string.interpolated.dollar.shell",patterns:[{include:"#initial_context"}]}]},keyword:{patterns:[{match:"(?<=^|;|&| |\\t)(?:then|else|elif|fi|for|in|do|done|select|case|continue|esac|while|until|return)(?= |\\t|;|&|$)",name:"keyword.control.$0.shell"}]},line_comment:{begin:"\\s*+(\\/\\/)",end:"(?<=\\n)(?<!\\\\\\n)",beginCaptures:{1:{name:"punctuation.definition.comment.shell"}},endCaptures:{},name:"comment.line.double-slash.shell",patterns:[{include:"#line_continuation_character"}]},line_continuation:{match:"\\\\(?=\\n)",name:"constant.character.escape.line-continuation.shell"},"logical-expression":{patterns:[{comment:"do we want a special rule for ( expr )?",match:"=[=~]?|!=?|<|>|&&|\\|\\|",name:"keyword.operator.logical.shell"},{match:"(?<!\\S)-(nt|ot|ef|eq|ne|l[te]|g[te]|[a-hknoprstuwxzOGLSN])\\b",name:"keyword.operator.logical.shell"}]},logical_expression_context:{patterns:[{include:"#regex_comparison"},{include:"#logical-expression"},{include:"#logical_expression_single"},{include:"#logical_expression_double"},{include:"#comment"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},logical_expression_double:{begin:"\\[\\[",end:"\\]\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},logical_expression_single:{begin:"\\[",end:"\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},loop:{patterns:[{begin:"(?<=^|;|&|\\s)(for)\\s+(?=\\({2})",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(for)\\s+(.+?)\\s+(in)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell",patterns:[{include:"#string"}]},3:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-in-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(while|until)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.while-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(select)\\s+((?:[^\\s\\\\]|\\\\.)+)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell"}},end:"(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",endCaptures:{1:{name:"keyword.control.shell"}},name:"meta.scope.select-block.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)case(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)esac(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.case-block.shell",patterns:[{begin:"(?<=^|;|&|\\s)in(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)(?=esac(\\s|;|&|$))",name:"meta.scope.case-body.shell",patterns:[{include:"#comment"},{include:"#case-clause"}]},{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)if(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)fi(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.if-block.shell",patterns:[{include:"#initial_context"}]}]},math:{patterns:[{include:"#variable"},{match:"\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",name:"keyword.operator.arithmetic.shell"},{match:"0[xX][0-9A-Fa-f]+",name:"constant.numeric.hex.shell"},{match:"0\\d+",name:"constant.numeric.octal.shell"},{match:"\\d{1,2}#[0-9a-zA-Z@_]+",name:"constant.numeric.other.shell"},{match:"\\d+",name:"constant.numeric.integer.shell"}]},misc_ranges:{patterns:[{include:"#logical_expression_single"},{include:"#logical_expression_double"},{begin:"\\(\\(",end:"\\)\\)",beginCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},endCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},name:"meta.arithmetic.shell",patterns:[{include:"#math"}]},{begin:"(?<!=)\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.subshell"}},endCaptures:{0:{name:"punctuation.definition.subshell"}},name:"meta.scope.subshell",patterns:[{include:"#initial_context"}]},{begin:"(?<![^ \\t])({)",end:"}",beginCaptures:{1:{name:"punctuation.definition.group.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},modifiers:{match:"(?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$)",name:"storage.modifier.$0.shell"},normal_statement:{begin:"(?!^[ \\t]*+$)(?:(?<=^if | if |\\tif |^elif | elif |\\telif |^then | then |\\tthen |^else | else |\\telse |^while | while |\\twhile |^do | do |\\tdo )|(?<=(?:^|;|\\||&|!|\\(|\\{|\\`)))[ \\t]*+(?!nocorrect\\W|nocorrect\\$|function\\W|function\\$|foreach\\W|foreach\\$|repeat\\W|repeat\\$|logout\\W|logout\\$|coproc\\W|coproc\\$|select\\W|select\\$|while\\W|while\\$|pushd\\W|pushd\\$|until\\W|until\\$|case\\W|case\\$|done\\W|done\\$|elif\\W|elif\\$|else\\W|else\\$|esac\\W|esac\\$|popd\\W|popd\\$|then\\W|then\\$|time\\W|time\\$|for\\W|for\\$|end\\W|end\\$|fi\\W|fi\\$|do\\W|do\\$|in\\W|in\\$|if\\W|if\\$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.shell",patterns:[{include:"#function_definition"},{include:"#assignment"},{begin:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.shell",patterns:[{begin:"\\G",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.name.shell",patterns:[{include:"#modifiers"},{match:"(?<!\\w)(?:return|break)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|unsetopt|autoload|suspend|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{include:"#variable"},{match:`(?<=\\G|'|"|\\}|\\))([^ \\n\\t\\r"'=;&\\|\`\\)\\{]+)`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell"}}},{begin:`(?:\\G|(?<! |\\t|;|\\||&|\\n|\\{|#))((?:\\$)?)((?:(")|(')))`,end:"(?<!\\G)(?<=(?:\\2))",beginCaptures:{1:{name:"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},2:{},3:{name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},4:{name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},endCaptures:{},patterns:[{include:"#continuation_of_single_quoted_command_name"},{include:"#continuation_of_double_quoted_command_name"}]},{include:"#line_continuation"}]},{include:"#line_continuation"},{include:"#option"},{include:"#argument"},{include:"#statement_context"},{include:"#string"}]},{include:"#line_continuation"},{include:"#normal_statement_context"}]},normal_statement_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#misc_ranges"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},normal_statement_seperator:{match:"(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)",captures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}}},numeric_literal:{match:"[ \\t]*+(?<==| |\\t|^|\\{|\\(|\\[)(?:(?:(?:(?:(0[xX][0-9A-Fa-f]+)|(0\\d+))|(\\d{1,2}#[0-9a-zA-Z@_]+))|(-?\\d+\\.\\d+))|(-?\\d+))(?!>)",captures:{1:{name:"constant.numeric.shell constant.numeric.hex.shell"},2:{name:"constant.numeric.shell constant.numeric.octal.shell"},3:{name:"constant.numeric.shell constant.numeric.other.shell"},4:{name:"constant.numeric.shell constant.numeric.integer.shell"},5:{name:"constant.numeric.shell constant.numeric.integer.shell"}}},option:{begin:"[ \\t]++(-)((?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t])))",end:"(?:(?=[ \\t])|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))",beginCaptures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}},endCaptures:{},contentName:"string.unquoted.argument constant.other.option",patterns:[{include:"#option_context"}]},option_context:{patterns:[{include:"#misc_ranges"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},pathname:{patterns:[{match:"(?<=\\s|:|=|^)~",name:"keyword.operator.tilde.shell"},{match:"\\*|\\?",name:"keyword.operator.glob.shell"},{begin:"([?*+@!])(\\()",beginCaptures:{1:{name:"keyword.operator.extglob.shell"},2:{name:"punctuation.definition.extglob.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.extglob.shell"}},name:"meta.structure.extglob.shell",patterns:[{include:"#initial_context"}]}]},pipeline:{patterns:[{match:"(?<=^|;|&|\\s)(time)(?=\\s|;|&|$)",name:"keyword.other.shell"},{match:"[|!]",name:"keyword.operator.pipe.shell"}]},redirect_number:{match:"(?<=[ \\t])(?:(1)|(2)|(\\d+))(?=>)",captures:{1:{name:"keyword.operator.redirect.stdout.shell"},2:{name:"keyword.operator.redirect.stderr.shell"},3:{name:"keyword.operator.redirect.$3.shell"}}},redirection:{patterns:[{begin:"[><]\\(",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.interpolated.process-substitution.shell",patterns:[{include:"#initial_context"}]},{match:"(?<![<>])(&>|\\d*>&\\d*|\\d*(>>|>|<)|\\d*<&|\\d*<>)(?![<>])",name:"keyword.operator.redirect.shell"}]},regex_comparison:{match:"\\=~",name:"keyword.operator.logical.regex.shell"},regexp:{patterns:[{match:".+"}]},simple_options:{match:"(?:[ \\t]++\\-\\w+)*",captures:{0:{patterns:[{match:"[ \\t]++(\\-)(\\w+)",captures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}}}]}}},start_of_command:{match:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)"},start_of_double_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
3
- '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$")|")`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},start_of_single_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
4
- '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$')|')`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},string:{patterns:[{match:"\\\\.",name:"constant.character.escape.shell"},{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.shell"},{begin:'\\$?"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.double.shell",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},{begin:"\\$'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.dollar.shell",patterns:[{match:"\\\\(?:a|b|e|f|n|r|t|v|\\\\|')",name:"constant.character.escape.ansi-c.shell"},{match:'\\\\[0-9]{3}"',name:"constant.character.escape.octal.shell"},{match:'\\\\x[0-9a-fA-F]{2}"',name:"constant.character.escape.hex.shell"},{match:'\\\\c."',name:"constant.character.escape.control-char.shell"}]}]},support:{patterns:[{match:"(?<=^|;|&|\\s)(?::|\\.)(?=\\s|;|&|$)",name:"support.function.builtin.shell"}]},variable:{patterns:[{match:"(\\$)(\\@(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},2:{name:"variable.parameter.positional.all.shell"}}},{match:"(\\$)([0-9](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"variable.parameter.positional.shell"}}},{match:"(\\$)([-*#?$!0_](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.language.special.shell"},2:{name:"variable.language.special.shell"}}},{begin:"(\\$)(\\{)[ \\t]*+(?=\\d)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"[0-9]+",name:"variable.parameter.positional.shell"},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{begin:"(\\$)(\\{)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{match:"(\\$)(\\w+(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.other.normal.shell"},2:{name:"variable.other.normal.shell"}}}]}},displayName:"Shell",aliases:["bash","console","sh","shell","zsh"]});var n=[e];export{n as default};
@@ -1,2 +0,0 @@
1
- import{$ as St}from"./entry.ecba488a.js";const xt=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ut=Object.freeze({...xt,...U}),$t=Object.freeze({...ut,body:"",hidden:!1}),_t=Object.freeze({width:null,height:null}),ht=Object.freeze({..._t,...U});function Ct(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function J(e,t){const n=Ct(e,t);for(const s in $t)s in U?s in e&&!(s in n)&&(n[s]=U[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function At(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const c=s[o]&&s[o].parent,f=c&&i(c);f&&(r[o]=[c].concat(f))}return r[o]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function Q(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function o(c){i=J(s[c]||r[c],i)}return o(t),n.forEach(o),J(e,i)}function Ot(e,t){if(e.icons[t])return Q(e,t,[]);const n=At(e,[t])[t];return n?Q(e,t,n):null}const Mt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Et=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function tt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(Mt);if(s===null||!s.length)return e;const r=[];let i=s.shift(),o=Et.test(i);for(;;){if(o){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*t*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function jt(e){let t="";const n=e.indexOf("<defs");for(;n>=0;){const s=e.indexOf(">",n),r=e.indexOf("</defs");if(s===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;t+=e.slice(s+1,r).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:t,content:e}}function kt(e,t,n){const{defs:s,content:r}=jt(e);return(s?"<defs>"+s+"</defs>":"")+t+r+n}const Z=e=>e==="unset"||e==="undefined"||e==="none";function Pt(e,t){const n={...ut,...e},s={...ht,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(m=>{const d=[],S=m.hFlip,w=m.vFlip;let v=m.rotate;S?w?v+=2:(d.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),d.push("scale(-1 1)"),r.top=r.left=0):w&&(d.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),d.push("scale(1 -1)"),r.top=r.left=0);let l;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:l=r.height/2+r.top,d.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:d.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,d.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")");break}v%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),d.length&&(i=kt(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,c=s.height,f=r.width,u=r.height;let a,h;o===null?(h=c===null?"1em":c==="auto"?u:c,a=tt(h,f/u)):(a=o==="auto"?f:o,h=c===null?tt(a,u/f):c==="auto"?u:c);const p={},y=(m,d)=>{Z(d)||(p[m]=d.toString())};y("width",a),y("height",h);const $=[r.left,r.top,f,u];return p.viewBox=$.join(" "),{attributes:p,viewBox:$,body:i}}function Lt(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}const zt=/\swidth\s*=\s*["'](\w+)["']/,Tt=/\sheight\s*=\s*["'](\w+)["']/,G=/<svg\s+/;function It(e,t,n){const s=e.slice(0,e.indexOf(">")),r=(i,o)=>{const c=o.exec(s),f=c!=null,u=t[i];return!u&&!Z(u)&&(typeof n=="number"?n>0&&(t[i]=`${n}em`):c&&(t[i]=c[1])),f};return[r("width",zt),r("height",Tt)]}async function dt(e,t,n,s,r,i){const{scale:o,addXmlNs:c=!1}=s??{},{additionalProps:f={},iconCustomizer:u}=s?.customizations??{},a=await r?.()??{};await u?.(t,n,a),Object.keys(f).forEach(m=>{const d=f[m];d!=null&&(a[m]=d)}),i?.(a);const[h,p]=It(e,a,o);c&&(!e.includes("xmlns=")&&!a.xmlns&&(a.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!a["xmlns:xlink"]&&(a["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const y=Object.keys(a).map(m=>m==="width"&&h||m==="height"&&p?null:`${m}="${a[m]}"`).filter(m=>m!=null);if(y.length&&(e=e.replace(G,`<svg ${y.join(" ")} `)),s){const{defaultStyle:m,defaultClass:d}=s;d&&!e.includes("class=")&&(e=e.replace(G,`<svg class="${d}" `)),m&&!e.includes("style=")&&(e=e.replace(G,`<svg style="${m}" `))}const $=s?.usedProps;return $&&(Object.keys(f).forEach(m=>{const d=a[m];d!=null&&($[m]=d)}),typeof a.width<"u"&&a.width!==null&&($.width=a.width),typeof a.height<"u"&&a.height!==null&&($.height=a.height)),e}async function et(e,t,n,s){let r;try{if(typeof e=="function")r=await e(n);else{const i=e[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${t}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,t,n):r,r.startsWith("<svg")?await dt(s?.customizations?.trimCustomSvg===!0?Lt(r):r,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),r)}}async function pt(e,t,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=Ot(e,o),r){let c={...ht};typeof i=="function"&&(c=i(c));const{attributes:{width:f,height:u,...a},body:h}=Pt(r,c),p=s?.scale;return await dt(`<svg >${h}</svg>`,t,o,s,()=>({...a}),y=>{const $=(m,d)=>{const S=y[m];let w;if(!Z(S)){if(S)return;typeof p=="number"?p&&(w=`${p}em`):w=d}w?y[m]=w:delete y[m]};$("width",f),$("height",u)})}}const mt=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let r;try{r=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await et(()=>r,e,t,n);if("icons"in r){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await pt(r,e,i,n)}}}else return await et(s,e,t,n)};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Nt=Ft(Rt);function Vt(e){const t=new Map;function n(s){if(Nt.includes(s))return t.has(s)||t.set(s,St(`${e}@iconify-json/${s}/icons.json`)),t.get(s)}return async(s,r,i)=>{let o=await mt(s,r,i);if(o)return o;const c=await n(s);if(c){const f=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];o=await pt(c,s,f,i)}return o}}function Dt(e){const t=e.length;let n=-1,s,r="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.charCodeAt(n),s===0){r+="�";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&t===1&&s===45){r+=`\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=e.charAt(n);continue}r+=`\\${e.charAt(n)}`}return r}const W=Dt;function k(e=[]){return Array.isArray(e)?e:[e]}function R(e){return Array.from(new Set(e))}function E(e){return typeof e=="string"}function N(e){return E(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Bt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>N(t)):[e]:[N(e)]}function Ut(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(e[r][0]===t&&e[r][1]===n)return!1;return!0})}function Y(e){return e==null?"":Ut(e).map(([t,n])=>n!=null?`${t}:${n};`:void 0).filter(Boolean).join("")}function V(e){return e&&typeof e=="object"&&!Array.isArray(e)}function gt(e,t,n=!1){const s=e,r=t;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=gt(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function B(e){let t,n,s;if(Array.isArray(e)){for(n=Array(t=e.length);t--;)n[t]=(s=e[t])&&typeof s=="object"?B(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:B(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?B(s):s;return n}return e}function Ht(e){return E(e[0])}function Gt(e){return E(e[0])}const nt="$$shortcut-no-merge";function Wt(e){return typeof e=="function"?{match:e}:e}function rt(e){return e.length===3}function Yt(e){return e!=null}function qt(){}var Kt=Object.defineProperty,Xt=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zt=(e,t,n)=>(Xt(e,typeof t!="symbol"?t+"":t,n),n);class Jt{constructor(){Zt(this,"_map",new Map)}get(t,n){const s=this._map.get(t);if(s)return s.get(n)}getFallback(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.has(n)||r.set(n,s),r.get(n)}set(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.set(n,s),this}has(t,n){return this._map.get(t)?.has(n)}delete(t,n){return this._map.get(t)?.delete(n)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>t(i,n,r)))}}var Qt=Object.defineProperty,te=(e,t,n)=>t in e?Qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t,n)=>(te(e,typeof t!="symbol"?t+"":t,n),n);class yt extends Set{constructor(t){super(t),ee(this,"_map"),this._map??(this._map=new Map)}add(t){return this._map??(this._map=new Map),this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,n){return this._map.set(t,n),super.add(t)}}function q(e){return e instanceof yt}const D={};function ne(e=["-",":"]){const t=e.join("|");return D[t]||(D[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),D[t].lastIndex=0,D[t]}function re(e,t=["-",":"],n=5){const s=ne(t);let r,i=e.toString();const o=new Set,c=new Map;do r=!1,i=i.replace(s,(u,a,h,p,y)=>{if(!t.includes(h))return u;r=!0,o.add(a+h);const $=y+a.length+h.length+1,m={length:u.length,items:[]};c.set(y,m);for(const d of[...p.matchAll(/\S+/g)]){const S=$+d.index;let w=c.get(S)?.items;w?c.delete(S):w=[{offset:S,length:d[0].length,className:d[0]}];for(const v of w)v.className=v.className==="~"?a:v.className.replace(/^(!?)(.*)/,`$1${a}${h}$2`),m.items.push(v)}return"$".repeat(u.length)}),n-=1;while(r&&n);let f;if(typeof e=="string"){f="";let u=0;for(const[a,h]of c)f+=e.slice(u,a),f+=h.items.map(p=>p.className).join(" "),u=a+h.length;f+=e.slice(u)}else{f=e;for(const[u,a]of c)f.overwrite(u,u+a.length,a.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:c,get expanded(){return f.toString()}}}function se(e,t=["-",":"],n=5){const s=re(e,t,n);return typeof e=="string"?s.expanded:e}const st=new Set;function wt(e){st.has(e)||(console.warn("[unocss]",e),st.add(e))}const ie=/[\\:]?[\s'"`;{}]+/g;function oe(e){return e.split(ie)}const ae={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return oe(e)}};function ce(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const K="default",X="preflights",le="shortcuts",fe="imports",ue={[fe]:-200,[X]:-100,[le]:-10,[K]:0};function vt(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const it="_uno_resolved";function he(e){if(it in e)return e;e={...e},Object.defineProperty(e,it,{value:!0,enumerable:!1});const t=e.shortcuts?vt(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){const n=s=>{s[2]||(s[2]={});const r=s[2];r.prefix==null&&e.prefix&&(r.prefix=k(e.prefix)),r.layer==null&&e.layer&&(r.layer=e.layer)};t?.forEach(n),e.rules?.forEach(n)}return e}function bt(e){const t=he(e);if(!t.presets)return[t];const n=(t.presets||[]).flatMap(k).flatMap(bt);return[t,...n]}function ot(e={},t={}){const n=Object.assign({},t,e),s=R((n.presets||[]).flatMap(k).flatMap(bt)),r=[...s.filter(l=>l.enforce==="pre"),...s.filter(l=>!l.enforce),...s.filter(l=>l.enforce==="post")],i=[...r,n],o=[...i].reverse(),c=Object.assign({},ue,...i.map(l=>l.layers));function f(l){return R(i.flatMap(b=>k(b[l]||[])))}const u=f("extractors");let a=o.find(l=>l.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=ae),a&&!u.includes(a)&&u.unshift(a),u.sort((l,b)=>(l.order||0)-(b.order||0));const h=f("rules"),p={},y=h.length,$=h.map((l,b)=>{if(Ht(l)){k(l[2]?.prefix||"").forEach(M=>{p[M+l[0]]=[b,l[1],l[2],l]});return}return[b,...l]}).filter(Boolean).reverse();let m=de(i.map(l=>l.theme));const d=f("extendTheme");for(const l of d)m=l(m)||m;const S={templates:R(i.flatMap(l=>k(l.autocomplete?.templates))),extractors:i.flatMap(l=>k(l.autocomplete?.extractors)).sort((l,b)=>(l.order||0)-(b.order||0)),shorthands:pe(i.map(l=>l.autocomplete?.shorthands||{}))};let w=f("separators");w.length||(w=[":","-"]);const v={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:l=>l,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:m,rulesSize:y,rulesDynamic:$,rulesStaticMap:p,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:S,variants:f("variants").map(Wt).sort((l,b)=>(l.order||0)-(b.order||0)),shortcuts:vt(f("shortcuts")).reverse(),extractors:u,safelist:f("safelist"),separators:w,details:n.details??n.envMode==="dev"};for(const l of i)l?.configResolved?.(v);return v}function de(e){return e.map(t=>t?B(t):{}).reduce((t,n)=>gt(t,n),{})}function pe(e){return e.reduce((t,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...t,...s}},{})}const me="0.55.3";var ge=Object.defineProperty,ye=(e,t,n)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t,n)=>(ye(e,typeof t!="symbol"?t+"":t,n),n);class we{constructor(t={},n={}){this.userConfig=t,this.defaults=n,I(this,"version",me),I(this,"_cache",new Map),I(this,"config"),I(this,"blocked",new Set),I(this,"parentOrders",new Map),I(this,"events",ce()),this.config=ot(t,n),this.events.emit("config",this.config)}setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ot(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const r={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(q(o)&&q(s))for(const c of o)s.setCount(c,s.getCount(c)+o.getCount(c));else for(const c of o)s.add(c)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=t;for(const u of this.config.preprocess)r=u(t);if(this.isBlocked(r)){this.blocked.add(t),this._cache.set(s,null);return}const i=await this.matchVariants(t,r);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(s,null);return}const o=this.makeContext(t,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const c=await this.expandShortcut(o.currentSelector,o),f=c?await this.stringifyShortcuts(o.variantMatch,o,c[0],c[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(Yt);if(f?.length)return this._cache.set(s,f),f;this._cache.set(s,null)}async generate(t,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:c=!1,extendedInfo:f=!1}=n,u=E(t)?await this.applyExtractors(t,s,f?new yt:new Set):Array.isArray(t)?new Set(t):t;o&&this.config.safelist.forEach(l=>{u.has(l)||u.add(l)});const a=c?"":`
2
- `,h=new Set([K]),p=f?new Map:new Set,y=new Map;let $={};const m=Array.from(u).map(async l=>{if(p.has(l))return;const b=await this.parseToken(l);if(b!=null){p instanceof Map?p.set(l,{data:b,count:q(u)?u.getCount(l):-1}):p.add(l);for(const C of b){const M=C[3]||"",O=C[4]?.layer;y.has(M)||y.set(M,[]),y.get(M).push(C),O&&h.add(O)}}});await Promise.all(m),await(async()=>{if(!i)return;const l={generator:this,theme:this.config.theme},b=new Set([]);this.config.preflights.forEach(({layer:C=X})=>{h.add(C),b.add(C)}),$=Object.fromEntries(await Promise.all(Array.from(b).map(async C=>{const O=(await Promise.all(this.config.preflights.filter(L=>(L.layer||X)===C).map(async L=>await L.getCSS(l)))).filter(Boolean).join(a);return[C,O]})))})();const d=this.config.sortLayers(Array.from(h).sort((l,b)=>(this.config.layers[l]??0)-(this.config.layers[b]??0)||l.localeCompare(b))),S={},w=l=>{if(S[l])return S[l];let b=Array.from(y).sort((M,O)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(O[0])??0)||M[0]?.localeCompare(O[0]||"")||0).map(([M,O])=>{const L=O.length,F=O.filter(g=>(g[4]?.layer||K)===l).sort((g,A)=>g[0]-A[0]||(g[4]?.sort||0)-(A[4]?.sort||0)||g[5]?.currentSelector?.localeCompare(A[5]?.currentSelector??"")||g[1]?.localeCompare(A[1]||"")||g[2]?.localeCompare(A[2]||"")||0).map(([,g,A,,j,,z])=>[[[(g&&xe(g,r))??"",j?.sort??0]],A,!!(z??j?.noMerge)]);if(!F.length)return;const x=F.reverse().map(([g,A,j],z)=>{if(!j&&this.config.mergeSelectors)for(let T=z+1;T<L;T++){const P=F[T];if(P&&!P[2]&&(g&&P[0]||g==null&&P[0]==null)&&P[1]===A)return g&&P[0]&&P[0].push(...g),null}const H=g?R(g.sort((T,P)=>T[1]-P[1]||T[0]?.localeCompare(P[0]||"")||0).map(T=>T[0]).filter(Boolean)):[];return H.length?`${H.join(`,${a}`)}{${A}}`:A}).filter(Boolean).reverse().join(a);if(!M)return x;const _=M.split(" $$ ");return`${_.join("{")}{${a}${x}${a}}${_.map(g=>"").join("}")}`}).filter(Boolean).join(a);i&&(b=[$[l],b].filter(Boolean).join(a));const C=c?"":`/* layer: ${l} */${a}`;return S[l]=b?C+b:""},v=(l=d,b)=>l.filter(C=>!b?.includes(C)).map(C=>w(C)||"").filter(Boolean).join(a);return{get css(){return v()},layers:d,matched:p,getLayers:v,getLayer:w}}async matchVariants(t,n){const s=new Set,r=[];let i=n||t,o=!1;const c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(const f of this.config.variants){if(!f.multiPass&&s.has(f))continue;let u=await f.match(i,c);if(u){if(E(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,r.unshift(u),s.add(f),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,r,s]}applyVariants(t,n=t[4],s=t[1]){const i=n.slice().sort((u,a)=>(u.order||0)-(a.order||0)).reduceRight((u,a)=>h=>{const p=a.body?.(h.entries)||h.entries,y=Array.isArray(a.parent)?a.parent:[a.parent,void 0];return(a.handle??_e)({...h,entries:p,selector:a.selector?.(h.selector,p)||h.selector,parent:y[0]||h.parent,parentOrder:y[1]||h.parentOrder,layer:a.layer||h.layer,sort:a.sort||h.sort},u)},u=>u)({prefix:"",selector:$e(s),pseudo:"",entries:t[2]}),{parent:o,parentOrder:c}=i;o!=null&&c!=null&&this.parentOrders.set(o,c);const f={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(f);return f}constructCustomCSS(t,n,s){const r=N(n);if(E(r))return r;const{selector:i,entries:o,parent:c}=this.applyVariants([0,s||t.rawSelector,r,void 0,t.variantHandlers]),f=`${i}{${Y(o)}}`;return c?`${c}{${f}}`:f}async parseUtil(t,n,s=!1,r){const[i,o,c]=E(t)?await this.matchVariants(t):t;this.config.details&&(n.rules=n.rules??[]);const f=this.config.rulesStaticMap[o];if(f&&f[1]&&(s||!f[2]?.internal)){this.config.details&&n.rules.push(f[3]);const a=f[0],h=N(f[1]),p=f[2];return E(h)?[[a,h,p]]:[[a,i,h,p,c]]}n.variantHandlers=c;const{rulesDynamic:u}=this.config;for(const[a,h,p,y]of u){if(y?.internal&&!s)continue;let $=o;if(y?.prefix){const w=k(y.prefix);if(r){const v=k(r);if(!w.some(l=>v.includes(l)))continue}else{const v=w.find(l=>o.startsWith(l));if(v==null)continue;$=o.slice(v.length)}}const m=$.match(h);if(!m)continue;const d=await p(m,n);if(!d)continue;this.config.details&&n.rules.push([h,p,y]);const S=Bt(d).filter(w=>w.length);if(S.length)return S.map(w=>E(w)?[a,w,y]:[a,i,w,y,c])}}stringifyUtil(t,n){if(!t)return;if(rt(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:c,noMerge:f}=this.applyVariants(t),u=Y(r);if(!u)return;const{layer:a,sort:h,...p}=t[3]??{},y={...p,layer:o??a,sort:c??h};return[t[0],s,u,i,y,this.config.details?n:void 0,f]}async expandShortcut(t,n,s=5){if(s===0)return;const r=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:qt;let i,o;for(const c of this.config.shortcuts){let f=t;if(c[2]?.prefix){const a=k(c[2].prefix).find(h=>t.startsWith(h));if(a==null)continue;f=t.slice(a.length)}if(Gt(c)){if(c[0]===f){i=i||c[2],o=c[1],r(c);break}}else{const u=f.match(c[0]);if(u&&(o=c[1](u,n)),o){i=i||c[2],r(c);break}}}if(E(o)&&(o=se(o.trim()).split(/\s+/g)),!o){const[c,f]=E(t)?await this.matchVariants(t):t;if(c!==f){const u=await this.expandShortcut(f,n,s-1);u&&(o=u[0].map(a=>E(a)?c.replace(f,a):a))}}if(o)return[(await Promise.all(o.map(async c=>(E(c)?(await this.expandShortcut(c,n,s-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,n,s,r={layer:this.config.shortcutsLayer}){const i=new Jt,o=(await Promise.all(R(s).map(async a=>{const h=E(a)?await this.parseUtil(a,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(a),void 0,[]]];return h||wt(`unmatched utility "${a}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((a,h)=>a[0]-h[0]),[c,,f]=t,u=[];for(const a of o){if(rt(a)){u.push([a[0],void 0,a[1],void 0,a[2],n,void 0]);continue}const{selector:h,entries:p,parent:y,sort:$,noMerge:m}=this.applyVariants(a,[...a[4],...f],c);i.getFallback(h,y,[[],a[0]])[0].push([p,!!(m??a[3]?.noMerge),$??0])}return u.concat(i.map(([a,h],p,y)=>{const $=(d,S,w)=>{const v=Math.max(...w.map(b=>b[1])),l=w.map(b=>b[0]);return(d?[l.flat(1)]:l).map(b=>{const C=Y(b);if(C)return[h,p,C,y,{...r,noMerge:S,sort:v},n,void 0]})};return[[a.filter(([,d])=>d).map(([d,,S])=>[d,S]),!0],[a.filter(([,d])=>!d).map(([d,,S])=>[d,S]),!1]].map(([d,S])=>[...$(!1,S,d.filter(([w])=>w.some(v=>v[0]===nt))),...$(!0,S,d.filter(([w])=>w.every(v=>v[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(n=>E(n)?n===t:n.test(t))}}function ve(e,t){return new we(e,t)}const be=/\s\$\$\s+/g;function Se(e){return e.match(/\s\$\$\s/)}function xe(e,t){return Se(e)?e.replace(be,t?` ${t} `:" "):t?`${t} ${e}`:e}const at=/^\[(.+?)(~?=)"(.*)"\]$/;function $e(e){return at.test(e)?e.replace(at,(t,n,s,r)=>`[${W(n)}${s}"${W(r)}"]`):`.${W(e)}`}function _e(e,t){return t(e)}function Ce(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ae(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ce(t)}const Oe=3;function Me(e){return function(n={}){const{scale:s=1,mode:r="auto",prefix:i="i-",warn:o=!1,collections:c,extraProperties:f={},customizations:u={},autoInstall:a=!1,layer:h="icons",unit:p}=n,y={addXmlNs:!0,scale:s,customCollections:c,autoInstall:a,warn:void 0,customizations:{...u,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(m,d,S){await u.iconCustomizer?.(m,d,S),p&&(S.width||(S.width=`${s}${p}`),S.height||(S.height=`${s}${p}`))}}};let $;return{name:"@unocss/preset-icons",enforce:"pre",options:n,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([m,d,S=r])=>{let w="",v="",l;$=$||await e(n);const b={};if(d.includes(":"))[w,v]=d.split(":"),l=await $(w,v,{...y,usedProps:b});else{const M=d.split(/-/g);for(let O=Oe;O>=1&&(w=M.slice(0,O).join("-"),v=M.slice(O).join("-"),l=await $(w,v,{...y,usedProps:b}),!l);O--);}if(!l){o&&wt(`failed to load icon "${m}"`);return}const C=`url("data:image/svg+xml;utf8,${Ae(l)}")`;return S==="auto"&&(S=l.includes("currentColor")?"mask":"bg"),S==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...b}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...b}},{layer:h,prefix:i}]]}}}const Ee=Me(async e=>{const{cdn:t}=e;return t?Vt(t):mt});function je(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function ct(e){return e.charAt(0).toUpperCase()+e.slice(1)}function lt(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var ft=["Webkit","Moz","ms"];function ke(e){const t={};function n(s){const r=t[s];if(r)return r;let i=je(s);if(i!=="filter"&&i in e)return t[s]=lt(i);i=ct(i);for(let o=0;o<ft.length;o++){const c=`${ft[o]}${i}`;if(c in e)return t[s]=lt(ct(c))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Pe(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function Le(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,n=window.document,s=()=>n.documentElement,r=t.__unocss||{},i=Object.assign({},e,r.runtime),o=i.defaults||{},c=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=k(o.postprocess)).unshift(ke(n.createElement("div").style)),i.configResolved?.(r,o);const f=ve(r,o),u=new Map;let a=!0,h=new Set,p,y,$=[];const m=()=>new Promise(x=>{$.push(x),y!=null&&clearTimeout(y),y=setTimeout(()=>w().then(()=>{const _=$;$=[],_.forEach(g=>g())}),0)});function d(x){if(x.nodeType!==1)return;const _=x;_.hasAttribute(c)&&_.removeAttribute(c),_.querySelectorAll(`[${c}]`).forEach(g=>{g.removeAttribute(c)})}function S(x,_){let g=u.get(x);if(!g)if(g=n.createElement("style"),g.setAttribute("data-unocss-runtime-layer",x),u.set(x,g),_==null)s().prepend(g);else{const A=S(_),j=A.parentNode;j?j.insertBefore(g,A.nextSibling):s().prepend(g)}return g}async function w(){const x=await f.generate(h);return x.layers.reduce((_,g)=>(S(g,_).innerHTML=x.getLayer(g)??"",g),void 0),h=x.matched,{...x,getStyleElement:_=>u.get(_),getStyleElements:()=>u}}async function v(x){const _=h.size;await f.applyExtractors(x,void 0,h),_!==h.size&&await m()}async function l(){const x=n.body,_=x&&x.outerHTML;_&&(await v(`${_} ${Pe(_)}`),d(s()),d(x))}const b=new MutationObserver(x=>{a||x.forEach(async _=>{if(_.target.nodeType!==1)return;const g=_.target;for(const A of u)if(g===A[1])return;if(_.type==="childList")_.addedNodes.forEach(async A=>{if(A.nodeType!==1)return;const j=A;p&&!p(j)||(await v(j.outerHTML),d(j))});else{if(p&&!p(g))return;if(_.attributeName!==c){const A=Array.from(g.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),j=`<${g.tagName.toLowerCase()} ${A}>`;await v(j)}g.hasAttribute(c)&&g.removeAttribute(c)}})});let C=!1;function M(){if(C)return;const x=s()||n.body;x&&(b.observe(x,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function O(){i.bypassDefined&&ze(f.blocked),l(),M()}function L(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",O):O()}const F=t.__unocss_runtime=t.__unocss_runtime={version:f.version,uno:f,async extract(x){E(x)||(x.forEach(_=>h.add(_)),x=""),await v(x)},extractAll:l,inspect(x){p=x},toggleObserver(x){x===void 0?a=!a:a=!!x,!C&&!a&&L()},update:w};i.ready?.(F)!==!1&&(a=!1,L())}function ze(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),e.add(r))})}catch{continue}}return e}Le({defaults:{presets:[Ee({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
@@ -1 +0,0 @@
1
- import{_ as N}from"./Navbar.vue.6532550c.js";import{_ as B}from"./NCodeBlock.vue.070d4546.js";import{o as c,m as _,k as s,d as R,r as v,bx as S,by as j,av as E,a as f,ad as P,i as l,j as u,F as p,R as I,f as i,l as L,n as U,t as h,E as W,h as z,ak as A,A as G}from"./entry.ecba488a.js";import{_ as H}from"./HelpFab.vue.8daa9789.js";import"./client.20a78c8d.js";const q={class:"markdown-body"},J=s("h1",null,"Virtual Files",-1),K=s("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),M=[J,K],O={__name:"virtual-files",setup(x,{expose:n}){return n({frontmatter:{}}),(d,a)=>(c(),_("div",q,M))}},Q=["onClick"],T=s("div",{"x-divider":""},null,-1),X={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},Z=s("span",{op75:""},"Select a file to start",-1),re=R({__name:"virtual-files",setup(x){const n=v(""),o=S(),d=j(),a=v();E(()=>{if(!d.value)return;const e=`/_vfs.json/${encodeURIComponent(d.value)}`;fetch(e).then(t=>t.json()).then(t=>a.value=t.current)});function y(e){if(o.value?.rootDir)return e.startsWith(o.value?.rootDir)?e.slice(o.value.rootDir.length):e}const m=f(()=>o.value?o.value.entries.filter(e=>!e.id.startsWith(`${o.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),k=f(()=>new P(m.value,{keys:["id","path"]})),b=f(()=>n.value?k.value.search(n.value).map(e=>e.item):m.value);return(e,t)=>{const g=N,$=B,C=A,F=G,V=I,w=O,D=H;return c(),_(p,null,[l(V,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l(g,{search:i(n),"onUpdate:search":t[0]||(t[0]=r=>L(n)?n.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),_(p,null,U(i(b),r=>(c(),_(p,{key:r.id},[s("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:W(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:ee=>d.value=r.id},h(y(r.id)),11,Q),T],64))),128))]),right:u(()=>[i(a)?.content?(c(),_("div",X,[s("div",Y,[s("code",null,h(i(a).id),1)]),l($,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),z(F,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>[Z]),_:1})]),_:1}))]),_:1}),l(D,null,{default:u(()=>[l(w)]),_:1})],64)}}});export{re as default};