studiograph 1.3.48-next.225 → 1.3.48-next.226

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 (87) hide show
  1. package/dist/server/routes/share-api.d.ts +5 -3
  2. package/dist/server/routes/share-api.js +15 -6
  3. package/dist/server/routes/share-api.js.map +1 -1
  4. package/dist/web/_app/immutable/chunks/{BA7vQ7IP.js → -9rGOmvZ.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{8durEDNf2.js → 9_5L1AiU2.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DYgWELd8.js → A0XdJzCk.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{CEqOijy_2.js → AZ98FpjH2.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/B-BGmL3w.js +1 -0
  9. package/dist/web/_app/immutable/chunks/{HKMwULuD.js → B4V_tViL.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{CZdCQgyo2.js → B5YJtbcd2.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{gILU2HNG.js → B7sBy0-q.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{BpXNaUmY2.js → BAu7-rxj2.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{DxvNEA4b.js → BCPT2Atm.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{MhfNyYFU.js → BKDtboDH.js} +2 -2
  15. package/dist/web/_app/immutable/chunks/{BV1Vl4rX2.js → BTeW6vEy2.js} +2 -2
  16. package/dist/web/_app/immutable/chunks/{BUqCkK5X.js → BUR7ZqpS.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{B9d7FA1Y.js → BYXkK8AI.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{_xk76eon.js → BaoOmkor.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{DPPfDUt_.js → Begx_k0H.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/{MZzfi2-b.js → Beyz0lpE.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/{DP6h8AVv2.js → BxbcDoSf2.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{CPT_0Voa.js → C-qaRUtW.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{CRQ49AR52.js → C7T0zvXC2.js} +2 -2
  24. package/dist/web/_app/immutable/chunks/{CPeRp-vI.js → CKye0t7d.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{Cqx1nxw4.js → CNzWmHAZ.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/{BHKCp3wO.js → CQKhXo3c.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{BwIjz7_62.js → CVWmEmc02.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/{CP8U2XAq.js → CeuimJmo.js} +2 -2
  29. package/dist/web/_app/immutable/chunks/{D0eFgbjd.js → CgjbBuns.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/{CVYbTSAQ.js → ChPa-rwl.js} +1 -1
  31. package/dist/web/_app/immutable/chunks/{DMTPcm2d.js → ClUje5VR.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{BMSdUs4Q2.js → CpI80R_W2.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{BygVWgxD.js → CpgyQ8PI.js} +2 -2
  34. package/dist/web/_app/immutable/chunks/{D4rfZLkt2.js → CpkFj1TF2.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{DN9cKPzz.js → CqrVmlA-.js} +2 -2
  36. package/dist/web/_app/immutable/chunks/{DwkBNR2G2.js → CrbUuD0v2.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{aqtpG62l.js → Cz0xqbgH.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/{D8kfQTyD.js → D1Pt4fRG.js} +1 -1
  39. package/dist/web/_app/immutable/chunks/{DtFSFiH42.js → D2bZNq962.js} +1 -1
  40. package/dist/web/_app/immutable/chunks/{Cm-xTsdy.js → D3ftUFMd.js} +1 -1
  41. package/dist/web/_app/immutable/chunks/{CWgQmAja.js → D5FJJRqS.js} +2 -2
  42. package/dist/web/_app/immutable/chunks/{CReQ1PuM.js → D6Jz3g0y.js} +4 -4
  43. package/dist/web/_app/immutable/chunks/{fIxpSwzT.js → D7Dm0-kU.js} +1 -1
  44. package/dist/web/_app/immutable/chunks/{DMsgAk4e.js → D9cQ4OsS.js} +1 -1
  45. package/dist/web/_app/immutable/chunks/{BqiCjisu.js → DC-WjVvo.js} +1 -1
  46. package/dist/web/_app/immutable/chunks/{B6BDFzm3.js → DWNT9lYe.js} +1 -1
  47. package/dist/web/_app/immutable/chunks/{DulTj-Wm2.js → De4MRfd_2.js} +1 -1
  48. package/dist/web/_app/immutable/chunks/{BEIlQuf4.js → Df70Y0mi.js} +1 -1
  49. package/dist/web/_app/immutable/chunks/{By1_OWwP.js → DlAlipYU.js} +1 -1
  50. package/dist/web/_app/immutable/chunks/{C59yx8id.js → Do3O-6JL.js} +1 -1
  51. package/dist/web/_app/immutable/chunks/Ds3at_BN.js +1 -0
  52. package/dist/web/_app/immutable/chunks/{BrkIIdDb.js → Du9AnFGz.js} +2 -2
  53. package/dist/web/_app/immutable/chunks/{2q7LogfS.js → DuOFuGKD.js} +1 -1
  54. package/dist/web/_app/immutable/chunks/{Cv14T50V.js → LKHmie0y.js} +1 -1
  55. package/dist/web/_app/immutable/chunks/{Ba3z0nX52.js → UQCPE5sH2.js} +1 -1
  56. package/dist/web/_app/immutable/chunks/{1jUxlbVE.js → bx4QzOWz.js} +1 -1
  57. package/dist/web/_app/immutable/chunks/{DZxcvg1I2.js → c1iTqa872.js} +2 -2
  58. package/dist/web/_app/immutable/chunks/{CCGTOdQl.js → cK1ABjCT.js} +1 -1
  59. package/dist/web/_app/immutable/chunks/{D6GBUBiz.js → dh7-wAUC.js} +3 -3
  60. package/dist/web/_app/immutable/chunks/{DZhm-ESD.js → nfGDoIho.js} +2 -2
  61. package/dist/web/_app/immutable/chunks/{DmH-taee.js → rykHhbec.js} +1 -1
  62. package/dist/web/_app/immutable/chunks/{DqXvH9Dl.js → zpwnmd1c.js} +1 -1
  63. package/dist/web/_app/immutable/entry/{app.DgTnh4xB.js → app.DIMBnKhu.js} +2 -2
  64. package/dist/web/_app/immutable/entry/start.C6g0oVnz.js +1 -0
  65. package/dist/web/_app/immutable/nodes/{0.CX1iXe9q.js → 0.CkafNSxm.js} +2 -2
  66. package/dist/web/_app/immutable/nodes/{1.D6ocWy41.js → 1.3a6ASJWI.js} +1 -1
  67. package/dist/web/_app/immutable/nodes/{10.O9NZjrGn.js → 10.C6NQTrYt.js} +1 -1
  68. package/dist/web/_app/immutable/nodes/{11.CaxbfeAj.js → 11.Xysy1JAr.js} +1 -1
  69. package/dist/web/_app/immutable/nodes/{12.o4qojeA6.js → 12.ikDhSFBC.js} +1 -1
  70. package/dist/web/_app/immutable/nodes/{13.DEkg_vMo.js → 13.smbegqwC.js} +1 -1
  71. package/dist/web/_app/immutable/nodes/{15.BmfJAR0A.js → 15.DU33svxA.js} +1 -1
  72. package/dist/web/_app/immutable/nodes/{17.B4oT6ODx.js → 17.CQSjQNE6.js} +1 -1
  73. package/dist/web/_app/immutable/nodes/{18.D7wTDi_F.js → 18.Bl6ZTuJW.js} +1 -1
  74. package/dist/web/_app/immutable/nodes/{2.D8CaMwKu.js → 2.BRDYFpse.js} +4 -4
  75. package/dist/web/_app/immutable/nodes/{3.BefX0chp.js → 3.DQnDU-ji.js} +3 -3
  76. package/dist/web/_app/immutable/nodes/{4.CE_V_dnq.js → 4.fRE1_7j7.js} +3 -3
  77. package/dist/web/_app/immutable/nodes/{5.Cb0a29bw.js → 5.CRbH96xt.js} +1 -1
  78. package/dist/web/_app/immutable/nodes/{6.NFUehRtX.js → 6.DdyEKh4B.js} +2 -2
  79. package/dist/web/_app/immutable/nodes/{7.r70Y0da8.js → 7.Bf_hDngo.js} +1 -1
  80. package/dist/web/_app/immutable/nodes/{8.B4DG5c7G.js → 8.CIZW4O-h.js} +1 -1
  81. package/dist/web/_app/immutable/nodes/{9.DnUQeLi3.js → 9.D9mt6RnS.js} +1 -1
  82. package/dist/web/_app/version.json +1 -1
  83. package/dist/web/index.html +13 -13
  84. package/package.json +1 -1
  85. package/dist/web/_app/immutable/chunks/RKMBY9nG.js +0 -1
  86. package/dist/web/_app/immutable/chunks/xmAMGm6h.js +0 -1
  87. package/dist/web/_app/immutable/entry/start.CK-beid-.js +0 -1
@@ -21,9 +21,11 @@
21
21
  * - The public read returns ONLY { title, entityType, content } — frontmatter
22
22
  * and metadata never cross the boundary (test-enforced). Asset URLs in the
23
23
  * body are rewritten to token-scoped /api/share/:token/asset/... links.
24
- * - A public asset must be EMBEDDED in the shared entry (and so belong to the
25
- * same repo), so a crafted body can't republish another entry's, another
26
- * repo's, or an un-embedded asset.
24
+ * - A public asset must be EMBEDDED in the shared entry and owned by the
25
+ * entry's repo OR a workspace-wide shared store (same scope as the
26
+ * artifact-asset token path font kits/shared images live there), so a
27
+ * crafted body can't republish another entry's, a private repo's, or an
28
+ * un-embedded asset.
27
29
  */
28
30
  import type { FastifyInstance } from 'fastify';
29
31
  import type { WorkspaceManager } from '../../core/workspace-manager.js';
@@ -21,9 +21,11 @@
21
21
  * - The public read returns ONLY { title, entityType, content } — frontmatter
22
22
  * and metadata never cross the boundary (test-enforced). Asset URLs in the
23
23
  * body are rewritten to token-scoped /api/share/:token/asset/... links.
24
- * - A public asset must be EMBEDDED in the shared entry (and so belong to the
25
- * same repo), so a crafted body can't republish another entry's, another
26
- * repo's, or an un-embedded asset.
24
+ * - A public asset must be EMBEDDED in the shared entry and owned by the
25
+ * entry's repo OR a workspace-wide shared store (same scope as the
26
+ * artifact-asset token path font kits/shared images live there), so a
27
+ * crafted body can't republish another entry's, a private repo's, or an
28
+ * un-embedded asset.
27
29
  */
28
30
  import * as access from '../../services/access-control.js';
29
31
  import { rewriteImmutableAssetUrls, extractImmutableAssetRefs } from '../../core/embeds.js';
@@ -214,9 +216,16 @@ export async function registerShareApiRoutes(fastify, workspaceManager, authServ
214
216
  return reply.status(404).send({ error: 'Asset not found' });
215
217
  }
216
218
  const row = workspaceManager.getAssetIndex().get(assetId);
217
- // Unknown id, filename mismatch, or an asset owned by a DIFFERENT repo
218
- // than the shared entry all fail-closed.
219
- if (!row || row.filename !== filename || row.repo !== link.repo) {
219
+ // Unknown id and filename mismatch fail closed. Repo scope mirrors the
220
+ // artifact-asset token path: the asset must be owned by the shared
221
+ // entry's repo OR live in a workspace-wide shared store (font kits and
222
+ // shared images live in `workspace-assets`; every member can already
223
+ // read them, and the embed check below still requires the SHARER to
224
+ // have referenced the asset in the published body — so sharing an entry
225
+ // publishes exactly what it embeds, nothing else). Other cross-repo
226
+ // assets stay 404.
227
+ const repoAllowed = !!row && (row.repo === link.repo || access.isWorkspaceWide(row.repo, workspaceManager));
228
+ if (!row || row.filename !== filename || !repoAllowed) {
220
229
  return reply.status(404).send({ error: 'Asset not found' });
221
230
  }
222
231
  // The asset must be EMBEDDED in the shared entry — not merely a same-repo
@@ -1 +1 @@
1
- {"version":3,"file":"share-api.js","sourceRoot":"","sources":["../../../src/server/routes/share-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,KAAK,MAAM,MAAM,kCAAkC,CAAC;AAG3D,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE7E;;;;;;;;;;;GAWG;AACH,SAAS,iBAAiB,CAAC,gBAAkC,EAAE,IAAY;IACzE,MAAM,MAAM,GAAG,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,WAAW,CAAC,IAAyC,EAAE,UAAkB;IA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E,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,eAAe,CAAuB,EAAE;oBACpF,CAAC,CAAC,EAAE,CAAC;aACR,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- import{X as e,bt as t,vt as n}from"./xY0c-UfG.js";import{t as r}from"./DMsgAk4e.js";function i(){let i=t(null),a=t(``);return{get id(){return e(i)},get title(){return e(a)},open(e,t){r.mobileSidebarOpen=!1,n(i,e,!0),n(a,t,!0)},close(){n(i,null)}}}var a=i();export{a as t};
1
+ import{X as e,bt as t,vt as n}from"./xY0c-UfG.js";import{t as r}from"./D9cQ4OsS.js";function i(){let i=t(null),a=t(``);return{get id(){return e(i)},get title(){return e(a)},open(e,t){r.mobileSidebarOpen=!1,n(i,e,!0),n(a,t,!0)},close(){n(i,null)}}}var a=i();export{a as t};
@@ -1,4 +1,4 @@
1
- import{Ct as e,Gt as t,L as n,Nt as r,Pt as i,Vt as a,X as o,k as s,o as c,ot as l,qt as u,w as d,x as f,z as p}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{i as m,n as h,o as ee,r as te,t as g}from"./aqtpG62l.js";import{t as _}from"./CCGTOdQl.js";import{t as ne}from"./Cn00Qj9G.js";function re(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=re();function ie(e){v=e}var y={exec:()=>null};function b(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function x(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(S.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ae=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:b(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:b(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:b(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:b(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:b(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:b(e=>RegExp(`^ {0,${e}}>`))},oe=/^(?:[ \t]*(?:\n|$))+/,se=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ce=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,le=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,w=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,T=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,E=x(T).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),D=x(T).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/^[^\n]+/,A=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,A).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ue=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),M=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,de=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,N=x(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,de).replace(`tag`,M).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fe=x(O).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex(),pe={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,fe).getRegex(),code:se,def:j,fences:ce,heading:le,hr:C,html:N,lheading:E,list:ue,newline:oe,paragraph:fe,table:y,text:k},me=x(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex(),he={...pe,lheading:D,table:me,paragraph:x(O).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex()},ge={...pe,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,de).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(O).replace(`hr`,C).replace(`heading`,` *#{1,6} *[^
1
+ import{Ct as e,Gt as t,L as n,Nt as r,Pt as i,Vt as a,X as o,k as s,o as c,ot as l,qt as u,w as d,x as f,z as p}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{i as m,n as h,o as ee,r as te,t as g}from"./Cz0xqbgH.js";import{t as _}from"./cK1ABjCT.js";import{t as ne}from"./Cn00Qj9G.js";function re(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=re();function ie(e){v=e}var y={exec:()=>null};function b(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function x(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(S.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ae=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:b(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:b(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:b(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:b(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:b(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:b(e=>RegExp(`^ {0,${e}}>`))},oe=/^(?:[ \t]*(?:\n|$))+/,se=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ce=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,le=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,w=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,T=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,E=x(T).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),D=x(T).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/^[^\n]+/,A=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,A).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ue=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),M=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,de=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,N=x(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,de).replace(`tag`,M).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fe=x(O).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex(),pe={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,fe).getRegex(),code:se,def:j,fences:ce,heading:le,hr:C,html:N,lheading:E,list:ue,newline:oe,paragraph:fe,table:y,text:k},me=x(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex(),he={...pe,lheading:D,table:me,paragraph:x(O).replace(`hr`,C).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,M).getRegex()},ge={...pe,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,de).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(O).replace(`hr`,C).replace(`heading`,` *#{1,6} *[^
2
2
  ]`).replace(`lheading`,E).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},_e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ye=/^( {2,}|\\)\n(?!\s*$)/,be=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,P=/[\p{P}\p{S}]/u,xe=/[\s\p{P}\p{S}]/u,F=/[^\s\p{P}\p{S}]/u,Se=x(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,xe).getRegex(),Ce=/(?!~)[\p{P}\p{S}]/u,we=/(?!~)[\s\p{P}\p{S}]/u,Te=/(?:[^\s\p{P}\p{S}]|~)/u,Ee=x(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ae?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),De=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Oe=x(De,`u`).replace(/punct/g,P).getRegex(),ke=x(De,`u`).replace(/punct/g,Ce).getRegex(),Ae=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,je=x(Ae,`gu`).replace(/notPunctSpace/g,F).replace(/punctSpace/g,xe).replace(/punct/g,P).getRegex(),I=x(Ae,`gu`).replace(/notPunctSpace/g,Te).replace(/punctSpace/g,we).replace(/punct/g,Ce).getRegex(),Me=x(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,F).replace(/punctSpace/g,xe).replace(/punct/g,P).getRegex(),Ne=x(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,P).getRegex(),Pe=x(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,F).replace(/punctSpace/g,xe).replace(/punct/g,P).getRegex(),Fe=x(/\\(punct)/,`gu`).replace(/punct/g,P).getRegex(),Ie=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Le=x(de).replace(`(?:-->|$)`,`-->`).getRegex(),Re=x(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Le).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ze=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Be=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,ze).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),L=x(/^!?\[(label)\]\[(ref)\]/).replace(`label`,ze).replace(`ref`,A).getRegex(),Ve=x(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,A).getRegex(),He=x(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,L).replace(`nolink`,Ve).getRegex(),Ue=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,We={_backpedal:y,anyPunctuation:Fe,autolink:Ie,blockSkip:Ee,br:ye,code:ve,del:y,delLDelim:y,delRDelim:y,emStrongLDelim:Oe,emStrongRDelimAst:je,emStrongRDelimUnd:Me,escape:_e,link:Be,nolink:Ve,punctuation:Se,reflink:L,reflinkSearch:He,tag:Re,text:be,url:y},Ge={...We,link:x(/^!?\[(label)\]\((.*?)\)/).replace(`label`,ze).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,ze).getRegex()},Ke={...We,emStrongRDelimAst:I,emStrongLDelim:ke,delLDelim:Ne,delRDelim:Pe,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Ue).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Ue).getRegex()},qe={...Ke,br:x(ye).replace(`{2,}`,`*`).getRegex(),text:x(Ke.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Je={normal:pe,gfm:he,pedantic:ge},Ye={normal:We,gfm:Ke,breaks:qe,pedantic:Ge},R={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Xe=e=>R[e];function z(e,t){if(t){if(S.escapeTest.test(e))return e.replace(S.escapeReplace,Xe)}else if(S.escapeTestNoEncode.test(e))return e.replace(S.escapeReplaceNoEncode,Xe);return e}function Ze(e){try{e=encodeURI(e).replace(S.percentDecode,`%`)}catch{return null}return e}function B(e,t){let n=e.replace(S.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(S.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(S.slashPipe,`|`);return n}function V(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Qe(e){let t=e.split(`
3
3
  `),n=t.length-1;for(;n>=0&&S.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
4
4
  `)}function H(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function $e(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function et(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function tt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
@@ -1 +1 @@
1
- import{B as e,Bt as t,Ct as n,D as r,F as i,Ft as a,L as o,N as s,Nt as c,O as l,Pt as u,R as d,V as f,Vt as p,Wt as m,X as h,Y as g,_t as _,a as v,at as y,bt as b,c as x,ft as S,g as C,it as w,jt as T,o as E,ot as D,pt as O,s as k,st as A,u as j,vt as M,z as N}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{Dt as P,Et as F,Mt as I,Ot as L,R,V as z,_t as B,ft as V,lt as H,mt as U,pt as ee,ut as W,z as G}from"./DmH-taee.js";import"./9K8VREGP.js";import{i as K,r as q}from"./Cvnwo5OO.js";var J=ee({component:`toggle-group`,parts:[`root`,`item`]}),Y=new P(`ToggleGroup.Root`),X=class{opts;rovingFocusGroup;attachment;constructor(e){this.opts=e,this.attachment=B(this.opts.ref),this.rovingFocusGroup=new z({candidateAttr:J.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}#e=n(()=>({id:this.opts.id.current,[J.root]:``,role:`group`,"data-orientation":this.opts.orientation.current,"data-disabled":H(this.opts.disabled.current),...this.attachment}));get props(){return h(this.#e)}set props(e){M(this.#e,e)}},Z=class extends X{opts;isMulti=!1;#e=n(()=>this.opts.value.current!==``);get anyPressed(){return h(this.#e)}set anyPressed(e){M(this.#e,e)}constructor(e){super(e),this.opts=e}includesItem(e){return this.opts.value.current===e}toggleItem(e,t){this.includesItem(e)?this.opts.value.current=``:(this.opts.value.current=e,this.rovingFocusGroup.setCurrentTabStopId(t))}},Q=class extends X{opts;isMulti=!0;#e=n(()=>this.opts.value.current.length>0);get anyPressed(){return h(this.#e)}set anyPressed(e){M(this.#e,e)}constructor(e){super(e),this.opts=e}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):(this.opts.value.current=[...this.opts.value.current,e],this.rovingFocusGroup.setCurrentTabStopId(t))}},te=class{static create(e){let{type:t,...n}=e,r=t===`single`?new Z(n):new Q(n);return Y.set(r)}},ne=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e=n(()=>this.opts.disabled.current||this.root.opts.disabled.current);#t=n(()=>this.root.includesItem(this.opts.value.current));get isPressed(){return h(this.#t)}set isPressed(e){M(this.#t,e)}#n=n(()=>this.root.isMulti?void 0:U(this.isPressed,!1));#r=n(()=>this.root.isMulti?W(this.isPressed):void 0);constructor(e,t){this.opts=e,this.root=t,this.attachment=B(this.opts.ref),A(()=>{this.root.opts.rovingFocus.current?M(this.#a,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):M(this.#a,0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){h(this.#e)||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onclick(e){h(this.#e)||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!h(this.#e)){if(e.key===`Enter`||e.key===` `){e.preventDefault(),this.#i();return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=b(0);#o=n(()=>({pressed:this.isPressed}));get snippetProps(){return h(this.#o)}set snippetProps(e){M(this.#o,e)}#s=n(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:`radio`,tabindex:h(this.#a),"data-orientation":this.root.opts.orientation.current,"data-disabled":H(h(this.#e)),"data-state":re(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":h(this.#r),"aria-checked":h(this.#n),disabled:V(h(this.#e)),[J.item]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return h(this.#s)}set props(e){M(this.#s,e)}};function re(e){return e?`on`:`off`}var ie=N(`<div><!></div>`);function ae(e,t){let r=f();u(t,!0);let i=E(t,`id`,19,()=>R(r)),a=E(t,`ref`,15,null),g=E(t,`value`,15),_=E(t,`onValueChange`,3,G),v=E(t,`disabled`,3,!1),y=E(t,`loop`,3,!0),b=E(t,`orientation`,3,`horizontal`),x=E(t,`rovingFocus`,3,!0),w=k(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`type`,`disabled`,`loop`,`orientation`,`rovingFocus`,`child`,`children`]);function T(){g()===void 0&&g(t.type===`single`?``:[])}T(),F.pre(()=>g(),()=>{T()});let D=te.create({id:I(()=>i()),value:I(()=>g(),e=>{g(e),_()(e)}),disabled:I(()=>v()),loop:I(()=>y()),orientation:I(()=>b()),rovingFocus:I(()=>x()),type:t.type,ref:I(()=>a(),e=>a(e))}),A=n(()=>L(w,D.props));var j=d(),M=O(j),N=e=>{var n=d();l(O(n),()=>t.child,()=>({props:h(A)})),o(e,n)},P=e=>{var n=ie();C(n,()=>({...h(A)})),l(S(n),()=>t.children??m),p(n),o(e,n)};s(M,e=>{t.child?e(N):e(P,-1)}),o(e,j),c()}var oe=N(`<button><!></button>`);function $(e,t){let r=f();u(t,!0);let i=E(t,`ref`,15,null),a=E(t,`disabled`,3,!1),g=E(t,`id`,19,()=>R(r)),_=E(t,`type`,3,`button`),v=k(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`value`,`disabled`,`id`,`type`]),y=ne.create({id:I(()=>g()),value:I(()=>t.value),disabled:I(()=>a()??!1),ref:I(()=>i(),e=>i(e))}),b=n(()=>L(v,y.props,{type:_()}));var x=d(),w=O(x),T=e=>{var r=d(),i=O(r);{let e=n(()=>({props:h(b),...y.snippetProps}));l(i,()=>t.child,()=>h(e))}o(e,r)},D=e=>{var n=oe();C(n,()=>({...h(b)})),l(S(n),()=>t.children??m,()=>y.snippetProps),p(n),o(e,n)};s(w,e=>{t.child?e(T):e(D,-1)}),o(e,x),c()}var se=e(`<title> </title>`),ce=e(`<svg><!><path d="M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z"></path><path d="M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z"></path></svg>`);function le(e,n){let r=v(n,[`children`,`$$slots`,`$$events`,`$$legacy`]),a=v(r,[`size`,`title`]);u(n,!1);let l=_(),d=_(),f=E(n,`size`,8,16),m=E(n,`title`,8,void 0);w(()=>(g(r),g(m())),()=>{M(l,r[`aria-label`]||r[`aria-labelledby`]||m())}),w(()=>(h(l),g(r)),()=>{M(d,{"aria-hidden":h(l)?void 0:!0,role:h(l)?`img`:void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),y(),j();var b=ce();C(b,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:f(),height:f(),...h(d),...a}));var x=S(b),T=e=>{var t=se(),n=S(t,!0);p(t),D(()=>i(n,m())),o(e,t)};s(x,e=>{m()&&e(T)}),t(2),p(b),o(e,b),c()}var ue=q({base:`hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,variants:{variant:{default:`bg-transparent`,outline:`border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs`},size:{default:`h-9 min-w-9 px-2`,sm:`h-8 min-w-8 px-1.5`,lg:`h-10 min-w-10 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function de(e){a(`toggleGroup`,e)}function fe(){return T(`toggleGroup`)}function pe(e,t){u(t,!0);let i=E(t,`ref`,15,null),a=E(t,`value`,15),s=E(t,`size`,3,`default`),l=E(t,`spacing`,3,0),f=E(t,`variant`,3,`default`),p=k(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`,`size`,`spacing`,`variant`]);de({get variant(){return f()},get size(){return s()},get spacing(){return l()}});var m=d(),g=O(m);{let e=n(()=>`--gap: ${l()}`),o=n(()=>K(`group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs`,t.class));r(g,()=>ae,(t,n)=>{n(t,x({"data-slot":`toggle-group`,get"data-variant"(){return f()},get"data-size"(){return s()},get"data-spacing"(){return l()},get style(){return h(e)},get class(){return h(o)}},()=>p,{get value(){return a()},set value(e){a(e)},get ref(){return i()},set ref(e){i(e)}}))})}o(e,m),c()}function me(e,t){u(t,!0);let i=E(t,`ref`,15,null),a=k(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`,`size`,`variant`]),s=fe();var l=d(),f=O(l);{let e=n(()=>s.variant||t.variant),o=n(()=>s.size||t.size),c=n(()=>K(ue({variant:s.variant||t.variant,size:s.size||t.size}),`w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10 data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l`,t.class));r(f,()=>$,(n,r)=>{r(n,x({"data-slot":`toggle-group-item`,get"data-variant"(){return h(e)},get"data-size"(){return h(o)},get"data-spacing"(){return s.spacing},get class(){return h(c)},get value(){return t.value}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}o(e,l),c()}export{pe as n,le as r,me as t};
1
+ import{B as e,Bt as t,Ct as n,D as r,F as i,Ft as a,L as o,N as s,Nt as c,O as l,Pt as u,R as d,V as f,Vt as p,Wt as m,X as h,Y as g,_t as _,a as v,at as y,bt as b,c as x,ft as S,g as C,it as w,jt as T,o as E,ot as D,pt as O,s as k,st as A,u as j,vt as M,z as N}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{Dt as P,Et as F,Mt as I,Ot as L,R,V as z,_t as B,ft as V,lt as H,mt as U,pt as ee,ut as W,z as G}from"./rykHhbec.js";import"./9K8VREGP.js";import{i as K,r as q}from"./Cvnwo5OO.js";var J=ee({component:`toggle-group`,parts:[`root`,`item`]}),Y=new P(`ToggleGroup.Root`),X=class{opts;rovingFocusGroup;attachment;constructor(e){this.opts=e,this.attachment=B(this.opts.ref),this.rovingFocusGroup=new z({candidateAttr:J.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}#e=n(()=>({id:this.opts.id.current,[J.root]:``,role:`group`,"data-orientation":this.opts.orientation.current,"data-disabled":H(this.opts.disabled.current),...this.attachment}));get props(){return h(this.#e)}set props(e){M(this.#e,e)}},Z=class extends X{opts;isMulti=!1;#e=n(()=>this.opts.value.current!==``);get anyPressed(){return h(this.#e)}set anyPressed(e){M(this.#e,e)}constructor(e){super(e),this.opts=e}includesItem(e){return this.opts.value.current===e}toggleItem(e,t){this.includesItem(e)?this.opts.value.current=``:(this.opts.value.current=e,this.rovingFocusGroup.setCurrentTabStopId(t))}},Q=class extends X{opts;isMulti=!0;#e=n(()=>this.opts.value.current.length>0);get anyPressed(){return h(this.#e)}set anyPressed(e){M(this.#e,e)}constructor(e){super(e),this.opts=e}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):(this.opts.value.current=[...this.opts.value.current,e],this.rovingFocusGroup.setCurrentTabStopId(t))}},te=class{static create(e){let{type:t,...n}=e,r=t===`single`?new Z(n):new Q(n);return Y.set(r)}},ne=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e=n(()=>this.opts.disabled.current||this.root.opts.disabled.current);#t=n(()=>this.root.includesItem(this.opts.value.current));get isPressed(){return h(this.#t)}set isPressed(e){M(this.#t,e)}#n=n(()=>this.root.isMulti?void 0:U(this.isPressed,!1));#r=n(()=>this.root.isMulti?W(this.isPressed):void 0);constructor(e,t){this.opts=e,this.root=t,this.attachment=B(this.opts.ref),A(()=>{this.root.opts.rovingFocus.current?M(this.#a,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):M(this.#a,0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){h(this.#e)||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onclick(e){h(this.#e)||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!h(this.#e)){if(e.key===`Enter`||e.key===` `){e.preventDefault(),this.#i();return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=b(0);#o=n(()=>({pressed:this.isPressed}));get snippetProps(){return h(this.#o)}set snippetProps(e){M(this.#o,e)}#s=n(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:`radio`,tabindex:h(this.#a),"data-orientation":this.root.opts.orientation.current,"data-disabled":H(h(this.#e)),"data-state":re(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":h(this.#r),"aria-checked":h(this.#n),disabled:V(h(this.#e)),[J.item]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return h(this.#s)}set props(e){M(this.#s,e)}};function re(e){return e?`on`:`off`}var ie=N(`<div><!></div>`);function ae(e,t){let r=f();u(t,!0);let i=E(t,`id`,19,()=>R(r)),a=E(t,`ref`,15,null),g=E(t,`value`,15),_=E(t,`onValueChange`,3,G),v=E(t,`disabled`,3,!1),y=E(t,`loop`,3,!0),b=E(t,`orientation`,3,`horizontal`),x=E(t,`rovingFocus`,3,!0),w=k(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`type`,`disabled`,`loop`,`orientation`,`rovingFocus`,`child`,`children`]);function T(){g()===void 0&&g(t.type===`single`?``:[])}T(),F.pre(()=>g(),()=>{T()});let D=te.create({id:I(()=>i()),value:I(()=>g(),e=>{g(e),_()(e)}),disabled:I(()=>v()),loop:I(()=>y()),orientation:I(()=>b()),rovingFocus:I(()=>x()),type:t.type,ref:I(()=>a(),e=>a(e))}),A=n(()=>L(w,D.props));var j=d(),M=O(j),N=e=>{var n=d();l(O(n),()=>t.child,()=>({props:h(A)})),o(e,n)},P=e=>{var n=ie();C(n,()=>({...h(A)})),l(S(n),()=>t.children??m),p(n),o(e,n)};s(M,e=>{t.child?e(N):e(P,-1)}),o(e,j),c()}var oe=N(`<button><!></button>`);function $(e,t){let r=f();u(t,!0);let i=E(t,`ref`,15,null),a=E(t,`disabled`,3,!1),g=E(t,`id`,19,()=>R(r)),_=E(t,`type`,3,`button`),v=k(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`value`,`disabled`,`id`,`type`]),y=ne.create({id:I(()=>g()),value:I(()=>t.value),disabled:I(()=>a()??!1),ref:I(()=>i(),e=>i(e))}),b=n(()=>L(v,y.props,{type:_()}));var x=d(),w=O(x),T=e=>{var r=d(),i=O(r);{let e=n(()=>({props:h(b),...y.snippetProps}));l(i,()=>t.child,()=>h(e))}o(e,r)},D=e=>{var n=oe();C(n,()=>({...h(b)})),l(S(n),()=>t.children??m,()=>y.snippetProps),p(n),o(e,n)};s(w,e=>{t.child?e(T):e(D,-1)}),o(e,x),c()}var se=e(`<title> </title>`),ce=e(`<svg><!><path d="M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z"></path><path d="M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z"></path></svg>`);function le(e,n){let r=v(n,[`children`,`$$slots`,`$$events`,`$$legacy`]),a=v(r,[`size`,`title`]);u(n,!1);let l=_(),d=_(),f=E(n,`size`,8,16),m=E(n,`title`,8,void 0);w(()=>(g(r),g(m())),()=>{M(l,r[`aria-label`]||r[`aria-labelledby`]||m())}),w(()=>(h(l),g(r)),()=>{M(d,{"aria-hidden":h(l)?void 0:!0,role:h(l)?`img`:void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),y(),j();var b=ce();C(b,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:f(),height:f(),...h(d),...a}));var x=S(b),T=e=>{var t=se(),n=S(t,!0);p(t),D(()=>i(n,m())),o(e,t)};s(x,e=>{m()&&e(T)}),t(2),p(b),o(e,b),c()}var ue=q({base:`hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,variants:{variant:{default:`bg-transparent`,outline:`border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs`},size:{default:`h-9 min-w-9 px-2`,sm:`h-8 min-w-8 px-1.5`,lg:`h-10 min-w-10 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function de(e){a(`toggleGroup`,e)}function fe(){return T(`toggleGroup`)}function pe(e,t){u(t,!0);let i=E(t,`ref`,15,null),a=E(t,`value`,15),s=E(t,`size`,3,`default`),l=E(t,`spacing`,3,0),f=E(t,`variant`,3,`default`),p=k(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`,`size`,`spacing`,`variant`]);de({get variant(){return f()},get size(){return s()},get spacing(){return l()}});var m=d(),g=O(m);{let e=n(()=>`--gap: ${l()}`),o=n(()=>K(`group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs`,t.class));r(g,()=>ae,(t,n)=>{n(t,x({"data-slot":`toggle-group`,get"data-variant"(){return f()},get"data-size"(){return s()},get"data-spacing"(){return l()},get style(){return h(e)},get class(){return h(o)}},()=>p,{get value(){return a()},set value(e){a(e)},get ref(){return i()},set ref(e){i(e)}}))})}o(e,m),c()}function me(e,t){u(t,!0);let i=E(t,`ref`,15,null),a=k(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`,`size`,`variant`]),s=fe();var l=d(),f=O(l);{let e=n(()=>s.variant||t.variant),o=n(()=>s.size||t.size),c=n(()=>K(ue({variant:s.variant||t.variant,size:s.size||t.size}),`w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10 data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l`,t.class));r(f,()=>$,(n,r)=>{r(n,x({"data-slot":`toggle-group-item`,get"data-variant"(){return h(e)},get"data-size"(){return h(o)},get"data-spacing"(){return s.spacing},get class(){return h(c)},get value(){return t.value}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}o(e,l),c()}export{pe as n,le as r,me as t};
@@ -1 +1 @@
1
- import{A as e,B as t,Bt as n,F as r,G as i,L as a,N as o,Nt as s,O as c,Pt as l,U as u,Vt as d,W as f,X as p,Y as m,_t as h,a as g,at as _,ft as v,g as y,it as b,j as x,mt as S,o as C,ot as w,pt as T,q as E,u as D,v as O,vt as k,w as A,x as j,z as M}from"./xY0c-UfG.js";import"./xihTtKlq.js";import"./9K8VREGP.js";import{i as N}from"./Cm-xTsdy.js";import{i as P}from"./MZzfi2-b.js";var F=t(`<title> </title>`),I=t(`<svg><!><path d="M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"></path><path d="M10 22H22V24H10z"></path><path d="M10 16H22V18H10z"></path></svg>`);function L(e,t){let i=g(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),c=g(i,[`size`,`title`]);l(t,!1);let u=h(),f=h(),x=C(t,`size`,8,16),S=C(t,`title`,8,void 0);b(()=>(m(i),m(S())),()=>{k(u,i[`aria-label`]||i[`aria-labelledby`]||S())}),b(()=>(p(u),m(i)),()=>{k(f,{"aria-hidden":p(u)?void 0:!0,role:p(u)?`img`:void 0,focusable:Number(i.tabindex)===0?!0:void 0})}),_(),D();var T=I();y(T,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:x(),height:x(),...p(f),...c}));var E=v(T),O=e=>{var t=F(),n=v(t,!0);d(t),w(()=>r(n,S())),a(e,t)};o(E,e=>{S()&&e(O)}),n(3),d(T),a(e,T),s()}var R=t(`<title> </title>`),z=t(`<svg><!><path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"></path><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"></path></svg>`);function B(e,t){let i=g(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),c=g(i,[`size`,`title`]);l(t,!1);let u=h(),f=h(),x=C(t,`size`,8,16),S=C(t,`title`,8,void 0);b(()=>(m(i),m(S())),()=>{k(u,i[`aria-label`]||i[`aria-labelledby`]||S())}),b(()=>(p(u),m(i)),()=>{k(f,{"aria-hidden":p(u)?void 0:!0,role:p(u)?`img`:void 0,focusable:Number(i.tabindex)===0?!0:void 0})}),_(),D();var T=z();y(T,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:x(),height:x(),...p(f),...c}));var E=v(T),O=e=>{var t=R(),n=v(t,!0);d(t),w(()=>r(n,S())),a(e,t)};o(E,e=>{S()&&e(O)}),n(2),d(T),a(e,T),s()}var V=M(`<div class="cell-headline svelte-1ud4k9l"><span class="svelte-1ud4k9l"> </span></div> <div></div>`,1),H=M(`<img loading="lazy" decoding="async" draggable="false" class="svelte-1ud4k9l"/>`),U=M(`<span class="cell-doc svelte-1ud4k9l"><!></span>`),W=M(`<span class="cell-doc svelte-1ud4k9l"><!></span>`),G=M(`<div class="cell-image svelte-1ud4k9l"><!></div> <span> </span>`,1),K=M(`<span><span class="cell-tag-text svelte-1ud4k9l"> </span></span>`),q=M(`<span class="cell-slot-overlay svelte-1ud4k9l"><!></span>`),J=M(`<button type="button"><!> <span class="cell-checkbox-chip svelte-1ud4k9l"><!></span></button>`),Y=M(`<span class="cell-slot-static svelte-1ud4k9l" aria-hidden="true"><!></span>`),X=M(`<div role="button" tabindex="0"><!> <div class="cell-tags svelte-1ud4k9l"></div> <!></div>`);function Z(t,u){l(u,!0);let m=C(u,`caption`,3,`wrap`),h=C(u,`chips`,19,()=>[]),g=C(u,`variant`,3,`flush`),_=C(u,`lastCol`,3,!1),y=C(u,`firstRow`,3,!1),b=C(u,`selectable`,3,!1),D=C(u,`selected`,3,!1),k=C(u,`draggable`,3,!1),M=C(u,`dropActive`,3,!1);var F=X();let I;var R=v(F),z=e=>{var t=V(),i=T(t),o=v(i),s=v(o,!0);d(o),A(o,e=>P?.(e)),d(i),n(2),w(()=>r(s,u.title)),a(e,t)},Z=e=>{var t=G(),n=T(t),s=v(n),c=e=>{var t=H();w(()=>{O(t,`src`,u.media.url),O(t,`alt`,u.title)}),i(`error`,t,e=>{e.currentTarget.style.visibility=`hidden`}),E(t),a(e,t)},l=e=>{var t=U();B(v(t),{size:28}),d(t),a(e,t)},f=e=>{var t=W();L(v(t),{size:28}),d(t),a(e,t)};o(s,e=>{u.media.kind===`image`?e(c):u.media.glyph===`font`?e(l,1):e(f,-1)}),d(n);var p=S(n,2),h=v(p,!0);d(p),A(p,e=>P?.(e)),w(()=>{j(p,1,`cell-title cap-${m()??``}`,`svelte-1ud4k9l`),O(p,`title`,u.title),r(h,u.title)}),a(e,t)};o(R,e=>{u.media.kind===`none`?e(z):e(Z,-1)});var Q=S(R,2);e(Q,21,h,x,(e,t)=>{var n=K();let i;var o=v(n),s=v(o,!0);d(o),A(o,e=>P?.(e)),d(n),w(()=>{i=j(n,1,`cell-tag svelte-1ud4k9l`,null,i,{"cell-tag-outline":p(t).variant===`outline`,"cell-tag-cap":p(t).cap}),O(n,`title`,p(t).title??p(t).label),r(s,p(t).label)}),a(e,n)}),d(Q);var $=S(Q,2),ee=e=>{var t=J();let n;var r=v(t),i=e=>{var t=q();c(v(t),()=>u.slotOverlay),d(t),a(e,t)};o(r,e=>{u.slotOverlay&&!D()&&e(i)});var s=S(r,2);N(v(s),{get checked(){return D()},tabindex:-1}),d(s),d(t),w(()=>{n=j(t,1,`cell-select-slot svelte-1ud4k9l`,null,n,{"has-presence":!!u.slotOverlay}),O(t,`aria-label`,u.selectAriaLabel)}),f(`click`,t,e=>{e.stopPropagation(),u.onToggleSelect?.(e)}),a(e,t)},te=e=>{var t=Y();c(v(t),()=>u.slotIcon),d(t),a(e,t)};o($,e=>{b()&&u.onToggleSelect?e(ee):u.slotIcon&&e(te,1)}),d(F),w(()=>{I=j(F,1,`gallery-cell svelte-1ud4k9l`,null,I,{"cell-card":g()===`card`,"cell-selected":D(),"cell-last-col":_(),"cell-first-row":y(),"drop-target":M()}),O(F,`aria-label`,u.ariaLabel),O(F,`draggable`,k()),O(F,`data-drop-path`,u.dataDropPath)}),f(`click`,F,e=>u.onActivate?.(e)),f(`keydown`,F,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),u.onActivate?.(e))}),i(`dragstart`,F,function(...e){u.onDragStart?.apply(this,e)}),i(`dragend`,F,function(...e){u.onDragEnd?.apply(this,e)}),f(`touchstart`,F,function(...e){u.onTouchStart?.apply(this,e)},void 0,!0),i(`dragover`,F,function(...e){u.onDragOver?.apply(this,e)}),i(`dragleave`,F,function(...e){u.onDragLeave?.apply(this,e)}),i(`drop`,F,function(...e){u.onDrop?.apply(this,e)}),a(t,F),s()}u([`click`,`keydown`,`touchstart`]);export{B as n,L as r,Z as t};
1
+ import{A as e,B as t,Bt as n,F as r,G as i,L as a,N as o,Nt as s,O as c,Pt as l,U as u,Vt as d,W as f,X as p,Y as m,_t as h,a as g,at as _,ft as v,g as y,it as b,j as x,mt as S,o as C,ot as w,pt as T,q as E,u as D,v as O,vt as k,w as A,x as j,z as M}from"./xY0c-UfG.js";import"./xihTtKlq.js";import"./9K8VREGP.js";import{i as N}from"./D3ftUFMd.js";import{i as P}from"./Beyz0lpE.js";var F=t(`<title> </title>`),I=t(`<svg><!><path d="M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"></path><path d="M10 22H22V24H10z"></path><path d="M10 16H22V18H10z"></path></svg>`);function L(e,t){let i=g(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),c=g(i,[`size`,`title`]);l(t,!1);let u=h(),f=h(),x=C(t,`size`,8,16),S=C(t,`title`,8,void 0);b(()=>(m(i),m(S())),()=>{k(u,i[`aria-label`]||i[`aria-labelledby`]||S())}),b(()=>(p(u),m(i)),()=>{k(f,{"aria-hidden":p(u)?void 0:!0,role:p(u)?`img`:void 0,focusable:Number(i.tabindex)===0?!0:void 0})}),_(),D();var T=I();y(T,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:x(),height:x(),...p(f),...c}));var E=v(T),O=e=>{var t=F(),n=v(t,!0);d(t),w(()=>r(n,S())),a(e,t)};o(E,e=>{S()&&e(O)}),n(3),d(T),a(e,T),s()}var R=t(`<title> </title>`),z=t(`<svg><!><path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"></path><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"></path></svg>`);function B(e,t){let i=g(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),c=g(i,[`size`,`title`]);l(t,!1);let u=h(),f=h(),x=C(t,`size`,8,16),S=C(t,`title`,8,void 0);b(()=>(m(i),m(S())),()=>{k(u,i[`aria-label`]||i[`aria-labelledby`]||S())}),b(()=>(p(u),m(i)),()=>{k(f,{"aria-hidden":p(u)?void 0:!0,role:p(u)?`img`:void 0,focusable:Number(i.tabindex)===0?!0:void 0})}),_(),D();var T=z();y(T,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:x(),height:x(),...p(f),...c}));var E=v(T),O=e=>{var t=R(),n=v(t,!0);d(t),w(()=>r(n,S())),a(e,t)};o(E,e=>{S()&&e(O)}),n(2),d(T),a(e,T),s()}var V=M(`<div class="cell-headline svelte-1ud4k9l"><span class="svelte-1ud4k9l"> </span></div> <div></div>`,1),H=M(`<img loading="lazy" decoding="async" draggable="false" class="svelte-1ud4k9l"/>`),U=M(`<span class="cell-doc svelte-1ud4k9l"><!></span>`),W=M(`<span class="cell-doc svelte-1ud4k9l"><!></span>`),G=M(`<div class="cell-image svelte-1ud4k9l"><!></div> <span> </span>`,1),K=M(`<span><span class="cell-tag-text svelte-1ud4k9l"> </span></span>`),q=M(`<span class="cell-slot-overlay svelte-1ud4k9l"><!></span>`),J=M(`<button type="button"><!> <span class="cell-checkbox-chip svelte-1ud4k9l"><!></span></button>`),Y=M(`<span class="cell-slot-static svelte-1ud4k9l" aria-hidden="true"><!></span>`),X=M(`<div role="button" tabindex="0"><!> <div class="cell-tags svelte-1ud4k9l"></div> <!></div>`);function Z(t,u){l(u,!0);let m=C(u,`caption`,3,`wrap`),h=C(u,`chips`,19,()=>[]),g=C(u,`variant`,3,`flush`),_=C(u,`lastCol`,3,!1),y=C(u,`firstRow`,3,!1),b=C(u,`selectable`,3,!1),D=C(u,`selected`,3,!1),k=C(u,`draggable`,3,!1),M=C(u,`dropActive`,3,!1);var F=X();let I;var R=v(F),z=e=>{var t=V(),i=T(t),o=v(i),s=v(o,!0);d(o),A(o,e=>P?.(e)),d(i),n(2),w(()=>r(s,u.title)),a(e,t)},Z=e=>{var t=G(),n=T(t),s=v(n),c=e=>{var t=H();w(()=>{O(t,`src`,u.media.url),O(t,`alt`,u.title)}),i(`error`,t,e=>{e.currentTarget.style.visibility=`hidden`}),E(t),a(e,t)},l=e=>{var t=U();B(v(t),{size:28}),d(t),a(e,t)},f=e=>{var t=W();L(v(t),{size:28}),d(t),a(e,t)};o(s,e=>{u.media.kind===`image`?e(c):u.media.glyph===`font`?e(l,1):e(f,-1)}),d(n);var p=S(n,2),h=v(p,!0);d(p),A(p,e=>P?.(e)),w(()=>{j(p,1,`cell-title cap-${m()??``}`,`svelte-1ud4k9l`),O(p,`title`,u.title),r(h,u.title)}),a(e,t)};o(R,e=>{u.media.kind===`none`?e(z):e(Z,-1)});var Q=S(R,2);e(Q,21,h,x,(e,t)=>{var n=K();let i;var o=v(n),s=v(o,!0);d(o),A(o,e=>P?.(e)),d(n),w(()=>{i=j(n,1,`cell-tag svelte-1ud4k9l`,null,i,{"cell-tag-outline":p(t).variant===`outline`,"cell-tag-cap":p(t).cap}),O(n,`title`,p(t).title??p(t).label),r(s,p(t).label)}),a(e,n)}),d(Q);var $=S(Q,2),ee=e=>{var t=J();let n;var r=v(t),i=e=>{var t=q();c(v(t),()=>u.slotOverlay),d(t),a(e,t)};o(r,e=>{u.slotOverlay&&!D()&&e(i)});var s=S(r,2);N(v(s),{get checked(){return D()},tabindex:-1}),d(s),d(t),w(()=>{n=j(t,1,`cell-select-slot svelte-1ud4k9l`,null,n,{"has-presence":!!u.slotOverlay}),O(t,`aria-label`,u.selectAriaLabel)}),f(`click`,t,e=>{e.stopPropagation(),u.onToggleSelect?.(e)}),a(e,t)},te=e=>{var t=Y();c(v(t),()=>u.slotIcon),d(t),a(e,t)};o($,e=>{b()&&u.onToggleSelect?e(ee):u.slotIcon&&e(te,1)}),d(F),w(()=>{I=j(F,1,`gallery-cell svelte-1ud4k9l`,null,I,{"cell-card":g()===`card`,"cell-selected":D(),"cell-last-col":_(),"cell-first-row":y(),"drop-target":M()}),O(F,`aria-label`,u.ariaLabel),O(F,`draggable`,k()),O(F,`data-drop-path`,u.dataDropPath)}),f(`click`,F,e=>u.onActivate?.(e)),f(`keydown`,F,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),u.onActivate?.(e))}),i(`dragstart`,F,function(...e){u.onDragStart?.apply(this,e)}),i(`dragend`,F,function(...e){u.onDragEnd?.apply(this,e)}),f(`touchstart`,F,function(...e){u.onTouchStart?.apply(this,e)},void 0,!0),i(`dragover`,F,function(...e){u.onDragOver?.apply(this,e)}),i(`dragleave`,F,function(...e){u.onDragLeave?.apply(this,e)}),i(`drop`,F,function(...e){u.onDrop?.apply(this,e)}),a(t,F),s()}u([`click`,`keydown`,`touchstart`]);export{B as n,L as r,Z as t};
@@ -0,0 +1 @@
1
+ import"./Ds3at_BN.js";
@@ -1 +1 @@
1
- import{Bt as e,Ct as t,D as n,F as r,H as i,L as a,N as o,Nt as s,Pt as c,R as l,Vt as u,X as d,bt as f,ft as p,mt as m,ot as h,pt as g,st as _,vt as v,z as y}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{t as b}from"./D6GBUBiz.js";import{A as x,E as S,O as C,T as w,j as T,k as E,w as D}from"./Cm-xTsdy.js";import{t as O}from"./Cvnwo5OO.js";import{d as k,f as A,m as j,u as M}from"./CZdCQgyo2.js";import{t as N}from"./DDbpVNi02.js";var P=y(`<p class="dialog-error svelte-1p20661"> </p>`),F=y(`<!> <!> <!>`,1),I=y(`<!> <!>`,1),L=y(`<!> <!> <!>`,1);function R(y,R){c(R,!0);let z=t(()=>M.request),B=f(``),V=f(!1),H=f(null);_(()=>{let e=d(z);e&&(v(B,A({scopeLabel:e.scopeLabel,viz:e.viz,groupByLabel:e.groupByLabel}),!0),v(H,null))});async function U(){let e=d(z);if(!e||d(V))return;let t=d(B).trim();if(!t){v(H,`Enter a name`);return}v(V,!0),v(H,null);let n=await k.create(t,{config:j(e.scratch),viewType:e.viz,scope:e.defaultScope});v(V,!1),n?(M.close(),b.showToast(`Saved view “${t}”`)):v(H,`Could not save the view`)}var W=l();n(g(W),()=>T,(s,c)=>{c(s,{get open(){return M.open},onOpenChange:e=>{e||M.close()},children:(s,c)=>{var f=l();n(g(f),()=>x,(s,c)=>{c(s,{size:`sm`,children:(s,c)=>{var f=L(),_=g(f);n(_,()=>E,(e,t)=>{t(e,{class:`close-only-header`,children:(e,t)=>{var r=l();n(g(r),()=>D,(e,t)=>{t(e,{})}),a(e,r)},$$slots:{default:!0}})});var y=m(_,2);n(y,()=>S,(t,s)=>{s(t,{class:`dialog-body-lg`,children:(t,s)=>{var c=F(),l=g(c);n(l,()=>C,(t,n)=>{n(t,{children:(t,n)=>{e(),a(t,i(`Save view`))},$$slots:{default:!0}})});var f=m(l,2);N(f,{type:`text`,placeholder:`View name`,onkeydown:e=>{e.key===`Enter`&&(e.preventDefault(),U())},get value(){return d(B)},set value(e){v(B,e,!0)}});var _=m(f,2),y=e=>{var t=P(),n=p(t,!0);u(t),h(()=>r(n,d(H))),a(e,t)};o(_,e=>{d(H)&&e(y)}),a(t,c)},$$slots:{default:!0}})}),n(m(y,2),()=>w,(n,r)=>{r(n,{children:(n,r)=>{var o=I(),s=g(o);O(s,{variant:`ghost`,onclick:()=>M.close(),children:(t,n)=>{e(),a(t,i(`Cancel`))},$$slots:{default:!0}});var c=m(s,2);{let n=t(()=>!d(B).trim());O(c,{variant:`accent`,get disabled(){return d(n)},get loading(){return d(V)},onclick:U,children:(t,n)=>{e(),a(t,i(`Save view`))},$$slots:{default:!0}})}a(n,o)},$$slots:{default:!0}})}),a(s,f)},$$slots:{default:!0}})}),a(s,f)},$$slots:{default:!0}})}),a(y,W),s()}export{R as default};
1
+ import{Bt as e,Ct as t,D as n,F as r,H as i,L as a,N as o,Nt as s,Pt as c,R as l,Vt as u,X as d,bt as f,ft as p,mt as m,ot as h,pt as g,st as _,vt as v,z as y}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{t as b}from"./dh7-wAUC.js";import{A as x,E as S,O as C,T as w,j as T,k as E,w as D}from"./D3ftUFMd.js";import{t as O}from"./Cvnwo5OO.js";import{d as k,f as A,m as j,u as M}from"./B5YJtbcd2.js";import{t as N}from"./DDbpVNi02.js";var P=y(`<p class="dialog-error svelte-1p20661"> </p>`),F=y(`<!> <!> <!>`,1),I=y(`<!> <!>`,1),L=y(`<!> <!> <!>`,1);function R(y,R){c(R,!0);let z=t(()=>M.request),B=f(``),V=f(!1),H=f(null);_(()=>{let e=d(z);e&&(v(B,A({scopeLabel:e.scopeLabel,viz:e.viz,groupByLabel:e.groupByLabel}),!0),v(H,null))});async function U(){let e=d(z);if(!e||d(V))return;let t=d(B).trim();if(!t){v(H,`Enter a name`);return}v(V,!0),v(H,null);let n=await k.create(t,{config:j(e.scratch),viewType:e.viz,scope:e.defaultScope});v(V,!1),n?(M.close(),b.showToast(`Saved view “${t}”`)):v(H,`Could not save the view`)}var W=l();n(g(W),()=>T,(s,c)=>{c(s,{get open(){return M.open},onOpenChange:e=>{e||M.close()},children:(s,c)=>{var f=l();n(g(f),()=>x,(s,c)=>{c(s,{size:`sm`,children:(s,c)=>{var f=L(),_=g(f);n(_,()=>E,(e,t)=>{t(e,{class:`close-only-header`,children:(e,t)=>{var r=l();n(g(r),()=>D,(e,t)=>{t(e,{})}),a(e,r)},$$slots:{default:!0}})});var y=m(_,2);n(y,()=>S,(t,s)=>{s(t,{class:`dialog-body-lg`,children:(t,s)=>{var c=F(),l=g(c);n(l,()=>C,(t,n)=>{n(t,{children:(t,n)=>{e(),a(t,i(`Save view`))},$$slots:{default:!0}})});var f=m(l,2);N(f,{type:`text`,placeholder:`View name`,onkeydown:e=>{e.key===`Enter`&&(e.preventDefault(),U())},get value(){return d(B)},set value(e){v(B,e,!0)}});var _=m(f,2),y=e=>{var t=P(),n=p(t,!0);u(t),h(()=>r(n,d(H))),a(e,t)};o(_,e=>{d(H)&&e(y)}),a(t,c)},$$slots:{default:!0}})}),n(m(y,2),()=>w,(n,r)=>{r(n,{children:(n,r)=>{var o=I(),s=g(o);O(s,{variant:`ghost`,onclick:()=>M.close(),children:(t,n)=>{e(),a(t,i(`Cancel`))},$$slots:{default:!0}});var c=m(s,2);{let n=t(()=>!d(B).trim());O(c,{variant:`accent`,get disabled(){return d(n)},get loading(){return d(V)},onclick:U,children:(t,n)=>{e(),a(t,i(`Save view`))},$$slots:{default:!0}})}a(n,o)},$$slots:{default:!0}})}),a(s,f)},$$slots:{default:!0}})}),a(s,f)},$$slots:{default:!0}})}),a(y,W),s()}export{R as default};
@@ -1 +1 @@
1
- import{B as e,Bt as t,F as n,L as r,N as i,Nt as a,Pt as o,Vt as s,X as c,Y as l,_t as u,a as d,at as f,bt as p,ft as m,g as h,ht as g,it as _,o as v,ot as y,u as b,vt as x}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{E as S,F as C,K as w,m as T,u as E}from"./B4fk0_el.js";import"./9K8VREGP.js";import{u as D}from"./BV1Vl4rX2.js";var O=p(null),k={register(e){x(O,e,!0)},unregister(){x(O,null)},get available(){return c(O)!==null},open(e={}){c(O)?.(e)}};function A(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(hover: none) and (pointer: coarse)`).matches}var j={entry:`M25.7 9.3l-7-7A1 1 0 0 0 18 2H8a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V10a1 1 0 0 0-.3-.7zM18 4.4l5.6 5.6H18zM24 28H8V4h8v6a2 2 0 0 0 2 2h6z`,folder:`M11.17 6l3.42 3.41.58.59H28v16H4V6h7.17m0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.41l-3.41-3.41A2 2 0 0 0 11.17 4z`};function ee(e){let t=e.count>1,n=`var(--color-bg-surface,#26262b)`,r=`var(--color-border,#3a3a3e)`,i=`var(--color-accent,#FE3C3C)`,a=`var(--color-text-primary,#fff)`,o=t?`,4px 4px 0 0 ${n},4px 4px 0 1px ${r}`:``,s=t=>`<svg width="${t}" height="${t}" viewBox="0 0 32 32" fill="currentColor" aria-hidden="true"><path d="${j[e.kind]}"/></svg>`,c=document.createElement(`div`);c.style.cssText=`padding:30px;pointer-events:none;`;let l=document.createElement(`div`);l.style.cssText=`position:relative;display:inline-block;`;let u=document.createElement(`div`);if(e.variant===`kanban`){u.style.cssText=[`display:flex`,`align-items:flex-start`,`gap:8px`,`box-sizing:border-box`,`width:248px`,`padding:11px 13px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:13px`,`line-height:1.3`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`span`);t.style.cssText=`flex:0 0 auto;width:6px;height:6px;margin-top:5px;border-radius:50%;background:${e.accent||`transparent`}`;let i=document.createElement(`span`);i.style.cssText=`font-weight:600;overflow:hidden;white-space:nowrap`,i.dataset.fade=`1`,i.textContent=e.label,u.appendChild(t),u.appendChild(i)}else if(e.variant===`gallery`){u.style.cssText=[`display:flex`,`flex-direction:column`,`box-sizing:border-box`,`overflow:hidden`,`width:148px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:13px`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`div`);t.style.cssText=`height:78px;display:flex;align-items:center;justify-content:center;background:var(--color-bg,#0b0b0d);color:${i}`,t.innerHTML=s(26);let c=document.createElement(`div`);c.style.cssText=`padding:8px 10px;line-height:1.3;overflow:hidden;white-space:nowrap`,c.dataset.fade=`1`,c.textContent=e.label,u.appendChild(t),u.appendChild(c)}else{u.style.cssText=[`display:inline-flex`,`align-items:center`,`gap:8px`,`box-sizing:border-box`,`max-width:260px`,`padding:9px 14px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:14px`,`line-height:1.2`,`white-space:nowrap`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`span`);t.style.cssText=`display:inline-flex;flex:0 0 auto;color:${i}`,t.innerHTML=s(16);let c=document.createElement(`span`);c.style.cssText=`overflow:hidden;max-width:200px`,c.dataset.fade=`1`,c.textContent=e.label,u.appendChild(t),u.appendChild(c)}if(l.appendChild(u),t){let t=document.createElement(`span`);t.style.cssText=[`position:absolute`,`top:-8px`,`right:-8px`,`box-sizing:border-box`,`min-width:20px`,`height:20px`,`padding:0 6px`,`display:flex`,`align-items:center`,`justify-content:center`,`background:${i}`,`color:#fff`,`border:2px solid var(--color-bg,#0b0b0d)`,`border-radius:11px`,`font-family:var(--font-sans,system-ui)`,`font-size:11px`,`font-weight:600`,`line-height:1`].join(`;`),t.textContent=String(e.count),l.appendChild(t)}return c.appendChild(l),c}function te(e){let t=`linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%)`;e.querySelectorAll(`[data-fade]`).forEach(e=>{e.scrollWidth>e.clientWidth&&(e.style.webkitMaskImage=t,e.style.maskImage=t)})}function M(e,t){if(typeof document>`u`)return;let n=ee(t);n.style.position=`absolute`,n.style.top=`-1000px`,n.style.left=`-1000px`,document.body.appendChild(n),te(n),e.setDragImage(n,38,38),setTimeout(()=>n.remove(),0)}var N=p(null),P=p(null),F={get payload(){return c(N)},get sourceRepo(){return c(P)},get dragging(){return c(N)!==null}};function ne(e){let t=e.lastIndexOf(`/`);return t<0?``:e.slice(0,t)}function I(e){let t=p(null),n=p(null),r=null,i=null,a=null,o=null,s=!1,l=38,u=38,d=null,f=null;function m(e){if(!c(t))return!1;if(c(t).kind===`entries`)return c(t).rows.length>0;let n=c(t).folder.path;return!(e===n||e.startsWith(n+`/`)||ne(n)===e)}function h(e){return m(e.path)}function g(n){let r=c(t);if(r)if(r.kind===`entries`){let t=e.lockedFolder();t&&e.moveRows(r.rows,{repo:t,path:n})}else{let t=r.folder.path.split(`/`).pop()??r.folder.path,i=n?`${n}/${t}`:t;e.moveFolder(r.folder.path,i)}}function _(t){let n=e.isRowSelected(t)?e.getSelectedRows():[t];return{kind:`entries`,rows:n.length>0?n:[t]}}function v(e,t){return t||(e.kind===`entries`&&e.rows.length>1?`${e.rows.length} entries`:`Entry`)}function y(t){return e.variant===`gallery`&&t.kind===`entries`&&t.rows.length===1}function b(n,r,i){let a=_(r);x(t,a,!0),x(N,a,!0),x(P,e.lockedFolder(),!0),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,``),y(a)||M(n.dataTransfer,{variant:e.variant,kind:`entry`,label:v(a,i),count:a.kind===`entries`?a.rows.length:1}))}function S(n,r,i){x(t,{kind:`folder`,folder:r},!0),x(N,c(t),!0),x(P,e.lockedFolder(),!0),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,``),e.variant===`gallery`||M(n.dataTransfer,{variant:e.variant,kind:`folder`,label:i??r.name,count:1}))}function C(e,t){h(t)&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),x(n,t.path,!0))}function w(e){c(n)===e.path&&x(n,null)}function T(e,n){!c(t)||!h(n)||(e.preventDefault(),g(n.path),k())}function E(e,t){m(t)&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),x(n,t,!0))}function D(e){c(n)===e&&x(n,null)}function O(e,n){!c(t)||!m(n)||(e.preventDefault(),g(n),k())}function k(){x(t,null),x(n,null),x(N,null),x(P,null)}function A(e,t){o&&(o.style.transform=`translate(${e-l}px, ${t-u}px)`)}function j(e,t,n,o,s=null){let c=e.touches[0];if(!c)return;a={x:c.clientX,y:c.clientY};let l;if(s){let e=s.getBoundingClientRect();l={grabX:c.clientX-e.left,grabY:c.clientY-e.top,width:e.width}}i={payload:t,label:n,count:o,cloneEl:s,...l},r&&clearTimeout(r),r=setTimeout(F,350),document.addEventListener(`touchmove`,I,{passive:!1}),document.addEventListener(`touchend`,R),document.addEventListener(`touchcancel`,R)}function F(){if(!(!i||!a)){if(r=null,s=!0,x(t,i.payload,!0),x(N,c(t),!0),x(P,e.lockedFolder(),!0),i.cloneEl){let e=i.cloneEl.cloneNode(!0);e.style.width=`${i.width}px`,e.style.boxSizing=`border-box`,e.style.boxShadow=`0 8px 22px rgba(0,0,0,.35)`,o=e,l=i.grabX??38,u=i.grabY??38}else o=ee({variant:e.variant,kind:i.payload.kind===`folder`?`folder`:`entry`,label:i.label,count:i.count}),l=38,u=38;o.style.position=`fixed`,o.style.left=`0`,o.style.top=`0`,o.style.margin=`0`,o.style.zIndex=`9999`,o.style.pointerEvents=`none`,o.style.willChange=`transform`,A(a.x,a.y),document.body.appendChild(o),i.cloneEl||te(o),navigator.vibrate?.(10)}}function I(e){let t=e.touches[0];if(t){if(!s){a&&Math.hypot(t.clientX-a.x,t.clientY-a.y)>10&&z();return}e.preventDefault(),d={x:t.clientX,y:t.clientY},f===null&&(f=requestAnimationFrame(L))}}function L(){if(f=null,!s||!d)return;let{x:e,y:t}=d;A(e,t);let r=(document.elementFromPoint(e,t)?.closest(`[data-drop-path]`))?.dataset.dropPath??null;x(n,r!==null&&m(r)?r:null,!0)}function R(e){s&&(e.preventDefault(),c(n)!==null&&m(c(n))&&g(c(n))),z()}function z(){r&&=(clearTimeout(r),null),f!==null&&(cancelAnimationFrame(f),f=null),d=null,o&&=(o.remove(),null),document.removeEventListener(`touchmove`,I),document.removeEventListener(`touchend`,R),document.removeEventListener(`touchcancel`,R),s=!1,i=null,a=null,x(t,null),x(n,null),x(N,null),x(P,null)}function re(e,t,n){let r=_(t),i=y(r)?e.currentTarget:null;j(e,r,v(r,n),r.kind===`entries`?r.rows.length:1,i)}function ie(t,n,r){let i=e.variant===`gallery`?t.currentTarget:null;j(t,{kind:`folder`,folder:n},r??n.name,1,i)}return{get dragging(){return c(t)!==null},get dropTargetPath(){return c(n)},canDrop:h,startEntryDrag:b,startFolderDrag:S,startEntryTouch:re,startFolderTouch:ie,dragOverFolder:C,dragLeaveFolder:w,dropOnFolder:T,dragOverPath:E,dragLeavePath:D,dropOnPath:O,end:k}}var L=e(`<title> </title>`),R=e(`<svg><!><path d="M12,4H6A2,2,0,0,0,4,6v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,12,4Zm0,8H6V6h6Z"></path><path d="M26,4H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,8H20V6h6Z"></path><path d="M12,18H6a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,12,18Zm0,8H6V20h6Z"></path><path d="M26,18H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,26,18Zm0,8H20V20h6Z"></path></svg>`);function z(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=R();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=L(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(4),s(D),r(e,D),a()}var re=e(`<title> </title>`),ie=e(`<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>`);function ae(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=ie();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=re(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(6),s(D),r(e,D),a()}var oe=e(`<title> </title>`),se=e(`<svg><!><path d="M26,6v4H6V6H26m0-2H6A2,2,0,0,0,4,6v4a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6a2,2,0,0,0-2-2Z"></path><path d="M10,16V26H6V16h4m0-2H6a2,2,0,0,0-2,2V26a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V16a2,2,0,0,0-2-2Z"></path><path d="M26,16V26H16V16H26m0-2H16a2,2,0,0,0-2,2V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V16a2,2,0,0,0-2-2Z"></path></svg>`);function ce(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=se();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=oe(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(3),s(D),r(e,D),a()}var le=e(`<title> </title>`),ue=e(`<svg><!><path d="M12,30H4a2.0023,2.0023,0,0,1-2-2V24a2.0023,2.0023,0,0,1,2-2h8a2.0023,2.0023,0,0,1,2,2v4A2.0023,2.0023,0,0,1,12,30ZM4,24v4h8V24Z"></path><path d="M28,20H12a2.0023,2.0023,0,0,1-2-2V14a2.0023,2.0023,0,0,1,2-2H28a2.0023,2.0023,0,0,1,2,2v4A2.0023,2.0023,0,0,1,28,20ZM12,14v4H28V14Z"></path><path d="M16,10H4A2.0023,2.0023,0,0,1,2,8V4A2.0023,2.0023,0,0,1,4,2H16a2.0023,2.0023,0,0,1,2,2V8A2.0023,2.0023,0,0,1,16,10ZM4,4V8H16V4Z"></path></svg>`);function de(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=ue();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=le(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(3),s(D),r(e,D),a()}var fe=e(`<title> </title>`),pe=e(`<svg><!><path d="M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z"></path><path d="M5,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,5,20Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,5,14Z"></path><path d="M10,31a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,10,31Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,10,25Z"></path><path d="M22,31a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,31Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,22,25Z"></path><path d="M27,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,27,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,27,14Z"></path><path d="M22,9a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,9Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,22,3Z"></path><path d="M10,9a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,10,9Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,10,3Z"></path></svg>`);function me(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=pe();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=fe(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(7),s(D),r(e,D),a()}var he=[`list`,`gallery`,`kanban`,`timeline`,`calendar`,`graph`],B=`list`;function V(){return{version:1,viz:B,filters:{version:1},byViz:{}}}function H(e){return typeof e==`string`&&he.includes(e)}function ge(e){return e&&typeof e==`object`&&e.version===1?e:{version:1}}function _e(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))H(n)&&r&&typeof r==`object`&&!Array.isArray(r)&&(t[n]=r);return t}function U(e){if(!e)return V();let t;try{t=JSON.parse(e)}catch{return V()}if(!t||typeof t!=`object`)return V();let n=t;return n.version===1?{version:1,viz:H(n.viz)?n.viz:B,filters:ge(n.filters),byViz:_e(n.byViz)}:V()}function ve(e){return JSON.stringify(e)}function ye(e,t){return e.viz===t?e:{...e,viz:t}}function be(e,t){return{...e,filters:t}}function xe(e,t){return e.byViz[t]??{}}function Se(e,t,n){return{...e,byViz:{...e.byViz,[t]:n}}}function W(e){if(typeof e!=`object`||!e)return JSON.stringify(e)??`null`;if(Array.isArray(e))return`[${e.map(W).join(`,`)}]`;let t=e;return`{${Object.keys(t).sort().map(e=>`${JSON.stringify(e)}:${W(t[e])}`).join(`,`)}}`}function Ce(e,t){return e.viz===t.viz&&W(e.filters)===W(t.filters)&&W(e.byViz)===W(t.byViz)}function we(e){return{configVersion:1,scratch:e}}function Te(e){if(!e||typeof e!=`object`)return{configVersion:1,scratch:V()};let t=e,n=t.scratch??t;return{configVersion:1,scratch:U(typeof n==`string`?n:JSON.stringify(n))}}function Ee(e){return Te(e).scratch}var De={list:``,gallery:`Gallery`,kanban:`Board`,timeline:`Timeline`,calendar:`Calendar`,graph:`Graph`};function Oe(e){let t=e.scopeLabel.trim()||`View`;if(e.viz===`kanban`&&e.groupByLabel)return`${t} by ${e.groupByLabel}`;let n=De[e.viz];return n?`${t} ${n}`:t}function ke(e){switch(e.kind){case`type`:return{kind:`type`,entityType:e.entityType};case`folder`:return{kind:`folder`,repo:e.repo,folderPath:e.folderPath};case`recent`:case`gone`:return{kind:`recent`}}}function G(e){return[...e].sort((e,t)=>e.sortOrder-t.sortOrder||e.id-t.id)}function K(e){return!!e&&!!e.resolvedScope&&typeof e.resolvedScope.kind==`string`}var Ae=new class{#e=p(g([]));get views(){return c(this.#e)}set views(e){x(this.#e,e,!0)}#t=p(!1);get loaded(){return c(this.#t)}set loaded(e){x(this.#t,e,!0)}get sorted(){return G(this.views)}#n=null;async load(){return this.#n||=(async()=>{try{this.views=(await S()).filter(K)}catch{}finally{this.loaded=!0,this.#n=null}})(),this.#n}async create(e,t){try{let n=await E(e,t);return K(n)&&(this.views=[n,...this.views]),n}catch{return null}}async update(e,t){try{return await w(e,{config:t.config,viewType:t.viewType}),this.views=this.views.map(n=>n.id===e?{...n,config:t.config,viewType:t.viewType}:n),!0}catch{return!1}}async rename(e,t){let n=t.trim();n&&(await w(e,{name:n}),this.views=this.views.map(t=>t.id===e?{...t,name:n}:t))}async remove(e){await T(e),this.views=this.views.filter(t=>t.id!==e)}async reorder(e,t,n){if(e===t)return;let r=G(this.views),i=r.findIndex(t=>t.id===e);if(i===-1||!r.some(e=>e.id===t))return;let[a]=r.splice(i,1),o=r.findIndex(e=>e.id===t);r.splice(n?o+1:o,0,a);let s=r.map((e,t)=>({...e,sortOrder:t})),c=this.views;this.views=s;try{await C(s.map(e=>e.id))}catch{this.views=c}}async duplicate(e){try{let t=await E(`${e.name} (copy)`,{config:e.config,viewType:e.viewType,scope:ke(e.resolvedScope)});if(!K(t))return t;let n={...t,sortOrder:e.sortOrder};return this.views=[...this.views,n],await w(n.id,{sortOrder:n.sortOrder}).catch(()=>{}),n}catch{return null}}},je=new class{#e=p(null);get request(){return c(this.#e)}set request(e){x(this.#e,e,!0)}get open(){return this.request!==null}openWith(e){this.request=e}close(){this.request=null}},q=`__empty__`,Me=`__me__`;function J(){return{version:1}}function Ne(e){if(!e)return!1;if(e.text?.search&&e.text.search.trim())return!0;if(e.enum){for(let t of Object.values(e.enum))if(t&&t.length>0)return!0}if(e.date){for(let t of Object.values(e.date))if(t&&(`preset`in t&&t.preset||`from`in t&&(t.from||t.to)))return!0}return!1}function Pe(e){if(!e)return 0;let t=0;if(e.text?.search&&e.text.search.trim()&&t++,e.enum)for(let n of Object.values(e.enum))n&&n.length>0&&t++;if(e.date)for(let n of Object.values(e.date))n&&(`preset`in n&&n.preset||`from`in n&&(n.from||n.to))&&t++;return t}var Fe=e=>`sg-filters-${e}`,Y=e=>`sg-tagfilter-${e}`,Ie=e=>`sg-listview-${e}`,Le=e=>`sg-galleryview-${e}`,Re=e=>`sg-calendarview-${e}`;function ze(e){if(typeof localStorage>`u`)return J();let t=Fe(e);try{let e=localStorage.getItem(t);if(e){let t=JSON.parse(e);if(t&&t.version===1)return t}}catch{}let n=J(),r=!1;try{let t=localStorage.getItem(Y(e));if(t){let e=JSON.parse(t);Array.isArray(e)&&e.length>0&&(n.enum={tags:[...e]},r=!0)}}catch{}let i=X(Ie(e))??X(Le(e))??X(Re(e));if(i&&(n.enum={...n.enum??{},entity_type:[i]},r=!0),r){try{localStorage.setItem(t,JSON.stringify(n))}catch{}try{localStorage.removeItem(Y(e))}catch{}}return n}function X(e){try{let t=localStorage.getItem(e);if(!t)return null;let n=JSON.parse(t)?.selectedType;return typeof n==`string`&&n?n:null}catch{return null}}function Z(e,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`;switch(e){case`past-due`:return{to:r(Q(n,-1))};case`today`:return{from:r(n),to:r(n)};case`this-week`:{let e=Q(n,-((n.getDay()+6)%7)),t=Q(e,6);return{from:r(e),to:r(t)}}case`next-30d`:return{from:r(n),to:r(Q(n,30))};case`next-90d`:return{from:r(n),to:r(Q(n,90))};case`last-1w`:return{from:r(Q(n,-7)),to:r(n)};case`last-1m`:return{from:r($(n,-1)),to:r(n)};case`last-3m`:return{from:r($(n,-3)),to:r(n)};case`last-6m`:return{from:r($(n,-6)),to:r(n)};case`last-12m`:return{from:r($(n,-12)),to:r(n)}}}function Q(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n}function $(e,t){let n=new Date(e);return n.setMonth(n.getMonth()+t),n}function Be(e){if(e==null)return[];let t=[];if(Array.isArray(e))for(let n of e)n!=null&&t.push(...Ve(String(n)));else t.push(...Ve(String(e)));return t}function Ve(e){return e?e.replace(/\[\[|\]\]/g,``).split(`,`).map(e=>e.trim().split(`|`)[0].trim()).filter(Boolean):[]}function He(e,t){if(t===`entity_type`)return e.entityType;if(t===`folder`)return e.repo;let n=e.fields[t];return n==null||Array.isArray(n)?``:String(n)}function Ue(e,t){if(t===`created_at`)return e.createdAt??``;if(t===`updated_at`)return e.updatedAt??``;let n=e.fields[t];return n==null?``:String(n).slice(0,10)}function We(e,t,n){if(!Ne(t))return e;let r=t.text?.search?.trim().toLowerCase()??``,i=t.enum?Object.entries(t.enum).filter(([,e])=>e&&e.length>0):[],a=t.date?Object.entries(t.date).filter(([,e])=>e&&(`preset`in e&&e.preset||`from`in e&&(e.from||e.to))):[];return e.filter(e=>{if(r&&!e.title.toLowerCase().includes(r))return!1;for(let[t,r]of i)if(!Ge(e,t,r,n))return!1;for(let[t,n]of a)if(!Ke(e,t,n))return!1;return!0})}function Ge(e,t,n,r){let i=n.includes(q),a=t===`assignee`&&n.includes(`__me__`),o=n.filter(e=>e!==`__empty__`&&e!==`__me__`);if(a&&r.currentUserPersonId&&o.push(r.currentUserPersonId),t===`tags`){let t=e.fields.tags,n=Array.isArray(t)?t.map(e=>String(e).trim()).filter(Boolean):[];return n.length===0?i:o.length===0?!1:n.some(e=>o.includes(e))}if(t!==`entity_type`&&t!==`folder`&&!D(e.entityType,t))return!1;if(r.wikilinkKeys.has(t)){let n=Be(e.fields[t]);return n.length===0?i:o.length===0?!1:n.some(e=>o.includes(e))}let s=He(e,t);return s?o.length===0?!1:o.includes(s):i}function Ke(e,t,n){if(!D(e.entityType,t))return!1;let r=Ue(e,t),i=`preset`in n?Z(n.preset):{from:n.from,to:n.to};return!(!r||i.from&&r<i.from||i.to&&r>i.to)}export{A,me as C,z as D,ae as E,I as O,Se as S,ce as T,Ce as _,Be as a,be as b,He as c,Ae as d,Oe as f,U as g,he as h,Pe as i,k as j,F as k,Z as l,we as m,Me as n,ze as o,Ee as p,We as r,Ue as s,q as t,je as u,ve as v,de as w,ye as x,xe as y};
1
+ import{B as e,Bt as t,F as n,L as r,N as i,Nt as a,Pt as o,Vt as s,X as c,Y as l,_t as u,a as d,at as f,bt as p,ft as m,g as h,ht as g,it as _,o as v,ot as y,u as b,vt as x}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{E as S,F as C,K as w,m as T,u as E}from"./B4fk0_el.js";import"./9K8VREGP.js";import{u as D}from"./BTeW6vEy2.js";var O=p(null),k={register(e){x(O,e,!0)},unregister(){x(O,null)},get available(){return c(O)!==null},open(e={}){c(O)?.(e)}};function A(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(hover: none) and (pointer: coarse)`).matches}var j={entry:`M25.7 9.3l-7-7A1 1 0 0 0 18 2H8a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V10a1 1 0 0 0-.3-.7zM18 4.4l5.6 5.6H18zM24 28H8V4h8v6a2 2 0 0 0 2 2h6z`,folder:`M11.17 6l3.42 3.41.58.59H28v16H4V6h7.17m0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.41l-3.41-3.41A2 2 0 0 0 11.17 4z`};function ee(e){let t=e.count>1,n=`var(--color-bg-surface,#26262b)`,r=`var(--color-border,#3a3a3e)`,i=`var(--color-accent,#FE3C3C)`,a=`var(--color-text-primary,#fff)`,o=t?`,4px 4px 0 0 ${n},4px 4px 0 1px ${r}`:``,s=t=>`<svg width="${t}" height="${t}" viewBox="0 0 32 32" fill="currentColor" aria-hidden="true"><path d="${j[e.kind]}"/></svg>`,c=document.createElement(`div`);c.style.cssText=`padding:30px;pointer-events:none;`;let l=document.createElement(`div`);l.style.cssText=`position:relative;display:inline-block;`;let u=document.createElement(`div`);if(e.variant===`kanban`){u.style.cssText=[`display:flex`,`align-items:flex-start`,`gap:8px`,`box-sizing:border-box`,`width:248px`,`padding:11px 13px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:13px`,`line-height:1.3`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`span`);t.style.cssText=`flex:0 0 auto;width:6px;height:6px;margin-top:5px;border-radius:50%;background:${e.accent||`transparent`}`;let i=document.createElement(`span`);i.style.cssText=`font-weight:600;overflow:hidden;white-space:nowrap`,i.dataset.fade=`1`,i.textContent=e.label,u.appendChild(t),u.appendChild(i)}else if(e.variant===`gallery`){u.style.cssText=[`display:flex`,`flex-direction:column`,`box-sizing:border-box`,`overflow:hidden`,`width:148px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:13px`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`div`);t.style.cssText=`height:78px;display:flex;align-items:center;justify-content:center;background:var(--color-bg,#0b0b0d);color:${i}`,t.innerHTML=s(26);let c=document.createElement(`div`);c.style.cssText=`padding:8px 10px;line-height:1.3;overflow:hidden;white-space:nowrap`,c.dataset.fade=`1`,c.textContent=e.label,u.appendChild(t),u.appendChild(c)}else{u.style.cssText=[`display:inline-flex`,`align-items:center`,`gap:8px`,`box-sizing:border-box`,`max-width:260px`,`padding:9px 14px`,`background:${n}`,`color:${a}`,`border:1px solid ${r}`,`border-radius:10px`,`font-family:var(--font-sans,system-ui)`,`font-size:14px`,`line-height:1.2`,`white-space:nowrap`,`box-shadow:0 8px 22px rgba(0,0,0,.35)${o}`].join(`;`);let t=document.createElement(`span`);t.style.cssText=`display:inline-flex;flex:0 0 auto;color:${i}`,t.innerHTML=s(16);let c=document.createElement(`span`);c.style.cssText=`overflow:hidden;max-width:200px`,c.dataset.fade=`1`,c.textContent=e.label,u.appendChild(t),u.appendChild(c)}if(l.appendChild(u),t){let t=document.createElement(`span`);t.style.cssText=[`position:absolute`,`top:-8px`,`right:-8px`,`box-sizing:border-box`,`min-width:20px`,`height:20px`,`padding:0 6px`,`display:flex`,`align-items:center`,`justify-content:center`,`background:${i}`,`color:#fff`,`border:2px solid var(--color-bg,#0b0b0d)`,`border-radius:11px`,`font-family:var(--font-sans,system-ui)`,`font-size:11px`,`font-weight:600`,`line-height:1`].join(`;`),t.textContent=String(e.count),l.appendChild(t)}return c.appendChild(l),c}function te(e){let t=`linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%)`;e.querySelectorAll(`[data-fade]`).forEach(e=>{e.scrollWidth>e.clientWidth&&(e.style.webkitMaskImage=t,e.style.maskImage=t)})}function M(e,t){if(typeof document>`u`)return;let n=ee(t);n.style.position=`absolute`,n.style.top=`-1000px`,n.style.left=`-1000px`,document.body.appendChild(n),te(n),e.setDragImage(n,38,38),setTimeout(()=>n.remove(),0)}var N=p(null),P=p(null),F={get payload(){return c(N)},get sourceRepo(){return c(P)},get dragging(){return c(N)!==null}};function ne(e){let t=e.lastIndexOf(`/`);return t<0?``:e.slice(0,t)}function I(e){let t=p(null),n=p(null),r=null,i=null,a=null,o=null,s=!1,l=38,u=38,d=null,f=null;function m(e){if(!c(t))return!1;if(c(t).kind===`entries`)return c(t).rows.length>0;let n=c(t).folder.path;return!(e===n||e.startsWith(n+`/`)||ne(n)===e)}function h(e){return m(e.path)}function g(n){let r=c(t);if(r)if(r.kind===`entries`){let t=e.lockedFolder();t&&e.moveRows(r.rows,{repo:t,path:n})}else{let t=r.folder.path.split(`/`).pop()??r.folder.path,i=n?`${n}/${t}`:t;e.moveFolder(r.folder.path,i)}}function _(t){let n=e.isRowSelected(t)?e.getSelectedRows():[t];return{kind:`entries`,rows:n.length>0?n:[t]}}function v(e,t){return t||(e.kind===`entries`&&e.rows.length>1?`${e.rows.length} entries`:`Entry`)}function y(t){return e.variant===`gallery`&&t.kind===`entries`&&t.rows.length===1}function b(n,r,i){let a=_(r);x(t,a,!0),x(N,a,!0),x(P,e.lockedFolder(),!0),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,``),y(a)||M(n.dataTransfer,{variant:e.variant,kind:`entry`,label:v(a,i),count:a.kind===`entries`?a.rows.length:1}))}function S(n,r,i){x(t,{kind:`folder`,folder:r},!0),x(N,c(t),!0),x(P,e.lockedFolder(),!0),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,``),e.variant===`gallery`||M(n.dataTransfer,{variant:e.variant,kind:`folder`,label:i??r.name,count:1}))}function C(e,t){h(t)&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),x(n,t.path,!0))}function w(e){c(n)===e.path&&x(n,null)}function T(e,n){!c(t)||!h(n)||(e.preventDefault(),g(n.path),k())}function E(e,t){m(t)&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),x(n,t,!0))}function D(e){c(n)===e&&x(n,null)}function O(e,n){!c(t)||!m(n)||(e.preventDefault(),g(n),k())}function k(){x(t,null),x(n,null),x(N,null),x(P,null)}function A(e,t){o&&(o.style.transform=`translate(${e-l}px, ${t-u}px)`)}function j(e,t,n,o,s=null){let c=e.touches[0];if(!c)return;a={x:c.clientX,y:c.clientY};let l;if(s){let e=s.getBoundingClientRect();l={grabX:c.clientX-e.left,grabY:c.clientY-e.top,width:e.width}}i={payload:t,label:n,count:o,cloneEl:s,...l},r&&clearTimeout(r),r=setTimeout(F,350),document.addEventListener(`touchmove`,I,{passive:!1}),document.addEventListener(`touchend`,R),document.addEventListener(`touchcancel`,R)}function F(){if(!(!i||!a)){if(r=null,s=!0,x(t,i.payload,!0),x(N,c(t),!0),x(P,e.lockedFolder(),!0),i.cloneEl){let e=i.cloneEl.cloneNode(!0);e.style.width=`${i.width}px`,e.style.boxSizing=`border-box`,e.style.boxShadow=`0 8px 22px rgba(0,0,0,.35)`,o=e,l=i.grabX??38,u=i.grabY??38}else o=ee({variant:e.variant,kind:i.payload.kind===`folder`?`folder`:`entry`,label:i.label,count:i.count}),l=38,u=38;o.style.position=`fixed`,o.style.left=`0`,o.style.top=`0`,o.style.margin=`0`,o.style.zIndex=`9999`,o.style.pointerEvents=`none`,o.style.willChange=`transform`,A(a.x,a.y),document.body.appendChild(o),i.cloneEl||te(o),navigator.vibrate?.(10)}}function I(e){let t=e.touches[0];if(t){if(!s){a&&Math.hypot(t.clientX-a.x,t.clientY-a.y)>10&&z();return}e.preventDefault(),d={x:t.clientX,y:t.clientY},f===null&&(f=requestAnimationFrame(L))}}function L(){if(f=null,!s||!d)return;let{x:e,y:t}=d;A(e,t);let r=(document.elementFromPoint(e,t)?.closest(`[data-drop-path]`))?.dataset.dropPath??null;x(n,r!==null&&m(r)?r:null,!0)}function R(e){s&&(e.preventDefault(),c(n)!==null&&m(c(n))&&g(c(n))),z()}function z(){r&&=(clearTimeout(r),null),f!==null&&(cancelAnimationFrame(f),f=null),d=null,o&&=(o.remove(),null),document.removeEventListener(`touchmove`,I),document.removeEventListener(`touchend`,R),document.removeEventListener(`touchcancel`,R),s=!1,i=null,a=null,x(t,null),x(n,null),x(N,null),x(P,null)}function re(e,t,n){let r=_(t),i=y(r)?e.currentTarget:null;j(e,r,v(r,n),r.kind===`entries`?r.rows.length:1,i)}function ie(t,n,r){let i=e.variant===`gallery`?t.currentTarget:null;j(t,{kind:`folder`,folder:n},r??n.name,1,i)}return{get dragging(){return c(t)!==null},get dropTargetPath(){return c(n)},canDrop:h,startEntryDrag:b,startFolderDrag:S,startEntryTouch:re,startFolderTouch:ie,dragOverFolder:C,dragLeaveFolder:w,dropOnFolder:T,dragOverPath:E,dragLeavePath:D,dropOnPath:O,end:k}}var L=e(`<title> </title>`),R=e(`<svg><!><path d="M12,4H6A2,2,0,0,0,4,6v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,12,4Zm0,8H6V6h6Z"></path><path d="M26,4H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,8H20V6h6Z"></path><path d="M12,18H6a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,12,18Zm0,8H6V20h6Z"></path><path d="M26,18H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V20A2,2,0,0,0,26,18Zm0,8H20V20h6Z"></path></svg>`);function z(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=R();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=L(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(4),s(D),r(e,D),a()}var re=e(`<title> </title>`),ie=e(`<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>`);function ae(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=ie();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=re(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(6),s(D),r(e,D),a()}var oe=e(`<title> </title>`),se=e(`<svg><!><path d="M26,6v4H6V6H26m0-2H6A2,2,0,0,0,4,6v4a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6a2,2,0,0,0-2-2Z"></path><path d="M10,16V26H6V16h4m0-2H6a2,2,0,0,0-2,2V26a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V16a2,2,0,0,0-2-2Z"></path><path d="M26,16V26H16V16H26m0-2H16a2,2,0,0,0-2,2V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V16a2,2,0,0,0-2-2Z"></path></svg>`);function ce(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=se();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=oe(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(3),s(D),r(e,D),a()}var le=e(`<title> </title>`),ue=e(`<svg><!><path d="M12,30H4a2.0023,2.0023,0,0,1-2-2V24a2.0023,2.0023,0,0,1,2-2h8a2.0023,2.0023,0,0,1,2,2v4A2.0023,2.0023,0,0,1,12,30ZM4,24v4h8V24Z"></path><path d="M28,20H12a2.0023,2.0023,0,0,1-2-2V14a2.0023,2.0023,0,0,1,2-2H28a2.0023,2.0023,0,0,1,2,2v4A2.0023,2.0023,0,0,1,28,20ZM12,14v4H28V14Z"></path><path d="M16,10H4A2.0023,2.0023,0,0,1,2,8V4A2.0023,2.0023,0,0,1,4,2H16a2.0023,2.0023,0,0,1,2,2V8A2.0023,2.0023,0,0,1,16,10ZM4,4V8H16V4Z"></path></svg>`);function de(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=ue();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=le(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(3),s(D),r(e,D),a()}var fe=e(`<title> </title>`),pe=e(`<svg><!><path d="M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z"></path><path d="M5,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,5,20Zm0-6a2,2,0,1,0,2,2A2.0023,2.0023,0,0,0,5,14Z"></path><path d="M10,31a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,10,31Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,10,25Z"></path><path d="M22,31a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,31Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,22,25Z"></path><path d="M27,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,27,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,27,14Z"></path><path d="M22,9a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,9Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,22,3Z"></path><path d="M10,9a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,10,9Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,10,3Z"></path></svg>`);function me(e,p){let g=d(p,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=d(g,[`size`,`title`]);o(p,!1);let C=u(),w=u(),T=v(p,`size`,8,16),E=v(p,`title`,8,void 0);_(()=>(l(g),l(E())),()=>{x(C,g[`aria-label`]||g[`aria-labelledby`]||E())}),_(()=>(c(C),l(g)),()=>{x(w,{"aria-hidden":c(C)?void 0:!0,role:c(C)?`img`:void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),f(),b();var D=pe();h(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...c(w),...S}));var O=m(D),k=e=>{var t=fe(),i=m(t,!0);s(t),y(()=>n(i,E())),r(e,t)};i(O,e=>{E()&&e(k)}),t(7),s(D),r(e,D),a()}var he=[`list`,`gallery`,`kanban`,`timeline`,`calendar`,`graph`],B=`list`;function V(){return{version:1,viz:B,filters:{version:1},byViz:{}}}function H(e){return typeof e==`string`&&he.includes(e)}function ge(e){return e&&typeof e==`object`&&e.version===1?e:{version:1}}function _e(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))H(n)&&r&&typeof r==`object`&&!Array.isArray(r)&&(t[n]=r);return t}function U(e){if(!e)return V();let t;try{t=JSON.parse(e)}catch{return V()}if(!t||typeof t!=`object`)return V();let n=t;return n.version===1?{version:1,viz:H(n.viz)?n.viz:B,filters:ge(n.filters),byViz:_e(n.byViz)}:V()}function ve(e){return JSON.stringify(e)}function ye(e,t){return e.viz===t?e:{...e,viz:t}}function be(e,t){return{...e,filters:t}}function xe(e,t){return e.byViz[t]??{}}function Se(e,t,n){return{...e,byViz:{...e.byViz,[t]:n}}}function W(e){if(typeof e!=`object`||!e)return JSON.stringify(e)??`null`;if(Array.isArray(e))return`[${e.map(W).join(`,`)}]`;let t=e;return`{${Object.keys(t).sort().map(e=>`${JSON.stringify(e)}:${W(t[e])}`).join(`,`)}}`}function Ce(e,t){return e.viz===t.viz&&W(e.filters)===W(t.filters)&&W(e.byViz)===W(t.byViz)}function we(e){return{configVersion:1,scratch:e}}function Te(e){if(!e||typeof e!=`object`)return{configVersion:1,scratch:V()};let t=e,n=t.scratch??t;return{configVersion:1,scratch:U(typeof n==`string`?n:JSON.stringify(n))}}function Ee(e){return Te(e).scratch}var De={list:``,gallery:`Gallery`,kanban:`Board`,timeline:`Timeline`,calendar:`Calendar`,graph:`Graph`};function Oe(e){let t=e.scopeLabel.trim()||`View`;if(e.viz===`kanban`&&e.groupByLabel)return`${t} by ${e.groupByLabel}`;let n=De[e.viz];return n?`${t} ${n}`:t}function ke(e){switch(e.kind){case`type`:return{kind:`type`,entityType:e.entityType};case`folder`:return{kind:`folder`,repo:e.repo,folderPath:e.folderPath};case`recent`:case`gone`:return{kind:`recent`}}}function G(e){return[...e].sort((e,t)=>e.sortOrder-t.sortOrder||e.id-t.id)}function K(e){return!!e&&!!e.resolvedScope&&typeof e.resolvedScope.kind==`string`}var Ae=new class{#e=p(g([]));get views(){return c(this.#e)}set views(e){x(this.#e,e,!0)}#t=p(!1);get loaded(){return c(this.#t)}set loaded(e){x(this.#t,e,!0)}get sorted(){return G(this.views)}#n=null;async load(){return this.#n||=(async()=>{try{this.views=(await S()).filter(K)}catch{}finally{this.loaded=!0,this.#n=null}})(),this.#n}async create(e,t){try{let n=await E(e,t);return K(n)&&(this.views=[n,...this.views]),n}catch{return null}}async update(e,t){try{return await w(e,{config:t.config,viewType:t.viewType}),this.views=this.views.map(n=>n.id===e?{...n,config:t.config,viewType:t.viewType}:n),!0}catch{return!1}}async rename(e,t){let n=t.trim();n&&(await w(e,{name:n}),this.views=this.views.map(t=>t.id===e?{...t,name:n}:t))}async remove(e){await T(e),this.views=this.views.filter(t=>t.id!==e)}async reorder(e,t,n){if(e===t)return;let r=G(this.views),i=r.findIndex(t=>t.id===e);if(i===-1||!r.some(e=>e.id===t))return;let[a]=r.splice(i,1),o=r.findIndex(e=>e.id===t);r.splice(n?o+1:o,0,a);let s=r.map((e,t)=>({...e,sortOrder:t})),c=this.views;this.views=s;try{await C(s.map(e=>e.id))}catch{this.views=c}}async duplicate(e){try{let t=await E(`${e.name} (copy)`,{config:e.config,viewType:e.viewType,scope:ke(e.resolvedScope)});if(!K(t))return t;let n={...t,sortOrder:e.sortOrder};return this.views=[...this.views,n],await w(n.id,{sortOrder:n.sortOrder}).catch(()=>{}),n}catch{return null}}},je=new class{#e=p(null);get request(){return c(this.#e)}set request(e){x(this.#e,e,!0)}get open(){return this.request!==null}openWith(e){this.request=e}close(){this.request=null}},q=`__empty__`,Me=`__me__`;function J(){return{version:1}}function Ne(e){if(!e)return!1;if(e.text?.search&&e.text.search.trim())return!0;if(e.enum){for(let t of Object.values(e.enum))if(t&&t.length>0)return!0}if(e.date){for(let t of Object.values(e.date))if(t&&(`preset`in t&&t.preset||`from`in t&&(t.from||t.to)))return!0}return!1}function Pe(e){if(!e)return 0;let t=0;if(e.text?.search&&e.text.search.trim()&&t++,e.enum)for(let n of Object.values(e.enum))n&&n.length>0&&t++;if(e.date)for(let n of Object.values(e.date))n&&(`preset`in n&&n.preset||`from`in n&&(n.from||n.to))&&t++;return t}var Fe=e=>`sg-filters-${e}`,Y=e=>`sg-tagfilter-${e}`,Ie=e=>`sg-listview-${e}`,Le=e=>`sg-galleryview-${e}`,Re=e=>`sg-calendarview-${e}`;function ze(e){if(typeof localStorage>`u`)return J();let t=Fe(e);try{let e=localStorage.getItem(t);if(e){let t=JSON.parse(e);if(t&&t.version===1)return t}}catch{}let n=J(),r=!1;try{let t=localStorage.getItem(Y(e));if(t){let e=JSON.parse(t);Array.isArray(e)&&e.length>0&&(n.enum={tags:[...e]},r=!0)}}catch{}let i=X(Ie(e))??X(Le(e))??X(Re(e));if(i&&(n.enum={...n.enum??{},entity_type:[i]},r=!0),r){try{localStorage.setItem(t,JSON.stringify(n))}catch{}try{localStorage.removeItem(Y(e))}catch{}}return n}function X(e){try{let t=localStorage.getItem(e);if(!t)return null;let n=JSON.parse(t)?.selectedType;return typeof n==`string`&&n?n:null}catch{return null}}function Z(e,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`;switch(e){case`past-due`:return{to:r(Q(n,-1))};case`today`:return{from:r(n),to:r(n)};case`this-week`:{let e=Q(n,-((n.getDay()+6)%7)),t=Q(e,6);return{from:r(e),to:r(t)}}case`next-30d`:return{from:r(n),to:r(Q(n,30))};case`next-90d`:return{from:r(n),to:r(Q(n,90))};case`last-1w`:return{from:r(Q(n,-7)),to:r(n)};case`last-1m`:return{from:r($(n,-1)),to:r(n)};case`last-3m`:return{from:r($(n,-3)),to:r(n)};case`last-6m`:return{from:r($(n,-6)),to:r(n)};case`last-12m`:return{from:r($(n,-12)),to:r(n)}}}function Q(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n}function $(e,t){let n=new Date(e);return n.setMonth(n.getMonth()+t),n}function Be(e){if(e==null)return[];let t=[];if(Array.isArray(e))for(let n of e)n!=null&&t.push(...Ve(String(n)));else t.push(...Ve(String(e)));return t}function Ve(e){return e?e.replace(/\[\[|\]\]/g,``).split(`,`).map(e=>e.trim().split(`|`)[0].trim()).filter(Boolean):[]}function He(e,t){if(t===`entity_type`)return e.entityType;if(t===`folder`)return e.repo;let n=e.fields[t];return n==null||Array.isArray(n)?``:String(n)}function Ue(e,t){if(t===`created_at`)return e.createdAt??``;if(t===`updated_at`)return e.updatedAt??``;let n=e.fields[t];return n==null?``:String(n).slice(0,10)}function We(e,t,n){if(!Ne(t))return e;let r=t.text?.search?.trim().toLowerCase()??``,i=t.enum?Object.entries(t.enum).filter(([,e])=>e&&e.length>0):[],a=t.date?Object.entries(t.date).filter(([,e])=>e&&(`preset`in e&&e.preset||`from`in e&&(e.from||e.to))):[];return e.filter(e=>{if(r&&!e.title.toLowerCase().includes(r))return!1;for(let[t,r]of i)if(!Ge(e,t,r,n))return!1;for(let[t,n]of a)if(!Ke(e,t,n))return!1;return!0})}function Ge(e,t,n,r){let i=n.includes(q),a=t===`assignee`&&n.includes(`__me__`),o=n.filter(e=>e!==`__empty__`&&e!==`__me__`);if(a&&r.currentUserPersonId&&o.push(r.currentUserPersonId),t===`tags`){let t=e.fields.tags,n=Array.isArray(t)?t.map(e=>String(e).trim()).filter(Boolean):[];return n.length===0?i:o.length===0?!1:n.some(e=>o.includes(e))}if(t!==`entity_type`&&t!==`folder`&&!D(e.entityType,t))return!1;if(r.wikilinkKeys.has(t)){let n=Be(e.fields[t]);return n.length===0?i:o.length===0?!1:n.some(e=>o.includes(e))}let s=He(e,t);return s?o.length===0?!1:o.includes(s):i}function Ke(e,t,n){if(!D(e.entityType,t))return!1;let r=Ue(e,t),i=`preset`in n?Z(n.preset):{from:n.from,to:n.to};return!(!r||i.from&&r<i.from||i.to&&r>i.to)}export{A,me as C,z as D,ae as E,I as O,Se as S,ce as T,Ce as _,Be as a,be as b,He as c,Ae as d,Oe as f,U as g,he as h,Pe as i,k as j,F as k,Z as l,we as m,Me as n,ze as o,Ee as p,We as r,Ue as s,q as t,je as u,ve as v,de as w,ye as x,xe as y};
@@ -1 +1 @@
1
- import{$ as e,A as t,Ct as n,D as r,F as i,H as a,K as o,L as s,N as c,Nt as l,O as u,Pt as d,R as f,V as p,Vt as m,Wt as h,X as g,bt as _,c as v,ct as y,ft as b,g as x,ht as S,mt as C,o as w,ot as T,pt as E,s as D,st as O,u as k,vt as A,z as j}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{B as M,C as N,Ct as P,Dt as F,E as I,Et as L,G as ee,Mt as R,Ot as z,Q as te,R as B,S as ne,T as re,V as ie,X as ae,Y as oe,Z as se,_t as V,at as ce,b as le,ct as ue,et as de,ft as fe,gt as pe,ht as H,it as me,k as he,lt as U,mt as ge,nt as _e,ot as ve,pt as ye,rt as be,st as xe,tt as Se,ut as W,v as Ce,vt as G,wt as we,xt as Te,y as Ee,z as K}from"./DmH-taee.js";import{t as q}from"./D6GBUBiz.js";import"./9K8VREGP.js";import{B as De,F as Oe,I as ke,L as Ae,R as je,n as Me,o as Ne,z as Pe}from"./Cm-xTsdy.js";import{i as J}from"./Cvnwo5OO.js";import{a as Fe}from"./aqtpG62l.js";function Ie(t){O(()=>e(()=>t()))}var Le=class{#e;#t=n(()=>this.#e.candidateValues());#n;constructor(e){this.#e=e,this.#n=Ee(``,{afterMs:1e3,getWindow:this.#e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!this.#e.enabled()||!g(this.#t).length)return;this.#n.current=this.#n.current+e;let t=this.#e.getCurrentItem(),n=g(this.#t).find(e=>e===t)??``,r=N(g(this.#t).map(e=>e??``),this.#n.current,n),i=g(this.#t).find(e=>e===r);return i&&this.#e.onMatch(i),i}resetTypeahead(){this.#n.current=``}},Re=[ae,be,se,ue,de,Se,`Alt`,ce,_e,`F1`,`F2`,`F3`,`F4`,`F5`,`F6`,`F7`,`F8`,`F9`,`F10`,`F11`,`F12`],ze=[oe,xe,me],Be=[te,ve,`End`],Ve=[...ze,...Be],He=ye({component:`select`,parts:[`trigger`,`content`,`item`,`viewport`,`scroll-up-button`,`scroll-down-button`,`group`,`group-label`,`separator`,`arrow`,`input`,`content-wrapper`,`item-text`,`value`]}),Y=new F(`Select.Root | Combobox.Root`);new F(`Select.Group | Combobox.Group`);var Ue=new F(`Select.Content | Combobox.Content`),We=class{opts;#e=_(!1);get touchedInput(){return g(this.#e)}set touchedInput(e){A(this.#e,e,!0)}#t=_(null);get inputNode(){return g(this.#t)}set inputNode(e){A(this.#t,e,!0)}#n=_(null);get contentNode(){return g(this.#n)}set contentNode(e){A(this.#n,e,!0)}contentPresence;#r=_(null);get viewportNode(){return g(this.#r)}set viewportNode(e){A(this.#r,e,!0)}#i=_(null);get triggerNode(){return g(this.#i)}set triggerNode(e){A(this.#i,e,!0)}#a=_(null);get valueNode(){return g(this.#a)}set valueNode(e){A(this.#a,e,!0)}#o=_(``);get valueId(){return g(this.#o)}set valueId(e){A(this.#o,e,!0)}#s=_(null);get highlightedNode(){return g(this.#s)}set highlightedNode(e){A(this.#s,e,!0)}#c=n(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-value`):null);get highlightedValue(){return g(this.#c)}set highlightedValue(e){A(this.#c,e)}#l=n(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return g(this.#l)}set highlightedId(e){A(this.#l,e)}#u=n(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-label`):null);get highlightedLabel(){return g(this.#u)}set highlightedLabel(e){A(this.#u,e)}#d=_(!1);get contentIsPositioned(){return g(this.#d)}set contentIsPositioned(e){A(this.#d,e,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new G(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new M({ref:R(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),y(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){let e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){let e=this.viewportNode.getBoundingClientRect();t=t.filter(t=>{if(!this.viewportNode)return!1;let n=t.getBoundingClientRect();return n.right<=e.right&&n.left>=e.left&&n.bottom<=e.bottom&&n.top>=e.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(t=>t.dataset.value===e)??null}getLabelForValue(e){if(e===``)return``;let t=this.opts.items.current.find(t=>t.value===e)?.label;if(t!==void 0)return t;let n=this.getNodeByValue(e);if(n){let t=n.getAttribute(`data-label`);return t!==null&&t!==``?t:n.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>He.getAttr(e,this.isCombobox?`combobox`:void 0)},Ge=class extends We{opts;isMulti=!1;#e=n(()=>this.opts.value.current!==``);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}#t=n(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??``:``);get currentLabel(){return g(this.#t)}set currentLabel(e){A(this.#t,e)}#n=n(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return g(this.#n)}set candidateLabels(e){A(this.#n,e)}#r=n(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return g(this.#r)}set dataTypeaheadEnabled(e){A(this.#r,e)}constructor(e){super(e),this.opts=e,O(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),L(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){let n=this.includesItem(e)?``:e;this.opts.value.current=n,n!==``&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){Te(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==``){let e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},Ke=class extends We{opts;isMulti=!0;#e=n(()=>this.opts.value.current.length>0);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}constructor(e){super(e),this.opts=e,O(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),L(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){Te(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==``){let e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},qe=class{static create(e){let{type:t,...n}=e,r=t===`single`?new Ge(n):new Ke(n);return Y.set(r)}},Je=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.inputNode=e),this.root.domContext=new G(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),L([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([e,t],[n])=>{t&&(Array.isArray(e)&&Array.isArray(n)?e.length===0&&n.length!==0&&(this.root.opts.inputValue.current=``):e===``&&n!==``&&(this.root.opts.inputValue.current=``))})}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==`Escape`){if((e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(Re.includes(e.key)||e.key===`Tab`||e.key===`Backspace`&&this.root.opts.inputValue.current===``||(this.root.handleOpen(),this.root.hasValue))return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if(e.key===`Enter`&&!e.isComposing){e.preventDefault();let t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),Ve.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=re(t,r,i):e.key===`ArrowUp`?a=I(t,r,i):e.key===`PageDown`?a=ne(t,r,10,i):e.key===`PageUp`?a=le(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}Re.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#e=n(()=>({id:this.opts.id.current,role:`combobox`,disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":`list`,"aria-expanded":W(this.root.opts.open.current),"data-state":H(this.root.opts.open.current),"data-disabled":U(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr(`input`)]:``,...this.attachment}));get props(){return g(this.#e)}set props(e){A(this.#e,e)}},Ye=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e;#t;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.triggerNode=e),this.root.domContext=new G(e.ref),this.#e=new Ce({getCurrentItem:()=>this.root.highlightedNode,onMatch:e=>{this.root.setHighlightedNode(e)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#t=new Le({getCurrentItem:()=>this.root.isMulti?``:this.root.currentLabel,onMatch:e=>{if(this.root.isMulti||!this.root.opts.items.current)return;let t=this.root.opts.items.current.find(t=>t.label===e);t&&(this.root.opts.value.current=t.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#n(){this.root.opts.open.current=!0,this.#t.resetTypeahead(),this.#e.resetTypeahead()}#r(e){this.#n()}#i(){let e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti||(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e)?(this.root.handleClose(),!0):!1}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`||e.key===`ArrowUp`)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#t.handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if((e.key===`Enter`||e.key===` `&&this.#e.search===``)&&!e.isComposing&&(e.preventDefault(),this.#i()))return;if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),Ve.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=re(t,r,i):e.key===`ArrowUp`?a=I(t,r,i):e.key===`PageDown`?a=ne(t,r,10,i):e.key===`PageUp`?a=le(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}let t=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1,r=e.key===` `,i=this.root.getCandidateNodes();if(e.key!==`Tab`){if(!t&&(n||r)){!this.#e.handleTypeaheadSearch(e.key,i)&&r&&(e.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType===`touch`)return e.preventDefault();let t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType===`touch`&&(this.root.opts.open.current===!1?this.#r(e):this.root.handleClose()))}#a=n(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":`listbox`,"aria-expanded":W(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":H(this.root.opts.open.current),"data-disabled":U(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:``,[this.root.getBitsAttr(`trigger`)]:``,onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return g(this.#a)}set props(e){A(this.#a,e)}},Xe=class e{static create(t){return Ue.set(new e(t,Y.get()))}opts;root;attachment;#e=_(!1);get isPositioned(){return g(this.#e)}set isPositioned(e){A(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.contentNode=e),this.domContext=new G(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),P(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),L(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),L([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=n(()=>Pe(this.root.isCombobox?`combobox`:`select`));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=n(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#n)}set snippetProps(e){A(this.#n,e)}#r=n(()=>({id:this.opts.id.current,role:`listbox`,"aria-multiselectable":this.root.isMulti?`true`:void 0,"data-state":H(this.root.opts.open.current),...pe(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr(`content`)]:``,style:{display:`flex`,flexDirection:`column`,outline:`none`,boxSizing:`border-box`,pointerEvents:`auto`,...g(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return g(this.#r)}set props(e){A(this.#r,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}}},Ze=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e=n(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return g(this.#e)}set isSelected(e){A(this.#e,e)}#t=n(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return g(this.#t)}set isHighlighted(e){A(this.#t,e)}prevHighlighted=new we(()=>this.isHighlighted);#n=_(!1);get mounted(){return g(this.#n)}set mounted(e){A(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref),L([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),L(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;let e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#r=n(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return g(this.#r)}set snippetProps(e){A(this.#r,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType===`touch`&&!ee){o(this.opts.ref.current,`click`,()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType===`touch`&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!==`touch`&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=n(()=>({id:this.opts.id.current,role:`option`,"aria-selected":this.root.includesItem(this.opts.value.current)?`true`:void 0,"data-value":this.opts.value.current,"data-disabled":U(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?``:void 0,"data-selected":this.root.includesItem(this.opts.value.current)?``:void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return g(this.#i)}set props(e){A(this.#i,e)}},Qe=class e{static create(t){return new e(t,Y.get())}opts;root;#e=n(()=>this.root.opts.name.current!==``);get shouldRender(){return g(this.#e)}set shouldRender(e){A(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=n(()=>({disabled:fe(this.root.opts.disabled.current),required:fe(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}};function X(e,t){d(t,!0);let n=w(t,`value`,15),r=Qe.create({value:R(()=>n())});var i=f(),a=E(i),o=e=>{De(e,v(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(e){n(e)}}))};c(a,e=>{r.shouldRender&&e(o)}),s(e,i),l()}var $e=j(`<div><div><!></div></div>`),et=j(`<div><div><!></div></div>`);function tt(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`ref`,15,null),o=w(t,`forceMount`,3,!1),_=w(t,`side`,3,`bottom`),y=w(t,`onInteractOutside`,3,K),S=w(t,`onEscapeKeydown`,3,K),C=w(t,`preventScroll`,3,!1),T=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`forceMount`,`side`,`onInteractOutside`,`onEscapeKeydown`,`children`,`child`,`preventScroll`,`style`]),O=Xe.create({id:R(()=>i()),ref:R(()=>a(),e=>a(e)),onInteractOutside:R(()=>y()),onEscapeKeydown:R(()=>S())}),k=n(()=>z(T,O.props));var A=f(),j=E(A),M=e=>{Oe(e,v(()=>g(k),()=>O.popperProps,{get ref(){return O.opts.ref},get side(){return _()},get enabled(){return O.root.opts.open.current},get id(){return i()},get preventScroll(){return C()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(e,r)=>{let i=()=>r?.().props,a=()=>r?.().wrapperProps,o=n(()=>z(i(),{style:O.props.style},{style:t.style}));var l=f(),d=E(l),p=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(o),wrapperProps:a(),...O.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},_=e=>{var n=$e();x(n,()=>({...a()}));var r=b(n);x(r,()=>({...g(o)})),u(b(r),()=>t.children??h),m(r),m(n),s(e,n)};c(d,e=>{t.child?e(p):e(_,-1)}),s(e,l)},$$slots:{popper:!0}}))},N=e=>{ke(e,v(()=>g(k),()=>O.popperProps,{get ref(){return O.opts.ref},get side(){return _()},get open(){return O.root.opts.open.current},get id(){return i()},get preventScroll(){return C()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(e,r)=>{let i=()=>r?.().props,a=()=>r?.().wrapperProps,o=n(()=>z(i(),{style:O.props.style},{style:t.style}));var l=f(),d=E(l),p=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(o),wrapperProps:a(),...O.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},_=e=>{var n=et();x(n,()=>({...a()}));var r=b(n);x(r,()=>({...g(o)})),u(b(r),()=>t.children??h),m(r),m(n),s(e,n)};c(d,e=>{t.child?e(p):e(_,-1)}),s(e,l)},$$slots:{popper:!0}}))};c(j,e=>{o()?e(M):o()||e(N,1)}),s(e,A),l()}function nt(e,t){d(t,!0);let n=w(t,`mounted`,15,!1),r=w(t,`onMountedChange`,3,K);Ie(()=>(n(!0),r()(!0),()=>{n(!1),r()(!1)})),l()}var rt=j(`<div><!></div>`),it=j(`<!> <!>`,1);function at(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`ref`,15,null),o=w(t,`label`,19,()=>t.value),_=w(t,`disabled`,3,!1),v=w(t,`onHighlight`,3,K),y=w(t,`onUnhighlight`,3,K),S=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`label`,`disabled`,`children`,`child`,`onHighlight`,`onUnhighlight`]),T=Ze.create({id:R(()=>i()),ref:R(()=>a(),e=>a(e)),value:R(()=>t.value),disabled:R(()=>_()),label:R(()=>o()),onHighlight:R(()=>v()),onUnhighlight:R(()=>y())}),O=n(()=>z(S,T.props));var k=it(),A=E(k),j=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(O),...T.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},M=e=>{var n=rt();x(n,()=>({...g(O)})),u(b(n),()=>t.children??h,()=>T.snippetProps),m(n),s(e,n)};c(A,e=>{t.child?e(j):e(M,-1)}),nt(C(A,2),{get mounted(){return T.mounted},set mounted(e){T.mounted=e}}),s(e,k),l()}j(`<div><!></div>`),j(`<div><!></div>`);var Z=ye({component:`radio-group`,parts:[`root`,`item`]}),Q=new F(`RadioGroup.Root`),ot=class e{static create(t){return Q.set(new e(t))}opts;#e=n(()=>this.opts.value.current!==``);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}rovingFocusGroup;attachment;constructor(e){this.opts=e,this.attachment=V(this.opts.ref),this.rovingFocusGroup=new ie({rootNode:this.opts.ref,candidateAttr:Z.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(e){return this.opts.value.current===e}setValue(e){this.opts.value.current=e}#t=n(()=>({id:this.opts.id.current,role:`radiogroup`,"aria-required":W(this.opts.required.current),"aria-disabled":W(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?`true`:void 0,"data-disabled":U(this.opts.disabled.current),"data-readonly":U(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Z.root]:``,...this.attachment}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}},st=class e{static create(t){return new e(t,Q.get())}opts;root;attachment;#e=n(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return g(this.#e)}set checked(e){A(this.#e,e)}#t=n(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=n(()=>this.root.opts.readonly.current);#r=n(()=>this.root.isChecked(this.opts.value.current));#i=_(-1);constructor(e,t){this.opts=e,this.root=t,this.attachment=V(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),A(this.#i,0)):this.root.opts.value.current||A(this.#i,0),O(()=>{A(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),L([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),A(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(e){this.opts.disabled.current||g(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(e){!this.root.hasValue||g(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(e){if(!g(this.#t)){if(e.key===` `){e.preventDefault(),g(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e,!0)}}#a=n(()=>({checked:g(this.#r)}));get snippetProps(){return g(this.#a)}set snippetProps(e){A(this.#a,e)}#o=n(()=>({id:this.opts.id.current,disabled:g(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":U(g(this.#t)),"data-readonly":U(g(this.#n)),"data-state":g(this.#r)?`checked`:`unchecked`,"aria-checked":ge(g(this.#r),!1),[Z.item]:``,type:`button`,role:`radio`,tabindex:g(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return g(this.#o)}set props(e){A(this.#o,e)}},ct=class e{static create(){return new e(Q.get())}root;#e=n(()=>this.root.opts.name.current!==void 0);get shouldRender(){return g(this.#e)}set shouldRender(e){A(this.#e,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=n(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}};function lt(e,t){d(t,!1);let n=ct.create();k();var r=f(),i=E(r),a=e=>{De(e,v(()=>n.props))};c(i,e=>{n.shouldRender&&e(a)}),s(e,r),l()}var ut=j(`<div><!></div>`),dt=j(`<!> <!>`,1);function ft(e,t){let r=p();d(t,!0);let i=w(t,`disabled`,3,!1),a=w(t,`value`,15,``),o=w(t,`ref`,15,null),_=w(t,`orientation`,3,`vertical`),v=w(t,`loop`,3,!0),y=w(t,`name`,3,void 0),S=w(t,`required`,3,!1),T=w(t,`readonly`,3,!1),O=w(t,`id`,19,()=>B(r)),k=w(t,`onValueChange`,3,K),A=D(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`children`,`child`,`value`,`ref`,`orientation`,`loop`,`name`,`required`,`readonly`,`id`,`onValueChange`]),j=ot.create({orientation:R(()=>_()),disabled:R(()=>i()),loop:R(()=>v()),name:R(()=>y()),required:R(()=>S()),readonly:R(()=>T()),id:R(()=>O()),value:R(()=>a(),e=>{e!==a()&&(a(e),k()?.(e))}),ref:R(()=>o(),e=>o(e))}),M=n(()=>z(A,j.props));var N=dt(),P=E(N),F=e=>{var n=f();u(E(n),()=>t.child,()=>({props:g(M)})),s(e,n)},I=e=>{var n=ut();x(n,()=>({...g(M)})),u(b(n),()=>t.children??h),m(n),s(e,n)};c(P,e=>{t.child?e(F):e(I,-1)}),lt(C(P,2),{}),s(e,N),l()}var pt=j(`<button><!></button>`);function mt(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`disabled`,3,!1),o=w(t,`ref`,15,null),_=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`value`,`disabled`,`ref`]),v=st.create({value:R(()=>t.value),disabled:R(()=>a()??!1),id:R(()=>i()),ref:R(()=>o(),e=>o(e))}),y=n(()=>z(_,v.props));var S=f(),C=E(S),T=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(y),...v.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},O=e=>{var n=pt();x(n,()=>({...g(y)})),u(b(n),()=>t.children??h,()=>v.snippetProps),m(n),s(e,n)};c(C,e=>{t.child?e(T):e(O,-1)}),s(e,S),l()}var ht=j(`<!> <!>`,1);function gt(e,r){d(r,!0);let i=w(r,`value`,15),a=w(r,`onValueChange`,3,K),o=w(r,`name`,3,``),p=w(r,`disabled`,3,!1),m=w(r,`open`,15,!1),v=w(r,`onOpenChange`,3,K),y=w(r,`onOpenChangeComplete`,3,K),b=w(r,`loop`,3,!1),x=w(r,`scrollAlignment`,3,`nearest`),S=w(r,`required`,3,!1),T=w(r,`items`,19,()=>[]),D=w(r,`allowDeselect`,3,!1);function O(){i()===void 0&&i(r.type===`single`?``:[])}O(),L.pre(()=>i(),()=>{O()});let k=_(``),j=qe.create({type:r.type,value:R(()=>i(),e=>{i(e),a()(e)}),disabled:R(()=>p()),required:R(()=>S()),open:R(()=>m(),e=>{m(e),v()(e)}),loop:R(()=>b()),scrollAlignment:R(()=>x()),name:R(()=>o()),isCombobox:!1,items:R(()=>T()),allowDeselect:R(()=>D()),inputValue:R(()=>g(k),e=>A(k,e,!0)),onOpenChangeComplete:R(()=>y())});var M=ht(),N=E(M);je(N,{children:(e,t)=>{var n=f();u(E(n),()=>r.children??h),s(e,n)},$$slots:{default:!0}});var P=C(N,2),F=e=>{var n=f(),i=E(n),a=e=>{X(e,{get autocomplete(){return r.autocomplete}})},o=e=>{var n=f();t(E(n),16,()=>j.opts.value.current,e=>e,(e,t)=>{X(e,{get value(){return t},get autocomplete(){return r.autocomplete}})}),s(e,n)};c(i,e=>{j.opts.value.current.length===0?e(a):e(o,-1)}),s(e,n)},I=n(()=>Array.isArray(j.opts.value.current)),ee=e=>{X(e,{get autocomplete(){return r.autocomplete},get value(){return j.opts.value.current},set value(e){j.opts.value.current=e}})};c(P,e=>{g(I)?e(F):e(ee,-1)}),s(e,M),l()}var _t=j(`<button><!></button>`);function vt(e,t){let i=p();d(t,!0);let a=w(t,`id`,19,()=>B(i)),o=w(t,`ref`,15,null),_=w(t,`type`,3,`button`),v=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`type`]),y=Ye.create({id:R(()=>a()),ref:R(()=>o(),e=>o(e))}),S=n(()=>z(v,y.props,{type:_()}));var C=f();r(E(C),()=>Ae,(e,n)=>{n(e,{get id(){return a()},get ref(){return y.opts.ref},children:(e,n)=>{var r=f(),i=E(r),a=e=>{var n=f();u(E(n),()=>t.child,()=>({props:g(S)})),s(e,n)},o=e=>{var n=_t();x(n,()=>({...g(S)})),u(b(n),()=>t.children??h),m(n),s(e,n)};c(i,e=>{t.child?e(a):e(o,-1)}),s(e,r)},$$slots:{default:!0}})}),s(e,C),l()}function yt(e,t){d(t,!0);let i=w(t,`ref`,15,null),a=w(t,`value`,15,``),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);var c=f(),u=E(c);{let e=n(()=>J(`grid gap-0.5 w-full`,t.class));r(u,()=>ft,(t,n)=>{n(t,v({"data-slot":`radio-group`,get class(){return g(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)},get value(){return a()},set value(e){a(e)}}))})}s(e,c),l()}var bt=j(`<span class="radio-dot svelte-l8hbh2"></span>`);function xt(e,t){d(t,!0);let i=w(t,`ref`,15,null),a=D(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);var o=f(),u=E(o);{let e=(e,t)=>{let n=()=>t?.().checked;var r=f(),i=E(r),a=e=>{s(e,bt())};c(i,e=>{n()&&e(a)}),s(e,r)},o=n(()=>J(`radio-item`,t.class));r(u,()=>mt,(t,n)=>{n(t,v({"data-slot":`radio-group-item`,get class(){return g(o)}},()=>a,{get ref(){return i()},set ref(e){i(e)},children:e,$$slots:{default:!0}}))})}s(e,o),l()}function St(){let e=_(S({})),t=null,r=null;function i(e,n,i){r&&=(clearInterval(r),null),t=`${e}/${n}/${i}`,o(`enter`,e,n,i),r=setInterval(()=>{t&&o(`heartbeat`,e,n,i)},3e4)}function a(){if(r&&=(clearInterval(r),null),t){let[e,n,r]=t.split(`/`);e&&n&&r&&o(`leave`,e,n,r),t=null}}function o(e,t,n,r){q.send({type:`presence`,action:e,repo:t,entityType:n,entityId:r})}function s(t){let n=`${t.repo}/${t.entityType}/${t.entityId}`,r=g(e)[n]??[];if(t.action===`leave`)g(e)[n]=r.filter(e=>e.id!==t.user.id);else{let i=r.findIndex(e=>e.id===t.user.id);i>=0?(r[i]=t.user,g(e)[n]=[...r]):g(e)[n]=[...r,t.user]}}function c(){if(A(e,{},!0),!t)return;let[n,r,i]=t.split(`/`);n&&r&&i&&o(`enter`,n,r,i)}function l(t,n,r,i){let a=`${t}/${n}/${r}`,o=g(e)[a]??[];return i?o.filter(e=>e.id!==i):o}function u(t,n){let r=new Map;for(let[i,a]of Object.entries(g(e)))if(i.startsWith(t))for(let e of a)(!n||e.id!==n)&&r.set(e.id,e);return[...r.values()]}function d(e,t){return u(`${e}/`,t)}function f(t){let n=new Map;for(let r of Object.values(g(e)))for(let e of r)(!t||e.id!==t)&&n.set(e.id,e);return[...n.values()]}let p=n(()=>{let t=new Map;for(let n of Object.values(g(e)))for(let e of n)t.set(e.id,e);return[...t.values()]});return{enter:i,leave:a,handlePresenceEvent:s,resetAndResend:c,getPresence:l,getPresenceByPrefix:u,getRepoPresence:d,getAllUsers:f,get allUsers(){return g(p)}}}var $=St();q.setPresenceHandler(e=>$.handlePresenceEvent(e)),q.addConnectHandler(()=>$.resetAndResend()),typeof window<`u`&&window.addEventListener(`beforeunload`,()=>$.leave());var Ct=j(`<span class="select-placeholder"> </span>`),wt=j(`<span class="select-label"><!></span> <!>`,1);function Tt(e,t){d(t,!0);let o=w(t,`placeholder`,3,`Select...`),p=w(t,`size`,3,`default`),h=D(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`value`,`placeholder`,`class`,`size`]);var _=f(),y=E(_);{let e=n(()=>J(`select-trigger`,p()===`sm`&&`select-trigger-sm`,t.class));r(y,()=>vt,(n,r)=>{r(n,v({get class(){return g(e)}},()=>h,{children:(e,n)=>{var r=wt(),l=E(r),d=b(l),p=e=>{var n=f();u(E(n),()=>t.children),s(e,n)},h=e=>{var n=a();T(e=>i(n,e),[()=>Fe(t.value)]),s(e,n)},g=e=>{var t=Ct(),n=b(t,!0);m(t),T(()=>i(n,o())),s(e,t)};c(d,e=>{t.children?e(p):t.value?e(h,1):e(g,-1)}),m(l),Me(C(l,2),{class:`select-chevron`}),s(e,r)},$$slots:{default:!0}}))})}s(e,_),l()}function Et(e,t){d(t,!0);let i=w(t,`side`,3,`bottom`),a=w(t,`sideOffset`,3,4),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`class`,`side`,`sideOffset`]);var c=f();r(E(c),()=>he,(e,c)=>{c(e,{children:(e,c)=>{var l=f(),d=E(l);{let e=n(()=>J(`select-content`,t.class));r(d,()=>tt,(n,r)=>{r(n,v({get class(){return g(e)},get side(){return i()},get sideOffset(){return a()}},()=>o,{children:(e,n)=>{var r=f();u(E(r),()=>t.children),s(e,r)},$$slots:{default:!0}}))})}s(e,l)},$$slots:{default:!0}})}),s(e,c),l()}var Dt=j(`<span class="select-item-text"> </span>`),Ot=j(`<span class="select-item-check-slot"><!></span> <!>`,1);function kt(e,t){d(t,!0);let a=w(t,`disabled`,3,!1),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`label`,`disabled`,`class`,`content`]);var p=f(),h=E(p);{let e=(e,n)=>{let r=()=>n?.().selected;var a=Ot(),o=E(a),l=b(o),d=e=>{Ne(e,{size:12,class:`select-item-check`})};c(l,e=>{r()&&e(d)}),m(o);var p=C(o,2),h=e=>{var n=f();u(E(n),()=>t.content,()=>({selected:r()})),s(e,n)},g=e=>{var n=Dt(),r=b(n,!0);m(n),T(e=>i(r,e),[()=>Fe(t.label??t.value)]),s(e,n)};c(p,e=>{t.content?e(h):e(g,-1)}),s(e,a)},l=n(()=>J(`select-item`,t.class));r(h,()=>at,(n,r)=>{r(n,v({get value(){return t.value},get label(){return t.label},get disabled(){return a()},get class(){return g(l)}},()=>o,{children:e,$$slots:{default:!0}}))})}s(e,p),l()}var At=gt;export{$ as a,at as c,Je as d,qe as f,Tt as i,X as l,kt as n,xt as o,Et as r,yt as s,At as t,Xe as u};
1
+ import{$ as e,A as t,Ct as n,D as r,F as i,H as a,K as o,L as s,N as c,Nt as l,O as u,Pt as d,R as f,V as p,Vt as m,Wt as h,X as g,bt as _,c as v,ct as y,ft as b,g as x,ht as S,mt as C,o as w,ot as T,pt as E,s as D,st as O,u as k,vt as A,z as j}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{B as M,C as N,Ct as P,Dt as F,E as I,Et as L,G as ee,Mt as R,Ot as z,Q as te,R as B,S as ne,T as re,V as ie,X as ae,Y as oe,Z as se,_t as V,at as ce,b as le,ct as ue,et as de,ft as fe,gt as pe,ht as H,it as me,k as he,lt as U,mt as ge,nt as _e,ot as ve,pt as ye,rt as be,st as xe,tt as Se,ut as W,v as Ce,vt as G,wt as we,xt as Te,y as Ee,z as K}from"./rykHhbec.js";import{t as q}from"./dh7-wAUC.js";import"./9K8VREGP.js";import{B as De,F as Oe,I as ke,L as Ae,R as je,n as Me,o as Ne,z as Pe}from"./D3ftUFMd.js";import{i as J}from"./Cvnwo5OO.js";import{a as Fe}from"./Cz0xqbgH.js";function Ie(t){O(()=>e(()=>t()))}var Le=class{#e;#t=n(()=>this.#e.candidateValues());#n;constructor(e){this.#e=e,this.#n=Ee(``,{afterMs:1e3,getWindow:this.#e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!this.#e.enabled()||!g(this.#t).length)return;this.#n.current=this.#n.current+e;let t=this.#e.getCurrentItem(),n=g(this.#t).find(e=>e===t)??``,r=N(g(this.#t).map(e=>e??``),this.#n.current,n),i=g(this.#t).find(e=>e===r);return i&&this.#e.onMatch(i),i}resetTypeahead(){this.#n.current=``}},Re=[ae,be,se,ue,de,Se,`Alt`,ce,_e,`F1`,`F2`,`F3`,`F4`,`F5`,`F6`,`F7`,`F8`,`F9`,`F10`,`F11`,`F12`],ze=[oe,xe,me],Be=[te,ve,`End`],Ve=[...ze,...Be],He=ye({component:`select`,parts:[`trigger`,`content`,`item`,`viewport`,`scroll-up-button`,`scroll-down-button`,`group`,`group-label`,`separator`,`arrow`,`input`,`content-wrapper`,`item-text`,`value`]}),Y=new F(`Select.Root | Combobox.Root`);new F(`Select.Group | Combobox.Group`);var Ue=new F(`Select.Content | Combobox.Content`),We=class{opts;#e=_(!1);get touchedInput(){return g(this.#e)}set touchedInput(e){A(this.#e,e,!0)}#t=_(null);get inputNode(){return g(this.#t)}set inputNode(e){A(this.#t,e,!0)}#n=_(null);get contentNode(){return g(this.#n)}set contentNode(e){A(this.#n,e,!0)}contentPresence;#r=_(null);get viewportNode(){return g(this.#r)}set viewportNode(e){A(this.#r,e,!0)}#i=_(null);get triggerNode(){return g(this.#i)}set triggerNode(e){A(this.#i,e,!0)}#a=_(null);get valueNode(){return g(this.#a)}set valueNode(e){A(this.#a,e,!0)}#o=_(``);get valueId(){return g(this.#o)}set valueId(e){A(this.#o,e,!0)}#s=_(null);get highlightedNode(){return g(this.#s)}set highlightedNode(e){A(this.#s,e,!0)}#c=n(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-value`):null);get highlightedValue(){return g(this.#c)}set highlightedValue(e){A(this.#c,e)}#l=n(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return g(this.#l)}set highlightedId(e){A(this.#l,e)}#u=n(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-label`):null);get highlightedLabel(){return g(this.#u)}set highlightedLabel(e){A(this.#u,e)}#d=_(!1);get contentIsPositioned(){return g(this.#d)}set contentIsPositioned(e){A(this.#d,e,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new G(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new M({ref:R(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),y(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){let e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){let e=this.viewportNode.getBoundingClientRect();t=t.filter(t=>{if(!this.viewportNode)return!1;let n=t.getBoundingClientRect();return n.right<=e.right&&n.left>=e.left&&n.bottom<=e.bottom&&n.top>=e.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(t=>t.dataset.value===e)??null}getLabelForValue(e){if(e===``)return``;let t=this.opts.items.current.find(t=>t.value===e)?.label;if(t!==void 0)return t;let n=this.getNodeByValue(e);if(n){let t=n.getAttribute(`data-label`);return t!==null&&t!==``?t:n.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>He.getAttr(e,this.isCombobox?`combobox`:void 0)},Ge=class extends We{opts;isMulti=!1;#e=n(()=>this.opts.value.current!==``);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}#t=n(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??``:``);get currentLabel(){return g(this.#t)}set currentLabel(e){A(this.#t,e)}#n=n(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return g(this.#n)}set candidateLabels(e){A(this.#n,e)}#r=n(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return g(this.#r)}set dataTypeaheadEnabled(e){A(this.#r,e)}constructor(e){super(e),this.opts=e,O(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),L(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){let n=this.includesItem(e)?``:e;this.opts.value.current=n,n!==``&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){Te(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==``){let e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},Ke=class extends We{opts;isMulti=!0;#e=n(()=>this.opts.value.current.length>0);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}constructor(e){super(e),this.opts=e,O(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),L(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){Te(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==``){let e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},qe=class{static create(e){let{type:t,...n}=e,r=t===`single`?new Ge(n):new Ke(n);return Y.set(r)}},Je=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.inputNode=e),this.root.domContext=new G(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),L([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([e,t],[n])=>{t&&(Array.isArray(e)&&Array.isArray(n)?e.length===0&&n.length!==0&&(this.root.opts.inputValue.current=``):e===``&&n!==``&&(this.root.opts.inputValue.current=``))})}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==`Escape`){if((e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(Re.includes(e.key)||e.key===`Tab`||e.key===`Backspace`&&this.root.opts.inputValue.current===``||(this.root.handleOpen(),this.root.hasValue))return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if(e.key===`Enter`&&!e.isComposing){e.preventDefault();let t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),Ve.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=re(t,r,i):e.key===`ArrowUp`?a=I(t,r,i):e.key===`PageDown`?a=ne(t,r,10,i):e.key===`PageUp`?a=le(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}Re.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#e=n(()=>({id:this.opts.id.current,role:`combobox`,disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":`list`,"aria-expanded":W(this.root.opts.open.current),"data-state":H(this.root.opts.open.current),"data-disabled":U(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr(`input`)]:``,...this.attachment}));get props(){return g(this.#e)}set props(e){A(this.#e,e)}},Ye=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e;#t;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.triggerNode=e),this.root.domContext=new G(e.ref),this.#e=new Ce({getCurrentItem:()=>this.root.highlightedNode,onMatch:e=>{this.root.setHighlightedNode(e)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#t=new Le({getCurrentItem:()=>this.root.isMulti?``:this.root.currentLabel,onMatch:e=>{if(this.root.isMulti||!this.root.opts.items.current)return;let t=this.root.opts.items.current.find(t=>t.label===e);t&&(this.root.opts.value.current=t.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#n(){this.root.opts.open.current=!0,this.#t.resetTypeahead(),this.#e.resetTypeahead()}#r(e){this.#n()}#i(){let e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti||(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e)?(this.root.handleClose(),!0):!1}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`||e.key===`ArrowUp`)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#t.handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if((e.key===`Enter`||e.key===` `&&this.#e.search===``)&&!e.isComposing&&(e.preventDefault(),this.#i()))return;if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),Ve.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=re(t,r,i):e.key===`ArrowUp`?a=I(t,r,i):e.key===`PageDown`?a=ne(t,r,10,i):e.key===`PageUp`?a=le(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}let t=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1,r=e.key===` `,i=this.root.getCandidateNodes();if(e.key!==`Tab`){if(!t&&(n||r)){!this.#e.handleTypeaheadSearch(e.key,i)&&r&&(e.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType===`touch`)return e.preventDefault();let t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType===`touch`&&(this.root.opts.open.current===!1?this.#r(e):this.root.handleClose()))}#a=n(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":`listbox`,"aria-expanded":W(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":H(this.root.opts.open.current),"data-disabled":U(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:``,[this.root.getBitsAttr(`trigger`)]:``,onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return g(this.#a)}set props(e){A(this.#a,e)}},Xe=class e{static create(t){return Ue.set(new e(t,Y.get()))}opts;root;attachment;#e=_(!1);get isPositioned(){return g(this.#e)}set isPositioned(e){A(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref,e=>this.root.contentNode=e),this.domContext=new G(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),P(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),L(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),L([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=n(()=>Pe(this.root.isCombobox?`combobox`:`select`));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=n(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#n)}set snippetProps(e){A(this.#n,e)}#r=n(()=>({id:this.opts.id.current,role:`listbox`,"aria-multiselectable":this.root.isMulti?`true`:void 0,"data-state":H(this.root.opts.open.current),...pe(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr(`content`)]:``,style:{display:`flex`,flexDirection:`column`,outline:`none`,boxSizing:`border-box`,pointerEvents:`auto`,...g(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return g(this.#r)}set props(e){A(this.#r,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}}},Ze=class e{static create(t){return new e(t,Y.get())}opts;root;attachment;#e=n(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return g(this.#e)}set isSelected(e){A(this.#e,e)}#t=n(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return g(this.#t)}set isHighlighted(e){A(this.#t,e)}prevHighlighted=new we(()=>this.isHighlighted);#n=_(!1);get mounted(){return g(this.#n)}set mounted(e){A(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=V(e.ref),L([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),L(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;let e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#r=n(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return g(this.#r)}set snippetProps(e){A(this.#r,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType===`touch`&&!ee){o(this.opts.ref.current,`click`,()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType===`touch`&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!==`touch`&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=n(()=>({id:this.opts.id.current,role:`option`,"aria-selected":this.root.includesItem(this.opts.value.current)?`true`:void 0,"data-value":this.opts.value.current,"data-disabled":U(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?``:void 0,"data-selected":this.root.includesItem(this.opts.value.current)?``:void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return g(this.#i)}set props(e){A(this.#i,e)}},Qe=class e{static create(t){return new e(t,Y.get())}opts;root;#e=n(()=>this.root.opts.name.current!==``);get shouldRender(){return g(this.#e)}set shouldRender(e){A(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=n(()=>({disabled:fe(this.root.opts.disabled.current),required:fe(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}};function X(e,t){d(t,!0);let n=w(t,`value`,15),r=Qe.create({value:R(()=>n())});var i=f(),a=E(i),o=e=>{De(e,v(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(e){n(e)}}))};c(a,e=>{r.shouldRender&&e(o)}),s(e,i),l()}var $e=j(`<div><div><!></div></div>`),et=j(`<div><div><!></div></div>`);function tt(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`ref`,15,null),o=w(t,`forceMount`,3,!1),_=w(t,`side`,3,`bottom`),y=w(t,`onInteractOutside`,3,K),S=w(t,`onEscapeKeydown`,3,K),C=w(t,`preventScroll`,3,!1),T=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`forceMount`,`side`,`onInteractOutside`,`onEscapeKeydown`,`children`,`child`,`preventScroll`,`style`]),O=Xe.create({id:R(()=>i()),ref:R(()=>a(),e=>a(e)),onInteractOutside:R(()=>y()),onEscapeKeydown:R(()=>S())}),k=n(()=>z(T,O.props));var A=f(),j=E(A),M=e=>{Oe(e,v(()=>g(k),()=>O.popperProps,{get ref(){return O.opts.ref},get side(){return _()},get enabled(){return O.root.opts.open.current},get id(){return i()},get preventScroll(){return C()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(e,r)=>{let i=()=>r?.().props,a=()=>r?.().wrapperProps,o=n(()=>z(i(),{style:O.props.style},{style:t.style}));var l=f(),d=E(l),p=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(o),wrapperProps:a(),...O.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},_=e=>{var n=$e();x(n,()=>({...a()}));var r=b(n);x(r,()=>({...g(o)})),u(b(r),()=>t.children??h),m(r),m(n),s(e,n)};c(d,e=>{t.child?e(p):e(_,-1)}),s(e,l)},$$slots:{popper:!0}}))},N=e=>{ke(e,v(()=>g(k),()=>O.popperProps,{get ref(){return O.opts.ref},get side(){return _()},get open(){return O.root.opts.open.current},get id(){return i()},get preventScroll(){return C()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(e,r)=>{let i=()=>r?.().props,a=()=>r?.().wrapperProps,o=n(()=>z(i(),{style:O.props.style},{style:t.style}));var l=f(),d=E(l),p=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(o),wrapperProps:a(),...O.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},_=e=>{var n=et();x(n,()=>({...a()}));var r=b(n);x(r,()=>({...g(o)})),u(b(r),()=>t.children??h),m(r),m(n),s(e,n)};c(d,e=>{t.child?e(p):e(_,-1)}),s(e,l)},$$slots:{popper:!0}}))};c(j,e=>{o()?e(M):o()||e(N,1)}),s(e,A),l()}function nt(e,t){d(t,!0);let n=w(t,`mounted`,15,!1),r=w(t,`onMountedChange`,3,K);Ie(()=>(n(!0),r()(!0),()=>{n(!1),r()(!1)})),l()}var rt=j(`<div><!></div>`),it=j(`<!> <!>`,1);function at(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`ref`,15,null),o=w(t,`label`,19,()=>t.value),_=w(t,`disabled`,3,!1),v=w(t,`onHighlight`,3,K),y=w(t,`onUnhighlight`,3,K),S=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`label`,`disabled`,`children`,`child`,`onHighlight`,`onUnhighlight`]),T=Ze.create({id:R(()=>i()),ref:R(()=>a(),e=>a(e)),value:R(()=>t.value),disabled:R(()=>_()),label:R(()=>o()),onHighlight:R(()=>v()),onUnhighlight:R(()=>y())}),O=n(()=>z(S,T.props));var k=it(),A=E(k),j=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(O),...T.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},M=e=>{var n=rt();x(n,()=>({...g(O)})),u(b(n),()=>t.children??h,()=>T.snippetProps),m(n),s(e,n)};c(A,e=>{t.child?e(j):e(M,-1)}),nt(C(A,2),{get mounted(){return T.mounted},set mounted(e){T.mounted=e}}),s(e,k),l()}j(`<div><!></div>`),j(`<div><!></div>`);var Z=ye({component:`radio-group`,parts:[`root`,`item`]}),Q=new F(`RadioGroup.Root`),ot=class e{static create(t){return Q.set(new e(t))}opts;#e=n(()=>this.opts.value.current!==``);get hasValue(){return g(this.#e)}set hasValue(e){A(this.#e,e)}rovingFocusGroup;attachment;constructor(e){this.opts=e,this.attachment=V(this.opts.ref),this.rovingFocusGroup=new ie({rootNode:this.opts.ref,candidateAttr:Z.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(e){return this.opts.value.current===e}setValue(e){this.opts.value.current=e}#t=n(()=>({id:this.opts.id.current,role:`radiogroup`,"aria-required":W(this.opts.required.current),"aria-disabled":W(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?`true`:void 0,"data-disabled":U(this.opts.disabled.current),"data-readonly":U(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Z.root]:``,...this.attachment}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}},st=class e{static create(t){return new e(t,Q.get())}opts;root;attachment;#e=n(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return g(this.#e)}set checked(e){A(this.#e,e)}#t=n(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=n(()=>this.root.opts.readonly.current);#r=n(()=>this.root.isChecked(this.opts.value.current));#i=_(-1);constructor(e,t){this.opts=e,this.root=t,this.attachment=V(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),A(this.#i,0)):this.root.opts.value.current||A(this.#i,0),O(()=>{A(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),L([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),A(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(e){this.opts.disabled.current||g(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(e){!this.root.hasValue||g(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(e){if(!g(this.#t)){if(e.key===` `){e.preventDefault(),g(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e,!0)}}#a=n(()=>({checked:g(this.#r)}));get snippetProps(){return g(this.#a)}set snippetProps(e){A(this.#a,e)}#o=n(()=>({id:this.opts.id.current,disabled:g(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":U(g(this.#t)),"data-readonly":U(g(this.#n)),"data-state":g(this.#r)?`checked`:`unchecked`,"aria-checked":ge(g(this.#r),!1),[Z.item]:``,type:`button`,role:`radio`,tabindex:g(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return g(this.#o)}set props(e){A(this.#o,e)}},ct=class e{static create(){return new e(Q.get())}root;#e=n(()=>this.root.opts.name.current!==void 0);get shouldRender(){return g(this.#e)}set shouldRender(e){A(this.#e,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=n(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return g(this.#t)}set props(e){A(this.#t,e)}};function lt(e,t){d(t,!1);let n=ct.create();k();var r=f(),i=E(r),a=e=>{De(e,v(()=>n.props))};c(i,e=>{n.shouldRender&&e(a)}),s(e,r),l()}var ut=j(`<div><!></div>`),dt=j(`<!> <!>`,1);function ft(e,t){let r=p();d(t,!0);let i=w(t,`disabled`,3,!1),a=w(t,`value`,15,``),o=w(t,`ref`,15,null),_=w(t,`orientation`,3,`vertical`),v=w(t,`loop`,3,!0),y=w(t,`name`,3,void 0),S=w(t,`required`,3,!1),T=w(t,`readonly`,3,!1),O=w(t,`id`,19,()=>B(r)),k=w(t,`onValueChange`,3,K),A=D(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`children`,`child`,`value`,`ref`,`orientation`,`loop`,`name`,`required`,`readonly`,`id`,`onValueChange`]),j=ot.create({orientation:R(()=>_()),disabled:R(()=>i()),loop:R(()=>v()),name:R(()=>y()),required:R(()=>S()),readonly:R(()=>T()),id:R(()=>O()),value:R(()=>a(),e=>{e!==a()&&(a(e),k()?.(e))}),ref:R(()=>o(),e=>o(e))}),M=n(()=>z(A,j.props));var N=dt(),P=E(N),F=e=>{var n=f();u(E(n),()=>t.child,()=>({props:g(M)})),s(e,n)},I=e=>{var n=ut();x(n,()=>({...g(M)})),u(b(n),()=>t.children??h),m(n),s(e,n)};c(P,e=>{t.child?e(F):e(I,-1)}),lt(C(P,2),{}),s(e,N),l()}var pt=j(`<button><!></button>`);function mt(e,t){let r=p();d(t,!0);let i=w(t,`id`,19,()=>B(r)),a=w(t,`disabled`,3,!1),o=w(t,`ref`,15,null),_=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`value`,`disabled`,`ref`]),v=st.create({value:R(()=>t.value),disabled:R(()=>a()??!1),id:R(()=>i()),ref:R(()=>o(),e=>o(e))}),y=n(()=>z(_,v.props));var S=f(),C=E(S),T=e=>{var r=f(),i=E(r);{let e=n(()=>({props:g(y),...v.snippetProps}));u(i,()=>t.child,()=>g(e))}s(e,r)},O=e=>{var n=pt();x(n,()=>({...g(y)})),u(b(n),()=>t.children??h,()=>v.snippetProps),m(n),s(e,n)};c(C,e=>{t.child?e(T):e(O,-1)}),s(e,S),l()}var ht=j(`<!> <!>`,1);function gt(e,r){d(r,!0);let i=w(r,`value`,15),a=w(r,`onValueChange`,3,K),o=w(r,`name`,3,``),p=w(r,`disabled`,3,!1),m=w(r,`open`,15,!1),v=w(r,`onOpenChange`,3,K),y=w(r,`onOpenChangeComplete`,3,K),b=w(r,`loop`,3,!1),x=w(r,`scrollAlignment`,3,`nearest`),S=w(r,`required`,3,!1),T=w(r,`items`,19,()=>[]),D=w(r,`allowDeselect`,3,!1);function O(){i()===void 0&&i(r.type===`single`?``:[])}O(),L.pre(()=>i(),()=>{O()});let k=_(``),j=qe.create({type:r.type,value:R(()=>i(),e=>{i(e),a()(e)}),disabled:R(()=>p()),required:R(()=>S()),open:R(()=>m(),e=>{m(e),v()(e)}),loop:R(()=>b()),scrollAlignment:R(()=>x()),name:R(()=>o()),isCombobox:!1,items:R(()=>T()),allowDeselect:R(()=>D()),inputValue:R(()=>g(k),e=>A(k,e,!0)),onOpenChangeComplete:R(()=>y())});var M=ht(),N=E(M);je(N,{children:(e,t)=>{var n=f();u(E(n),()=>r.children??h),s(e,n)},$$slots:{default:!0}});var P=C(N,2),F=e=>{var n=f(),i=E(n),a=e=>{X(e,{get autocomplete(){return r.autocomplete}})},o=e=>{var n=f();t(E(n),16,()=>j.opts.value.current,e=>e,(e,t)=>{X(e,{get value(){return t},get autocomplete(){return r.autocomplete}})}),s(e,n)};c(i,e=>{j.opts.value.current.length===0?e(a):e(o,-1)}),s(e,n)},I=n(()=>Array.isArray(j.opts.value.current)),ee=e=>{X(e,{get autocomplete(){return r.autocomplete},get value(){return j.opts.value.current},set value(e){j.opts.value.current=e}})};c(P,e=>{g(I)?e(F):e(ee,-1)}),s(e,M),l()}var _t=j(`<button><!></button>`);function vt(e,t){let i=p();d(t,!0);let a=w(t,`id`,19,()=>B(i)),o=w(t,`ref`,15,null),_=w(t,`type`,3,`button`),v=D(t,[`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`type`]),y=Ye.create({id:R(()=>a()),ref:R(()=>o(),e=>o(e))}),S=n(()=>z(v,y.props,{type:_()}));var C=f();r(E(C),()=>Ae,(e,n)=>{n(e,{get id(){return a()},get ref(){return y.opts.ref},children:(e,n)=>{var r=f(),i=E(r),a=e=>{var n=f();u(E(n),()=>t.child,()=>({props:g(S)})),s(e,n)},o=e=>{var n=_t();x(n,()=>({...g(S)})),u(b(n),()=>t.children??h),m(n),s(e,n)};c(i,e=>{t.child?e(a):e(o,-1)}),s(e,r)},$$slots:{default:!0}})}),s(e,C),l()}function yt(e,t){d(t,!0);let i=w(t,`ref`,15,null),a=w(t,`value`,15,``),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);var c=f(),u=E(c);{let e=n(()=>J(`grid gap-0.5 w-full`,t.class));r(u,()=>ft,(t,n)=>{n(t,v({"data-slot":`radio-group`,get class(){return g(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)},get value(){return a()},set value(e){a(e)}}))})}s(e,c),l()}var bt=j(`<span class="radio-dot svelte-l8hbh2"></span>`);function xt(e,t){d(t,!0);let i=w(t,`ref`,15,null),a=D(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);var o=f(),u=E(o);{let e=(e,t)=>{let n=()=>t?.().checked;var r=f(),i=E(r),a=e=>{s(e,bt())};c(i,e=>{n()&&e(a)}),s(e,r)},o=n(()=>J(`radio-item`,t.class));r(u,()=>mt,(t,n)=>{n(t,v({"data-slot":`radio-group-item`,get class(){return g(o)}},()=>a,{get ref(){return i()},set ref(e){i(e)},children:e,$$slots:{default:!0}}))})}s(e,o),l()}function St(){let e=_(S({})),t=null,r=null;function i(e,n,i){r&&=(clearInterval(r),null),t=`${e}/${n}/${i}`,o(`enter`,e,n,i),r=setInterval(()=>{t&&o(`heartbeat`,e,n,i)},3e4)}function a(){if(r&&=(clearInterval(r),null),t){let[e,n,r]=t.split(`/`);e&&n&&r&&o(`leave`,e,n,r),t=null}}function o(e,t,n,r){q.send({type:`presence`,action:e,repo:t,entityType:n,entityId:r})}function s(t){let n=`${t.repo}/${t.entityType}/${t.entityId}`,r=g(e)[n]??[];if(t.action===`leave`)g(e)[n]=r.filter(e=>e.id!==t.user.id);else{let i=r.findIndex(e=>e.id===t.user.id);i>=0?(r[i]=t.user,g(e)[n]=[...r]):g(e)[n]=[...r,t.user]}}function c(){if(A(e,{},!0),!t)return;let[n,r,i]=t.split(`/`);n&&r&&i&&o(`enter`,n,r,i)}function l(t,n,r,i){let a=`${t}/${n}/${r}`,o=g(e)[a]??[];return i?o.filter(e=>e.id!==i):o}function u(t,n){let r=new Map;for(let[i,a]of Object.entries(g(e)))if(i.startsWith(t))for(let e of a)(!n||e.id!==n)&&r.set(e.id,e);return[...r.values()]}function d(e,t){return u(`${e}/`,t)}function f(t){let n=new Map;for(let r of Object.values(g(e)))for(let e of r)(!t||e.id!==t)&&n.set(e.id,e);return[...n.values()]}let p=n(()=>{let t=new Map;for(let n of Object.values(g(e)))for(let e of n)t.set(e.id,e);return[...t.values()]});return{enter:i,leave:a,handlePresenceEvent:s,resetAndResend:c,getPresence:l,getPresenceByPrefix:u,getRepoPresence:d,getAllUsers:f,get allUsers(){return g(p)}}}var $=St();q.setPresenceHandler(e=>$.handlePresenceEvent(e)),q.addConnectHandler(()=>$.resetAndResend()),typeof window<`u`&&window.addEventListener(`beforeunload`,()=>$.leave());var Ct=j(`<span class="select-placeholder"> </span>`),wt=j(`<span class="select-label"><!></span> <!>`,1);function Tt(e,t){d(t,!0);let o=w(t,`placeholder`,3,`Select...`),p=w(t,`size`,3,`default`),h=D(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`value`,`placeholder`,`class`,`size`]);var _=f(),y=E(_);{let e=n(()=>J(`select-trigger`,p()===`sm`&&`select-trigger-sm`,t.class));r(y,()=>vt,(n,r)=>{r(n,v({get class(){return g(e)}},()=>h,{children:(e,n)=>{var r=wt(),l=E(r),d=b(l),p=e=>{var n=f();u(E(n),()=>t.children),s(e,n)},h=e=>{var n=a();T(e=>i(n,e),[()=>Fe(t.value)]),s(e,n)},g=e=>{var t=Ct(),n=b(t,!0);m(t),T(()=>i(n,o())),s(e,t)};c(d,e=>{t.children?e(p):t.value?e(h,1):e(g,-1)}),m(l),Me(C(l,2),{class:`select-chevron`}),s(e,r)},$$slots:{default:!0}}))})}s(e,_),l()}function Et(e,t){d(t,!0);let i=w(t,`side`,3,`bottom`),a=w(t,`sideOffset`,3,4),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`children`,`class`,`side`,`sideOffset`]);var c=f();r(E(c),()=>he,(e,c)=>{c(e,{children:(e,c)=>{var l=f(),d=E(l);{let e=n(()=>J(`select-content`,t.class));r(d,()=>tt,(n,r)=>{r(n,v({get class(){return g(e)},get side(){return i()},get sideOffset(){return a()}},()=>o,{children:(e,n)=>{var r=f();u(E(r),()=>t.children),s(e,r)},$$slots:{default:!0}}))})}s(e,l)},$$slots:{default:!0}})}),s(e,c),l()}var Dt=j(`<span class="select-item-text"> </span>`),Ot=j(`<span class="select-item-check-slot"><!></span> <!>`,1);function kt(e,t){d(t,!0);let a=w(t,`disabled`,3,!1),o=D(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`label`,`disabled`,`class`,`content`]);var p=f(),h=E(p);{let e=(e,n)=>{let r=()=>n?.().selected;var a=Ot(),o=E(a),l=b(o),d=e=>{Ne(e,{size:12,class:`select-item-check`})};c(l,e=>{r()&&e(d)}),m(o);var p=C(o,2),h=e=>{var n=f();u(E(n),()=>t.content,()=>({selected:r()})),s(e,n)},g=e=>{var n=Dt(),r=b(n,!0);m(n),T(e=>i(r,e),[()=>Fe(t.label??t.value)]),s(e,n)};c(p,e=>{t.content?e(h):e(g,-1)}),s(e,a)},l=n(()=>J(`select-item`,t.class));r(h,()=>at,(n,r)=>{r(n,v({get value(){return t.value},get label(){return t.label},get disabled(){return a()},get class(){return g(l)}},()=>o,{children:e,$$slots:{default:!0}}))})}s(e,p),l()}var At=gt;export{$ as a,at as c,Je as d,qe as f,Tt as i,X as l,kt as n,xt as o,Et as r,yt as s,At as t,Xe as u};