pi-roundtable-web 0.29.1 → 0.29.2

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 (207) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/chunk-account-dq0nhfvj.js +1 -0
  3. package/dist/{chunk-action-menu-ap5xn7bf.js → chunk-action-menu-37zgbhje.js} +1 -1
  4. package/dist/chunk-agent-yqe6reej.js +1 -0
  5. package/dist/chunk-arranged-rooms-sx6xg9df.js +1 -0
  6. package/dist/{chunk-attachments-p5v9gqyt.js → chunk-attachments-3vbj05g5.js} +2 -2
  7. package/dist/chunk-bulk-actions-6pehrsgb.js +1 -0
  8. package/dist/{chunk-character-creator-m7tw20ef.js → chunk-character-creator-bg3tdc8p.js} +2 -2
  9. package/dist/chunk-codeeditor-102wa9bj.js +2 -0
  10. package/dist/chunk-confirm-ghxga720.js +1 -0
  11. package/dist/chunk-connectors-0jzzren3.js +37 -0
  12. package/dist/chunk-conversations-3276jq4q.js +1 -0
  13. package/dist/chunk-council-sheet-7m884s44.js +2 -0
  14. package/dist/chunk-council-view-rkzcxeg8.js +1 -0
  15. package/dist/{chunk-drag-d1bpy8w6.js → chunk-drag-sw692nr3.js} +1 -1
  16. package/dist/chunk-entry-mb6jd983.js +1 -0
  17. package/dist/chunk-folder-list-g7st6p1e.js +1 -0
  18. package/dist/chunk-folds-rb1b069h.js +1 -0
  19. package/dist/{chunk-gate-dt91egcd.js → chunk-gate-3rxxyfev.js} +1 -1
  20. package/dist/chunk-host-icons-cyj62pwp.js +1 -0
  21. package/dist/chunk-host-picture-9wnhqckv.js +1 -0
  22. package/dist/chunk-host-state-b858k3p8.js +1 -0
  23. package/dist/chunk-host-ui-j6wvj0pe.js +1 -0
  24. package/dist/{chunk-index-6s2pqwna.js → chunk-index-0qzqzp6t.js} +2 -2
  25. package/dist/{chunk-index-w17wgjby.js → chunk-index-0t68az7d.js} +3 -3
  26. package/dist/chunk-index-0xdptr30.js +2 -0
  27. package/dist/{chunk-index-8wpvj7k5.js → chunk-index-1tkzdy4s.js} +2 -2
  28. package/dist/chunk-index-2s48qyrs.js +2 -0
  29. package/dist/chunk-index-33cqx9v2.js +2 -0
  30. package/dist/chunk-index-36m3knsk.js +2 -0
  31. package/dist/{chunk-index-7mrkq793.js → chunk-index-50syrmaq.js} +2 -2
  32. package/dist/{chunk-index-5j1v2q7w.js → chunk-index-50w6yq2d.js} +1 -1
  33. package/dist/{chunk-index-ce7hsda9.js → chunk-index-5fyqxh0r.js} +2 -2
  34. package/dist/chunk-index-5x3h176v.js +2 -0
  35. package/dist/{chunk-index-6btdp13p.js → chunk-index-6cs1wvhy.js} +1 -1
  36. package/dist/{chunk-index-yr758n6t.js → chunk-index-6m25qpa7.js} +2 -2
  37. package/dist/{chunk-index-d4mx2vvf.js → chunk-index-6nja2vd8.js} +2 -2
  38. package/dist/{chunk-index-wgrx2ybn.js → chunk-index-6q3dx093.js} +2 -2
  39. package/dist/{chunk-index-6rdywten.js → chunk-index-6ycrvwzs.js} +2 -2
  40. package/dist/{chunk-index-1kb8tv4v.js → chunk-index-6yfcfcc8.js} +2 -2
  41. package/dist/{chunk-index-4a1tdadd.js → chunk-index-7gk2sdf4.js} +3 -3
  42. package/dist/{chunk-index-q4k9vk04.js → chunk-index-7p31pda8.js} +3 -3
  43. package/dist/chunk-index-91wnf1k9.js +1 -0
  44. package/dist/chunk-index-9ehqccfe.js +2 -0
  45. package/dist/chunk-index-ar1x9fhw.js +2 -0
  46. package/dist/chunk-index-axw4wkqq.js +2 -0
  47. package/dist/chunk-index-b5patef1.js +2 -0
  48. package/dist/chunk-index-dagc92hw.js +2 -0
  49. package/dist/chunk-index-ddssgba9.js +2 -0
  50. package/dist/chunk-index-dpgn7kzp.js +2 -0
  51. package/dist/{chunk-index-cmzvq3nf.js → chunk-index-e8535c4h.js} +2 -2
  52. package/dist/{chunk-index-vpq2cj14.js → chunk-index-edjyj761.js} +1 -1
  53. package/dist/chunk-index-eez0kbk4.js +2 -0
  54. package/dist/chunk-index-ekp5mmvp.js +2 -0
  55. package/dist/{chunk-index-en728705.js → chunk-index-eyythjdx.js} +2 -2
  56. package/dist/chunk-index-fdg2qd3f.js +2 -0
  57. package/dist/chunk-index-g0sdxjxr.js +2 -0
  58. package/dist/{chunk-index-prq011b6.js → chunk-index-gmbk3sra.js} +1 -1
  59. package/dist/chunk-index-hsc9yz2x.js +2 -0
  60. package/dist/{chunk-index-ffnd0jcj.js → chunk-index-jrj09r5c.js} +2 -2
  61. package/dist/chunk-index-kvztbfqj.js +2 -0
  62. package/dist/{chunk-index-53fwc7sc.js → chunk-index-m7wzrmcd.js} +2 -2
  63. package/dist/{chunk-index-cfesmk1f.js → chunk-index-m8bv51r9.js} +2 -2
  64. package/dist/{chunk-index-v9jqyr1f.js → chunk-index-mey1p7h8.js} +3 -3
  65. package/dist/{chunk-index-0h99xcs3.js → chunk-index-mzw7nmkc.js} +2 -2
  66. package/dist/{chunk-index-3tksdmx7.js → chunk-index-n2v2bz8d.js} +2 -2
  67. package/dist/chunk-index-nncy9wxw.js +2 -0
  68. package/dist/chunk-index-p2e7rwac.js +2 -0
  69. package/dist/chunk-index-p98tt12y.js +2 -0
  70. package/dist/chunk-index-qdtmetsy.js +120 -0
  71. package/dist/{chunk-index-ysv36nbk.js → chunk-index-qedt9szy.js} +2 -2
  72. package/dist/{chunk-index-gdh7wsd5.js → chunk-index-qk7rp7fk.js} +11 -11
  73. package/dist/{chunk-index-nr275sa7.js → chunk-index-qq86fxda.js} +2 -2
  74. package/dist/{chunk-index-xbj816p0.js → chunk-index-qw9a7ken.js} +2 -2
  75. package/dist/chunk-index-s356ybxk.js +50 -0
  76. package/dist/{chunk-index-dr0jr7d3.js → chunk-index-sk8cvb4e.js} +3 -3
  77. package/dist/{chunk-index-m76gdwnk.js → chunk-index-syxwqhry.js} +2 -2
  78. package/dist/{chunk-index-ze9p4npm.js → chunk-index-tasbd41t.js} +2 -2
  79. package/dist/chunk-index-vxqzavgz.js +2 -0
  80. package/dist/{chunk-index-fn6305vn.js → chunk-index-x5xq9g9a.js} +3 -3
  81. package/dist/chunk-index-xx0kecz9.js +2 -0
  82. package/dist/{chunk-index-sz381vda.js → chunk-index-y1xv3dxs.js} +100 -4
  83. package/dist/{chunk-index-8pbwr3rs.js → chunk-index-yn1vvxj2.js} +1 -1
  84. package/dist/chunk-lang-css-rwkzd784.js +1 -0
  85. package/dist/{chunk-lang-dockerfile-y24eejnh.js → chunk-lang-dockerfile-e87ssppx.js} +1 -1
  86. package/dist/{chunk-lang-go-qzgv1161.js → chunk-lang-go-kbcbn346.js} +2 -2
  87. package/dist/chunk-lang-html-zhngbs9v.js +1 -0
  88. package/dist/chunk-lang-javascript-bk2s6a56.js +1 -0
  89. package/dist/{chunk-lang-json-99v80v88.js → chunk-lang-json-4pe1fv7e.js} +1 -1
  90. package/dist/{chunk-lang-markdown-gn8he877.js → chunk-lang-markdown-67cm3tjx.js} +5 -5
  91. package/dist/{chunk-lang-python-prsw4p4k.js → chunk-lang-python-mnfhcvww.js} +2 -2
  92. package/dist/{chunk-lang-rust-g6xqta16.js → chunk-lang-rust-e4a9s76x.js} +1 -1
  93. package/dist/{chunk-lang-shell-dmpnzc6w.js → chunk-lang-shell-43nea8tq.js} +1 -1
  94. package/dist/{chunk-lang-sql-wz7ca27b.js → chunk-lang-sql-28364npv.js} +2 -2
  95. package/dist/{chunk-lang-toml-160prtq4.js → chunk-lang-toml-a83hr7bw.js} +1 -1
  96. package/dist/chunk-lang-typescript-r5npc6zf.js +1 -0
  97. package/dist/{chunk-lang-xml-9htkz2dd.js → chunk-lang-xml-2hv5xc8n.js} +1 -1
  98. package/dist/{chunk-lang-yaml-08749wd5.js → chunk-lang-yaml-vw22drt8.js} +1 -1
  99. package/dist/chunk-layout-actions-rw5myg2t.js +1 -0
  100. package/dist/chunk-menu-items-q0hy5kzd.js +1 -0
  101. package/dist/chunk-mode-toggle-yk2t0tcy.js +1 -0
  102. package/dist/{chunk-note-row-28e5x7n8.js → chunk-note-row-c0trzayj.js} +3 -3
  103. package/dist/chunk-notes-0xcmm938.js +1 -0
  104. package/dist/chunk-notice-bell-f9nhxg71.js +1 -0
  105. package/dist/{chunk-notices-d0cwvk27.js → chunk-notices-gkaqncqz.js} +1 -1
  106. package/dist/chunk-onboarding-fkq9ptcw.js +1 -0
  107. package/dist/{chunk-overview-9sb3ywa8.js → chunk-overview-yssxbg0d.js} +1 -1
  108. package/dist/{chunk-palette-5sfhrv4x.js → chunk-palette-w6qbr7zp.js} +1 -1
  109. package/dist/chunk-placement-items-wcwy91mp.js +1 -0
  110. package/dist/chunk-profile-9sjgayrx.js +1 -0
  111. package/dist/chunk-prompt-history-kn42sf8y.js +1 -0
  112. package/dist/chunk-prompts-824fwgvh.js +1 -0
  113. package/dist/chunk-room-confirms-hvs9tra4.js +1 -0
  114. package/dist/{chunk-room-menu-hwkjyxwe.js → chunk-room-menu-pkd0487m.js} +1 -1
  115. package/dist/chunk-rooms-menu-button-w5hfhsfv.js +1 -0
  116. package/dist/chunk-schedules-m9mn68gt.js +1 -0
  117. package/dist/{chunk-seat-menu-n2bcw0mf.js → chunk-seat-menu-3tdcr44t.js} +1 -1
  118. package/dist/chunk-section-fold-g0tx68cj.js +1 -0
  119. package/dist/chunk-settings-18qmhcyr.js +1 -0
  120. package/dist/chunk-sheet-hosts-tsppnmvv.js +29 -0
  121. package/dist/{chunk-shortcut-help-434sqnxc.js → chunk-shortcut-help-wnm0cm8n.js} +2 -2
  122. package/dist/chunk-shortcuts-qee393s5.js +1 -0
  123. package/dist/{chunk-skill-editor-98492yrt.js → chunk-skill-editor-pryntvpr.js} +2 -2
  124. package/dist/{chunk-skills-mfv8ppfh.js → chunk-skills-sap3rysr.js} +1 -1
  125. package/dist/{chunk-start-over-line-m526193z.js → chunk-start-over-line-azexcxj1.js} +2 -2
  126. package/dist/chunk-switcher-list-6hacxjfe.js +1 -0
  127. package/dist/{chunk-tab-dot-tzjkahj5.js → chunk-tab-dot-h0eskhrt.js} +1 -1
  128. package/dist/{chunk-table-xbtbex2z.js → chunk-table-jtn49c2m.js} +1 -1
  129. package/dist/chunk-table2d-vy4w4r5k.js +1 -0
  130. package/dist/{chunk-table3d-5a7vbgyj.js → chunk-table3d-0a62jerb.js} +24 -24
  131. package/dist/chunk-thread-actions-31scmndt.js +1 -0
  132. package/dist/{chunk-thread-cards-n0n603vf.js → chunk-thread-cards-mwxzy02t.js} +1 -1
  133. package/dist/{chunk-thread-list-7bkdn51x.js → chunk-thread-list-52mx2m9p.js} +2 -2
  134. package/dist/chunk-transcript-p5q2m795.js +1 -0
  135. package/dist/{chunk-waiting-chip-y83c90v3.js → chunk-waiting-chip-wvkbsnw5.js} +2 -2
  136. package/dist/chunk-waiting-s7nm3q0p.js +1 -0
  137. package/dist/chunk-where-j99f8pb8.js +1 -0
  138. package/dist/{chunk-workspace-dw71mshw.js → chunk-workspace-ne2nkf4h.js} +2 -2
  139. package/dist/index.html +1 -1
  140. package/dist/sw.js +1 -1
  141. package/package.json +2 -2
  142. package/dist/chunk-account-66e6ezdq.js +0 -1
  143. package/dist/chunk-agent-sapt5qhn.js +0 -1
  144. package/dist/chunk-arranged-rooms-n6bk696f.js +0 -1
  145. package/dist/chunk-bulk-actions-aze4ewc4.js +0 -1
  146. package/dist/chunk-codeeditor-yy6pq8mv.js +0 -2
  147. package/dist/chunk-confirm-0cajsfhk.js +0 -1
  148. package/dist/chunk-connectors-tw0tbm21.js +0 -37
  149. package/dist/chunk-conversations-wkm23m5r.js +0 -1
  150. package/dist/chunk-council-sheet-mz7s23nq.js +0 -2
  151. package/dist/chunk-council-view-zgvzxtgn.js +0 -1
  152. package/dist/chunk-entry-7zr5b1fp.js +0 -1
  153. package/dist/chunk-folder-list-bs4eh3g9.js +0 -1
  154. package/dist/chunk-folds-eez1q41c.js +0 -1
  155. package/dist/chunk-host-icons-nfe2t8tk.js +0 -1
  156. package/dist/chunk-host-picture-4rtswxwa.js +0 -1
  157. package/dist/chunk-host-state-1vxzmmq6.js +0 -1
  158. package/dist/chunk-host-ui-x38bf0et.js +0 -1
  159. package/dist/chunk-index-24cggw6k.js +0 -50
  160. package/dist/chunk-index-2g8xtwqg.js +0 -2
  161. package/dist/chunk-index-3n38xe7m.js +0 -2
  162. package/dist/chunk-index-55ps4x5n.js +0 -2
  163. package/dist/chunk-index-5w6tb7p0.js +0 -2
  164. package/dist/chunk-index-6m7dwsmv.js +0 -1
  165. package/dist/chunk-index-7xcbpeqz.js +0 -2
  166. package/dist/chunk-index-88wh5eyj.js +0 -2
  167. package/dist/chunk-index-97dcp1vh.js +0 -1
  168. package/dist/chunk-index-a7e6rhxy.js +0 -2
  169. package/dist/chunk-index-bxf8eq1s.js +0 -2
  170. package/dist/chunk-index-c8gm1crh.js +0 -120
  171. package/dist/chunk-index-d74tpnkd.js +0 -2
  172. package/dist/chunk-index-fb3kzyyp.js +0 -2
  173. package/dist/chunk-index-mr391t49.js +0 -2
  174. package/dist/chunk-index-n3khm9fq.js +0 -2
  175. package/dist/chunk-index-nn4w6a04.js +0 -2
  176. package/dist/chunk-index-pgxgq61x.js +0 -2
  177. package/dist/chunk-index-rgdaec7y.js +0 -2
  178. package/dist/chunk-index-rjs1can6.js +0 -2
  179. package/dist/chunk-index-s4a8e4qm.js +0 -2
  180. package/dist/chunk-index-vsaggfns.js +0 -2
  181. package/dist/chunk-index-wsv46y9p.js +0 -2
  182. package/dist/chunk-index-zfdvyrjt.js +0 -2
  183. package/dist/chunk-lang-css-3h22se37.js +0 -1
  184. package/dist/chunk-lang-html-9rvrmmpg.js +0 -1
  185. package/dist/chunk-lang-javascript-4kv8s3tk.js +0 -1
  186. package/dist/chunk-lang-typescript-mp0yw903.js +0 -1
  187. package/dist/chunk-layout-actions-tdx896xf.js +0 -1
  188. package/dist/chunk-menu-items-trhybv1g.js +0 -1
  189. package/dist/chunk-mode-toggle-4dtfphq4.js +0 -1
  190. package/dist/chunk-notes-5nkayhw8.js +0 -1
  191. package/dist/chunk-notice-bell-xz8a04am.js +0 -1
  192. package/dist/chunk-onboarding-zs4rtea9.js +0 -1
  193. package/dist/chunk-placement-items-e2neja55.js +0 -1
  194. package/dist/chunk-profile-jffhtpqf.js +0 -1
  195. package/dist/chunk-prompt-history-1jz2gk3v.js +0 -1
  196. package/dist/chunk-prompts-0t30ttd0.js +0 -1
  197. package/dist/chunk-room-confirms-6595921h.js +0 -1
  198. package/dist/chunk-rooms-menu-button-k0eq1tcr.js +0 -1
  199. package/dist/chunk-schedules-e12y8fw2.js +0 -1
  200. package/dist/chunk-sheet-hosts-myvm2vhd.js +0 -29
  201. package/dist/chunk-shortcuts-mjxph0g7.js +0 -1
  202. package/dist/chunk-switcher-list-5ngjar24.js +0 -1
  203. package/dist/chunk-table2d-61bvrykm.js +0 -1
  204. package/dist/chunk-thread-actions-bf6vf2mt.js +0 -1
  205. package/dist/chunk-transcript-8ztrkt6g.js +0 -1
  206. package/dist/chunk-waiting-s273kcgz.js +0 -1
  207. package/dist/chunk-where-jr791gzj.js +0 -1
