@ghfs/cli 0.1.1 → 0.2.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 (83) hide show
  1. package/README.md +41 -1
  2. package/dist/cli.mjs +5875 -572
  3. package/dist/{factory-DmX3S7tf.mjs → factory-UMSInaa_.mjs} +379 -102
  4. package/dist/index.d.mts +363 -2
  5. package/dist/index.mjs +1 -1
  6. package/dist/ui/200.html +1 -1
  7. package/dist/ui/404.html +1 -1
  8. package/dist/ui/_nuxt/1bK2R2pL.js +1 -0
  9. package/dist/ui/_nuxt/{D8rZpOte.js → B0tHio-l.js} +1 -1
  10. package/dist/ui/_nuxt/BBxLfTx_.js +1 -0
  11. package/dist/ui/_nuxt/{Bp3cYrEr.js → BDEKrZIi.js} +1 -1
  12. package/dist/ui/_nuxt/{D4Qn4bBI.js → BKH9P1wN.js} +1 -1
  13. package/dist/ui/_nuxt/{oH_c3LbQ.js → BMKCr1FU.js} +1 -1
  14. package/dist/ui/_nuxt/BNh5okZH.js +4 -0
  15. package/dist/ui/_nuxt/BNzF7F9w.js +1 -0
  16. package/dist/ui/_nuxt/BWLewmBT.js +15 -0
  17. package/dist/ui/_nuxt/BbwaKnwL.js +1 -0
  18. package/dist/ui/_nuxt/BqmRGtwl.js +1 -0
  19. package/dist/ui/_nuxt/Bzq9aFVy.js +1 -0
  20. package/dist/ui/_nuxt/C2jkTI5u.js +2 -0
  21. package/dist/ui/_nuxt/{DElX3lK9.js → C8o6ovMK.js} +17 -17
  22. package/dist/ui/_nuxt/CBU7sHLx.js +1 -0
  23. package/dist/ui/_nuxt/CQja-oog.js +1 -0
  24. package/dist/ui/_nuxt/{BLtJtn59.js → CRqJ_cUM.js} +1 -1
  25. package/dist/ui/_nuxt/{DbWOdLaN.js → CV3vykTa.js} +1 -1
  26. package/dist/ui/_nuxt/{8syuri0t.js → ChS_g7wu.js} +1 -1
  27. package/dist/ui/_nuxt/{DWX1VroF.js → ChgxH8nk.js} +1 -1
  28. package/dist/ui/_nuxt/D4R7-XZQ.js +1 -0
  29. package/dist/ui/_nuxt/D4yIuA0F.js +64 -0
  30. package/dist/ui/_nuxt/DHH7xZXJ.js +11 -0
  31. package/dist/ui/_nuxt/DK734mxh.js +1 -0
  32. package/dist/ui/_nuxt/{CANp3yme.js → DMkUaiYH.js} +1 -1
  33. package/dist/ui/_nuxt/DRje8inN.js +1 -0
  34. package/dist/ui/_nuxt/{COcwbKMJ.js → DSvCPggb.js} +1 -1
  35. package/dist/ui/_nuxt/DToHIG1N.js +1 -0
  36. package/dist/ui/_nuxt/DVC3GhaL.js +1 -0
  37. package/dist/ui/_nuxt/DWBdeKmR.js +1 -0
  38. package/dist/ui/_nuxt/Da-Y9lY6.js +1 -0
  39. package/dist/ui/_nuxt/DeX2bcSG.js +1 -0
  40. package/dist/ui/_nuxt/{B6eN_cS4.js → Df2X-ZUM.js} +1 -1
  41. package/dist/ui/_nuxt/{CG8Ifv2g.js → DhaYTIfE.js} +1 -1
  42. package/dist/ui/_nuxt/Dqspr-GT.js +1 -0
  43. package/dist/ui/_nuxt/{DN-Z_aST.js → Dsmy0J62.js} +1 -1
  44. package/dist/ui/_nuxt/{DM8c43g1.js → HgPamjhh.js} +1 -1
  45. package/dist/ui/_nuxt/KW6xsasC.js +1 -0
  46. package/dist/ui/_nuxt/{CRBrlGZW.js → LYj2JSs-.js} +1 -1
  47. package/dist/ui/_nuxt/MRO5bC_T.js +1 -0
  48. package/dist/ui/_nuxt/Project.BMA756E4.css +1 -0
  49. package/dist/ui/_nuxt/W70NOuRA.js +1 -0
  50. package/dist/ui/_nuxt/builds/latest.json +1 -1
  51. package/dist/ui/_nuxt/builds/meta/f935488c-a544-4bf6-9a65-b421d02508c1.json +1 -0
  52. package/dist/ui/_nuxt/cards.DYf8w2uL.css +1 -0
  53. package/dist/ui/_nuxt/{C7UmGho8.js → e9S_qqu4.js} +1 -1
  54. package/dist/ui/_nuxt/entry.COcGUqGv.css +1 -0
  55. package/dist/ui/_nuxt/error-404.CiGdHkfa.css +1 -0
  56. package/dist/ui/_nuxt/error-500.DrZuPeVU.css +1 -0
  57. package/dist/ui/_nuxt/index.C3E0NnSu.css +1 -0
  58. package/dist/ui/cards/index.html +1 -0
  59. package/dist/ui/hub/index.html +1 -0
  60. package/dist/ui/hub/recent/index.html +1 -0
  61. package/dist/ui/index.html +1 -1
  62. package/dist/ui/recent/index.html +1 -0
  63. package/dist/ui/todo/index.html +1 -0
  64. package/package.json +26 -28
  65. package/skills/ghfs/SKILL.md +10 -0
  66. package/dist/provider-DCIsHVeA.d.mts +0 -249
  67. package/dist/server/index.d.mts +0 -330
  68. package/dist/server/index.mjs +0 -2
  69. package/dist/server-BwSU4kqr.mjs +0 -3518
  70. package/dist/ui/_nuxt/BhrAK1vL.js +0 -1
  71. package/dist/ui/_nuxt/C-HG3fhB.js +0 -1
  72. package/dist/ui/_nuxt/C4zNGwhW.js +0 -1
  73. package/dist/ui/_nuxt/CFbOZP3I.js +0 -75
  74. package/dist/ui/_nuxt/D8_7TLub.js +0 -1
  75. package/dist/ui/_nuxt/DU1UobuO.js +0 -1
  76. package/dist/ui/_nuxt/DnF83RMp.js +0 -1
  77. package/dist/ui/_nuxt/JZbLTBME.js +0 -1
  78. package/dist/ui/_nuxt/W9tJ9s81.js +0 -1
  79. package/dist/ui/_nuxt/builds/meta/12d68071-f4db-447f-b929-9033d66eadc3.json +0 -1
  80. package/dist/ui/_nuxt/entry.DfrFFNxd.css +0 -1
  81. package/dist/ui/_nuxt/eo99z4R2.js +0 -1
  82. package/dist/ui/_nuxt/error-404.C93cll2q.css +0 -1
  83. package/dist/ui/_nuxt/error-500.CPQqaJsC.css +0 -1