@@ -1,2 +1,2 @@
1
- import{Vo,M,ue,xt,A,V,Tt}from"./chunk-index-gdh7wsd5.js";class P{constructor(t,e,s,i,h,r,n,o,l,f=0,a){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=l,this.lookAhead=f,this.parent=a}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new P(t,[],e,s,s,0,[],0,i?new y(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n)this.score+=n;if(s==0){if(i<h.minRepeatTerm&&this.reducePos<this.pos)this.reducePos=this.pos;if(this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm)this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0);this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),l=o?this.stack[o-2]:this.p.ranges[0].from;if(i<h.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos)this.reducePos=this.pos;let f=this.reducePos-l;if(f>=2000&&!((e=this.p.parser.nodeSet.types[i])===null||e===void 0?void 0:e.isAnonymous)){if(l==this.p.lastBigReductionStart)this.p.bigReductionCount++,this.p.lastBigReductionSize=f;else if(this.p.lastBigReductionSize<f)this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=f}let a=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-a;if(i<h.minRepeatTerm||t&131072){let u=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,l,u,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let u=this.stack[o-3];this.state=h.getGoto(u,i,!0)}while(this.stack.length>o)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n){while(r>0&&this.buffer[r-2]>s)if(this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4)i-=4}}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);if(!n&&(i>s||e<=r.maxNode))this.reducePos=i;if(this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode)this.buffer.push(e,s,i,4)}else if(this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode)this.buffer.push(e,s,i,4)}apply(t,e,s,i){if(t&65536)this.reduce(t);else this.shift(t,e,s,i)}useNode(t,e,s){let i=this.p.reused.length-1;if(i<0||this.p.reused[i]!=t)this.p.reused.push(t),i++;let h=this.reducePos=this.pos=s+t.length;if(this.pushState(e,s),this.buffer.push(i,s,h,-1),this.curContext)this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;if(e&&t.buffer[e-4]==0)e-=4;while(e>0&&t.buffer[e-2]>t.reducePos)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;while(t&&i==t.bufferBase)t=t.parent;return new P(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;if(s)this.storeNode(t,this.pos,e,4);this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new D(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)if((r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t))i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];if(!i.some((n,o)=>o&1&&n==r))i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(e.includes(i))return;return e.push(i),t.allActions(i,(r)=>{if(r&393216);else if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,l=this.stack.length-n*3;if(l>=0&&t.getGoto(this.stack[l],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){while(!this.p.parser.stateFlag(this.state,2))if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){if(this.curContext)this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){if(this.curContext)this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;if(t<0||this.buffer[t]!=-3)this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let t=this.buffer.length-1;if(t<0||this.buffer[t]!=-4)this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new y(this.curContext.tracker,t);if(e.hash!=this.curContext.hash)this.emitContext();this.curContext=e}}setLookAhead(t){if(t<=this.lookAhead)return!1;return this.emitLookAhead(),this.lookAhead=t,!0}close(){if(this.curContext&&this.curContext.tracker.strict)this.emitContext();if(this.lookAhead>0)this.emitLookAhead()}}class y{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class D{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;if(s==0){if(this.stack==this.start.stack)this.stack=this.stack.slice();this.stack.push(this.state,0,0),this.base+=3}else this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class S{constructor(t,e,s){if(this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0)this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new S(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;if(t!=null)this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){if(this.index-=4,this.pos-=4,this.index==0)this.maybeNext()}fork(){return new S(this.stack,this.pos,this.index)}}function x(t,e=Uint16Array){if(typeof t!="string")return t;let s=null;for(let i=0,h=0;i<t.length;){let r=0;for(;;){let n=t.charCodeAt(i++),o=!1;if(n==126){r=65535;break}if(n>=92)n--;if(n>=34)n--;let l=n-32;if(l>=46)l-=46,o=!0;if(r+=l,o)break;r*=46}if(s)s[h++]=r;else s=new e(r)}return s}class b{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}var R=new b;class B{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=R,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;while(h<s.from){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}while(e<0?h>s.to:h>=s.to){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;while(n.to<=s)n=this.ranges[++r];if(this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to)this.chunk2=this.chunk2.slice(0,n.to-s);i=this.chunk2.charCodeAt(0)}}if(s>=this.token.lookAhead)this.token.lookAhead=s+1;return i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){if(this.chunkOff>=this.chunk.length){if(this.getChunk(),this.chunkOff==this.chunk.length)return this.next=-1}return this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){this.chunkOff+=t;while(this.pos+t>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}if(this.pos+=t,this.pos>=this.token.lookAhead)this.token.lookAhead=this.pos+1;return this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e)this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1;else this.token=R;if(this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;while(t<this.range.from)this.range=this.ranges[--this.rangeIndex];while(t>=this.range.to)this.range=this.ranges[++this.rangeIndex];if(t>=this.chunkPos&&t<this.chunkPos+this.chunk.length)this.chunkOff=t-this.chunkPos;else this.chunk="",this.chunkOff=0;this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;if(i.to>t)s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class ft{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(!h)i++;if(r==null)break;t.reset(r,t.token)}if(i)t.reset(s,t.token),t.acceptToken(this.elseToken,i)}}ft.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class N{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(t,e,s,i,h,r){let n=0,o=1<<i,{dialect:l}=s.p.parser;t:for(;;){if((o&t[n])==0)break;let f=t[n+1];for(let c=n+3;c<f;c+=2)if((t[c+1]&o)>0){let g=t[c];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||H(g,e.token.value,h,r))){e.acceptToken(g);break}}let a=e.next,d=0,u=t[n+2];if(e.next<0&&u>d&&t[f+u*3-3]==65535){n=t[f+u*3-1];continue t}for(;d<u;){let c=d+u>>1,g=f+c+(c<<1),_=t[g],G=t[g+1]||65536;if(a<_)u=c;else if(a>=G)d=c+1;else{n=t[g+2],e.advance();continue t}}break}}function T(t,e,s){for(let i=e,h;(h=t[i])!=65535;i++)if(h==s)return i-e;return-1}function H(t,e,s,i){let h=T(s,i,e);return h<0||T(s,i,t)<h}var p=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),v=null;function C(t,e,s){let i=t.cursor(A.IncludeAnonymous);i.moveTo(e);for(;;)if(!(s<0?i.childBefore(e):i.childAfter(e)))for(;;){if((s<0?i.to<e:i.from>e)&&!i.type.isError)return s<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(s<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return s<0?0:t.length}}class F{constructor(t,e){this.fragments=t,this.minRepeat=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){this.safeFrom=t.openStart?C(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?C(t.tree,t.to+t.offset,-1)-t.offset:t.to;while(this.trees.length)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;while(this.fragment&&this.safeTo<=t)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof V){let n=r>this.lastRepeatPos&&h.type.id>=this.minRepeat;if(r==t||n){let o=r+h.length,l;if(r>=this.safeFrom&&o<=this.safeTo&&(!(l=h.prop(M.lookAhead))||o+l<this.fragment.to)){if(n)this.lastRepeat=h,this.lastRepeatPos=r;if(r==t)return h}else if(r==t)return null}if(this.index[e]++,r+h.length>=Math.max(this.safeFrom,t))this.trees.push(h),this.start.push(r),this.index.push(0)}else this.index[e]++,this.nextStart=r+h.length}}}class L{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((s)=>new b)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let l=0;l<h.length;l++){if((1<<l&r)==0)continue;let f=h[l],a=this.tokens[l];if(s&&!f.fallback)continue;if(f.contextual||a.start!=t.pos||a.mask!=r||a.context!=n)this.updateCachedToken(a,f,t),a.mask=r,a.context=n;if(a.lookAhead>a.end+25)o=Math.max(a.lookAhead,o);if(a.value!=0){let d=e;if(a.extended>-1)e=this.addActions(t,a.extended,a.end,e);if(e=this.addActions(t,a.value,a.end,e),!f.extend){if(s=a,e>d)break}}}while(this.actions.length>e)this.actions.pop();if(o)t.setLookAhead(o);if(!s&&t.pos==this.stream.end)s=new b,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e);return this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new b,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){if((n&1)==0)t.value=n>>1;else t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let l=r.stateSlot(h,o?2:1);;l+=3){if(n[l]==65535)if(n[l+1]==1)l=k(n,l+2);else{if(i==0&&n[l+1]==2)i=this.putAction(k(n,l+2),e,s,i);break}if(n[l]==e)i=this.putAction(k(n,l+1),e,s,i)}return i}}class E{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new B(e,i),this.tokens=new L(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[P.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new F(s,t.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;while(r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else if(this.advanceStack(n,s,t))continue;else{if(!i)i=[],h=[];i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}break}}if(!s.length){let r=i&&W(i);if(r){if(p)console.log("Finish with "+this.stackID(r));return this.stackToTree(r)}if(this.parser.strict){if(p&&i)console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none"));throw SyntaxError("No parse at "+e)}if(!this.recovering)this.recovering=5}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r){if(p)console.log("Force-finish "+this.stackID(r));return this.stackToTree(r.forceAll())}}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r){s.sort((n,o)=>o.score-n.score);while(s.length>r)s.pop()}if(s.some((n)=>n.reducePos>e))this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let l=s[o];if(n.sameState(l)||n.buffer.length>500&&l.buffer.length>500)if((n.score-l.score||n.buffer.length-l.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}if(s.length>12)s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)if(s[r].pos<this.minStackPos)this.minStackPos=s[r].pos;return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=t}tryReuse(t,e,s,i){if(!s)return null;let h=t.curContext&&t.curContext.tracker.strict,r=h?t.curContext.hash:0;for(;s;){let n=this.parser.nodeSet.types[s.type.id]!=s.type?-1:this.parser.getGoto(t.state,s.type.id);if(n>-1&&s.length&&(!h||(s.prop(M.contextHash)||0)==r))return t.useNode(s,n,e),s;if(s.children.length==0||s.positions[0]>0)break;let o=s.children[0];if(o instanceof V&&(!i||o.type.id>=this.parser.minRepeatTerm))s=o;else break}return null}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=p?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let l=t.reducePos<i&&t.buffer.length&&t.buffer[t.buffer.length-2]<=t.reducePos&&this.fragments.lastRepeatPos==t.reducePos&&this.tryReuse(t,t.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(t,i,this.fragments.nodeAt(i),!1);if(l){if(p)console.log(r+this.stackID(t)+` (via reuse of ${h.getName(l.type.id)})`);return!0}}let n=h.stateSlot(t.state,4);if(n>0){if(t.reduce(n),p)console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`);return!0}if(t.stack.length>=8400)while(t.stack.length>6000&&t.forceReduce());let o=this.tokens.getActions(t);for(let l=0;l<o.length;){let f=o[l++],a=o[l++],d=o[l++],u=l==o.length||!s,c=u?t:t.split(),g=this.tokens.mainToken;if(c.apply(f,a,g?g.start:c.pos,d),p)console.log(r+this.stackID(c)+` (via ${(f&65536)==0?"shift":`reduce of ${h.getName(f&65535)}`} for ${h.getName(a)} @ ${i}${c==t?"":", split"})`);if(u)return!0;else if(c.pos>i)e.push(c);else s.push(c)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return z(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],l=e[(r<<1)+1],f=p?this.stackID(n)+" -> ":"";if(n.deadEnd){if(h)continue;if(h=!0,n.restart(),p)console.log(f+this.stackID(n)+" (restarted)");if(this.advanceFully(n,s))continue}let a=n.split(),d=f;for(let u=0;u<10&&a.forceReduce();u++){if(p)console.log(d+this.stackID(a)+" (via force-reduce)");if(this.advanceFully(a,s))break;if(p)d=this.stackID(a)+" -> "}for(let u of n.recoverByInsert(o)){if(p)console.log(f+this.stackID(u)+" (via recover-insert)");this.advanceFully(u,s)}if(this.stream.end>n.pos){if(l==n.pos)l++,o=0;if(n.recoverByDelete(o,l),p)console.log(f+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`);z(n,s)}else if(!i||i.score<a.score)i=a}return i}stackToTree(t){return t.close(),V.build({buffer:S.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(v||(v=new WeakMap)).get(t);if(!e)v.set(t,e=String.fromCodePoint(this.nextStackID++));return e+t}}function z(t,e){for(let s=0;s<e.length;s++){let i=e[s];if(i.pos==t.pos&&i.sameState(t)){if(e[s].score<t.score)e[s]=t;return}}e.push(t)}class U{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}var w=(t)=>t;class Me{constructor(t){this.start=t.start,this.shift=t.shift||w,this.reduce=t.reduce||w,this.reuse=t.reuse||w,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class j extends Tt{constructor(t){super();if(this.wrappers=[],t.version!=14)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map((n)=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,l){i[n].push([o,o.deserialize(String(l))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];if(typeof o=="string")o=M[o];for(let l=1;l<n.length;){let f=n[l++];if(f>=0)h(f,o,n[l++]);else{let a=n[l+-f];for(let d=-f;d>0;d--)h(n[l++],o,a);l++}}}if(this.nodeSet=new xt(e.map((n,o)=>ue.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources)this.nodeSet=this.nodeSet.extend(...t.propSources);this.strict=!1,this.bufferLength=Vo;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(I),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map((n)=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new E(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let l=h+(r>>1);h<l;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else if(s[h+1]==2)return k(s,h+2);else break;if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,(s)=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];if(!e.some((h,r)=>r&1&&h==i))e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(j.prototype),this);if(t.props)e.nodeSet=this.nodeSet.extend(...t.props);if(t.top){let s=this.topRules[t.top];if(!s)throw RangeError(`Invalid top rule name ${t.top}`);e.top=s}if(t.tokenizers)e.tokenizers=this.tokenizers.map((s)=>{let i=t.tokenizers.find((h)=>h.from==s);return i?i.to:s});if(t.specializers)e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find((n)=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=I(r),r});if(t.contextTracker)e.context=t.contextTracker;if(t.dialect)e.dialect=this.parseDialect(t.dialect);if(t.strict!=null)e.strict=t.strict;if(t.wrap)e.wrappers=e.wrappers.concat(t.wrap);if(t.bufferLength!=null)e.bufferLength=t.bufferLength;return e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);if(r>=0)s[r]=!0}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new U(t,s,i)}static deserialize(t){return new j(t)}}function k(t,e){return t[e]|t[e+1]<<16}function W(t){let e=null;for(let s of t){let i=s.p.stoppedAt;if((s.pos==s.p.stream.end||i!=null&&s.pos>i)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.score<s.score))e=s}return e}function I(t){if(t.external){let e=t.extend?1:0;return(s,i)=>t.external(s,i)<<1|e}return t.get}
2
- export{ft,N,Me,j};
1
+ import{Yo,Q,ue,St,N,V,Pt}from"./chunk-index-qk7rp7fk.js";class P{constructor(t,e,s,i,h,r,n,o,l,f=0,a){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=l,this.lookAhead=f,this.parent=a}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new P(t,[],e,s,s,0,[],0,i?new w(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n)this.score+=n;if(s==0){if(i<h.minRepeatTerm&&this.reducePos<this.pos)this.reducePos=this.pos;if(this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm)this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0);this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),l=o?this.stack[o-2]:this.p.ranges[0].from;if(i<h.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos)this.reducePos=this.pos;let f=this.reducePos-l;if(f>=2000&&!((e=this.p.parser.nodeSet.types[i])===null||e===void 0?void 0:e.isAnonymous)){if(l==this.p.lastBigReductionStart)this.p.bigReductionCount++,this.p.lastBigReductionSize=f;else if(this.p.lastBigReductionSize<f)this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=f}let a=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-a;if(i<h.minRepeatTerm||t&131072){let u=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,l,u,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let u=this.stack[o-3];this.state=h.getGoto(u,i,!0)}while(this.stack.length>o)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n){while(r>0&&this.buffer[r-2]>s)if(this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4)i-=4}}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);if(!n&&(i>s||e<=r.maxNode))this.reducePos=i;if(this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode)this.buffer.push(e,s,i,4)}else if(this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode)this.buffer.push(e,s,i,4)}apply(t,e,s,i){if(t&65536)this.reduce(t);else this.shift(t,e,s,i)}useNode(t,e,s){let i=this.p.reused.length-1;if(i<0||this.p.reused[i]!=t)this.p.reused.push(t),i++;let h=this.reducePos=this.pos=s+t.length;if(this.pushState(e,s),this.buffer.push(i,s,h,-1),this.curContext)this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;if(e&&t.buffer[e-4]==0)e-=4;while(e>0&&t.buffer[e-2]>t.reducePos)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;while(t&&i==t.bufferBase)t=t.parent;return new P(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;if(s)this.storeNode(t,this.pos,e,4);this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new I(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)if((r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t))i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];if(!i.some((n,o)=>o&1&&n==r))i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(e.includes(i))return;return e.push(i),t.allActions(i,(r)=>{if(r&393216);else if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,l=this.stack.length-n*3;if(l>=0&&t.getGoto(this.stack[l],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){while(!this.p.parser.stateFlag(this.state,2))if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){if(this.curContext)this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){if(this.curContext)this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;if(t<0||this.buffer[t]!=-3)this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let t=this.buffer.length-1;if(t<0||this.buffer[t]!=-4)this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new w(this.curContext.tracker,t);if(e.hash!=this.curContext.hash)this.emitContext();this.curContext=e}}setLookAhead(t){if(t<=this.lookAhead)return!1;return this.emitLookAhead(),this.lookAhead=t,!0}close(){if(this.curContext&&this.curContext.tracker.strict)this.emitContext();if(this.lookAhead>0)this.emitLookAhead()}}class w{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class I{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;if(s==0){if(this.stack==this.start.stack)this.stack=this.stack.slice();this.stack.push(this.state,0,0),this.base+=3}else this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class S{constructor(t,e,s){if(this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0)this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new S(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;if(t!=null)this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){if(this.index-=4,this.pos-=4,this.index==0)this.maybeNext()}fork(){return new S(this.stack,this.pos,this.index)}}function x(t,e=Uint16Array){if(typeof t!="string")return t;let s=null;for(let i=0,h=0;i<t.length;){let r=0;for(;;){let n=t.charCodeAt(i++),o=!1;if(n==126){r=65535;break}if(n>=92)n--;if(n>=34)n--;let l=n-32;if(l>=46)l-=46,o=!0;if(r+=l,o)break;r*=46}if(s)s[h++]=r;else s=new e(r)}return s}class b{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}var y=new b;class D{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=y,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;while(h<s.from){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}while(e<0?h>s.to:h>=s.to){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;while(n.to<=s)n=this.ranges[++r];if(this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to)this.chunk2=this.chunk2.slice(0,n.to-s);i=this.chunk2.charCodeAt(0)}}if(s>=this.token.lookAhead)this.token.lookAhead=s+1;return i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){if(this.chunkOff>=this.chunk.length){if(this.getChunk(),this.chunkOff==this.chunk.length)return this.next=-1}return this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){this.chunkOff+=t;while(this.pos+t>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}if(this.pos+=t,this.pos>=this.token.lookAhead)this.token.lookAhead=this.pos+1;return this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e)this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1;else this.token=y;if(this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;while(t<this.range.from)this.range=this.ranges[--this.rangeIndex];while(t>=this.range.to)this.range=this.ranges[++this.rangeIndex];if(t>=this.chunkPos&&t<this.chunkPos+this.chunk.length)this.chunkOff=t-this.chunkPos;else this.chunk="",this.chunkOff=0;this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;if(i.to>t)s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;B(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class pt{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(B(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(!h)i++;if(r==null)break;t.reset(r,t.token)}if(i)t.reset(s,t.token),t.acceptToken(this.elseToken,i)}}pt.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class L{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function B(t,e,s,i,h,r){let n=0,o=1<<i,{dialect:l}=s.p.parser;t:for(;;){if((o&t[n])==0)break;let f=t[n+1];for(let c=n+3;c<f;c+=2)if((t[c+1]&o)>0){let g=t[c];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||G(g,e.token.value,h,r))){e.acceptToken(g);break}}let a=e.next,d=0,u=t[n+2];if(e.next<0&&u>d&&t[f+u*3-3]==65535){n=t[f+u*3-1];continue t}for(;d<u;){let c=d+u>>1,g=f+c+(c<<1),U=t[g],_=t[g+1]||65536;if(a<U)u=c;else if(a>=_)d=c+1;else{n=t[g+2],e.advance();continue t}}break}}function R(t,e,s){for(let i=e,h;(h=t[i])!=65535;i++)if(h==s)return i-e;return-1}function G(t,e,s,i){let h=R(s,i,e);return h<0||R(s,i,t)<h}var p=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),v=null;function T(t,e,s){let i=t.cursor(N.IncludeAnonymous);i.moveTo(e);for(;;)if(!(s<0?i.childBefore(e):i.childAfter(e)))for(;;){if((s<0?i.to<e:i.from>e)&&!i.type.isError)return s<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(s<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return s<0?0:t.length}}class O{constructor(t,e){this.fragments=t,this.minRepeat=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){this.safeFrom=t.openStart?T(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?T(t.tree,t.to+t.offset,-1)-t.offset:t.to;while(this.trees.length)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;while(this.fragment&&this.safeTo<=t)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof V){let n=r>this.lastRepeatPos&&h.type.id>=this.minRepeat;if(r==t||n){let o=r+h.length,l;if(r>=this.safeFrom&&o<=this.safeTo&&(!(l=h.prop(Q.lookAhead))||o+l<this.fragment.to)){if(n)this.lastRepeat=h,this.lastRepeatPos=r;if(r==t)return h}else if(r==t)return null}if(this.index[e]++,r+h.length>=Math.max(this.safeFrom,t))this.trees.push(h),this.start.push(r),this.index.push(0)}else this.index[e]++,this.nextStart=r+h.length}}}class F{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((s)=>new b)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let l=0;l<h.length;l++){if((1<<l&r)==0)continue;let f=h[l],a=this.tokens[l];if(s&&!f.fallback)continue;if(f.contextual||a.start!=t.pos||a.mask!=r||a.context!=n)this.updateCachedToken(a,f,t),a.mask=r,a.context=n;if(a.lookAhead>a.end+25)o=Math.max(a.lookAhead,o);if(a.value!=0){let d=e;if(a.extended>-1)e=this.addActions(t,a.extended,a.end,e);if(e=this.addActions(t,a.value,a.end,e),!f.extend){if(s=a,e>d)break}}}while(this.actions.length>e)this.actions.pop();if(o)t.setLookAhead(o);if(!s&&t.pos==this.stream.end)s=new b,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e);return this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new b,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){if((n&1)==0)t.value=n>>1;else t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let l=r.stateSlot(h,o?2:1);;l+=3){if(n[l]==65535)if(n[l+1]==1)l=k(n,l+2);else{if(i==0&&n[l+1]==2)i=this.putAction(k(n,l+2),e,s,i);break}if(n[l]==e)i=this.putAction(k(n,l+1),e,s,i)}return i}}class M{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new D(e,i),this.tokens=new F(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[P.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new O(s,t.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;while(r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else if(this.advanceStack(n,s,t))continue;else{if(!i)i=[],h=[];i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}break}}if(!s.length){let r=i&&H(i);if(r){if(p)console.log("Finish with "+this.stackID(r));return this.stackToTree(r)}if(this.parser.strict){if(p&&i)console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none"));throw SyntaxError("No parse at "+e)}if(!this.recovering)this.recovering=5}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r){if(p)console.log("Force-finish "+this.stackID(r));return this.stackToTree(r.forceAll())}}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r){s.sort((n,o)=>o.score-n.score);while(s.length>r)s.pop()}if(s.some((n)=>n.reducePos>e))this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let l=s[o];if(n.sameState(l)||n.buffer.length>500&&l.buffer.length>500)if((n.score-l.score||n.buffer.length-l.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}if(s.length>12)s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)if(s[r].pos<this.minStackPos)this.minStackPos=s[r].pos;return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=t}tryReuse(t,e,s,i){if(!s)return null;let h=t.curContext&&t.curContext.tracker.strict,r=h?t.curContext.hash:0;for(;s;){let n=this.parser.nodeSet.types[s.type.id]!=s.type?-1:this.parser.getGoto(t.state,s.type.id);if(n>-1&&s.length&&(!h||(s.prop(Q.contextHash)||0)==r))return t.useNode(s,n,e),s;if(s.children.length==0||s.positions[0]>0)break;let o=s.children[0];if(o instanceof V&&(!i||o.type.id>=this.parser.minRepeatTerm))s=o;else break}return null}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=p?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let l=t.reducePos<i&&t.buffer.length&&t.buffer[t.buffer.length-2]<=t.reducePos&&this.fragments.lastRepeatPos==t.reducePos&&this.tryReuse(t,t.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(t,i,this.fragments.nodeAt(i),!1);if(l){if(p)console.log(r+this.stackID(t)+` (via reuse of ${h.getName(l.type.id)})`);return!0}}let n=h.stateSlot(t.state,4);if(n>0){if(t.reduce(n),p)console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`);return!0}if(t.stack.length>=8400)while(t.stack.length>6000&&t.forceReduce());let o=this.tokens.getActions(t);for(let l=0;l<o.length;){let f=o[l++],a=o[l++],d=o[l++],u=l==o.length||!s,c=u?t:t.split(),g=this.tokens.mainToken;if(c.apply(f,a,g?g.start:c.pos,d),p)console.log(r+this.stackID(c)+` (via ${(f&65536)==0?"shift":`reduce of ${h.getName(f&65535)}`} for ${h.getName(a)} @ ${i}${c==t?"":", split"})`);if(u)return!0;else if(c.pos>i)e.push(c);else s.push(c)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return C(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],l=e[(r<<1)+1],f=p?this.stackID(n)+" -> ":"";if(n.deadEnd){if(h)continue;if(h=!0,n.restart(),p)console.log(f+this.stackID(n)+" (restarted)");if(this.advanceFully(n,s))continue}let a=n.split(),d=f;for(let u=0;u<10&&a.forceReduce();u++){if(p)console.log(d+this.stackID(a)+" (via force-reduce)");if(this.advanceFully(a,s))break;if(p)d=this.stackID(a)+" -> "}for(let u of n.recoverByInsert(o)){if(p)console.log(f+this.stackID(u)+" (via recover-insert)");this.advanceFully(u,s)}if(this.stream.end>n.pos){if(l==n.pos)l++,o=0;if(n.recoverByDelete(o,l),p)console.log(f+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`);C(n,s)}else if(!i||i.score<a.score)i=a}return i}stackToTree(t){return t.close(),V.build({buffer:S.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(v||(v=new WeakMap)).get(t);if(!e)v.set(t,e=String.fromCodePoint(this.nextStackID++));return e+t}}function C(t,e){for(let s=0;s<e.length;s++){let i=e[s];if(i.pos==t.pos&&i.sameState(t)){if(e[s].score<t.score)e[s]=t;return}}e.push(t)}class E{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}var A=(t)=>t;class Ce{constructor(t){this.start=t.start,this.shift=t.shift||A,this.reduce=t.reduce||A,this.reuse=t.reuse||A,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class j extends Pt{constructor(t){super();if(this.wrappers=[],t.version!=14)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map((n)=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,l){i[n].push([o,o.deserialize(String(l))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];if(typeof o=="string")o=Q[o];for(let l=1;l<n.length;){let f=n[l++];if(f>=0)h(f,o,n[l++]);else{let a=n[l+-f];for(let d=-f;d>0;d--)h(n[l++],o,a);l++}}}if(this.nodeSet=new St(e.map((n,o)=>ue.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources)this.nodeSet=this.nodeSet.extend(...t.propSources);this.strict=!1,this.bufferLength=Yo;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(z),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map((n)=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new M(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let l=h+(r>>1);h<l;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else if(s[h+1]==2)return k(s,h+2);else break;if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,(s)=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];if(!e.some((h,r)=>r&1&&h==i))e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(j.prototype),this);if(t.props)e.nodeSet=this.nodeSet.extend(...t.props);if(t.top){let s=this.topRules[t.top];if(!s)throw RangeError(`Invalid top rule name ${t.top}`);e.top=s}if(t.tokenizers)e.tokenizers=this.tokenizers.map((s)=>{let i=t.tokenizers.find((h)=>h.from==s);return i?i.to:s});if(t.specializers)e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find((n)=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=z(r),r});if(t.contextTracker)e.context=t.contextTracker;if(t.dialect)e.dialect=this.parseDialect(t.dialect);if(t.strict!=null)e.strict=t.strict;if(t.wrap)e.wrappers=e.wrappers.concat(t.wrap);if(t.bufferLength!=null)e.bufferLength=t.bufferLength;return e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);if(r>=0)s[r]=!0}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new E(t,s,i)}static deserialize(t){return new j(t)}}function k(t,e){return t[e]|t[e+1]<<16}function H(t){let e=null;for(let s of t){let i=s.p.stoppedAt;if((s.pos==s.p.stream.end||i!=null&&s.pos>i)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.score<s.score))e=s}return e}function z(t){if(t.external){let e=t.extend?1:0;return(s,i)=>t.external(s,i)<<1|e}return t.get}
2
+ export{pt,L,Ce,j};
@@ -1,4 +1,4 @@
1
- import{e,n}from"./chunk-index-24cggw6k.js";var r=!1;function a(){if(r||typeof document>"u")return;if(r=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let o=new CSSStyleSheet;o.replaceSync(`
1
+ import{e,n}from"./chunk-index-s356ybxk.js";var r=!1;function a(){if(r||typeof document>"u")return;if(r=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let o=new CSSStyleSheet;o.replaceSync(`
2
2
  /* One choice of how to write, in the composer's column over the bar, wherever the pane is wide. */
3
3
  .mode-toggle {
4
4
  display: inline-flex;
@@ -134,5 +134,5 @@ import{e,n}from"./chunk-index-24cggw6k.js";var r=!1;function a(){if(r||typeof do
134
134
  background: var(--bg);
135
135
  transform: translateX(0.9rem);
136
136
  }
137
- `,document.head.append(t)}a();function Ir(t){return n("button",{type:"button",role:"switch","aria-checked":t.on,className:"mode-toggle",disabled:t.locked!==void 0,title:t.locked,onClick:()=>t.onChange(!t.on),children:[e("span",{className:"mode-toggle-track","aria-hidden":"true"}),t.label]})}
138
- export{Ir};
137
+ `,document.head.append(t)}a();function Br(t){return n("button",{type:"button",role:"switch","aria-checked":t.on,className:"mode-toggle",disabled:t.locked!==void 0,title:t.locked,onClick:()=>t.onChange(!t.on),children:[e("span",{className:"mode-toggle-track","aria-hidden":"true"}),t.label]})}
138
+ export{Br};
@@ -1,4 +1,4 @@
1
- import{r,e}from"./chunk-index-24cggw6k.js";var d=!1;function at(){if(d||typeof document>"u")return;if(d=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let t=new CSSStyleSheet;t.replaceSync(`
1
+ import{r,e}from"./chunk-index-s356ybxk.js";var d=!1;function ct(){if(d||typeof document>"u")return;if(d=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let t=new CSSStyleSheet;t.replaceSync(`
2
2
  .hpic {
3
3
  flex: none;
4
4
  display: inline-grid;
@@ -964,5 +964,5 @@ import{r,e}from"./chunk-index-24cggw6k.js";var d=!1;function at(){if(d||typeof d
964
964
  right: -1px;
965
965
  box-shadow: 0 0 0 2px var(--surface);
966
966
  }
967
- `,document.head.append(a)}at();function p(a){if(!a)return;if("file"in a)return`api/files/${encodeURIComponent(a.file)}`;if("principal"in a)return`api/people/${encodeURIComponent(a.principal)}/picture`;return}function f(a){let t=a.trim().split(/\s+/).filter(Boolean),o=[...t[0]??"?"][0]??"?";if(/[\u3400-\u9fff]/.test(o))return o;let i=t.length>1?[...t.at(-1)??""][0]:void 0;return`${o}${i??""}`.toUpperCase()}function h(a){let t=0;for(let o of a)t=(t*31+(o.codePointAt(0)??0))%360;return`hsl(${t} 42% 40%)`}function lt(a){let[t,o]=r(!1),i=a.size??32,n=t?void 0:p(a.picture),s=a.picture&&"initials"in a.picture?a.picture:void 0,l=s?.initials??f(a.name),c=s?.color??h(a.name);return e("span",{className:"hpic",style:{width:i,height:i,fontSize:Math.round(i*0.4),...n?{}:{background:c}},children:n?e("img",{src:n,alt:"",loading:"lazy",decoding:"async",onError:()=>o(!0)}):e("span",{"aria-hidden":"true",children:l})})}
968
- export{at,lt};
967
+ `,document.head.append(a)}ct();function p(a){if(!a)return;if("file"in a)return`api/files/${encodeURIComponent(a.file)}`;if("principal"in a)return`api/people/${encodeURIComponent(a.principal)}/picture`;return}function f(a){let t=a.trim().split(/\s+/).filter(Boolean),o=[...t[0]??"?"][0]??"?";if(/[\u3400-\u9fff]/.test(o))return o;let i=t.length>1?[...t.at(-1)??""][0]:void 0;return`${o}${i??""}`.toUpperCase()}function h(a){let t=0;for(let o of a)t=(t*31+(o.codePointAt(0)??0))%360;return`hsl(${t} 42% 40%)`}function ut(a){let[t,o]=r(!1),i=a.size??32,n=t?void 0:p(a.picture),s=a.picture&&"initials"in a.picture?a.picture:void 0,l=s?.initials??f(a.name),c=s?.color??h(a.name);return e("span",{className:"hpic",style:{width:i,height:i,fontSize:Math.round(i*0.4),...n?{}:{background:c}},children:n?e("img",{src:n,alt:"",loading:"lazy",decoding:"async",onError:()=>o(!0)}):e("span",{"aria-hidden":"true",children:l})})}
968
+ export{ct,ut};
@@ -0,0 +1 @@
1
+ import{Je,co,tn,uo,W,ae,Xi,fo,va,xa,ho,Sa,wa,ka,Cn}from"./chunk-index-50syrmaq.js";export{tn as AVATAR_STATES,W as CATALOG,Je as CLASS_IDS,ae as CharacterError,xa as EAST_ASIAN_SKINS,co as EXPRESSIONS,uo as STATE_EXPRESSION,wa as accentOf,ka as characterCss,ho as checkSkins,Sa as composeSvg,fo as parseCharacter,va as readCharacter,Xi as resolveCharacter,Cn as suggestCharacter};
@@ -0,0 +1,2 @@
1
+ import{e}from"./chunk-index-s356ybxk.js";import{C}from"./chunk-index-e8535c4h.js";function H(t){return e(C,{open:t.open,title:t.title,onClose:t.onClose,...t.size&&t.size!=="default"?{size:t.size}:{},children:t.children})}
2
+ export{H};
@@ -0,0 +1,2 @@
1
+ import{oi}from"./chunk-index-hsc9yz2x.js";var f=12;function m(r,e){let t=r.find((u)=>e>=u.top&&e<=u.bottom);if(t)return t;let n,o=f+1;for(let u of r){let i=e<u.top?u.top-e:e-u.bottom;if(i<o)n=u,o=i}return n}function d(r,e,t){for(let n of r)if(n.key!==e&&n.top+n.height/2>t)return n.key;return null}function As(r,e,t){let n=m(r,t);return n?{zone:n,before:d(n.items,e,t)}:void 0}function $s(r,e,t){let{zone:n,before:o}=t;if(n.kind==="rest")return r.kind==="rest"?void 0:{kind:"unplace"};if(n.kind==="pinned"&&r.kind==="pinned"||n.kind==="folder"&&r.kind==="folder"&&r.folder===n.folder){let i=r.siblings;if(oi(i,e,o).every((s,l)=>s===i[l]))return}return n.kind==="pinned"?{kind:"pin",before:o}:{kind:"folder",folder:n.folder,before:o}}function Ns(r,e,t,n){if(n<e.top-f*3||n>e.bottom+f*3)return;return{before:d(r,t,n)}}function vo(r,e,t,n=0){let o=(r[e]?.height??0)+n;return r.map((u,i)=>{if(i===e)return 0;if(e<t&&i>e&&i<=t)return-o;if(e>t&&i>=t&&i<e)return o;return 0})}function xo(r,e,t){return oi(r,e,t).indexOf(e)}function Ls(r,e,t,n=64,o=18){if(r<e+n)return-Math.min(1,(e+n-r)/n)*o;if(r>t-n)return Math.min(1,(r-(t-n))/n)*o;return 0}var Xs=600;
2
+ export{As,$s,Ns,vo,xo,Ls,Xs};
@@ -0,0 +1,2 @@
1
+ import{M}from"./chunk-index-s356ybxk.js";var e,{emit:o,use:n}=M();function De(i){e=i,o()}function Ui(){if(!e)return;e=void 0,o()}var Ws=()=>n(()=>e);
2
+ export{De,Ui,Ws};
@@ -0,0 +1,2 @@
1
+ import{s,r,l,te}from"./chunk-index-s356ybxk.js";function Se(f,e){let{version:o}=te(),[t,a]=r({data:void 0,error:void 0,subject:e});return s(()=>{let n=!0;return f().then((d)=>{if(n)a({data:d,error:void 0,subject:e})},(d)=>{if(n)a((i)=>({data:i.subject===e?i.data:void 0,error:l(d),subject:e}))}),()=>{n=!1}},[e,o]),t.subject===e?{data:t.data,error:t.error}:{data:void 0,error:void 0}}
2
+ export{Se};
@@ -0,0 +1,2 @@
1
+ import{t,e,n,o}from"./chunk-index-s356ybxk.js";import{Vn}from"./chunk-index-5x3h176v.js";function bi({auth:r}){if(r!=="password"&&r!=="oidc")return null;return e("form",{method:"post",action:"auth/logout",onSubmit:(s)=>{s.preventDefault();let i=s.currentTarget;Vn().catch(()=>{return}).finally(()=>i.submit())},children:e("div",{className:"actions",children:n("button",{type:"submit",className:"secondary",children:[e(o,{name:"logout",size:16}),t("Log out")]})})})}
2
+ export{bi};
@@ -0,0 +1,2 @@
1
+ import{p,s,a,Oe,pr,$i}from"./chunk-index-s356ybxk.js";var D=6,g=()=>(p("sw692nr3"),import("./chunk-drag-sw692nr3.js"));var h=()=>{return},L=0;function Vr(){if(L++===0)window.addEventListener("touchmove",h,{passive:!1});return()=>{if(--L===0)window.removeEventListener("touchmove",h)}}function Yt(T,m){let d=a(m);d.current=m;let E=m!==void 0;s(()=>E?Vr():void 0,[E]);let t=a(void 0),f=a(void 0),c=a(!1),v=(e,n,r)=>T(e).then((i)=>{if(i)Oe({...i,at:n,via:r,source:e})},()=>{return}),y=(e,n,r,i)=>{let u=d.current,M=u?.item(e),P=u?.root(e);if(!u||!M||!P)return!1;return f.current??=g(),f.current.then(({lift:x})=>{if(t.current?.id!==n)return i();x({mode:u.mode,key:u.key,item:M,root:P,pointerId:n,y:r(),open:u.open,done:(l)=>{if(l.type==="tap")i();else if(l.type!=="cancel")u.onDrop(l)}})},i),!0},o=pr((e)=>{let n=()=>v(e.source,e.at,e.via),r=t.current;if(!(e.via==="hold"||e.via==="contextmenu"&&r?.touch)||!r)return void n();if(!y(e.source,r.id,()=>r.y,n))return void n();if(e.via==="contextmenu")c.current=!0});return{...o,onPointerDown(e){if(c.current=!1,t.current={id:e.pointerId,x:e.clientX,y:e.clientY,touch:e.pointerType!=="mouse"},e.pointerType!=="mouse"&&$i(e.clientX,window.innerWidth))t.current=void 0;else if(d.current)f.current??=g();o.onPointerDown(e)},onPointerMove(e){let n=t.current;if(n?.id===e.pointerId){if(e.pointerType==="mouse"&&e.buttons===1&&!c.current&&d.current&&Math.hypot(e.clientX-n.x,e.clientY-n.y)>D)c.current=y(e.currentTarget,e.pointerId,()=>e.clientY,()=>{return});n.y=e.clientY}o.onPointerMove(e)},onPointerUp(e){if(t.current?.id===e.pointerId)t.current=void 0;o.onPointerUp(e)},onPointerCancel(e){if(t.current?.id===e.pointerId)t.current=void 0;o.onPointerCancel(e)},onContextMenu:o.onContextMenu,onKeyDown:o.onKeyDown,onClickCapture(e){if(c.current){c.current=!1,e.preventDefault(),e.stopPropagation();return}o.onClickCapture(e)},onDragStart(e){e.preventDefault()}}}
2
+ export{Vr,Yt};
@@ -0,0 +1,2 @@
1
+ import{p}from"./chunk-index-s356ybxk.js";var e=()=>(p("rw5myg2t"),import("./chunk-layout-actions-rw5myg2t.js")),wi=(r)=>({mode:"room",key:r,item:(o)=>o.closest("[data-drop-item]"),root:(o)=>o.closest("[data-drop-root]"),onDrop:(o)=>{if(o.type==="room")e().then((t)=>t.dropRoom(r,o.drop))},open:(o)=>void (p("rb1b069h"),import("./chunk-folds-rb1b069h.js")).then((t)=>t.expandFolder(o))});
2
+ export{wi};
@@ -1,2 +1,2 @@
1
- import{E,o,a,t,e,n,s,Se}from"./chunk-index-24cggw6k.js";var S=96,T=0.6,N=220,w=()=>typeof matchMedia==="function"&&matchMedia("(max-width: 719px)").matches;function R(i){let u=a(null),g=a(void 0),{open:h,onClose:P}=i,b=a(i.restoreFocus);b.current=i.restoreFocus;let m=a(!1),p=a(!1),M=E(()=>{let r=u.current;if(r?.open)r.close();if(b.current?.()?.focus(),m.current=!1,p.current)p.current=!1;else P()},[P]),d=E(()=>{let r=u.current;if(!r||m.current)return;if(m.current=!0,Se()){M();return}r.dataset.state="closing",r.style.removeProperty("transform"),setTimeout(M,N)},[M]);o(()=>{let r=u.current;if(!r)return;if(h&&!r.open)r.dataset.state="opening",r.showModal(),requestAnimationFrame(()=>requestAnimationFrame(()=>{r.dataset.state="open"}));if(!h&&r.open&&!m.current)p.current=!0,d()},[h,d]);let v=(r)=>{if(!w())return;if(r.target instanceof Element&&r.target.closest("button, a"))return;g.current={y:r.clientY,at:r.timeStamp,dy:0},r.currentTarget.setPointerCapture(r.pointerId);let c=u.current;if(c)c.dataset.dragging="true"},C=(r)=>{let c=g.current,l=u.current;if(!c||!l)return;let f=Math.max(0,r.clientY-c.y);c.dy=f,l.style.transform=`translate3d(0, ${f}px, 0)`,l.style.setProperty("--sheet-progress",String(1-Math.min(1,f/400)))},y=(r)=>{let c=g.current,l=u.current;if(g.current=void 0,!c||!l)return;delete l.dataset.dragging;let f=c.dy/Math.max(1,r.timeStamp-c.at);if(c.dy>S||f>T){d();return}l.style.removeProperty("transform"),l.style.removeProperty("--sheet-progress")};return n("dialog",{ref:u,className:i.variant==="palette"?"sheet palette":i.size==="wide"?"sheet wide":i.size==="full"?"sheet full":"sheet","aria-label":i.title,onCancel:(r)=>{if(r.target!==r.currentTarget)return;r.preventDefault(),d()},onClick:(r)=>{if(r.target===r.currentTarget)d()},onClose:(r)=>{if(r.target!==r.currentTarget)return;if(!m.current)P()},children:[e("div",{className:"sheet-grab",onPointerDown:v,onPointerMove:C,onPointerUp:y,onPointerCancel:y,children:e("span",{className:"sheet-handle"})}),i.variant==="palette"?null:n("div",{className:"sheet-head",onPointerDown:v,onPointerMove:C,onPointerUp:y,onPointerCancel:y,children:[e("h2",{title:i.title,children:i.title}),e("button",{type:"button",className:"icon-button","aria-label":t("Close"),onClick:d,children:e(s,{name:"close"})})]}),e("div",{className:"sheet-body",children:h?i.children:null})]})}
2
- export{R};
1
+ import{E,s,a,t,e,n,o,we}from"./chunk-index-s356ybxk.js";var T=96,N=0.6,w=220,D=()=>typeof matchMedia==="function"&&matchMedia("(max-width: 719px)").matches;function C(i){let u=a(null),g=a(void 0),{open:h,onClose:P}=i,b=a(i.restoreFocus);b.current=i.restoreFocus;let m=a(!1),p=a(!1),M=E(()=>{let r=u.current;if(r?.open)r.close();if(b.current?.()?.focus(),m.current=!1,p.current)p.current=!1;else P()},[P]),d=E(()=>{let r=u.current;if(!r||m.current)return;if(m.current=!0,we()){M();return}r.dataset.state="closing",r.style.removeProperty("transform"),setTimeout(M,w)},[M]);s(()=>{let r=u.current;if(!r)return;if(h&&!r.open)r.dataset.state="opening",r.showModal(),requestAnimationFrame(()=>requestAnimationFrame(()=>{r.dataset.state="open"}));if(!h&&r.open&&!m.current)p.current=!0,d()},[h,d]);let v=(r)=>{if(!D())return;if(r.target instanceof Element&&r.target.closest("button, a"))return;g.current={y:r.clientY,at:r.timeStamp,dy:0},r.currentTarget.setPointerCapture(r.pointerId);let c=u.current;if(c)c.dataset.dragging="true"},S=(r)=>{let c=g.current,l=u.current;if(!c||!l)return;let f=Math.max(0,r.clientY-c.y);c.dy=f,l.style.transform=`translate3d(0, ${f}px, 0)`,l.style.setProperty("--sheet-progress",String(1-Math.min(1,f/400)))},y=(r)=>{let c=g.current,l=u.current;if(g.current=void 0,!c||!l)return;delete l.dataset.dragging;let f=c.dy/Math.max(1,r.timeStamp-c.at);if(c.dy>T||f>N){d();return}l.style.removeProperty("transform"),l.style.removeProperty("--sheet-progress")};return n("dialog",{ref:u,className:i.variant==="palette"?"sheet palette":i.size==="wide"?"sheet wide":i.size==="full"?"sheet full":"sheet","aria-label":i.title,onCancel:(r)=>{if(r.target!==r.currentTarget)return;r.preventDefault(),d()},onClick:(r)=>{if(r.target===r.currentTarget)d()},onClose:(r)=>{if(r.target!==r.currentTarget)return;if(!m.current)P()},children:[e("div",{className:"sheet-grab",onPointerDown:v,onPointerMove:S,onPointerUp:y,onPointerCancel:y,children:e("span",{className:"sheet-handle"})}),i.variant==="palette"?null:n("div",{className:"sheet-head",onPointerDown:v,onPointerMove:S,onPointerUp:y,onPointerCancel:y,children:[e("h2",{title:i.title,children:i.title}),e("button",{type:"button",className:"icon-button","aria-label":t("Close"),onClick:d,children:e(o,{name:"close"})})]}),e("div",{className:"sheet-body",children:h?i.children:null})]})}
2
+ export{C};
@@ -1,2 +1,2 @@
1
- import{h}from"./chunk-index-24cggw6k.js";var pe={pushTest:()=>h("push/test",{method:"POST"}),pushPrefs:()=>h("push/prefs"),setPushPrefs:(e)=>h("push/prefs",{method:"PUT",body:JSON.stringify({quiet:e})}),notices:()=>h("notices"),ackNotice:(e)=>h(`notices/${encodeURIComponent(e)}/ack`,{method:"POST"}),onboarding:()=>h("onboarding"),waive:(e)=>h(`onboarding/${encodeURIComponent(e)}/waive`,{method:"POST"}),profile:()=>h("profile"),chooseSource:(e)=>h("profile/source",{method:"PUT",body:JSON.stringify({provider:e})}),links:()=>h("links"),issueLink:(e)=>h(`links/${encodeURIComponent(e)}/issue`,{method:"POST"}),confirmLink:(e,i)=>h(`links/${encodeURIComponent(e)}/confirm`,{method:"POST",body:JSON.stringify({request:i})}),cancelLink:(e)=>h(`links/${encodeURIComponent(e)}/cancel`,{method:"POST"}),unlink:(e)=>h(`links/${encodeURIComponent(e)}`,{method:"DELETE"})};
1
+ import{h}from"./chunk-index-s356ybxk.js";var pe={pushTest:()=>h("push/test",{method:"POST"}),pushPrefs:()=>h("push/prefs"),setPushPrefs:(e)=>h("push/prefs",{method:"PUT",body:JSON.stringify({quiet:e})}),notices:()=>h("notices"),ackNotice:(e)=>h(`notices/${encodeURIComponent(e)}/ack`,{method:"POST"}),onboarding:()=>h("onboarding"),waive:(e)=>h(`onboarding/${encodeURIComponent(e)}/waive`,{method:"POST"}),profile:()=>h("profile"),chooseSource:(e)=>h("profile/source",{method:"PUT",body:JSON.stringify({provider:e})}),links:()=>h("links"),issueLink:(e)=>h(`links/${encodeURIComponent(e)}/issue`,{method:"POST"}),confirmLink:(e,i)=>h(`links/${encodeURIComponent(e)}/confirm`,{method:"POST",body:JSON.stringify({request:i})}),cancelLink:(e)=>h(`links/${encodeURIComponent(e)}/cancel`,{method:"POST"}),unlink:(e)=>h(`links/${encodeURIComponent(e)}`,{method:"DELETE"})};
2
2
  export{pe};
@@ -0,0 +1,2 @@
1
+ import{E,s,r,l,te}from"./chunk-index-s356ybxk.js";function un(n){let{version:i}=te(),[a,u]=r(0),[f,d]=r(),[c,o]=r();s(()=>{let e=!0;return n().then((t)=>{if(!e)return;d(t),o(void 0)},(t)=>{if(e)o(l(t))}),()=>{e=!1}},[a,i]);let m=E(()=>u((e)=>e+1),[]);return{data:f,error:c,reload:m}}
2
+ export{un};
@@ -0,0 +1,2 @@
1
+ import{M}from"./chunk-index-s356ybxk.js";var o=!1,{emit:e,use:t}=M();function Jo(){if(o)return;o=!0,e()}function pi(){if(!o)return;o=!1,e()}var es=()=>t(()=>o),ts=()=>o,ns=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);
2
+ export{Jo,pi,es,ts,ns};
@@ -1,2 +1,2 @@
1
- import{O,y,l,f}from"./chunk-index-24cggw6k.js";async function nn(e,r){try{let t=await y.setMute(e,r);return O.dispatch({type:"room_muted",room:e,muted:t.muted}),!0}catch(t){return f(l(t),"danger"),!1}}
2
- export{nn};
1
+ import{O,y,l,f}from"./chunk-index-s356ybxk.js";async function on(e,r){try{let t=await y.setMute(e,r);return O.dispatch({type:"room_muted",room:e,muted:t.muted}),!0}catch(t){return f(l(t),"danger"),!1}}
2
+ export{on};
@@ -0,0 +1,2 @@
1
+ import{O,h,l,f}from"./chunk-index-s356ybxk.js";import{$s}from"./chunk-index-ar1x9fhw.js";import{zo,Nn}from"./chunk-index-kvztbfqj.js";import{tt,pa,ma,ga,Oa,ya}from"./chunk-index-hsc9yz2x.js";import{Ut}from"./chunk-index-6ycrvwzs.js";var n={createFolder:(e)=>h("folders",{method:"POST",body:JSON.stringify({name:e})}),changeFolder:(e,t)=>h(`folders/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),deleteFolder:(e)=>h(`folders/${encodeURIComponent(e)}`,{method:"DELETE"}),muteFolder:(e,t)=>h(`folders/${encodeURIComponent(e)}/mute`,{method:"PUT",body:JSON.stringify({muted:t})}),placeRoom:(e,t,o)=>h(`rooms/${encodeURIComponent(e)}/folder`,{method:"PUT",body:JSON.stringify({folder:t,before:o})}),pinRoom:(e,t,o)=>h(`rooms/${encodeURIComponent(e)}/pin`,{method:"PUT",body:JSON.stringify({pinned:t,before:o})})};var a=(e)=>f(e,"danger"),d=(e)=>O.dispatch({type:"layout_loaded",pins:e.pins,folders:e.folders});async function i(e,t,o=a){let r=zo();try{d(e(r))}catch{}try{let s=await t();return d(s),s}catch(s){d(r),O.dispatch({type:"changed"}),o(l(s));return}}var Es=(e,t,o=null)=>i((r)=>ya(r,e,t,o),()=>n.pinRoom(e,t,o)),nn=(e,t,o=null)=>i((r)=>Oa(r,e,t,o),()=>n.placeRoom(e,t,o));function Qr(e,t){let o=Ut(Nn(),e);if(o.kind==="rest")return;let r=tt(o.siblings,e,t);if(!r)return;return o.kind==="pinned"?Es(e,!0,r.before):nn(e,o.folder,r.before)}async function Oo(e,t=a){try{let o=await n.createFolder(e);return d(o),o.folders.at(-1)?.id}catch(o){t(l(o));return}}var yo=(e,t,o)=>i((r)=>pa(r,e,t),()=>n.changeFolder(e,{name:t}),o),_a=(e,t)=>i((o)=>ma(o,e,t),()=>n.changeFolder(e,{before:t}));function Ma(e,t){let o=tt(zo().folders.map((r)=>r.id),e,t);return o?_a(e,o.before):void 0}var bo=(e,t)=>i((o)=>ga(o,e),()=>n.deleteFolder(e),t);async function Ra(e,t){try{let o=await n.muteFolder(e,t);for(let r of o.rooms)O.dispatch({type:"room_muted",room:r,muted:o.muted});return!0}catch(o){return a(l(o)),!1}}function Ca(e,t){let o=$s(Ut(Nn(),e),e,t);if(!o)return;if(o.kind==="pin")return Es(e,!0,o.before);if(o.kind==="folder")return nn(e,o.folder,o.before);return nn(e,null)}
2
+ export{Es,nn,Qr,Oo,yo,_a,Ma,bo,Ra,Ca};
@@ -0,0 +1,2 @@
1
+ import{rt,u}from"./chunk-index-s356ybxk.js";import{An}from"./chunk-index-nncy9wxw.js";var rn=An,ni=2,l="rt-table-council",i,s=!1,f=new Set;function c(){try{return globalThis.localStorage?.getItem(l)??void 0}catch{return}}function g(){if(!s)i=c(),s=!0;return i}function ko(n){i=n,s=!0;try{globalThis.localStorage?.setItem(l,n)}catch{}for(let e of f)e()}var a=(n)=>(f.add(n),()=>f.delete(n)),Us=()=>rt(a,g,()=>{return});function Di(){return u((n)=>n.order.map((e)=>n.rooms[e]?.view).filter((e)=>e!==void 0&&e.kind==="group"),"councils")}function Vs(n,e,r){let t=(o)=>o===void 0?void 0:n.find((d)=>d.key===o||d.name===o);return t(r)??t(e)??n[0]}function qs(n){return[...n].filter((e)=>e.muted!==!0&&!e.helper).sort((e,r)=>Number(r.home)-Number(e.home)).slice(0,rn).map((e)=>e.name)}function Bs(n,e,r=rn){if(n.includes(e))return n.filter((t)=>t!==e);return n.length>=r?[...n]:[...n,e]}function Fs(n,e){return n.filter(e).slice(0,rn)}function Gs(n,e,r){if(e!==void 0&&n.includes(e))return e;if(r!==void 0&&n.includes(r))return r;return n[0]??""}function Zs(n,e){let r=n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,28)||"council";if(!e.has(r))return r;for(let t=2;;t+=1){let o=`${r}-${t}`;if(!e.has(o))return o}}
2
+ export{rn,ni,ko,Us,Di,Vs,qs,Bs,Fs,Gs,Zs};
@@ -1,2 +1,2 @@
1
- import{h}from"./chunk-index-24cggw6k.js";var t=(i,l,o)=>h(i,{method:l,...o===void 0?{}:{body:JSON.stringify(o)}}),r=(i)=>encodeURIComponent(i),de={agentPromptHistory:(i)=>h(`agents/${r(i)}/prompt-history`),prompts:()=>h("prompts"),prompt:(i)=>h(`prompts/${r(i)}`),savePrompt:(i,l)=>t(`prompts/${r(i)}`,"PUT",l),revertPrompt:(i,l)=>t(`prompts/${r(i)}/revert`,"POST",l),promptHistory:(i)=>h(`prompts/${r(i)}/history`),skillDocument:(i)=>h(`skill-docs/${r(i)}`),saveSkillDocument:(i,l)=>t(`skill-docs/${r(i)}`,"PUT",l),createSkillDocument:(i)=>t("skill-docs","POST",i),deleteSkillDocument:(i)=>t(`skill-docs/${r(i)}`,"DELETE"),skillHistory:(i)=>h(`skill-docs/${r(i)}/history`),skillGroups:()=>h("skill-groups"),saveSkillGroup:(i,l)=>t(`skill-groups/${r(i)}`,"PUT",l),deleteSkillGroup:(i)=>t(`skill-groups/${r(i)}`,"DELETE"),applySkillGroup:(i,l,o=!0)=>t(`skill-groups/${r(i)}/apply`,"POST",{agent:l,on:o})};
1
+ import{h}from"./chunk-index-s356ybxk.js";var t=(i,l,o)=>h(i,{method:l,...o===void 0?{}:{body:JSON.stringify(o)}}),r=(i)=>encodeURIComponent(i),de={agentPromptHistory:(i)=>h(`agents/${r(i)}/prompt-history`),prompts:()=>h("prompts"),prompt:(i)=>h(`prompts/${r(i)}`),savePrompt:(i,l)=>t(`prompts/${r(i)}`,"PUT",l),revertPrompt:(i,l)=>t(`prompts/${r(i)}/revert`,"POST",l),promptHistory:(i)=>h(`prompts/${r(i)}/history`),skillDocument:(i)=>h(`skill-docs/${r(i)}`),saveSkillDocument:(i,l)=>t(`skill-docs/${r(i)}`,"PUT",l),createSkillDocument:(i)=>t("skill-docs","POST",i),deleteSkillDocument:(i)=>t(`skill-docs/${r(i)}`,"DELETE"),skillHistory:(i)=>h(`skill-docs/${r(i)}/history`),skillGroups:()=>h("skill-groups"),saveSkillGroup:(i,l)=>t(`skill-groups/${r(i)}`,"PUT",l),deleteSkillGroup:(i)=>t(`skill-groups/${r(i)}`,"DELETE"),applySkillGroup:(i,l,o=!0)=>t(`skill-groups/${r(i)}/apply`,"POST",{agent:l,on:o})};
2
2
  export{de};
@@ -0,0 +1,2 @@
1
+ var ha=40;class l extends Error{code;constructor(e){super(e);this.code=e;this.name="LayoutError"}}function oi(e,n,r){if(r===n&&e.includes(n))return[...e];let t=e.filter((o)=>o!==n),i=r===null||r===void 0?-1:t.indexOf(r);if(i<0)return[...t,n];return[...t.slice(0,i),n,...t.slice(i)]}function tt(e,n,r){let t=e.indexOf(n);if(t<0)return;if(r==="up")return t===0?void 0:{before:e[t-1]??null};return t===e.length-1?void 0:{before:e[t+2]??null}}function Io(e){let n=e.trim(),r=Array.from(n).length;if(r<1||r>40||/\p{Cc}/u.test(n))throw new l("bad-name");return n}var c=(e,n)=>e.toLocaleLowerCase()===n.toLocaleLowerCase();function u(e,n){let r=e.folders.findIndex((t)=>t.id===n);if(r<0)throw new l("no-folder");return r}var f=(e,n)=>({pins:e.pins,folders:n});function pa(e,n,r){let t=u(e,n),i=Io(r);if(e.folders.some((o)=>o.id!==n&&c(o.name,i)))throw new l("duplicate");return f(e,e.folders.map((o,s)=>s===t?{...o,name:i}:o))}function ma(e,n,r){let t=u(e,n),i=e.folders[t],o=oi(e.folders.map((s)=>s.id),n,r);return f(e,o.map((s)=>s===n?i:e.folders.find((a)=>a.id===s)))}function ga(e,n){return u(e,n),f(e,e.folders.filter((r)=>r.id!==n))}var d=(e,n)=>({pins:e.pins.filter((r)=>r!==n),folders:e.folders.map((r)=>r.rooms.includes(n)?{...r,rooms:r.rooms.filter((t)=>t!==n)}:r)});function Oa(e,n,r,t){if(r!==null)u(e,r);let i=d(e,n);if(r===null)return i;return f(i,i.folders.map((o)=>o.id===r?{...o,rooms:oi(o.rooms,n,t)}:o))}function ya(e,n,r,t){let i=d(e,n);if(!r)return i;return{pins:oi(e.pins.filter((o)=>o!==n),n,t),folders:i.folders}}
2
+ export{ha,oi,tt,Io,pa,ma,ga,Oa,ya};
@@ -1,2 +1,2 @@
1
- import{c,b,ri,F,i,ne,I,K,J,ie,$n}from"./chunk-index-gdh7wsd5.js";import{N,Me,j}from"./chunk-index-1kb8tv4v.js";import{ti,ni}from"./chunk-index-53fwc7sc.js";import{ct,Sr,wr,kr,Dt}from"./chunk-index-w17wgjby.js";var we=55,ve=1,Xe=56,$e=2,qe=57,_e=3,D=4,Ce=5,Q=6,ae=7,le=8,re=9,se=10,ke=11,Qe=12,Ae=13,q=58,Ye=14,Re=15,W=59,oe=21,Ee=23,ue=24,Ze=25,C=27,Oe=28,Be=29,ze=32,De=35,We=37,Ne=38,Ge=0,Ie=1,je={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Ue={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},G={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Le(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var U=null,L=null,H=0;function k(e,a){let r=e.pos+a;if(H==r&&L==e)return U;let l=e.peek(a),t="";for(;;){if(!Le(l))break;t+=String.fromCharCode(l),l=e.peek(++a)}return L=e,H=r,U=t?t.toLowerCase():l==Fe||l==He?void 0:null}var de=60,v=62,A=47,Fe=63,He=33,Ke=45;function ee(e,a){this.name=e,this.parent=a}var Je=[Q,se,ae,le,re],et=new Me({start:null,shift(e,a,r,l){return Je.indexOf(a)>-1?new ee(k(l,1)||"",e):e},reduce(e,a){return a==oe&&e?e.parent:e},reuse(e,a,r,l){let t=a.type.id;return t==Q||t==We?new ee(k(l,1)||"",e):e},strict:!1}),tt=new N((e,a)=>{if(e.next!=de){if(e.next<0&&a.context)e.acceptToken(q);return}e.advance();let r=e.next==A;if(r)e.advance();let l=k(e,0);if(l===void 0)return;if(!l)return e.acceptToken(r?Re:Ye);let t=a.context?a.context.name:null;if(r){if(l==t)return e.acceptToken(ke);if(t&&Ue[t])return e.acceptToken(q,-2);if(a.dialectEnabled(Ge))return e.acceptToken(Qe);for(let s=a.context;s;s=s.parent)if(s.name==l)return;e.acceptToken(Ae)}else{if(l=="script")return e.acceptToken(ae);if(l=="style")return e.acceptToken(le);if(l=="textarea")return e.acceptToken(re);if(je.hasOwnProperty(l))return e.acceptToken(se);if(t&&G[t]&&G[t][l])e.acceptToken(q,-1);else e.acceptToken(Q)}},{contextual:!0}),at=new N((e)=>{for(let a=0,r=0;;r++){if(e.next<0){if(r)e.acceptToken(W);break}if(e.next==Ke)a++;else if(e.next==v&&a>=2){if(r>=3)e.acceptToken(W,-2);break}else a=0;e.advance()}});function lt(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}var rt=new N((e,a)=>{if(e.next==A&&e.peek(1)==v){let r=a.dialectEnabled(Ie)||lt(a.context);e.acceptToken(r?Ce:D,2)}else if(e.next==v)e.acceptToken(D,1)});function Y(e,a,r){let l=2+e.length;return new N((t)=>{for(let s=0,o=0,u=0;;u++){if(t.next<0){if(u)t.acceptToken(a);break}if(s==0&&t.next==de||s==1&&t.next==A||s>=2&&s<l&&t.next==e.charCodeAt(s-2))s++,o++;else if(s==l&&t.next==v){if(u>o)t.acceptToken(a,-o);else t.acceptToken(r,-(o-2));break}else if((t.next==10||t.next==13)&&u){t.acceptToken(a,1);break}else s=o=0;t.advance()}})}var nt=Y("script",we,ve),st=Y("style",Xe,$e),ot=Y("textarea",qe,_e),it=F({"Text RawText IncompleteTag IncompleteCloseTag":i.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i.angleBracket,TagName:i.tagName,"MismatchedCloseTag/TagName":[i.tagName,i.invalid],AttributeName:i.attributeName,"AttributeValue UnquotedAttributeValue":i.attributeValue,Is:i.definitionOperator,"EntityReference CharacterReference":i.character,Comment:i.blockComment,ProcessingInst:i.processingInstruction,DoctypeDecl:i.documentMeta}),pe=j.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ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pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:et,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[it],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;: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wx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[nt,st,ot,rt,tt,at,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function ce(e,a){let r=Object.create(null);for(let l of e.getChildren(ue)){let t=l.getChild(Ze),s=l.getChild(C)||l.getChild(Oe);if(t)r[a.read(t.from,t.to)]=!s?"":s.type.id==C?a.read(s.from+1,s.to-1):a.read(s.from,s.to)}return r}function te(e,a){let r=e.getChild(Ee);return r?a.read(r.from,r.to):" "}function _(e,a,r){let l;for(let t of r)if(!t.attrs||t.attrs(l||(l=ce(e.node.parent.firstChild,a))))return{parser:t.parser,bracketed:!0};return null}function M(e=[],a=[]){let r=[],l=[],t=[],s=[];for(let u of e)(u.tag=="script"?r:u.tag=="style"?l:u.tag=="textarea"?t:s).push(u);let o=a.length?Object.create(null):null;for(let u of a)(o[u.name]||(o[u.name]=[])).push(u);return ri((u,d)=>{let S=u.type.id;if(S==Be)return _(u,d,r);if(S==ze)return _(u,d,l);if(S==De)return _(u,d,t);if(S==oe&&s.length){let g=u.node,O=g.firstChild,m=O&&te(O,d),f;if(m){for(let p of s)if(p.tag==m&&(!p.attrs||p.attrs(f||(f=ce(O,d))))){let P=g.lastChild,T=P.type.id==Ne?P.from:g.to;if(T>O.to)return{parser:p.parser,overlay:[{from:O.to,to:T}]}}}}if(o&&S==ue){let g=u.node,O;if(O=g.firstChild){let m=o[d.read(O.from,O.to)];if(m)for(let f of m){if(f.tagName&&f.tagName!=te(g.parent,d))continue;let p=g.lastChild;if(p.type.id==C){let P=p.from+1,T=p.lastChild,z=p.to-(T&&T.isError?0:1);if(z>P)return{parser:f.parser,overlay:[{from:P,to:z}],bracketed:!0}}else if(p.type.id==Oe)return{parser:f.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}var w=["_blank","_self","_top","_parent"],R=["ascii","utf-8","utf-16","latin1","latin1"],E=["get","post","put","delete"],Z=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],h=["true","false"],n={},ut={a:{attrs:{href:null,ping:null,type:null,media:null,target:w,hreflang:null}},abbr:n,address:n,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:n,aside:n,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:n,base:{attrs:{href:null,target:w}},bdi:n,bdo:n,blockquote:{attrs:{cite:null}},body:n,br:n,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Z,formmethod:E,formnovalidate:["novalidate"],formtarget:w,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:n,center:n,cite:n,code:n,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:n,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:n,div:n,dl:n,dt:n,em:n,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:n,figure:n,footer:n,form:{attrs:{action:null,name:null,"accept-charset":R,autocomplete:["on","off"],enctype:Z,method:E,novalidate:["novalidate"],target:w}},h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:n,hgroup:n,hr:n,html:{attrs:{manifest:null}},i:n,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Z,formmethod:E,formnovalidate:["novalidate"],formtarget:w,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:n,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:n,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:n,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:R,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:n,noscript:n,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:n,param:{attrs:{name:null,value:null}},pre:n,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:n,rt:n,ruby:n,samp:n,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:R}},section:n,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:n,source:{attrs:{src:null,type:null,media:null}},span:n,strong:n,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:n,summary:n,sup:n,table:n,tbody:n,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:n,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:n,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:n,time:{attrs:{datetime:null}},title:n,tr:n,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:n,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:n},Se={accesskey:null,class:null,contenteditable:h,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:h,autocorrect:h,autocapitalize:h,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":h,"aria-autocomplete":["inline","list","both","none"],"aria-busy":h,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":h,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":h,"aria-hidden":h,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":h,"aria-multiselectable":h,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":h,"aria-relevant":null,"aria-required":h,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},be="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e)=>"on"+e);for(let e of be)Se[e]=null;class V{constructor(e,a){this.tags={...ut,...e},this.globalAttrs={...Se,...a},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}V.default=new V;function x(e,a,r=e.length){if(!a)return"";let l=a.firstChild,t=l&&l.getChild("TagName");return t?e.sliceString(t.from,Math.min(t.to,r)):""}function y(e,a=!1){for(;e;e=e.parent)if(e.name=="Element")if(a)a=!1;else return e;return null}function he(e,a,r){let l=r.tags[x(e,y(a))];return(l===null||l===void 0?void 0:l.children)||r.allTags}function B(e,a){let r=[];for(let l=y(a);l&&!l.type.isTop;l=y(l.parent)){let t=x(e,l);if(t&&l.lastChild.name=="CloseTag")break;if(t&&r.indexOf(t)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to))r.push(t)}return r}var Te=/^[:\-\.\w\u00b7-\uffff]*$/;function me(e,a,r,l,t){let s=/\s*>/.test(e.sliceDoc(t,t+5))?"":">",o=y(r,r.name=="StartTag"||r.name=="TagName");return{from:l,to:t,options:he(e.doc,o,a).map((u)=>({label:u,type:"type"})).concat(B(e.doc,r).map((u,d)=>({label:"/"+u,apply:"/"+u+s,type:"type",boost:99-d}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function fe(e,a,r,l){let t=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:r,to:l,options:B(e.doc,a).map((s,o)=>({label:s,apply:s+t,type:"type",boost:99-o})),validFor:Te}}function Ot(e,a,r,l){let t=[],s=0;for(let o of he(e.doc,r,a))t.push({label:"<"+o,type:"type"});for(let o of B(e.doc,r))t.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:l,to:l,options:t,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function dt(e,a,r,l,t){let s=y(r),o=s?a.tags[x(e.doc,s)]:null,u=o&&o.attrs?Object.keys(o.attrs):[],d=o&&o.globalAttrs===!1?u:u.length?u.concat(a.globalAttrNames):a.globalAttrNames;return{from:l,to:t,options:d.map((S)=>({label:S,type:"property"})),validFor:Te}}function pt(e,a,r,l,t){var s;let o=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),u=[],d=void 0;if(o){let S=e.sliceDoc(o.from,o.to),g=a.globalAttrs[S];if(!g){let O=y(r),m=O?a.tags[x(e.doc,O)]:null;g=(m===null||m===void 0?void 0:m.attrs)&&m.attrs[S]}if(g){let O=e.sliceDoc(l,t).toLowerCase(),m='"',f='"';if(/^['"]/.test(O))d=O[0]=='"'?/^[^"]*$/:/^[^']*$/,m="",f=e.sliceDoc(t,t+1)==O[0]?"":O[0],O=O.slice(1),l++;else d=/^[^\s<>='"]*$/;for(let p of g)u.push({label:p,apply:m+p+f,type:"constant"})}}return{from:l,to:t,options:u,validFor:d}}function Pe(e,a){let{state:r,pos:l}=a,t=I(r).resolveInner(l,-1),s=t.resolve(l);for(let o=l,u;s==t&&(u=t.childBefore(o));){let d=u.lastChild;if(!d||!d.type.isError||d.from<d.to)break;s=t=u,o=d.from}if(t.name=="TagName")return t.parent&&/CloseTag$/.test(t.parent.name)?fe(r,t,t.from,l):me(r,e,t,t.from,l);else if(t.name=="StartTag"||t.name=="IncompleteTag")return me(r,e,t,l,l);else if(t.name=="StartCloseTag"||t.name=="IncompleteCloseTag")return fe(r,t,l,l);else if(t.name=="OpenTag"||t.name=="SelfClosingTag"||t.name=="AttributeName")return dt(r,e,t,t.name=="AttributeName"?t.from:l,l);else if(t.name=="Is"||t.name=="AttributeValue"||t.name=="UnquotedAttributeValue")return pt(r,e,t,t.name=="Is"?l:t.from,l);else if(a.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document"))return Ot(r,e,t,l);else return null}function Ao(e){return Pe(V.default,e)}function mt(e){let{extraTags:a,extraGlobalAttributes:r}=e,l=r||a?new V(a,r):V.default;return(t)=>Pe(l,t)}var ft=ct.parser.configure({top:"SingleExpression"}),xe=[{tag:"script",attrs:(e)=>e.type=="text/typescript"||e.lang=="ts",parser:Sr.parser},{tag:"script",attrs:(e)=>e.type=="text/babel"||e.type=="text/jsx",parser:wr.parser},{tag:"script",attrs:(e)=>e.type=="text/typescript-jsx",parser:kr.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:ft},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:ct.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:ti.parser}],Ve=[{name:"style",parser:ti.parser.configure({top:"Styles"})}].concat(be.map((e)=>({name:e,parser:ct.parser}))),ye=ne.define({name:"html",parser:pe.configure({props:[J.add({Element(e){let a=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+a[0].length)return e.continue();return e.lineIndent(e.node.from)+(a[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let a=null,r;for(let l=e.node;;){let t=l.lastChild;if(!t||t.name!="Element"||t.to!=l.to)break;a=l=t}if(a&&!((r=a.lastChild)&&(r.name=="CloseTag"||r.name=="SelfClosingTag")))return e.lineIndent(a.from)+e.unit;return null}}),ie.add({Element(e){let{firstChild:a,lastChild:r}=e;if(!a||a.name!="OpenTag")return null;return{from:a.to,to:r.name=="CloseTag"?r.from:e.to}}}),$n.add({"OpenTag CloseTag":(e)=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),X=ye.configure({wrap:M(xe,Ve)});function ei(e={}){let a="",r;if(e.matchClosingTags===!1)a="noMatch";if(e.selfClosingTags===!0)a=(a?a+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)r=M((e.nestedLanguages||[]).concat(xe),(e.nestedAttributes||[]).concat(Ve));let l=r?ye.configure({wrap:r,dialect:a}):a?X.configure({dialect:a}):X;return new K(l,[X.data.of({autocomplete:mt(e)}),e.autoCloseTags!==!1?St:[],Dt().support,ni().support])}var ge=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function gt(e,a,r){var l;for(;;){if(((l=a.lastChild)===null||l===void 0?void 0:l.name)!="CloseTag")return!1;let t=a.parent;if(!t||x(e,t)!=r)return!0;a=t}}var St=b.inputHandler.of((e,a,r,l,t)=>{if(e.composing||e.state.readOnly||a!=r||l!=">"&&l!="/"||!X.isActiveAt(e.state,a,-1))return!1;let s=t(),{state:o}=s,u=o.changeByRange((d)=>{var S;let g=o.doc.sliceString(d.from-1,d.to)==l,{head:O}=d,m=I(o).resolveInner(O,-1),f;if(g&&l==">"&&m.name=="EndTag"){let p=m.parent;if((f=x(o.doc,p.parent,O))&&!ge.has(f)&&!gt(o.doc,p.parent,f)){let P=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`</${f}>`;return{range:d,changes:{from:O,to:P,insert:T}}}}else if(g&&l=="/"&&m.name=="IncompleteCloseTag"){let p=m.parent;if(m.from==O-2&&((S=p.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(f=x(o.doc,p,O))&&!ge.has(f)){let P=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`${f}>`;return{range:c.cursor(O+T.length,-1),changes:{from:O,to:P,insert:T}}}}return{range:d}});if(u.changes.empty)return!1;return e.dispatch([s,o.update(u,{userEvent:"input.complete",scrollIntoView:!0})]),!0});
2
- export{Ao,ei};
1
+ import{d,b,ui,G,i,ne,I,K,J,ie,zn}from"./chunk-index-qk7rp7fk.js";import{L,Ce,j}from"./chunk-index-6yfcfcc8.js";import{ai,li}from"./chunk-index-m7wzrmcd.js";import{dt,Er,Ar,$r,Vt}from"./chunk-index-0t68az7d.js";var we=55,ve=1,Xe=56,$e=2,qe=57,_e=3,D=4,ke=5,Q=6,ae=7,le=8,re=9,se=10,Qe=11,Ae=12,Ye=13,q=58,Me=14,Re=15,W=59,oe=21,Ee=23,ue=24,Ze=25,C=27,Oe=28,Be=29,ze=32,De=35,We=37,Ne=38,Ge=0,Ie=1,je={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Ue={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},N={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Le(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var U=null,F=null,H=0;function k(e,a){let r=e.pos+a;if(H==r&&F==e)return U;let l=e.peek(a),t="";for(;;){if(!Le(l))break;t+=String.fromCharCode(l),l=e.peek(++a)}return F=e,H=r,U=t?t.toLowerCase():l==Fe||l==He?void 0:null}var de=60,v=62,A=47,Fe=63,He=33,Ke=45;function ee(e,a){this.name=e,this.parent=a}var Je=[Q,se,ae,le,re],et=new Ce({start:null,shift(e,a,r,l){return Je.indexOf(a)>-1?new ee(k(l,1)||"",e):e},reduce(e,a){return a==oe&&e?e.parent:e},reuse(e,a,r,l){let t=a.type.id;return t==Q||t==We?new ee(k(l,1)||"",e):e},strict:!1}),tt=new L((e,a)=>{if(e.next!=de){if(e.next<0&&a.context)e.acceptToken(q);return}e.advance();let r=e.next==A;if(r)e.advance();let l=k(e,0);if(l===void 0)return;if(!l)return e.acceptToken(r?Re:Me);let t=a.context?a.context.name:null;if(r){if(l==t)return e.acceptToken(Qe);if(t&&Ue[t])return e.acceptToken(q,-2);if(a.dialectEnabled(Ge))return e.acceptToken(Ae);for(let s=a.context;s;s=s.parent)if(s.name==l)return;e.acceptToken(Ye)}else{if(l=="script")return e.acceptToken(ae);if(l=="style")return e.acceptToken(le);if(l=="textarea")return e.acceptToken(re);if(je.hasOwnProperty(l))return e.acceptToken(se);if(t&&N[t]&&N[t][l])e.acceptToken(q,-1);else e.acceptToken(Q)}},{contextual:!0}),at=new L((e)=>{for(let a=0,r=0;;r++){if(e.next<0){if(r)e.acceptToken(W);break}if(e.next==Ke)a++;else if(e.next==v&&a>=2){if(r>=3)e.acceptToken(W,-2);break}else a=0;e.advance()}});function lt(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}var rt=new L((e,a)=>{if(e.next==A&&e.peek(1)==v){let r=a.dialectEnabled(Ie)||lt(a.context);e.acceptToken(r?ke:D,2)}else if(e.next==v)e.acceptToken(D,1)});function Y(e,a,r){let l=2+e.length;return new L((t)=>{for(let s=0,o=0,u=0;;u++){if(t.next<0){if(u)t.acceptToken(a);break}if(s==0&&t.next==de||s==1&&t.next==A||s>=2&&s<l&&t.next==e.charCodeAt(s-2))s++,o++;else if(s==l&&t.next==v){if(u>o)t.acceptToken(a,-o);else t.acceptToken(r,-(o-2));break}else if((t.next==10||t.next==13)&&u){t.acceptToken(a,1);break}else s=o=0;t.advance()}})}var nt=Y("script",we,ve),st=Y("style",Xe,$e),ot=Y("textarea",qe,_e),it=G({"Text RawText IncompleteTag IncompleteCloseTag":i.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i.angleBracket,TagName:i.tagName,"MismatchedCloseTag/TagName":[i.tagName,i.invalid],AttributeName:i.attributeName,"AttributeValue UnquotedAttributeValue":i.attributeValue,Is:i.definitionOperator,"EntityReference CharacterReference":i.character,Comment:i.blockComment,ProcessingInst:i.processingInstruction,DoctypeDecl:i.documentMeta}),pe=j.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd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uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:et,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[it],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^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'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[nt,st,ot,rt,tt,at,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function ce(e,a){let r=Object.create(null);for(let l of e.getChildren(ue)){let t=l.getChild(Ze),s=l.getChild(C)||l.getChild(Oe);if(t)r[a.read(t.from,t.to)]=!s?"":s.type.id==C?a.read(s.from+1,s.to-1):a.read(s.from,s.to)}return r}function te(e,a){let r=e.getChild(Ee);return r?a.read(r.from,r.to):" "}function _(e,a,r){let l;for(let t of r)if(!t.attrs||t.attrs(l||(l=ce(e.node.parent.firstChild,a))))return{parser:t.parser,bracketed:!0};return null}function M(e=[],a=[]){let r=[],l=[],t=[],s=[];for(let u of e)(u.tag=="script"?r:u.tag=="style"?l:u.tag=="textarea"?t:s).push(u);let o=a.length?Object.create(null):null;for(let u of a)(o[u.name]||(o[u.name]=[])).push(u);return ui((u,p)=>{let S=u.type.id;if(S==Be)return _(u,p,r);if(S==ze)return _(u,p,l);if(S==De)return _(u,p,t);if(S==oe&&s.length){let g=u.node,O=g.firstChild,m=O&&te(O,p),f;if(m){for(let c of s)if(c.tag==m&&(!c.attrs||c.attrs(f||(f=ce(O,p))))){let P=g.lastChild,T=P.type.id==Ne?P.from:g.to;if(T>O.to)return{parser:c.parser,overlay:[{from:O.to,to:T}]}}}}if(o&&S==ue){let g=u.node,O;if(O=g.firstChild){let m=o[p.read(O.from,O.to)];if(m)for(let f of m){if(f.tagName&&f.tagName!=te(g.parent,p))continue;let c=g.lastChild;if(c.type.id==C){let P=c.from+1,T=c.lastChild,z=c.to-(T&&T.isError?0:1);if(z>P)return{parser:f.parser,overlay:[{from:P,to:z}],bracketed:!0}}else if(c.type.id==Oe)return{parser:f.parser,overlay:[{from:c.from,to:c.to}]}}}}return null})}var w=["_blank","_self","_top","_parent"],R=["ascii","utf-8","utf-16","latin1","latin1"],E=["get","post","put","delete"],Z=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],h=["true","false"],n={},ut={a:{attrs:{href:null,ping:null,type:null,media:null,target:w,hreflang:null}},abbr:n,address:n,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:n,aside:n,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:n,base:{attrs:{href:null,target:w}},bdi:n,bdo:n,blockquote:{attrs:{cite:null}},body:n,br:n,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Z,formmethod:E,formnovalidate:["novalidate"],formtarget:w,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:n,center:n,cite:n,code:n,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:n,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:n,div:n,dl:n,dt:n,em:n,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:n,figure:n,footer:n,form:{attrs:{action:null,name:null,"accept-charset":R,autocomplete:["on","off"],enctype:Z,method:E,novalidate:["novalidate"],target:w}},h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:n,hgroup:n,hr:n,html:{attrs:{manifest:null}},i:n,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Z,formmethod:E,formnovalidate:["novalidate"],formtarget:w,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:n,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:n,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:n,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:R,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:n,noscript:n,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:n,param:{attrs:{name:null,value:null}},pre:n,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:n,rt:n,ruby:n,samp:n,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:R}},section:n,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:n,source:{attrs:{src:null,type:null,media:null}},span:n,strong:n,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:n,summary:n,sup:n,table:n,tbody:n,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:n,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:n,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:n,time:{attrs:{datetime:null}},title:n,tr:n,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:n,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:n},Se={accesskey:null,class:null,contenteditable:h,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:h,autocorrect:h,autocapitalize:h,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":h,"aria-autocomplete":["inline","list","both","none"],"aria-busy":h,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":h,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":h,"aria-hidden":h,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":h,"aria-multiselectable":h,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":h,"aria-relevant":null,"aria-required":h,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},be="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e)=>"on"+e);for(let e of be)Se[e]=null;class V{constructor(e,a){this.tags={...ut,...e},this.globalAttrs={...Se,...a},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}V.default=new V;function x(e,a,r=e.length){if(!a)return"";let l=a.firstChild,t=l&&l.getChild("TagName");return t?e.sliceString(t.from,Math.min(t.to,r)):""}function y(e,a=!1){for(;e;e=e.parent)if(e.name=="Element")if(a)a=!1;else return e;return null}function he(e,a,r){let l=r.tags[x(e,y(a))];return(l===null||l===void 0?void 0:l.children)||r.allTags}function B(e,a){let r=[];for(let l=y(a);l&&!l.type.isTop;l=y(l.parent)){let t=x(e,l);if(t&&l.lastChild.name=="CloseTag")break;if(t&&r.indexOf(t)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to))r.push(t)}return r}var Te=/^[:\-\.\w\u00b7-\uffff]*$/;function me(e,a,r,l,t){let s=/\s*>/.test(e.sliceDoc(t,t+5))?"":">",o=y(r,r.name=="StartTag"||r.name=="TagName");return{from:l,to:t,options:he(e.doc,o,a).map((u)=>({label:u,type:"type"})).concat(B(e.doc,r).map((u,p)=>({label:"/"+u,apply:"/"+u+s,type:"type",boost:99-p}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function fe(e,a,r,l){let t=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:r,to:l,options:B(e.doc,a).map((s,o)=>({label:s,apply:s+t,type:"type",boost:99-o})),validFor:Te}}function Ot(e,a,r,l){let t=[],s=0;for(let o of he(e.doc,r,a))t.push({label:"<"+o,type:"type"});for(let o of B(e.doc,r))t.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:l,to:l,options:t,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function pt(e,a,r,l,t){let s=y(r),o=s?a.tags[x(e.doc,s)]:null,u=o&&o.attrs?Object.keys(o.attrs):[],p=o&&o.globalAttrs===!1?u:u.length?u.concat(a.globalAttrNames):a.globalAttrNames;return{from:l,to:t,options:p.map((S)=>({label:S,type:"property"})),validFor:Te}}function ct(e,a,r,l,t){var s;let o=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),u=[],p=void 0;if(o){let S=e.sliceDoc(o.from,o.to),g=a.globalAttrs[S];if(!g){let O=y(r),m=O?a.tags[x(e.doc,O)]:null;g=(m===null||m===void 0?void 0:m.attrs)&&m.attrs[S]}if(g){let O=e.sliceDoc(l,t).toLowerCase(),m='"',f='"';if(/^['"]/.test(O))p=O[0]=='"'?/^[^"]*$/:/^[^']*$/,m="",f=e.sliceDoc(t,t+1)==O[0]?"":O[0],O=O.slice(1),l++;else p=/^[^\s<>='"]*$/;for(let c of g)u.push({label:c,apply:m+c+f,type:"constant"})}}return{from:l,to:t,options:u,validFor:p}}function Pe(e,a){let{state:r,pos:l}=a,t=I(r).resolveInner(l,-1),s=t.resolve(l);for(let o=l,u;s==t&&(u=t.childBefore(o));){let p=u.lastChild;if(!p||!p.type.isError||p.from<p.to)break;s=t=u,o=p.from}if(t.name=="TagName")return t.parent&&/CloseTag$/.test(t.parent.name)?fe(r,t,t.from,l):me(r,e,t,t.from,l);else if(t.name=="StartTag"||t.name=="IncompleteTag")return me(r,e,t,l,l);else if(t.name=="StartCloseTag"||t.name=="IncompleteCloseTag")return fe(r,t,l,l);else if(t.name=="OpenTag"||t.name=="SelfClosingTag"||t.name=="AttributeName")return pt(r,e,t,t.name=="AttributeName"?t.from:l,l);else if(t.name=="Is"||t.name=="AttributeValue"||t.name=="UnquotedAttributeValue")return ct(r,e,t,t.name=="Is"?l:t.from,l);else if(a.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document"))return Ot(r,e,t,l);else return null}function Do(e){return Pe(V.default,e)}function mt(e){let{extraTags:a,extraGlobalAttributes:r}=e,l=r||a?new V(a,r):V.default;return(t)=>Pe(l,t)}var ft=dt.parser.configure({top:"SingleExpression"}),xe=[{tag:"script",attrs:(e)=>e.type=="text/typescript"||e.lang=="ts",parser:Er.parser},{tag:"script",attrs:(e)=>e.type=="text/babel"||e.type=="text/jsx",parser:Ar.parser},{tag:"script",attrs:(e)=>e.type=="text/typescript-jsx",parser:$r.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:ft},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:dt.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:ai.parser}],Ve=[{name:"style",parser:ai.parser.configure({top:"Styles"})}].concat(be.map((e)=>({name:e,parser:dt.parser}))),ye=ne.define({name:"html",parser:pe.configure({props:[J.add({Element(e){let a=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+a[0].length)return e.continue();return e.lineIndent(e.node.from)+(a[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let a=null,r;for(let l=e.node;;){let t=l.lastChild;if(!t||t.name!="Element"||t.to!=l.to)break;a=l=t}if(a&&!((r=a.lastChild)&&(r.name=="CloseTag"||r.name=="SelfClosingTag")))return e.lineIndent(a.from)+e.unit;return null}}),ie.add({Element(e){let{firstChild:a,lastChild:r}=e;if(!a||a.name!="OpenTag")return null;return{from:a.to,to:r.name=="CloseTag"?r.from:e.to}}}),zn.add({"OpenTag CloseTag":(e)=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),X=ye.configure({wrap:M(xe,Ve)});function si(e={}){let a="",r;if(e.matchClosingTags===!1)a="noMatch";if(e.selfClosingTags===!0)a=(a?a+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)r=M((e.nestedLanguages||[]).concat(xe),(e.nestedAttributes||[]).concat(Ve));let l=r?ye.configure({wrap:r,dialect:a}):a?X.configure({dialect:a}):X;return new K(l,[X.data.of({autocomplete:mt(e)}),e.autoCloseTags!==!1?St:[],Vt().support,li().support])}var ge=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function gt(e,a,r){var l;for(;;){if(((l=a.lastChild)===null||l===void 0?void 0:l.name)!="CloseTag")return!1;let t=a.parent;if(!t||x(e,t)!=r)return!0;a=t}}var St=b.inputHandler.of((e,a,r,l,t)=>{if(e.composing||e.state.readOnly||a!=r||l!=">"&&l!="/"||!X.isActiveAt(e.state,a,-1))return!1;let s=t(),{state:o}=s,u=o.changeByRange((p)=>{var S;let g=o.doc.sliceString(p.from-1,p.to)==l,{head:O}=p,m=I(o).resolveInner(O,-1),f;if(g&&l==">"&&m.name=="EndTag"){let c=m.parent;if((f=x(o.doc,c.parent,O))&&!ge.has(f)&&!gt(o.doc,c.parent,f)){let P=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`</${f}>`;return{range:p,changes:{from:O,to:P,insert:T}}}}else if(g&&l=="/"&&m.name=="IncompleteCloseTag"){let c=m.parent;if(m.from==O-2&&((S=c.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(f=x(o.doc,c,O))&&!ge.has(f)){let P=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`${f}>`;return{range:d.cursor(O+T.length,-1),changes:{from:O,to:P,insert:T}}}}return{range:p}});if(u.changes.empty)return!1;return e.dispatch([s,o.update(u,{userEvent:"input.complete",scrollIntoView:!0})]),!0});
2
+ export{Do,si};
@@ -0,0 +1,2 @@
1
+ import{Le,O}from"./chunk-index-s356ybxk.js";import{lt}from"./chunk-index-6ycrvwzs.js";var zo=()=>{let{pins:t,folders:o}=O.getState();return{pins:t,folders:o}};function Nn(){let t=O.getState();return lt(t,(o)=>Le(t,o))}
2
+ export{zo,Nn};