@@ -0,0 +1 @@
1
+ import e from"./BDEKrZIi.js";import n from"./B6aJPvgy.js";import a from"./wDzz0qaB.js";import t from"./Dspwwk_N.js";import i from"./CRqJ_cUM.js";import"./CDVJQ6XC.js";import"./DZxFcAj9.js";import"./BIGW1oBm.js";const p=Object.freeze(JSON.parse(`{"displayName":"Julia","name":"julia","patterns":[{"include":"#operator"},{"include":"#array"},{"include":"#string"},{"include":"#parentheses"},{"include":"#bracket"},{"include":"#function_decl"},{"include":"#function_call"},{"include":"#for_block"},{"include":"#keyword"},{"include":"#number"},{"include":"#comment"},{"include":"#type_decl"},{"include":"#symbol"},{"include":"#punctuation"}],"repository":{"array":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(])(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"name":"meta.array.julia","patterns":[{"match":"\\\\bbegin\\\\b","name":"constant.numeric.julia"},{"match":"\\\\bend\\\\b","name":"constant.numeric.julia"},{"include":"#self_no_for_block"}]}]},"bracket":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(})(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"patterns":[{"include":"#self_no_for_block"}]}]},"comment":{"patterns":[{"include":"#comment_block"},{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.julia"}},"end":"\\\\n","name":"comment.line.number-sign.julia","patterns":[{"include":"#comment_tags"}]}]},"comment_block":{"patterns":[{"begin":"#=","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.julia"}},"end":"=#","endCaptures":{"0":{"name":"punctuation.definition.comment.end.julia"}},"name":"comment.block.number-sign-equals.julia","patterns":[{"include":"#comment_tags"},{"include":"#comment_block"}]}]},"comment_tags":{"patterns":[{"match":"\\\\bTODO\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bFIXME\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bCHANGED\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bXXX\\\\b","name":"keyword.other.comment-annotation.julia"}]},"for_block":{"patterns":[{"begin":"\\\\b(for)\\\\b","beginCaptures":{"0":{"name":"keyword.control.julia"}},"end":"(?<![,\\\\s])(\\\\s*\\\\n)","patterns":[{"match":"\\\\bouter\\\\b","name":"keyword.other.julia"},{"include":"$self"}]}]},"function_call":{"patterns":[{"begin":"([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)(\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*})?\\\\.?(\\\\()","beginCaptures":{"1":{"name":"support.function.julia"},"2":{"name":"support.type.julia"},"3":{"name":"meta.bracket.julia"}},"end":"\\\\)(('|(\\\\.'))*\\\\.?')?","endCaptures":{"0":{"name":"meta.bracket.julia"},"1":{"name":"keyword.operator.transposed-func.julia"}},"patterns":[{"include":"#self_no_for_block"}]}]},"function_decl":{"patterns":[{"captures":{"1":{"name":"entity.name.function.julia"},"2":{"name":"support.type.julia"}},"match":"([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)(\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*})?(?=\\\\([^#]*\\\\)(::\\\\S+)?(\\\\s*\\\\bwhere\\\\b\\\\s+.+?)?\\\\s*?=(?![=>]))"},{"captures":{"1":{"name":"keyword.other.julia"},"2":{"name":"keyword.operator.dots.julia"},"3":{"name":"entity.name.function.julia"},"4":{"name":"support.type.julia"}},"match":"\\\\b(function|macro)(?:\\\\s+(?:[_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*(\\\\.))?([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)(\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*})?|\\\\s*)(?=\\\\()"}]},"keyword":{"patterns":[{"match":"\\\\b(?<![.:_])(?:function|mutable\\\\s+struct|struct|macro|quote|abstract\\\\s+type|primitive\\\\s+type|typegroup|module|baremodule|where)\\\\b","name":"keyword.other.julia"},{"match":"\\\\b(?<![:_])(?:if|else|elseif|for|while|begin|let|do|try|catch|finally|return|break|continue)\\\\b","name":"keyword.control.julia"},{"match":"\\\\b(?<![:_])end\\\\b","name":"keyword.control.end.julia"},{"match":"\\\\b(?<![:_])(?:global|local|const)\\\\b","name":"keyword.storage.modifier.julia"},{"match":"\\\\b(?<![:_])export\\\\b","name":"keyword.control.export.julia"},{"match":"^public\\\\b","name":"keyword.control.public.julia"},{"match":"\\\\b(?<![:_])import\\\\b","name":"keyword.control.import.julia"},{"match":"\\\\b(?<![:_])using\\\\b","name":"keyword.control.using.julia"},{"match":"(?<=\\\\S\\\\s+)\\\\b(as)\\\\b(?=\\\\s+\\\\S)","name":"keyword.control.as.julia"},{"match":"@(\\\\.|[_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*|[[\\\\p{S}\\\\p{P}]&&[^@\\\\s]]+)","name":"support.function.macro.julia"}]},"number":{"patterns":[{"captures":{"1":{"name":"constant.numeric.julia"},"2":{"name":"keyword.operator.conjugate-number.julia"}},"match":"((?<![!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]])\\\\b(?:0[Xx]\\\\h(?:_?\\\\h)*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:[0-9](?:_?[0-9])*\\\\.?(?!\\\\.)[0-9_]*|\\\\.[0-9](?:_?[0-9])*)(?:[Eef][-+]?[0-9](?:_?[0-9])*)?(?:(?:im|Inf(?:16|32|64)?|NaN(?:16|32|64)?|π|pi|ℯ)\\\\b)?|[0-9]+|Inf(?:16|32|64)?\\\\b|NaN(?:16|32|64)?\\\\b|π\\\\b|pi\\\\b|ℯ\\\\b))('*)"},{"match":"\\\\b(?:ARGS|C_NULL|DEPOT_PATH|ENDIAN_BOM|ENV|LOAD_PATH|PROGRAM_FILE|stdin|stdout|stderr|VERSION|devnull)\\\\b","name":"constant.global.julia"},{"match":"\\\\b(?:true|false|nothing|missing)\\\\b","name":"constant.language.julia"}]},"operator":{"patterns":[{"match":"\\\\.?(?:<-->|->|-->|<--|[←→↔↚-↞↠↢↣↤↦↩-↬↮↶↷↺-↽⇀⇁⇄⇆⇇⇉⇋-⇐⇒⇔⇚-⇝⇠⇢⇴⇶-⇿⟵⟶⟷⟹-⟿⤀-⤇⤌-⤑⤔-⤘⤝-⤠⥄-⥈⥊⥋⥎⥐⥒⥓⥖⥗⥚⥛⥞⥟⥢⥤⥦-⥭⥰⥷⥺⧴⬰-⭄⭇-⭌←→]|=>)","name":"keyword.operator.arrow.julia"},{"match":":=|\\\\+=|-=|\\\\*=|//=|/=|\\\\.//=|\\\\./=|\\\\.\\\\*=|\\\\\\\\=|\\\\.\\\\\\\\=|\\\\^=|\\\\.\\\\^=|%=|\\\\.%=|÷=|\\\\.÷=|\\\\|=|&=|\\\\.&=|⊻=|\\\\.⊻=|\\\\$=|<<=|>>=|>>>=|=(?!=)","name":"keyword.operator.update.julia"},{"match":"<<|>>>?|\\\\.>>>?|\\\\.<<","name":"keyword.operator.shift.julia"},{"captures":{"1":{"name":"keyword.operator.relation.types.julia"},"2":{"name":"support.type.julia"},"3":{"name":"keyword.operator.transpose.julia"}},"match":"\\\\s*([:<>]:)\\\\s*((?:Union)?\\\\([^)]*\\\\)|[$_∇[:alpha:]][!.′⁺-ₜ[:word:]]*(?:\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*}|\\".+?(?<!\\\\\\\\)\\")?)(?:\\\\.\\\\.\\\\.)?(\\\\.?'*)"},{"match":"(\\\\.?((?<!<)<=|(?<!>)>=|[<>≤≥]|===?|≡|!=|≠|!==|[∈-∍∝∥∦∷∺∻∽∾≁-≎≐-≓≖-≟≢≣≦-⊋⊏-⊒⊜⊢⊣⊩⊬⊮⊰-⊷⋍⋐⋑⋕-⋭⋲-⋿⟂⟈⟉⟒⦷⧀⧁⧡⧣⧤⧥⩦⩧⩪-⩳⩵-⫙⫪⫫⫷-⫺]|<:|>:))","name":"keyword.operator.relation.julia"},{"match":"(?<=\\\\s)\\\\?(?=\\\\s)","name":"keyword.operator.ternary.julia"},{"match":"(?<=\\\\s):(?=\\\\s)","name":"keyword.operator.ternary.julia"},{"match":"\\\\|\\\\||&&|(?<![!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]])!","name":"keyword.operator.boolean.julia"},{"match":"(?<=[]!)}′⁺-ₜ∇[:word:]]):","name":"keyword.operator.range.julia"},{"match":"\\\\|>","name":"keyword.operator.applies.julia"},{"match":"\\\\||\\\\.\\\\||&|\\\\.&|[~¬]|\\\\.~|⊻|\\\\.⊻","name":"keyword.operator.bitwise.julia"},{"match":"\\\\.?(?:\\\\+\\\\+|--|[-*+|¦±−∓∔∨∪∸≏⊎⊔⊕⊖⊞⊟⊻⊽⋎⋓⟇⧺⧻⨈⨢-⨮⨹⨺⩁⩂⩅⩊⩌⩏⩐⩒⩔⩖⩗⩛⩝⩡⩢⩣]|//?|[%\\\\&\\\\\\\\^±·×÷·⅋↑↓⇵∓∗-∜∤∧∩≀⊍⊓⊗-⊛⊠⊡⊼⋄-⋇⋉-⋌⋏⋒⌿▷⟑⟕⟖⟗⟰⟱⤈-⤋⤒⤓⥉⥌⥍⥏⥑⥔⥕⥘⥙⥜⥝⥠⥡⥣⥥⥮⥯⦸⦼⦾⦿⧶⧷⨇⨝⨟⨰-⨸⨻⨼⨽⩀⩃⩄⩋⩍⩎⩑⩓⩕⩘⩚⩜⩞⩟⩠⫛↑↓])","name":"keyword.operator.arithmetic.julia"},{"match":"∘","name":"keyword.operator.compose.julia"},{"match":"::|(?<=\\\\s)isa(?=\\\\s)","name":"keyword.operator.isa.julia"},{"match":"(?<=\\\\s)in(?=\\\\s)","name":"keyword.operator.relation.in.julia"},{"match":"\\\\.(?=[@_\\\\p{L}])|\\\\.\\\\.+|[…⁝⋮-⋱]","name":"keyword.operator.dots.julia"},{"match":"\\\\$(?=.+)","name":"keyword.operator.interpolation.julia"},{"captures":{"2":{"name":"keyword.operator.transposed-variable.julia"}},"match":"([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)(('|(\\\\.'))*\\\\.?')"},{"captures":{"1":{"name":"bracket.end.julia"},"2":{"name":"keyword.operator.transposed-matrix.julia"}},"match":"(])((?:\\\\.??')*\\\\.?')"},{"captures":{"1":{"name":"bracket.end.julia"},"2":{"name":"keyword.operator.transposed-parens.julia"}},"match":"(\\\\))((?:\\\\.??')*\\\\.?')"}]},"parentheses":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(\\\\))(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"patterns":[{"include":"#self_no_for_block"}]}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.separator.comma.julia"},{"match":";","name":"punctuation.separator.semicolon.julia"}]},"self_no_for_block":{"patterns":[{"include":"#operator"},{"include":"#array"},{"include":"#string"},{"include":"#parentheses"},{"include":"#bracket"},{"include":"#function_decl"},{"include":"#function_call"},{"include":"#keyword"},{"include":"#number"},{"include":"#comment"},{"include":"#type_decl"},{"include":"#symbol"},{"include":"#punctuation"}]},"string":{"patterns":[{"begin":"(@doc)\\\\s((?:doc)?\\"\\"\\")|(doc\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"(\\"\\"\\") ?(->)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"keyword.operator.arrow.julia"}},"name":"string.docstring.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(i?cxx)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.cpp","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.cxx.julia","patterns":[{"include":"source.cpp#root_context"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(py)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.python","end":"([\\\\s\\\\w]*)(\\"\\"\\")","endCaptures":{"2":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.python.julia","patterns":[{"include":"source.python"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(js)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.javascript","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.js.julia","patterns":[{"include":"source.js"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(R)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.r","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.R.julia","patterns":[{"include":"source.r"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(raw)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(raw)(\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(sql)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.sql","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.sql.julia","patterns":[{"include":"source.sql"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"var\\"\\"\\"","end":"\\"\\"\\"","name":"constant.other.symbol.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"var\\"","end":"\\"","name":"constant.other.symbol.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"^\\\\s?(doc)?(\\"\\"\\")\\\\s?$","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"}},"name":"string.docstring.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.single.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.multiline.begin.julia"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.multiline.end.julia"}},"name":"string.quoted.triple.double.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"\\"(?!\\"\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.double.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"r\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.julia"}},"end":"(\\"\\"\\")([imsx]{0,4})?","endCaptures":{"1":{"name":"punctuation.definition.string.regexp.end.julia"},"2":{"name":"keyword.other.option-toggle.regexp.julia"}},"name":"string.regexp.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"r\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.julia"}},"end":"(\\")([imsx]{0,4})?","endCaptures":{"1":{"name":"punctuation.definition.string.regexp.end.julia"},"2":{"name":"keyword.other.option-toggle.regexp.julia"}},"name":"string.regexp.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(?<!\\")([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"},"1":{"name":"support.function.macro.julia"}},"end":"(\\"\\"\\")([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"support.function.macro.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(?<!\\")([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"},"1":{"name":"support.function.macro.julia"}},"end":"(?<![^\\\\\\\\]\\\\\\\\)(\\")([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"support.function.macro.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(?<!\`)([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?\`\`\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"},"1":{"name":"support.function.macro.julia"}},"end":"(\`\`\`)([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"support.function.macro.julia"}},"name":"string.interpolated.backtick.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(?<!\`)([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"},"1":{"name":"support.function.macro.julia"}},"end":"(?<![^\\\\\\\\]\\\\\\\\)(\`)([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"support.function.macro.julia"}},"name":"string.interpolated.backtick.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]}]},"string_dollar_sign_interpolate":{"patterns":[{"match":"\\\\$[_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}[^←-⇿\\\\P{So}][^$\\\\P{Sc}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}][^$\\\\P{Sc}]]*","name":"variable.interpolation.julia"},{"begin":"\\\\$(\\\\()","beginCaptures":{"1":{"name":"meta.bracket.julia"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.bracket.julia"}},"name":"variable.interpolation.julia","patterns":[{"include":"#self_no_for_block"}]}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\(\\\\\\\\|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8}|.)","name":"constant.character.escape.julia"}]},"symbol":{"patterns":[{"match":"(?<![]!)}′⁺-ₜ∇[:word:]]):[_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*(?![!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]])(?![\\"\`])","name":"constant.other.symbol.julia"}]},"type_decl":{"patterns":[{"captures":{"1":{"name":"entity.name.type.julia"},"2":{"name":"entity.other.inherited-class.julia"},"3":{"name":"punctuation.separator.inheritance.julia"}},"match":"!:_(?:struct|mutable\\\\s+struct|abstract\\\\s+type|primitive\\\\s+type)\\\\s+([_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*)(\\\\s*(<:)\\\\s*[_ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^←-⇿\\\\P{So}]][!_′-‷⁗ⁱ-⁾₁-₎℘℮⅀-⅄∂∅∆∇∎-∑∞-∢∫-∳∿⊤⊥⊾-⋃◸-◿♯⟀⟁⟘⟙⦛-⦴⨀-⨆⨉-⨖⨛⨜゛゜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃𝟎-𝟡[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\P{So}]]*(?:\\\\{.*})?)?","name":"meta.type.julia"}]}},"scopeName":"source.julia","embeddedLangs":["cpp","python","javascript","r","sql"],"aliases":["jl"]}`)),g=[...e,...n,...a,...t,...i,p];export{g as default};
@@ -0,0 +1 @@
1
+ import{a as Ce,b as Re}from"./DeX2bcSG.js";import{_ as Oe}from"./BNh5okZH.js";import{e as ae,p as de,f as Ne,I as je,o as m,c as h,F as G,b as O,ab as me,w as N,h as c,a as i,t as M,L as Be,N as pe,q as se,i as j,C as D,X as Ie,s as le,n as Le,D as Te,$ as ue,d as K,j as w,r as H,ac as qe,ad as Ue,W as ve,ae as De,l as Y,g as fe,x as he,af as Ae,ag as Q,ah as He,z as xe,ai as Fe,B as ne,aj as A,O as Qe}from"./DHH7xZXJ.js";import{b as Ve}from"./D4yIuA0F.js";const Ge={key:0,class:"fixed top-18 right-4 bottom-4 w-[30rem] max-w-[calc(100vw-2rem)] panel-card shadow-xl z-drawer-content flex flex-col overflow-hidden","data-testid":"queue-panel"},We={class:"flex items-center gap-2 px-4 py-3 border-b border-base"},Xe={class:"color-muted text-sm font-mono tabular-nums"},Ke=["disabled"],Ye={key:0,class:"px-4 py-2 bg-yellow-500/10 border-b border-base text-xs color-muted"},Je={class:"flex-1 overflow-y-auto"},Ze={key:1,class:"divide-y divide-#8882"},et=["onClick"],tt={key:1,class:"i-octicon-question-16 color-muted mt-0.5 shrink-0"},st={class:"flex-1 min-w-0"},nt={class:"flex items-center gap-2 text-sm"},at={key:0,class:"truncate font-medium"},lt={key:1,class:"color-muted italic"},ot={class:"flex items-center gap-2 text-xs color-muted mt-0.5 font-mono tabular-nums"},it={key:0,class:"color-faint"},rt={key:1},ut={class:"flex flex-col"},ct=["data-entry-id"],dt={key:0,class:"text-xs color-muted truncate flex-1"},mt={key:1,class:"flex-1"},pt={class:"border-t border-base px-4 py-3 bg-#8881 flex items-center gap-2"},vt=["disabled","title","onClick"],ft=["disabled"],ht=ae({__name:"Queue",setup(_){const g=ve(),d=de(),v=Ne(),{entries:x}=je(),l=w(()=>d.payload.value?.queue.warnings??[]),C=w(()=>d.payload.value?.repo.hasToken??!1),k=H(!1),z=w({get(){return d.executeConfirmOpen.value},set(u){d.executeConfirmOpen.value=u}}),B=w(()=>{const u=d.payload.value?.syncState.items??{},o=new Map;for(const S of x.value){const R=S.op.number,F=o.get(R);if(F){F.entries.push(S);continue}o.set(R,{number:R,item:u[String(R)]??null,entries:[S]})}return[...o.values()].sort((S,R)=>S.number-R.number)});function y(u){return qe[u]??"#6b7280"}function P(u){return Ue(u.op)}function b(u){d.selectItem(u),d.closeQueue()}async function T(u){d.setError(null);try{await v.$call("ghfs:remove-queue-op",g.value??"__default__",u.id)}catch(o){d.setError(`${o.message}`)}}async function q(){k.value=!1,d.setError(null);try{await v.$call("ghfs:clear-queue",g.value??"__default__")}catch(u){d.setError(`${u.message}`)}}async function U(){z.value=!1;const u=x.value.map(o=>o.id);if(u.length!==0){d.setError(null),d.setExecuting(!0);try{await v.$call("ghfs:execute-queue",g.value??"__default__",{entryIds:u,continueOnError:!0})}catch(o){d.setError(`Execute failed: ${o.message}`),d.setExecuting(!1)}}}return(u,o)=>{const S=pe,R=Be,F=Ie,J=Ve,W=Te;return m(),h(G,null,[O(me,{"enter-active-class":"transition duration-300 ease-[cubic-bezier(0.22,0.61,0.36,1)]","enter-from-class":"op0 translate-x-4","enter-to-class":"op100 translate-x-0","leave-active-class":"transition duration-200 ease-[cubic-bezier(0.22,0.61,0.36,1)]","leave-from-class":"op100 translate-x-0","leave-to-class":"op0 translate-x-4"},{default:N(()=>[c(d).queueOpen.value?(m(),h("aside",Ge,[i("header",We,[o[6]||(o[6]=i("span",{class:"i-octicon-list-unordered-16 color-active"},null,-1)),o[7]||(o[7]=i("h2",{class:"font-medium"},"Queue",-1)),i("span",Xe,M(c(x).length),1),o[8]||(o[8]=i("div",{class:"flex-1"},null,-1)),i("button",{class:"btn-action-sm",disabled:c(x).length===0,onClick:o[0]||(o[0]=f=>k.value=!0)},[...o[5]||(o[5]=[i("span",{class:"i-ph-trash-duotone"},null,-1),i("span",null,"Clear",-1)])],8,Ke),O(R,{command:"action.queue"},{default:N(({execute:f})=>[O(S,{icon:"i-ph-x",tooltip:"Close panel",onClick:f},null,8,["onClick"])]),_:1})]),c(l).length?(m(),h("div",Ye,[(m(!0),h(G,null,se(c(l),(f,$)=>(m(),h("div",{key:$,class:"flex items-start gap-2 py-0.5"},[o[9]||(o[9]=i("span",{class:"i-ph-warning-duotone mt-0.5 flex-none color-yellow-600"},null,-1)),i("span",null,M(f),1)]))),128))])):j("",!0),i("div",Je,[c(x).length===0?(m(),D(F,{key:0,icon:"i-octicon-inbox-16",title:"No operations queued",message:"Open an item and use the footer actions to queue close/reopen/comment."})):(m(),h("div",Ze,[(m(!0),h(G,null,se(c(B),f=>(m(),h("section",{key:f.number,class:"flex flex-col"},[i("button",{type:"button",class:"flex items-start gap-2 px-4 py-2 bg-#8881 hover:bg-#8882 transition text-left",onClick:$=>b(f.number)},[f.item?(m(),D(J,{key:0,item:f.item.data.item,pull:f.item.data.pull,size:"sm",class:"mt-0.5 shrink-0"},null,8,["item","pull"])):(m(),h("span",tt)),i("div",st,[i("div",nt,[f.item?(m(),h("span",at,M(f.item.data.item.title),1)):(m(),h("span",lt,"Unknown item"))]),i("div",ot,[i("span",null,"#"+M(f.number),1),f.item?(m(),h(G,{key:0},[o[10]||(o[10]=i("span",{class:"color-faint"},"·",-1)),i("span",null,M(f.item.data.item.kind==="pull"?"pull request":"issue"),1),f.item.data.item.author?(m(),h("span",it,"·")):j("",!0),f.item.data.item.author?(m(),h("span",rt,"@"+M(f.item.data.item.author),1)):j("",!0)],64)):j("",!0)])])],8,et),i("ul",ut,[(m(!0),h(G,null,se(f.entries,$=>(m(),h("li",{key:$.id,class:"group flex items-start gap-2 px-4 py-1.5 pl-8 hover:bg-active transition","data-testid":"queue-entry","data-entry-id":$.id},[i("span",{class:"badge font-mono text-xs flex-none",style:le({backgroundColor:`${y($.op.action)}22`,color:y($.op.action)})},M($.op.action),5),P($)?(m(),h("span",dt,M(P($)),1)):(m(),h("span",mt)),O(S,{icon:"i-ph-trash-duotone",size:"sm",tooltip:"Remove from queue",class:"hover-fade",onClick:Z=>T($)},null,8,["onClick"])],8,ct))),128))])]))),128))]))]),i("footer",pt,[o[11]||(o[11]=i("div",{class:"text-xs color-muted flex-1"}," Runs every op against GitHub. ",-1)),O(R,{command:"action.execute"},{default:N(({execute:f,disabled:$})=>[i("button",{class:"btn-primary text-sm",disabled:c(x).length===0||c(d).executing.value||!c(C)||$,title:c(C)?void 0:"No GitHub token available",onClick:f},[i("span",{class:Le(c(d).executing.value?"i-octicon-sync-16 animate-spin":"i-ph-play-duotone")},null,2),i("span",null,"Execute "+M(c(x).length)+" op"+M(c(x).length===1?"":"s"),1)],8,vt)]),_:1})])])):j("",!0)]),_:1}),O(W,{open:c(k),"onUpdate:open":o[2]||(o[2]=f=>ue(k)?k.value=f:null),title:"Clear execute.yml?",icon:"i-ph-trash-duotone",width:"w-[min(90vw,26rem)]"},{footer:N(()=>[i("button",{class:"btn-action-sm",onClick:o[1]||(o[1]=f=>k.value=!1)},"Cancel"),i("button",{class:"btn-primary text-sm",onClick:q},"Clear")]),default:N(()=>[o[12]||(o[12]=i("div",{class:"px-5 py-4"},[i("p",{class:"text-sm color-muted"},[K(" This removes all operations in "),i("span",{class:"font-mono"},".ghfs/execute.yml"),K(". "),i("span",{class:"font-mono"},"execute.md"),K(" and per-item edits are not affected. ")])],-1))]),_:1},8,["open"]),O(W,{open:c(z),"onUpdate:open":o[4]||(o[4]=f=>ue(z)?z.value=f:null),icon:"i-ph-play-duotone",width:"w-[min(92vw,30rem)]",title:`Execute ${c(x).length} operation${c(x).length===1?"":"s"}?`},{footer:N(()=>[i("button",{class:"btn-action-sm",onClick:o[3]||(o[3]=f=>z.value=!1)},"Cancel"),i("button",{class:"btn-primary text-sm",disabled:c(d).executing.value,onClick:U},[...o[13]||(o[13]=[i("span",{class:"i-ph-play-duotone"},null,-1),K(" Execute ",-1)])],8,ft)]),default:N(()=>[o[14]||(o[14]=i("div",{class:"px-5 py-4"},[i("p",{class:"text-sm color-muted"}," These changes will be applied to GitHub immediately. This cannot be undone from here — you'll need to revert on GitHub if needed. ")],-1))]),_:1},8,["open","title"])],64)}}}),xt=Object.assign(ht,{__name:"PanelQueue"}),_t={key:0,class:"fixed bottom-4 left-1/2 -translate-x-1/2 z-toast min-w-80 max-w-lg panel-card shadow-lg"},gt={key:0,class:"flex items-start gap-3 px-4 py-3"},yt={class:"flex-1 text-sm"},zt={key:1,class:"flex items-start gap-3 px-4 py-3"},bt={class:"flex-1"},kt={class:"text-sm flex items-center gap-2"},wt={class:"font-mono uppercase tracking-wide text-xs color-muted"},Pt={key:0,class:"font-mono text-xs color-faint"},St={key:0,class:"text-xs color-muted truncate mt-0.5"},$t={key:1,class:"w-full h-1 bg-#8882 rounded mt-2 overflow-hidden"},Et=ae({__name:"ProgressToast",setup(_){const g=de(),d=w(()=>g.progress.value!==null||g.lastError.value!==null);return(v,x)=>{const l=pe;return m(),D(me,{"enter-active-class":"transition duration-200","enter-from-class":"op0 translate-y-2","enter-to-class":"op100 translate-y-0","leave-active-class":"transition duration-150","leave-from-class":"op100 translate-y-0","leave-to-class":"op0 translate-y-2"},{default:N(()=>[c(d)?(m(),h("div",_t,[c(g).lastError.value?(m(),h("div",gt,[x[1]||(x[1]=i("span",{class:"i-ph-warning-duotone color-red-500 mt-0.5 flex-none"},null,-1)),i("div",yt,M(c(g).lastError.value),1),O(l,{icon:"i-ph-x",size:"sm",tooltip:"Dismiss",onClick:x[0]||(x[0]=C=>c(g).setError(null))})])):c(g).progress.value?(m(),h("div",zt,[x[2]||(x[2]=i("span",{class:"i-octicon-sync-16 animate-spin mt-0.5 color-active flex-none"},null,-1)),i("div",bt,[i("div",kt,[i("span",wt,M(c(g).progress.value.kind),1),c(g).progress.value.stage?(m(),h("span",Pt,M(c(g).progress.value.stage),1)):j("",!0)]),c(g).progress.value.message?(m(),h("div",St,M(c(g).progress.value.message),1)):j("",!0),c(g).progress.value.percent!=null?(m(),h("div",$t,[i("div",{class:"h-full bg-primary-500 transition-all duration-300",style:le({width:`${Math.round((c(g).progress.value.percent??0)*100)}%`})},null,4)])):j("",!0)])])):j("",!0)])):j("",!0)]),_:1})}}}),Mt=Object.assign(Et,{__name:"UiProgressToast"}),Ct={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(_,{emit:g}){const d=g,v=_,x=De(),l=H([]),C=w(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),k=w(()=>l.value.length),z=H(null),B=H(!1),y=H({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),P=H({splitter:null,timeoutId:null}),b=w(()=>({[`splitpanes splitpanes--${v.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":y.value.dragging})),T=()=>{document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",o),"ontouchstart"in window&&(document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",o))},q=()=>{document.removeEventListener("mousemove",u,{passive:!1}),document.removeEventListener("mouseup",o),"ontouchstart"in window&&(document.removeEventListener("touchmove",u,{passive:!1}),document.removeEventListener("touchend",o))},U=(e,t)=>{const a=e.target.closest(".splitpanes__splitter");if(a){const{left:s,top:n}=a.getBoundingClientRect(),{clientX:r,clientY:p}="ontouchstart"in window&&e.touches?e.touches[0]:e;y.value.cursorOffset=v.horizontal?p-n:r-s}T(),y.value.mouseDown=!0,y.value.activeSplitter=t},u=e=>{y.value.mouseDown&&(e.preventDefault(),y.value.dragging=!0,requestAnimationFrame(()=>{f(J(e)),I("resize",{event:e},!0)}))},o=e=>{y.value.dragging&&(window.getSelection().removeAllRanges(),I("resized",{event:e},!0)),y.value.mouseDown=!1,y.value.activeSplitter=null,setTimeout(()=>{y.value.dragging=!1,q()},100)},S=(e,t)=>{"ontouchstart"in window&&(e.preventDefault(),P.value.splitter===t?(clearTimeout(P.value.timeoutId),P.value.timeoutId=null,R(e,t),P.value.splitter=null):(P.value.splitter=t,P.value.timeoutId=setTimeout(()=>P.value.splitter=null,500))),y.value.dragging||I("splitter-click",{event:e,index:t},!0)},R=(e,t)=>{if(I("splitter-dblclick",{event:e,index:t},!0),v.maximizePanes){let a=0;l.value=l.value.map((s,n)=>(s.size=n===t?s.max:s.min,n!==t&&(a+=s.min),s)),l.value[t].size-=a,I("pane-maximize",{event:e,index:t,pane:l.value[t]}),I("resized",{event:e,index:t},!0)}},F=(e,t)=>{I("pane-click",{event:e,index:C.value[t].index,pane:C.value[t]})},J=e=>{const t=z.value.getBoundingClientRect(),{clientX:a,clientY:s}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-(v.horizontal?0:y.value.cursorOffset)-t.left,y:s-(v.horizontal?y.value.cursorOffset:0)-t.top}},W=e=>{e=e[v.horizontal?"y":"x"];const t=z.value[v.horizontal?"clientHeight":"clientWidth"];return v.rtl&&!v.horizontal&&(e=t-e),e*100/t},f=e=>{const t=y.value.activeSplitter;let a={prevPanesSize:Z(t),nextPanesSize:V(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const s=0+(v.pushOtherPanes?0:a.prevPanesSize),n=100-(v.pushOtherPanes?0:a.nextPanesSize),r=Math.max(Math.min(W(e),n),s);let p=[t,t+1],E=l.value[p[0]]||null,L=l.value[p[1]]||null;const ie=E.max<100&&r>=E.max+a.prevPanesSize,Me=L.max<100&&r<=100-(L.max+V(t+1));if(ie||Me){ie?(E.size=E.max,L.size=Math.max(100-E.max-a.prevPanesSize-a.nextPanesSize,0)):(E.size=Math.max(100-L.max-a.prevPanesSize-V(t+1),0),L.size=L.max);return}if(v.pushOtherPanes){const re=$(a,r);if(!re)return;({sums:a,panesToResize:p}=re),E=l.value[p[0]]||null,L=l.value[p[1]]||null}E!==null&&(E.size=Math.min(Math.max(r-a.prevPanesSize-a.prevReachedMinPanes,E.min),E.max)),L!==null&&(L.size=Math.min(Math.max(100-r-a.nextPanesSize-a.nextReachedMinPanes,L.min),L.max))},$=(e,t)=>{const a=y.value.activeSplitter,s=[a,a+1];return t<e.prevPanesSize+l.value[s[0]].min&&(s[0]=_e(a).index,e.prevReachedMinPanes=0,s[0]<a&&l.value.forEach((n,r)=>{r>s[0]&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=Z(s[0]),s[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((n,r)=>{r>0&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),l.value[s[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[s[1]].min&&(s[1]=ge(a).index,e.nextReachedMinPanes=0,s[1]>a+1&&l.value.forEach((n,r)=>{r>a&&r<s[1]&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),e.nextPanesSize=V(s[1]-1),s[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((n,r)=>{r<k.value-1&&r>=a+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),l.value[s[0]].size=100-e.prevPanesSize-V(s[0]-1),null):{sums:e,panesToResize:s}},Z=e=>l.value.reduce((t,a,s)=>t+(s<e?a.size:0),0),V=e=>l.value.reduce((t,a,s)=>t+(s>e+1?a.size:0),0),_e=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},ge=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},ye=()=>{var e;const t=Array.from(((e=z.value)==null?void 0:e.children)||[]);for(const a of t){const s=a.classList.contains("splitpanes__pane"),n=a.classList.contains("splitpanes__splitter");!s&&!n&&(a.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},oe=(e,t,a=!1)=>{const s=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),a||(n.onmousedown=r=>U(r,s),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=r=>U(r,s)),n.onclick=r=>S(r,s+1)),n.ondblclick=r=>R(r,s+1),t.parentNode.insertBefore(n,t)},ze=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},X=()=>{var e;const t=Array.from(((e=z.value)==null?void 0:e.children)||[]);for(const s of t)s.className.includes("splitpanes__splitter")&&ze(s);let a=0;for(const s of t)s.className.includes("splitpanes__pane")&&(!a&&v.firstSplitter?oe(a,s,!0):a&&oe(a,s),a++)},be=({uid:e,...t})=>{const a=C.value[e];for(const[s,n]of Object.entries(t))a[s]=n},ke=e=>{var t;let a=-1;Array.from(((t=z.value)==null?void 0:t.children)||[]).some(s=>(s.className.includes("splitpanes__pane")&&a++,s.isSameNode(e.el))),l.value.splice(a,0,{...e,index:a}),l.value.forEach((s,n)=>s.index=n),B.value&&ne(()=>{X(),ee({addedPane:l.value[a]}),I("pane-add",{pane:l.value[a]})})},we=e=>{const t=l.value.findIndex(s=>s.id===e);l.value[t].el=null;const a=l.value.splice(t,1)[0];l.value.forEach((s,n)=>s.index=n),ne(()=>{X(),I("pane-remove",{pane:a}),ee({removedPane:{...a}})})},ee=(e={})=>{!e.addedPane&&!e.removedPane?Se():l.value.some(t=>t.givenSize!==null||t.min||t.max<100)?$e(e):Pe(),B.value&&I("resized")},Pe=()=>{const e=100/k.value;let t=0;const a=[],s=[];for(const n of l.value)n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&a.push(n.id),n.size<=n.min&&s.push(n.id);t>.1&&te(t,a,s)},Se=()=>{let e=100;const t=[],a=[];let s=0;for(const r of l.value)e-=r.size,r.givenSize!==null&&s++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&a.push(r.id);let n=100;if(e>.1){for(const r of l.value)r.givenSize===null&&(r.size=Math.max(Math.min(e/(k.value-s),r.max),r.min)),n-=r.size;n>.1&&te(n,t,a)}},$e=({addedPane:e,removedPane:t}={})=>{let a=100/k.value,s=0;const n=[],r=[];(e?.givenSize??null)!==null&&(a=(100-e.givenSize)/(k.value-1));for(const p of l.value)s-=p.size,p.size>=p.max&&n.push(p.id),p.size<=p.min&&r.push(p.id);if(!(Math.abs(s)<.1)){for(const p of l.value)e?.givenSize!==null&&e?.id===p.id||(p.size=Math.max(Math.min(a,p.max),p.min)),s-=p.size,p.size>=p.max&&n.push(p.id),p.size<=p.min&&r.push(p.id);s>.1&&te(s,n,r)}},te=(e,t,a)=>{let s;e>0?s=e/(k.value-t.length):s=e/(k.value-a.length),l.value.forEach((n,r)=>{if(e>0&&!t.includes(n.id)){const p=Math.max(Math.min(n.size+s,n.max),n.min),E=p-n.size;e-=E,n.size=p}else if(!a.includes(n.id)){const p=Math.max(Math.min(n.size+s,n.max),n.min),E=p-n.size;e-=E,n.size=p}}),Math.abs(e)>.1&&ne(()=>{B.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},I=(e,t=void 0,a=!1)=>{const s=t?.index??y.value.activeSplitter??null;d(e,{...t,...s!==null&&{index:s},...a&&s!==null&&{prevPane:l.value[s-(v.firstSplitter?1:0)],nextPane:l.value[s+(v.firstSplitter?0:1)]},panes:l.value.map(n=>({min:n.min,max:n.max,size:n.size}))})};Y(()=>v.firstSplitter,()=>X()),fe(()=>{ye(),X(),ee(),I("ready"),B.value=!0}),he(()=>B.value=!1);const Ee=()=>{var e;return Fe("div",{ref:z,class:b.value},(e=x.default)==null?void 0:e.call(x))};return A("panes",l),A("indexedPanes",C),A("horizontal",w(()=>v.horizontal)),A("requestUpdate",be),A("onPaneAdd",ke),A("onPaneRemove",we),A("onPaneClick",F),(e,t)=>(m(),D(Ae(Ee)))}},ce={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(_){var g;const d=_,v=Q("requestUpdate"),x=Q("onPaneAdd"),l=Q("horizontal"),C=Q("onPaneRemove"),k=Q("onPaneClick"),z=(g=He())==null?void 0:g.uid,B=Q("indexedPanes"),y=w(()=>B.value[z]),P=H(null),b=w(()=>{const u=isNaN(d.size)||d.size===void 0?0:parseFloat(d.size);return Math.max(Math.min(u,q.value),T.value)}),T=w(()=>{const u=parseFloat(d.minSize);return isNaN(u)?0:u}),q=w(()=>{const u=parseFloat(d.maxSize);return isNaN(u)?100:u}),U=w(()=>{var u;return`${l.value?"height":"width"}: ${(u=y.value)==null?void 0:u.size}%`});return Y(()=>b.value,u=>v({uid:z,size:u})),Y(()=>T.value,u=>v({uid:z,min:u})),Y(()=>q.value,u=>v({uid:z,max:u})),fe(()=>{x({id:z,el:P.value,min:T.value,max:q.value,givenSize:d.size===void 0?null:b.value,size:b.value})}),he(()=>C(z)),(u,o)=>(m(),h("div",{ref_key:"paneEl",ref:P,class:"splitpanes__pane",onClick:o[0]||(o[0]=S=>c(k)(S,u._.uid)),style:le(U.value)},[xe(u.$slots,"default")],4))}},Rt={class:"h-full flex flex-col relative of-hidden"},Ot={key:0,class:"absolute top-0 left-0 right-0 h-0.5 overflow-hidden z-20 pointer-events-none","data-testid":"project-refresh-bar"},Nt={class:"flex-1 min-h-0"},jt={class:"h-full flex flex-col","data-testid":"item-list"},Bt={key:1,class:"flex flex-col items-center justify-center py-32 color-muted flex-1","data-testid":"project-loading"},It={key:2,class:"px-4 py-6 color-muted flex-1"},Lt={class:"text-sm"},Tt={class:"h-full","data-testid":"detail-panel"},qt=ae({__name:"Project",props:{items:{},selectedKey:{},showRepoName:{type:Boolean},searchHighlight:{default:""},loading:{type:Boolean,default:!1},loadError:{default:null},hasPayload:{type:Boolean,default:!0},headerVariant:{default:"none"},project:{default:null},projects:{default:()=>[]},search:{},kind:{},counts:{},searching:{type:Boolean,default:!1},searchPlaceholder:{},emptyTitle:{},emptyMessage:{}},emits:["select","update:search"],setup(_,{emit:g}){const d=_,v=g,x=Qe(),l=ve(),C=w(()=>x.uiState.listPaneSize??30);function k(P){const b=P[0]?.size;typeof b=="number"&&x.setListPaneSize(b)}const z=w(()=>d.loading&&d.hasPayload),B=w(()=>d.loading&&!d.hasPayload),y=w(()=>!!d.loadError&&!d.hasPayload);return(P,b)=>{const T=Ce,q=Re,U=Oe,u=xt,o=Mt;return m(),h("div",Rt,[c(z)?(m(),h("div",Ot,[...b[2]||(b[2]=[i("div",{class:"h-full bg-primary-500/60 animate-pulse",style:{width:"100%"}},null,-1)])])):j("",!0),i("main",Nt,[O(c(Ct),{class:"h-full w-full ghfs-splitpanes","dbl-click-splitter":!1,onResize:k},{default:N(()=>[O(c(ce),{size:c(C),"min-size":"20","max-size":"60",class:"bg-base"},{default:N(()=>[i("div",jt,[_.headerVariant!=="none"?(m(),D(T,{key:0,variant:_.headerVariant,project:_.project,projects:_.projects,search:_.search,kind:_.kind,counts:_.counts,searching:_.searching,"search-placeholder":_.searchPlaceholder,"onUpdate:search":b[0]||(b[0]=S=>v("update:search",S))},{actions:N(()=>[xe(P.$slots,"header-actions")]),_:3},8,["variant","project","projects","search","kind","counts","searching","search-placeholder"])):j("",!0),c(B)?(m(),h("div",Bt,[...b[3]||(b[3]=[i("span",{class:"i-octicon-sync-16 animate-spin text-2xl mb-3 color-active"},null,-1),i("p",{class:"text-sm"},"Loading…",-1)])])):c(y)?(m(),h("div",It,[i("p",Lt,M(_.loadError),1)])):(m(),D(q,{key:3,items:_.items,"selected-key":_.selectedKey,"show-repo-name":_.showRepoName,"search-highlight":_.searchHighlight,"empty-title":_.emptyTitle,"empty-message":_.emptyMessage,class:"flex-1 min-h-0",onSelect:b[1]||(b[1]=S=>v("select",S))},null,8,["items","selected-key","show-repo-name","search-highlight","empty-title","empty-message"]))])]),_:3},8,["size"]),O(c(ce),{size:100-c(C),class:"bg-base"},{default:N(()=>[i("div",Tt,[(m(),D(U,{key:c(l)??"__none__","show-repo":_.showRepoName},null,8,["show-repo"]))])]),_:1},8,["size"])]),_:3})]),O(u),(m(),D(o,{key:c(l)??"__none__"}))])}}}),Ft=Object.assign(qt,{__name:"PanelProject"});export{Ft as _};
@@ -0,0 +1 @@
1
+ import{_ as S}from"./DeX2bcSG.js";import{e as $,Q as B,g as I,o as m,c as N,b as c,w as _,L as w,N as E,h as e,S as U,R as A,W as H,j as o,C as K}from"./DHH7xZXJ.js";import{_ as M}from"./DVC3GhaL.js";import{_ as W}from"./DlAUqK2U.js";import"./D4yIuA0F.js";import"./BqmRGtwl.js";import"./BNh5okZH.js";const F={class:"h-full flex flex-col","data-testid":"hub-recent-page"},L=$({__name:"Recent",setup(u){const t=U(),s=A(),{filteredItems:r,search:a,kind:p,counts:h}=B(),g=H();t.selectKey(null),g.value=null,I(()=>{t.load()});const f=o(()=>{const n=r.value.length;return n===0?"No items to triage":`Start a card pile — triage ${Math.min(n,10)} ${n===1?"item":"items"}`}),l=o(()=>t.items.value.length>0),v=o(()=>t.loading.value&&!l.value),b=o(()=>l.value?null:t.error.value),x=o(()=>a.value.trim().length>0);function y(n){t.selectItem(n)}return(n,d)=>{const k=S,j=E,P=w,C=M;return m(),N("div",F,[c(k,{mode:"hub"}),c(C,{items:e(r),"selected-key":e(t).selectedKey.value,"search-highlight":e(a),"show-repo-name":!0,loading:e(v),"load-error":e(b),"has-payload":e(l),"header-variant":"recent",projects:e(s).projects.value,search:e(a),kind:e(p),counts:e(h),searching:e(x),"search-placeholder":"Search across all projects…","empty-title":"No recent activity","empty-message":"Enable projects in the hub and sync them to see items here.",onSelect:y,"onUpdate:search":d[0]||(d[0]=i=>a.value=i)},{"header-actions":_(()=>[c(P,{command:"cards.start",placement:"badge"},{default:_(({execute:i,disabled:R})=>[c(j,{icon:"i-ph-cards-three-duotone",tooltip:e(f),"aria-label":"Start a card pile","data-testid":"list-header-cards-mode",disabled:R||e(r).length===0,onClick:i},null,8,["tooltip","disabled","onClick"])]),_:1})]),_:1},8,["items","selected-key","search-highlight","loading","load-error","has-payload","projects","search","kind","counts","searching"])])}}}),O=Object.assign(L,{__name:"PanelRecent"}),Q={};function T(u,t){const s=O;return m(),K(s)}const Y=W(Q,[["render",T]]);export{Y as default};
@@ -0,0 +1 @@
1
+ import{_ as p}from"./D4R7-XZQ.js";import{e as l,Y as _,G as b,Z as d,h as r,o as f,C as j,i as h,j as o,R as k}from"./DHH7xZXJ.js";import"./DeX2bcSG.js";import"./D4yIuA0F.js";import"./BqmRGtwl.js";import"./DVC3GhaL.js";import"./BNh5okZH.js";const A=l({__name:"[number]",setup(v){const c=_(),i=b(),n=k(),a=o(()=>n.capabilities.value?.mode==="hub"),m=o(()=>{const e=c.params.number,u=Array.isArray(e)?e[0]:e,t=Number.parseInt(u??"",10);return Number.isFinite(t)?t:null}),s=o(()=>n.projects.value[0]?.id??"");return d(()=>{a.value&&i.replace("/")}),(e,u)=>{const t=p;return!r(a)&&r(s)?(f(),j(t,{key:0,"project-id":r(s),"initial-number":r(m)},null,8,["project-id","initial-number"])):h("",!0)}}});export{A as default};
@@ -0,0 +1 @@
1
+ import{e as V,G as he,l as Q,B as Ce,aI as Ie,o as f,c as y,a as m,h as c,C as j,M as ne,i as S,t as O,b as C,ab as Ee,w as T,$ as oe,F as P,q as Z,n as N,d as D,r as B,j as x,R as me,A as Me,p as fe,f as pe,D as $e,W as ge,H as Te,Y as Oe,I as ze,J as je,k as Ae,L as ve,N as Re,P as Fe,z as De,aC as Le,aJ as Pe,aK as le,aL as He,a5 as We,X as Be,s as ae}from"./DHH7xZXJ.js";import{a as be,u as Ne,b as Ue,f as Ve,e as qe,c as Ke,_ as Je,d as Ge,g as Qe}from"./D4yIuA0F.js";import{_ as Ye}from"./BqmRGtwl.js";const Xe=["aria-expanded"],Ze={class:"truncate","data-testid":"navbar-repo"},et={class:"px-3 py-2 border-b border-base"},tt={class:"flex flex-col max-h-80 overflow-y-auto py-1",role:"listbox"},st={key:0,class:"px-3 py-2 text-xs color-muted"},nt=["aria-selected"],ot=["data-project-id","onClick","onMouseenter"],it={class:"font-mono text-xs truncate flex-1"},lt={class:"text-[10px] color-muted tabular-nums shrink-0"},at={key:0,class:"i-ph-check-bold text-xs color-active shrink-0","aria-label":"current"},rt={class:"px-3 py-2 border-t border-base flex items-center justify-between text-[10px] color-muted"},ct=V({__name:"ProjectSwitcher",props:{projectId:{}},setup(n){const r=n,e=me(),s=he(),t=B(!1),o=B(null),l=B(null),i=B(""),h=x(()=>e.projects.value),u=x(()=>h.value.find(p=>p.id===r.projectId)),a=x(()=>{const p=i.value.trim().toLowerCase();return p?h.value.filter(v=>v.repo.toLowerCase().includes(p)):h.value}),d=B(0);Q(t,p=>{p&&(i.value="",d.value=Math.max(0,a.value.findIndex(v=>v.id===r.projectId)),Ce(()=>{l.value?.querySelector("input")?.focus()}))}),Q(a,()=>{d.value>=a.value.length&&(d.value=Math.max(0,a.value.length-1))});function g(){t.value=!1,o.value?.focus()}function _(){t.value=!t.value}function b(p){if(t.value=!1,p===r.projectId)return;const v=h.value.find(A=>A.id===p);v&&s.push(`/${v.repo}`)}function I(p){if(p.key==="Escape"){p.preventDefault(),g();return}if(p.key==="ArrowDown"||p.key==="j"){p.preventDefault(),a.value.length&&(d.value=(d.value+1)%a.value.length);return}if(p.key==="ArrowUp"||p.key==="k"){p.preventDefault(),a.value.length&&(d.value=(d.value-1+a.value.length)%a.value.length);return}if(p.key==="Enter"){p.preventDefault();const v=a.value[d.value];v&&b(v.id)}}function k(p){(p.key==="ArrowDown"||p.key==="Enter"||p.key===" ")&&(p.preventDefault(),t.value=!0)}const w=B(null);return Ie(w,()=>{t.value=!1}),(p,v)=>{const A=ne,R=be,F=Ye;return f(),y("div",{ref_key:"root",ref:w,class:"relative"},[m("button",{ref_key:"triggerRef",ref:o,type:"button",class:"inline-flex items-center gap-1.5 max-w-60 font-mono text-sm truncate rounded-md px-1.5 py-0.5 hover:bg-active focus-visible:ring-2 focus-visible:ring-primary-500/40 outline-none transition","data-testid":"navbar-project-switcher","aria-haspopup":!0,"aria-expanded":c(t),onClick:_,onKeydown:k},[c(u)?(f(),j(A,{key:0,project:c(u),size:16,"fallback-class":"color-active"},null,8,["project"])):S("",!0),m("span",Ze,O(c(u)?.repo??r.projectId),1),v[2]||(v[2]=m("span",{class:"i-ph-caret-down-duotone text-xs shrink-0 op70"},null,-1))],40,Xe),C(Ee,{"enter-active-class":"transition duration-150","enter-from-class":"op0 -translate-y-1","enter-to-class":"op100 translate-y-0","leave-active-class":"transition duration-100","leave-from-class":"op100 translate-y-0","leave-to-class":"op0 -translate-y-1"},{default:T(()=>[c(t)?(f(),y("div",{key:0,ref_key:"menuRef",ref:l,class:"absolute z-dropdown top-full left-0 mt-1 min-w-72 max-w-[24rem] panel-card !rounded-lg shadow-xl overflow-hidden","data-testid":"navbar-project-switcher-menu",onKeydown:I},[m("div",et,[C(R,{modelValue:c(i),"onUpdate:modelValue":v[0]||(v[0]=E=>oe(i)?i.value=E:null),placeholder:"Switch to…"},null,8,["modelValue"])]),m("ul",tt,[c(a).length===0?(f(),y("li",st," No matching project. ")):S("",!0),(f(!0),y(P,null,Z(c(a),(E,H)=>(f(),y("li",{key:E.id,role:"option","aria-selected":H===c(d),class:"px-2"},[m("button",{type:"button",class:N(["w-full text-left flex items-center gap-2 px-2 py-1.5 rounded transition outline-none",[H===c(d)?"bg-active":"hover:bg-active",E.id===r.projectId?"color-active":""]]),"data-testid":"navbar-project-switcher-item","data-project-id":E.id,onClick:J=>b(E.id),onMouseenter:J=>d.value=H},[C(A,{project:E,size:16,"fallback-class":E.id===r.projectId?"color-active":"color-muted"},null,8,["project","fallback-class"]),m("span",it,O(E.repo),1),m("span",lt,[D(O(E.openIssues),1),v[3]||(v[3]=m("span",{class:"mx-0.5"},"·",-1)),D(O(E.openPulls),1)]),E.id===r.projectId?(f(),y("span",at)):S("",!0)],42,ot)],8,nt))),128))]),m("div",rt,[v[5]||(v[5]=m("span",null,[m("span",{class:"kbd"},"↑"),m("span",{class:"kbd"},"↓"),D(" navigate · "),m("span",{class:"kbd"},"↵"),D(" select · "),m("span",{class:"kbd"},"Esc"),D(" close ")],-1)),C(F,{to:"/",class:"hover:color-active transition inline-flex items-center gap-1",onClick:v[1]||(v[1]=E=>g())},{default:T(()=>[...v[4]||(v[4]=[m("span",{class:"i-ph-arrow-left-duotone text-[10px]"},null,-1),m("span",null,"hub home",-1)])]),_:1})])],544)):S("",!0)]),_:1})],512)}}}),ut=Object.assign(ct,{__name:"HubProjectSwitcher"}),dt={class:"px-5 py-4 flex flex-col gap-3 text-sm"},ht={class:"font-mono font-medium"},mt={class:"flex flex-col gap-1.5 pl-4 list-disc color-muted text-xs leading-relaxed"},ft={class:"color-base"},pt={class:"color-base"},gt=["disabled"],vt=V({__name:"ForceSyncDialog",props:{open:{type:Boolean,required:!0},openModifiers:{}},emits:["update:open"],setup(n){const r=Me(n,"open"),e=ge(),s=fe(),t=pe(),o=x(()=>s.payload.value?.repo.repo??""),l=x(()=>s.payload.value?.queue.upCount??0),i=x(()=>Object.keys(s.payload.value?.syncState.items??{}).length);async function h(){if(s.executing.value)return;const u=e.value;if(u){r.value=!1,s.setError(null),s.selectItem(null),s.setSyncing(!0);try{await t.$call("ghfs:force-sync",u)}catch(a){s.setError(`Force sync failed: ${a.message}`),s.setSyncing(!1)}}}return(u,a)=>{const d=$e;return f(),j(d,{open:r.value,"onUpdate:open":a[1]||(a[1]=g=>r.value=g),title:"Force sync",icon:"i-ph-warning-duotone",width:"w-[min(92vw,30rem)]",description:"Wipe all local data and re-fetch from GitHub from scratch.","data-testid":"force-sync-dialog"},{footer:T(()=>[m("button",{type:"button",class:"btn-action-sm","data-testid":"force-sync-cancel",onClick:a[0]||(a[0]=g=>r.value=!1)}," Cancel "),a[9]||(a[9]=m("div",{class:"flex-1"},null,-1)),m("button",{type:"button",class:"px-3 py-1.5 rounded text-sm bg-red-500 hover:bg-red-600 text-white transition disabled:op50 disabled:pointer-events-none outline-none focus-visible:ring-2 focus-visible:ring-red-500/40",disabled:c(s).executing.value||!c(e),"data-testid":"force-sync-confirm",onClick:h}," Force sync ",8,gt)]),default:T(()=>[m("div",dt,[m("p",null,[a[2]||(a[2]=D(" This will wipe local data for ",-1)),m("span",ht,O(c(o)),1),a[3]||(a[3]=D(" and re-fetch everything from GitHub. ",-1))]),m("ul",mt,[m("li",null,[m("span",ft,O(c(i)),1),a[4]||(a[4]=D(" synced issues / PRs and their patches will be deleted. ",-1))]),m("li",null,[m("span",pt,O(c(l)),1),a[5]||(a[5]=D(" pending queue operations will be cleared. ",-1))]),a[6]||(a[6]=m("li",null,"Per-item label and comment edits in markdown files will be lost.",-1)),a[7]||(a[7]=m("li",null,[D("Your "),m("code",{class:"font-mono"},".ui.json"),D(" preferences (user override etc.) will be preserved.")],-1))]),a[8]||(a[8]=m("p",{class:"text-xs color-muted"}," This cannot be undone. Make sure you have executed any operations you want to keep. ",-1))])]),_:1},8,["open"])}}}),bt=Object.assign(vt,{__name:"PanelForceSyncDialog"}),xt={class:"sticky top-0 z-nav panel-floating border-x-0 border-t-0 flex items-center gap-2 px-4 h-14","data-testid":"navbar"},yt={class:"flex items-center gap-2 min-w-0 flex-none"},_t={key:1,class:"i-octicon-mark-github-16 text-lg color-base shrink-0"},kt={key:4,class:"font-mono text-sm truncate max-w-60","data-testid":"navbar-repo"},St={class:"flex items-center gap-1 flex-none","aria-label":"Hub sections"},wt=["disabled","onClick"],Ct=["disabled","onClick"],It=["disabled","onClick"],Et=["disabled","onClick"],Mt={key:0,class:"absolute -top-1 -right-1 badge-color-green !px-1 !py-0 font-mono tabular-nums text-[10px] leading-none min-w-4 h-4 justify-center","data-testid":"queue-badge"},$t={key:0,class:"absolute -top-1 -right-1 badge-color-green !px-1 !py-0 font-mono tabular-nums text-[10px] leading-none min-w-4 h-4 justify-center"},Tt=V({__name:"AppBar",props:{mode:{default:"project"}},setup(n){const r=n,e=ge(),s=fe(),t=pe(),o=Te(),l=me(),i=Fe();he();const h=Oe(),{upCount:u}=ze(),{totalCount:a}=je(),d=Ae(),g=x(()=>l.capabilities.value?.mode==="hub"),_=x(()=>d.total.value>0),b=x(()=>h.path==="/cards"),I=x(()=>s.payload.value?.repo.repo??"connecting…"),k=x(()=>s.payload.value?.repo.projectPath??""),w=x(()=>s.payload.value?.repo.hasToken??!1),p=B(!1);let v=null;async function A(){if(k.value)try{await navigator.clipboard.writeText(k.value),p.value=!0,v&&clearTimeout(v),v=setTimeout(()=>{p.value=!1},1200)}catch{}}async function R(){if(e.value)try{await t.$call("ghfs:open-folder",e.value)}catch(X){s.setError(`Open folder failed: ${X.message}`)}}const F=x(()=>r.mode==="hub"?a.value:u.value),E=x(()=>g.value&&r.mode==="project"),H=x(()=>h.path==="/recent"),J=x(()=>h.path==="/todo"),q=B(!1);function U(X,$){if(X.shiftKey){q.value=!0;return}$()}const ie=x(()=>r.mode==="hub"?i.syncingAll.value?"Syncing all projects…":"Sync all projects":w.value?"Sync from GitHub (⇧ for force sync)":"No GitHub token available"),Y=x(()=>r.mode==="hub"?i.syncingAll.value:s.syncing.value);return(X,$)=>{const W=Re,L=ve,_e=ne,ke=ut,Se=bt;return f(),y("header",xt,[m("div",yt,[c(E)?(f(),j(L,{key:0,command:"hub.back"},{default:T(({execute:M,disabled:z})=>[C(W,{icon:"i-octicon-organization-16",tooltip:"Back to hub home","aria-label":"Hub home","data-testid":"navbar-hub-home",active:"",disabled:z,onClick:M},null,8,["disabled","onClick"])]),_:1})):n.mode==="hub"?(f(),y(P,{key:1},[$[1]||($[1]=m("span",{class:"i-octicon-organization-16 text-lg color-active shrink-0"},null,-1)),$[2]||($[2]=m("span",{class:"text-sm font-semibold"},"ghfs hub",-1))],64)):(f(),y(P,{key:2},[c(e)&&c(s).payload.value?(f(),j(_e,{key:0,project:{id:c(e),repo:c(s).payload.value.repo.repo},size:20,"fallback-class":"color-base"},null,8,["project"])):(f(),y("span",_t))],64)),c(g)&&c(e)&&n.mode==="project"?(f(),j(ke,{key:3,"project-id":c(e)},null,8,["project-id"])):n.mode==="project"?(f(),y("span",kt,O(c(I)),1)):S("",!0),n.mode==="project"&&c(k)?(f(),y(P,{key:5},[C(W,{icon:"i-ph-folder-open-duotone",tooltip:"Open project folder","aria-label":"Open project folder","data-testid":"navbar-open-folder",onClick:R}),C(W,{icon:c(p)?"i-ph-check-bold":"i-ph-copy-duotone",tooltip:c(p)?"Copied!":"Copy project path","aria-label":"Copy project path","data-testid":"navbar-copy-path",onClick:A},null,8,["icon","tooltip"])],64)):S("",!0)]),n.mode==="hub"?(f(),y(P,{key:0},[$[7]||($[7]=m("div",{class:"h-6 border-l border-base mx-1 flex-none"},null,-1)),m("nav",St,[C(L,{command:"hub.home"},{default:T(({execute:M,disabled:z})=>[m("button",{type:"button",class:N(["px-2.5 py-1.5 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",c(h).path==="/"?"color-active font-medium bg-active":"color-muted hover:color-base"]),"data-testid":"navbar-hub-home-link",disabled:z,onClick:M},[...$[3]||($[3]=[m("span",{class:"i-octicon-organization-16"},null,-1),m("span",null,"Projects",-1)])],10,wt)]),_:1}),C(L,{command:"hub.recent"},{default:T(({execute:M,disabled:z})=>[m("button",{type:"button",class:N(["px-2.5 py-1.5 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",c(H)?"color-active font-medium bg-active":"color-muted hover:color-base"]),"data-testid":"navbar-hub-recent-link",disabled:z,onClick:M},[...$[4]||($[4]=[m("span",{class:"i-octicon-history-16"},null,-1),m("span",null,"Recent",-1)])],10,Ct)]),_:1}),C(L,{command:"hub.todo"},{default:T(({execute:M,disabled:z})=>[m("button",{type:"button",class:N(["px-2.5 py-1.5 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",c(J)?"color-active font-medium bg-active":"color-muted hover:color-base"]),"data-testid":"navbar-hub-todo-link",disabled:z,onClick:M},[...$[5]||($[5]=[m("span",{class:"i-ph-bookmark-simple-duotone"},null,-1),m("span",null,"Todo",-1)])],10,It)]),_:1}),c(_)?(f(),j(L,{key:0,command:"hub.cards"},{default:T(({execute:M,disabled:z})=>[m("button",{type:"button",class:N(["px-2.5 py-1.5 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",c(b)?"color-active font-medium bg-active":"color-muted hover:color-base"]),"data-testid":"navbar-hub-cards-link",disabled:z,onClick:M},[...$[6]||($[6]=[m("span",{class:"i-ph-cards-three-duotone"},null,-1),m("span",null,"Cards",-1)])],10,Et)]),_:1})):S("",!0)])],64)):S("",!0),$[8]||($[8]=m("div",{class:"flex-auto"},null,-1)),$[9]||($[9]=m("div",{class:"h-6 border-l border-base mx-1 flex-none"},null,-1)),n.mode==="project"?(f(),j(L,{key:1,command:"action.sync",placement:"badge"},{default:T(({execute:M,disabled:z})=>[C(W,{icon:"i-octicon-sync-16",tooltip:c(ie),disabled:c(Y)||!c(w)||z,spinning:c(Y),onClick:we=>U(we,M)},null,8,["tooltip","disabled","spinning","onClick"])]),_:1})):(f(),j(L,{key:2,command:"hub.sync-all",placement:"badge"},{default:T(({execute:M})=>[C(W,{icon:"i-octicon-sync-16",tooltip:c(ie),disabled:c(Y),spinning:c(Y),"data-testid":"navbar-hub-sync-all",onClick:M},null,8,["tooltip","disabled","spinning","onClick"])]),_:1})),n.mode==="project"?(f(),j(L,{key:3,command:"action.queue",placement:"badge"},{default:T(({execute:M,disabled:z})=>[C(W,{icon:"i-octicon-list-unordered-16",tooltip:"Queue",active:c(s).queueOpen.value,"data-testid":"navbar-queue-toggle",disabled:z,onClick:M},{badge:T(()=>[c(F)>0?(f(),y("span",Mt,O(c(F)),1)):S("",!0)]),_:1},8,["active","disabled","onClick"])]),_:1})):n.mode==="hub"?(f(),j(L,{key:4,command:"action.queue",placement:"badge"},{default:T(({execute:M,disabled:z})=>[C(W,{icon:"i-ph-list-checks-duotone",tooltip:"Quick view queue",active:c(i).queueDrawerOpen.value,"data-testid":"navbar-hub-queue-drawer-toggle",disabled:z,onClick:M},{badge:T(()=>[c(F)>0?(f(),y("span",$t,O(c(F)),1)):S("",!0)]),_:1},8,["active","disabled","onClick"])]),_:1})):S("",!0),C(L,{command:"settings.open",placement:"badge"},{default:T(({execute:M,disabled:z})=>[C(W,{icon:"i-ph-gear-six-duotone",tooltip:"Settings","data-testid":"navbar-settings",disabled:z,onClick:M},null,8,["disabled","onClick"])]),_:1}),C(L,{command:"action.theme",placement:"badge"},{default:T(({execute:M})=>[C(W,{icon:c(o)?"i-ph-sun-duotone":"i-ph-moon-duotone",tooltip:c(o)?"Light mode":"Dark mode",onClick:M},null,8,["icon","tooltip","onClick"])]),_:1}),n.mode==="project"?(f(),j(Se,{key:5,open:c(q),"onUpdate:open":$[0]||($[0]=M=>oe(q)?q.value=M:null)},null,8,["open"])):S("",!0)])}}}),Ws=Object.assign(Tt,{__name:"PanelAppBar"}),Ot={class:"border-b border-base flex-none bg-base","data-testid":"list-header"},zt={key:0},jt={key:1,class:"px-3 flex items-center gap-2"},At={key:0,class:"text-sm font-medium flex items-center gap-2 min-w-0"},Rt={class:"truncate"},Ft={key:0,class:"font-mono color-muted tabular-nums"},Dt={key:1,class:"flex items-center gap-1 flex-none py2","aria-label":"Kind"},Lt=["disabled","onClick"],Pt={class:"font-mono tabular-nums"},Ht=["disabled","onClick"],Wt={class:"font-mono tabular-nums"},Bt={class:"flex items-center gap-1 flex-none empty:hidden"},Nt=V({__name:"ListHeader",props:{variant:{},project:{default:null},projects:{default:()=>[]},search:{},kind:{},counts:{},searching:{type:Boolean,default:!1},title:{},itemTotal:{},searchPlaceholder:{}},emits:["update:search"],setup(n,{emit:r}){const e=n,s=r,t=x({get:()=>e.search??"",set:h=>s("update:search",h)}),o=x(()=>e.search!==void 0),l=x(()=>e.kind!==void 0&&e.counts!==void 0),i=x(()=>e.variant==="todo");return(h,u)=>{const a=be,d=ve;return f(),y("div",Ot,[c(o)?(f(),y("div",zt,[C(a,{modelValue:c(t),"onUpdate:modelValue":u[0]||(u[0]=g=>oe(t)?t.value=g:null),placeholder:n.searchPlaceholder,class:"px-3 py-2 rounded-0 border-t-0 border-x-0","data-shortcut":"search","data-testid":"list-header-search",command:"search.focus"},null,8,["modelValue","placeholder"])])):S("",!0),c(l)||c(i)||h.$slots.actions?(f(),y("div",jt,[c(i)?(f(),y("h1",At,[u[1]||(u[1]=m("span",{class:"i-ph-bookmark-simple-duotone color-active shrink-0"},null,-1)),m("span",Rt,O(n.title),1),n.itemTotal!=null?(f(),y("span",Ft,O(n.itemTotal),1)):S("",!0)])):S("",!0),c(l)?(f(),y("nav",Dt,[C(d,{command:"tab.issues"},{default:T(({execute:g,disabled:_})=>[m("button",{type:"button",class:N(["px-2.5 py-1 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",[!n.searching&&n.kind==="issue"?"color-active font-medium bg-active":"color-muted hover:color-base",n.searching?"op50 cursor-default":""]]),disabled:n.searching||_,"data-testid":"list-header-tab-issues",onClick:g},[u[2]||(u[2]=m("span",{class:"i-octicon-issue-opened-16"},null,-1)),u[3]||(u[3]=m("span",null,"Issues",-1)),m("span",Pt,O(n.counts?.issues??0),1)],10,Lt)]),_:1}),C(d,{command:"tab.pulls"},{default:T(({execute:g,disabled:_})=>[m("button",{type:"button",class:N(["px-2.5 py-1 text-xs flex items-center gap-1.5 rounded transition outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40",[!n.searching&&n.kind==="pull"?"color-active font-medium bg-active":"color-muted hover:color-base",n.searching?"op50 cursor-default":""]]),disabled:n.searching||_,"data-testid":"list-header-tab-pulls",onClick:g},[u[4]||(u[4]=m("span",{class:"i-octicon-git-pull-request-16"},null,-1)),u[5]||(u[5]=m("span",null,"Pulls",-1)),m("span",Wt,O(n.counts?.pulls??0),1)],10,Ht)]),_:1})])):S("",!0),u[6]||(u[6]=m("div",{class:"flex-auto"},null,-1)),m("div",Bt,[De(h.$slots,"actions")])])):S("",!0)])}}}),Bs=Object.assign(Nt,{__name:"ItemListHeader"}),Ut=["viewBox"],Vt=["x1","x2","stroke"],qt=["d","stroke"],Kt=4,re=100,Jt=40,te=3,Gt=V({__name:"ItemActivitySparkline",props:{points:{},createdIndex:{},color:{default:"currentColor"},createdLineColor:{default:"#22c55e"}},setup(n){const r=n,e=re-Jt,s=x(()=>{const d=r.points.slice();return r.createdIndex!=null&&r.createdIndex>=0&&r.createdIndex<d.length&&(d[r.createdIndex]=Math.max(0,d[r.createdIndex]-1)),d}),t=x(()=>{const d=s.value;return d.map((g,_)=>{let b=0,I=0;const k=Math.max(0,_-te),w=Math.min(d.length-1,_+te);for(let p=k;p<=w;p++)b+=d[p],I+=1;return b/I})});function o(d,g){return re-d/g*e}const l=x(()=>{const d=t.value;if(d.length<2)return[];const g=Math.max(0,Math.min(d.length-1,r.createdIndex??0));if(d.length-g<2)return[];const _=Math.max(Kt/(2*te+1),...d);return d.slice(g).map((b,I)=>({x:g+I,y:o(b,_)}))}),i=x(()=>{const d=l.value;if(d.length<2)return"";const g=[`M${d[0].x},${d[0].y.toFixed(2)}`];for(let _=0;_<d.length-1;_++){const b=d[_-1]??d[_],I=d[_],k=d[_+1],w=d[_+2]??k,p=I.x+(k.x-b.x)/6,v=I.y+(k.y-b.y)/6,A=k.x-(w.x-I.x)/6,R=k.y-(w.y-I.y)/6;g.push(`C${p.toFixed(2)},${v.toFixed(2)} ${A.toFixed(2)},${R.toFixed(2)} ${k.x.toFixed(2)},${k.y.toFixed(2)}`)}return g.join("")}),h=x(()=>r.createdIndex!=null&&r.createdIndex>=0&&r.createdIndex<r.points.length),u=x(()=>r.points.reduce((d,g)=>d+g,0)),a=x(()=>u.value===0?"No activity in the last 6 months":`${u.value} event${u.value===1?"":"s"} in the last 6 months`);return(d,g)=>(f(),y("svg",{width:"100%",height:"100%",viewBox:`0 0 ${n.points.length} 100`,preserveAspectRatio:"none",class:"absolute inset-0","data-testid":"item-activity-sparkline"},[m("title",null,O(c(a)),1),c(h)?(f(),y("line",{key:0,x1:n.createdIndex,x2:n.createdIndex,y1:"0",y2:"100",stroke:n.createdLineColor,"stroke-width":"1","vector-effect":"non-scaling-stroke"},null,8,Vt)):S("",!0),c(i)?(f(),y("path",{key:1,d:c(i),fill:"none",stroke:n.color,"stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round","vector-effect":"non-scaling-stroke"},null,8,qt)):S("",!0)],8,Ut))}}),Qt=Object.assign(Gt,{__name:"DisplayItemActivitySparkline"});function se(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Yt(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xe(n,r){const e=n??"";if(!e)return"";const s=r.trim();if(!s)return se(e);try{const t=new RegExp(`(${Yt(s)})`,"ig");return se(e).replace(t,'<mark class="bg-yellow-300/60 dark:bg-yellow-400/30 rounded-sm px-0.5">$1</mark>')}catch{return se(e)}}function Xt(n,r,e=60){const s=n??"",t=r.trim();if(!s||!t)return"";const o=s.toLowerCase(),l=t.toLowerCase(),i=o.indexOf(l);if(i<0)return"";const h=Math.max(0,i-e),u=Math.min(s.length,i+t.length+e),a=h>0?"…":"",d=u<s.length?"…":"",g=s.slice(h,u).replace(/\s+/g," ");return`${a}${xe(g,t)}${d}`}const Zt={class:"border-b border-base"},es=["data-unseen","data-item-number"],ts={key:0,class:"absolute inset-0 op-25 dark:op-20 pointer-events-none color-active"},ss={key:1,class:"absolute top-2 right-2 w-2 h-2 rounded-full bg-primary-500 dark:bg-primary-400","aria-label":"Unseen","data-testid":"item-row-unseen-dot"},ns={key:2,class:"relative z-1 flex items-center gap-1.5 min-w-0 pl7"},os=["title"],is={class:"relative z-1 flex items-start gap-2.5"},ls={class:"flex-1 min-w-0"},as={class:"flex items-baseline gap-2 flex-wrap"},rs=["innerHTML"],cs={class:"font-mono text-xs color-muted tabular-nums"},us={key:0,class:"flex items-center gap-1 flex-wrap mt-0.5"},ds={key:0,class:"text-[10px] color-faint"},hs=["innerHTML"],ms={class:"flex items-center gap-2 flex-wrap text-xs color-muted mt-1"},fs={key:0,class:"color-faint"},ps={class:"flex items-center gap-1"},gs={key:0,class:"font-mono"},vs={class:"font-mono"},bs=V({__name:"Row",props:{item:{},selected:{type:Boolean},showRepoName:{type:Boolean},searchHighlight:{default:""}},emits:["select"],setup(n,{emit:r}){const e=n,s=r,t=Le(),o=x(()=>e.item.raw?.data.item),l=x(()=>e.item.raw?.data.pull),i=x(()=>o.value??{kind:e.item.kind,state:e.item.state??"open",stateReason:e.item.stateReason??null}),h=x(()=>{if(l.value)return l.value;if(e.item.kind==="pull")return{isDraft:e.item.pullIsDraft,merged:e.item.pullMerged}}),u=x(()=>e.item.labels??[]),a=x(()=>e.item.assignees??[]),d=x(()=>{const w=t.getSeenEntry(`${e.item.projectId}#${e.item.number}`);return w?!Pe(e.item,w):!0}),g=x(()=>e.item.raw?e.item.number:null),_=Ne(g),b=x(()=>_.pendingTitle.value?.op.action==="set-title"?_.pendingTitle.value.op.title:e.item.title),I=x(()=>e.searchHighlight.trim()?xe(b.value,e.searchHighlight):Qe(b.value)),k=x(()=>{const w=e.searchHighlight.trim();return!w||(b.value??"").toLowerCase().includes(w.toLowerCase())?"":Xt(e.item.body??null,w,80)});return(w,p)=>{const v=Qt,A=ne,R=Ue,F=Ve,E=qe,H=Ke,J=Je,q=Ge;return f(),y("div",Zt,[m("button",{type:"button",class:N(["group w-full text-left flex flex-col gap-1 px-3 py-2 text-sm transition-colors relative outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500/40 overflow-hidden",e.selected?"bg-primary-500/8 dark:bg-primary-400/8 border-l-2 border-l-primary-500 dark:border-l-primary-400 pl-[10px]":"hover:bg-active"]),"data-unseen":c(d)||void 0,"data-testid":"item-row","data-item-number":n.item.number,onClick:p[0]||(p[0]=U=>s("select",n.item))},[n.item.activityBuckets&&n.item.activityBuckets.length?(f(),y("div",ts,[C(v,{points:n.item.activityBuckets,"created-index":n.item.activityCreatedIndex},null,8,["points","created-index"])])):S("",!0),c(d)?(f(),y("span",ss)):S("",!0),n.showRepoName?(f(),y("div",ns,[C(A,{project:{id:n.item.projectId,repo:n.item.repo},size:14,class:"shrink-0"},null,8,["project"]),m("span",{class:"font-mono text-xs color-muted truncate",title:n.item.repo},O(n.item.repo),9,os)])):S("",!0),m("div",is,[C(R,{item:c(i),pull:c(h),pending:c(_).direction.value,class:"mt-0.5 shrink-0"},null,8,["item","pull","pending"]),m("div",ls,[m("div",as,[m("span",{class:N(["truncate",[c(d)?"font-semibold":"font-normal",{italic:c(_).pendingTitle.value}]]),innerHTML:c(I)},null,10,rs),m("span",cs,"#"+O(n.item.number),1),c(_).hasPending.value?(f(),j(F,{key:0,color:"yellow",icon:"i-octicon-hourglass-16",size:"xs",title:`${c(_).entries.value.length} pending change(s)`,class:"uppercase tracking-wide"},{default:T(()=>[...p[1]||(p[1]=[D(" pending ",-1)])]),_:1},8,["title"])):S("",!0)]),c(u).length?(f(),y("div",us,[(f(!0),y(P,null,Z(c(u).slice(0,5),U=>(f(),j(E,{key:U,name:U,"project-id":n.item.projectId},null,8,["name","project-id"]))),128)),c(u).length>5?(f(),y("span",ds,"+"+O(c(u).length-5),1)):S("",!0)])):S("",!0),c(k)?(f(),y("div",{key:1,class:"text-xs color-muted mt-1 leading-relaxed",innerHTML:c(k)},null,8,hs)):S("",!0),m("div",ms,[n.item.author?(f(),j(H,{key:0,author:{login:n.item.author,avatarUrl:n.item.authorAvatarUrl},size:14,link:!1},null,8,["author"])):S("",!0),n.item.updatedAt?(f(),y(P,{key:1},[n.item.author?(f(),y("span",fs,"·")):S("",!0),C(J,{time:n.item.updatedAt},null,8,["time"])],64)):S("",!0),c(a).length?(f(),y(P,{key:2},[p[2]||(p[2]=m("span",{class:"color-faint"},"·",-1)),m("span",ps,[(f(!0),y(P,null,Z(c(a).slice(0,3),U=>(f(),j(q,{key:U,login:U,size:14},null,8,["login"]))),128)),c(a).length>3?(f(),y("span",gs,"+"+O(c(a).length-3),1)):S("",!0)])],64)):S("",!0),n.item.reactionsTotal&&n.item.reactionsTotal>0?(f(),y(P,{key:3},[p[3]||(p[3]=m("span",{class:"color-faint"},"·",-1)),m("span",vs,O(n.item.reactionsTotal),1)],64)):S("",!0)])])])],10,es)])}}}),xs=Object.assign(bs,{__name:"ItemRow"});function ys(n,r,e){const s=new Array(n);return new Proxy(s,{get(t,o,l){if(typeof o=="string"){const i=o.charCodeAt(0);if(i>=48&&i<=57){const h=+o;if(Number.isInteger(h)&&h>=0&&h<n){let u=t[h];if(!u){const a=r[h*2];u=t[h]={index:h,key:e(h),start:a,size:r[h*2+1],end:a+r[h*2+1],lane:0}}return u}}if(o==="length")return n}return Reflect.get(t,o,l)}})}function K(n,r,e){let s=e.initialDeps??[],t,o=!0;function l(){const i=n();return(i.length!==s.length||i.some((u,a)=>s[a]!==u))&&(s=i,t=r(...i),e?.onChange&&!(o&&e.skipInitialOnChange)&&e.onChange(t),o=!1),t}return l.updateDeps=i=>{s=i},l}function ce(n,r){if(n===void 0)throw new Error("Unexpected undefined");return n}const _s=(n,r)=>Math.abs(n-r)<1.01,ks=(n,r,e)=>{let s;return function(...t){n.clearTimeout(s),s=n.setTimeout(()=>r.apply(this,t),e)}};let G;const ue=()=>{if(G!==void 0)return G;if(typeof navigator>"u")return G=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return G=!0;const n=navigator.maxTouchPoints;return G=navigator.platform==="MacIntel"&&n!==void 0&&n>0},de=n=>{const{offsetWidth:r,offsetHeight:e}=n;return{width:r,height:e}},Ss=n=>n,ws=n=>{const r=Math.max(n.startIndex-n.overscan,0),s=Math.min(n.endIndex+n.overscan,n.count-1)-r+1,t=new Array(s);for(let o=0;o<s;o++)t[o]=r+o;return t},Cs=(n,r)=>{const e=n.scrollElement;if(!e)return;const s=n.targetWindow;if(!s)return;const t=l=>{const{width:i,height:h}=l;r({width:Math.round(i),height:Math.round(h)})};if(t(de(e)),!s.ResizeObserver)return()=>{};const o=new s.ResizeObserver(l=>{const i=()=>{const h=l[0];if(h?.borderBoxSize){const u=h.borderBoxSize[0];if(u){t({width:u.inlineSize,height:u.blockSize});return}}t(de(e))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(e,{box:"border-box"}),()=>{o.unobserve(e)}},ee={passive:!0},Is=typeof window>"u"?!0:"onscrollend"in window,Es=(n,r,e)=>{const s=n.scrollElement;if(!s)return;const t=n.targetWindow;if(!t)return;const o=n.options.useScrollendEvent&&Is;let l=0;const i=o?null:ks(t,()=>r(l,!1),n.options.isScrollingResetDelay),h=d=>()=>{l=e(s),i?.(),r(l,d)},u=h(!0),a=h(!1);return s.addEventListener("scroll",u,ee),o&&s.addEventListener("scrollend",a,ee),()=>{s.removeEventListener("scroll",u),o&&s.removeEventListener("scrollend",a)}},Ms=(n,r)=>Es(n,r,e=>{const{horizontal:s,isRtl:t}=n.options;return s?e.scrollLeft*(t&&-1||1):e.scrollTop}),$s=(n,r,e)=>{if(r?.borderBoxSize){const s=r.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return n[e.options.horizontal?"offsetWidth":"offsetHeight"]},Ts=(n,{adjustments:r=0,behavior:e},s)=>{var t,o;(o=(t=s.scrollElement)==null?void 0:t.scrollTo)==null||o.call(t,{[s.options.horizontal?"left":"top"]:n+r,behavior:e})},Os=Ts;class zs{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,s,t;return((t=(s=(e=this.targetWindow)==null?void 0:e.performance)==null?void 0:s.now)==null?void 0:t.call(s))??Date.now()},this.observer=(()=>{let e=null;const s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(t=>{t.forEach(o=>{const l=()=>{const i=o.target,h=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(const[u,a]of this.elementsCache)if(a===i){this.elementsCache.delete(u);break}return}this.shouldMeasureDuringScroll(h)&&this.resizeItem(h,this.options.measureElement(i,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var t;(t=s())==null||t.disconnect(),e=null},observe:t=>{var o;return(o=s())==null?void 0:o.observe(t,{box:"border-box"})},unobserve:t=>{var o;return(o=s())==null?void 0:o.unobserve(t)}}})(),this.range=null,this.setOptions=e=>{const s={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ss,rangeExtractor:ws,onChange:()=>{},measureElement:$s,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate"};for(const t in e){const o=e[t];o!==void 0&&(s[t]=o)}this.options=s},this.notify=e=>{var s,t;(t=(s=this.options).onChange)==null||t.call(s,this,e)},this.maybeNotify=K(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}if(this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(t=>{this.observer.observe(t)}),this.unsubs.push(this.options.observeElementRect(this,t=>{this.scrollRect=t,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(t,o)=>{this._intendedScrollOffset!==null&&Math.abs(t-this._intendedScrollOffset)<1.5&&(t=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<t?"forward":"backward":null,this.scrollOffset=t,this.isScrolling=o,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const t=this.scrollElement,o=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},l=()=>{this._iosTouching=!1,!(!ue()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};t.addEventListener("touchstart",o,ee),t.addEventListener("touchend",l,ee),this.unsubs.push(()=>{t.removeEventListener("touchstart",o),t.removeEventListener("touchend",l),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const e=this.getScrollOffset(),s=this.getMaxScrollOffset();if(e<0||e>s)return;const t=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=t,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,s)=>{const t=new Map,o=new Map;for(let l=s-1;l>=0;l--){const i=e[l];if(t.has(i.lane))continue;const h=o.get(i.lane);if(h==null||i.end>h.end?o.set(i.lane,i):i.end<h.end&&t.set(i.lane,!0),t.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((l,i)=>l.end===i.end?l.index-i.index:l.end-i.end)[0]:void 0},this.getMeasurementOptions=K(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,s,t,o,l,i,h)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:s,scrollMargin:t,getItemKey:o,enabled:l,lanes:i,laneAssignmentMode:h}),{key:!1}),this.getMeasurements=K(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:s,scrollMargin:t,getItemKey:o,enabled:l,lanes:i,laneAssignmentMode:h},u)=>{const a=this.itemSizeCache;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const b of this.laneAssignments.keys())b>=e&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),i===1){const b=this.options.gap,I=e*2;let k=this._flatMeasurements;if(!k||k.length<I){const v=new Float64Array(I);k&&d>0&&v.set(k.subarray(0,d*2)),k=v,this._flatMeasurements=k}let w;if(d===0)w=s+t;else{const v=d-1;w=k[v*2]+k[v*2+1]+b}for(let v=d;v<e;v++){const A=o(v),R=a.get(A),F=typeof R=="number"?R:this.options.estimateSize(v);k[v*2]=w,k[v*2+1]=F,w+=F+b}const p=ys(e,k,o);return this.measurementsCache=p,p}const g=this.measurementsCache.slice(0,d),_=new Array(i).fill(void 0);for(let b=0;b<d;b++){const I=g[b];I&&(_[I.lane]=b)}for(let b=d;b<e;b++){const I=o(b),k=this.laneAssignments.get(b);let w,p;const v=h==="estimate"||a.has(I);if(k!==void 0&&this.options.lanes>1){w=k;const E=_[w],H=E!==void 0?g[E]:void 0;p=H?H.end+this.options.gap:s+t}else{const E=this.options.lanes===1?g[b-1]:this.getFurthestMeasurement(g,b);p=E?E.end+this.options.gap:s+t,w=E?E.lane:b%this.options.lanes,this.options.lanes>1&&v&&this.laneAssignments.set(b,w)}const A=a.get(I),R=typeof A=="number"?A:this.options.estimateSize(b),F=p+R;g[b]={index:b,start:p,size:R,end:F,key:I,lane:w},_[w]=b}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=K(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,s,t,o)=>this.range=e.length>0&&s>0?js({measurements:e,outerSize:s,scrollOffset:t,lanes:o,flat:o===1&&this._flatMeasurements!=null?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=K(()=>{let e=null,s=null;const t=this.calculateRange();return t&&(e=t.startIndex,s=t.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,t,o,l)=>o===null||l===null?[]:e({startIndex:o,endIndex:l,overscan:s,count:t}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const s=this.options.indexAttribute,t=e.getAttribute(s);return t?parseInt(t,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var s;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const t=this.scrollState.index??((s=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:s.index);if(t!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,t-o),i=Math.min(this.options.count-1,t+o);return e>=l&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((l,i)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(i))});return}const s=this.indexFromElement(e),t=this.options.getItemKey(s),o=this.elementsCache.get(t);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(t,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(s)&&this.resizeItem(s,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,s)=>{var t;if(e<0||e>=this.options.count)return;let o,l,i;const h=this._flatMeasurements;if(this.options.lanes===1&&h!==null)i=this.options.getItemKey(e),l=h[e*2],o=h[e*2+1];else{const d=this.measurementsCache[e];if(!d)return;i=d.key,l=d.start,o=d.size}const u=this.itemSizeCache.get(i)??o,a=s-u;a!==0&&(((t=this.scrollState)==null?void 0:t.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:l,size:o,end:l+o,lane:0},a,this):l<this.getScrollOffset()+this.scrollAdjustments&&this.scrollDirection!=="backward")&&(ue()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=a:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,s),this.itemSizeCacheVersion++,this.notify(!1))},this.getVirtualItems=K(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,s)=>{const t=[];for(let o=0,l=e.length;o<l;o++){const i=e[o],h=s[i];t.push(h)}return t},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const s=this.getMeasurements();if(s.length===0)return;const t=this._flatMeasurements,o=this.options.lanes===1&&t!=null,l=ye(0,s.length-1,o?i=>t[i*2]:i=>ce(s[i]).start,e);return ce(s[l])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,s,t=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),l=this.getScrollOffset();s==="auto"&&(s=e>=l+o?"end":"start"),s==="center"?e+=(t-o)/2:s==="end"&&(e-=o);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const t=this.getSize(),o=this.getScrollOffset(),l=this.measurementsCache[e];if(!l)return;if(s==="auto")if(l.end>=o+t-this.options.scrollPaddingEnd)s="end";else if(l.start<=o+this.options.scrollPaddingStart)s="start";else return[o,s];if(s==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),s];const i=s==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,s,l.size),s]},this.scrollToOffset=(e,{align:s="start",behavior:t="auto"}={})=>{const o=this.getOffsetForAlignment(e,s),l=this.now();this.scrollState={index:null,align:s,behavior:t,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:s="auto",behavior:t="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const o=this.getOffsetForIndex(e,s);if(!o)return;const[l,i]=o,h=this.now();this.scrollState={index:e,align:i,behavior:t,startedAt:h,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:s="auto"}={})=>{const t=this.getScrollOffset()+e,o=this.now();this.scrollState={index:null,align:"start",behavior:s,startedAt:o,lastTargetOffset:t,stableFrames:0},this._scrollToOffset(t,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const s=this.getMeasurements();let t;if(s.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){const o=s.length-1,l=this._flatMeasurements;l!=null?t=l[o*2]+l[o*2+1]:t=((e=s[o])==null?void 0:e.end)??0}else{const o=Array(this.options.lanes).fill(null);let l=s.length-1;for(;l>=0&&o.some(i=>i===null);){const i=s[l];o[i.lane]===null&&(o[i.lane]=i.end),l--}t=Math.max(...o.filter(i=>i!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(this.itemSizeCache.size===0)return e;const s=this.getMeasurements();for(const t of s)t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:s,behavior:t})=>{this._intendedScrollOffset=e+(s??0),this.options.scrollToFn(e,{behavior:t,adjustments:s},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(r)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const s=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=s?s[0]:this.scrollState.lastTargetOffset,o=1,l=t!==this.scrollState.lastTargetOffset;if(!l&&_s(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,l){const i=this.getSize()||600,h=Math.abs(t-this.getScrollOffset()),u=this.scrollState.behavior==="smooth"&&h>i;this.scrollState.lastTargetOffset=t,u||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:u?"smooth":"auto"})}this.scheduleScrollReconcile()}}const ye=(n,r,e,s)=>{for(;n<=r;){const t=(n+r)/2|0,o=e(t);if(o<s)n=t+1;else if(o>s)r=t-1;else return t}return n>0?n-1:0};function js({measurements:n,outerSize:r,scrollOffset:e,lanes:s,flat:t}){const o=n.length-1,l=t?a=>t[a*2]:a=>n[a].start,i=t?a=>t[a*2]+t[a*2+1]:a=>n[a].end;if(n.length<=s)return{startIndex:0,endIndex:o};let h=ye(0,o,l,e),u=h;if(s===1)for(;u<o&&i(u)<e+r;)u++;else if(s>1){const a=Array(s).fill(0);for(;u<o&&a.some(g=>g<e+r);){const g=n[u];a[g.lane]=g.end,u++}const d=Array(s).fill(e+r);for(;h>=0&&d.some(g=>g>=e);){const g=n[h];d[g.lane]=g.start,h--}h=Math.max(0,h-h%s),u=Math.min(o,u+(s-1-u%s))}return{startIndex:h,endIndex:u}}function As(n){const r=new zs(c(n)),e=We(r),s=r._didMount();return Q(()=>c(n).getScrollElement(),t=>{t&&r._willUpdate()},{immediate:!0}),Q(()=>c(n),t=>{r.setOptions({...t,onChange:(o,l)=>{var i;le(e),(i=t.onChange)==null||i.call(t,o,l)}}),r._willUpdate(),le(e)},{immediate:!0}),He(s),e}function Rs(n){return As(x(()=>({observeElementRect:Cs,observeElementOffset:Ms,scrollToFn:Os,...c(n)})))}const Fs=["data-index"],Ds=V({__name:"List",props:{items:{},selectedKey:{},showRepoName:{type:Boolean},searchHighlight:{default:""},emptyTitle:{default:"No items match the current filter"},emptyMessage:{default:"Change filters, or use the sync icon to pull from GitHub."}},emits:["select"],setup(n,{emit:r}){const e=n,s=r,t=B(null),o=Rs(x(()=>({count:e.items.length,getScrollElement:()=>t.value,estimateSize:()=>64,overscan:6,getItemKey:u=>{const a=e.items[u];return a?a.key:u}})));Q(()=>e.selectedKey,u=>{if(u==null)return;const a=e.items.findIndex(d=>d.key===u);a<0||o.value.scrollToIndex(a,{align:"auto",behavior:"auto"})});const l=x(()=>o.value.getVirtualItems()),i=x(()=>o.value.getTotalSize());function h(u){if(!u)return;const a=u.$el??u;a&&typeof a.getBoundingClientRect=="function"&&o.value.measureElement(a)}return(u,a)=>{const d=Be,g=xs;return f(),y("div",{ref_key:"scrollRef",ref:t,class:"overflow-y-auto","data-testid":"virtual-item-list"},[n.items.length===0?(f(),j(d,{key:0,icon:"i-octicon-inbox-16",title:n.emptyTitle,message:n.emptyMessage},null,8,["title","message"])):(f(),y("div",{key:1,style:ae({height:`${c(i)}px`,position:"relative",width:"100%"})},[(f(!0),y(P,null,Z(c(l),_=>(f(),y("div",{key:_.key,ref_for:!0,ref:h,"data-index":_.index,style:ae({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${_.start}px)`})},[C(g,{item:n.items[_.index],selected:n.selectedKey===n.items[_.index].key,"show-repo-name":n.showRepoName,"search-highlight":n.searchHighlight,onSelect:a[0]||(a[0]=b=>s("select",b))},null,8,["item","selected","show-repo-name","search-highlight"])],12,Fs))),128))],4))],512)}}}),Ns=Object.assign(Ds,{__name:"ItemList"});export{Ws as _,Bs as a,Ns as b};