@tryglen/review 0.2.10 → 0.2.12
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.
- package/dist/server.mjs +73 -73
- package/dist/ui/assets/agent-list-query-DU__57Ym.js +1 -0
- package/dist/ui/assets/{command-DCMG8Nuf.js → command-3yBkMBPV.js} +1 -1
- package/dist/ui/assets/{diff-viewer-CdSOTCI1.js → diff-viewer-Ch0w6iYS.js} +1 -1
- package/dist/ui/assets/{explored-file-view-DLx8rzcm.js → explored-file-view-BuO3IGTN.js} +1 -1
- package/dist/ui/assets/{history-nav-buttons-CcP8rzqZ.js → history-nav-buttons-9MGKgV8Z.js} +1 -1
- package/dist/ui/assets/index-COy_MRa0.css +2 -0
- package/dist/ui/assets/{index-D5VARefi.js → index-D7PxCZso.js} +3 -3
- package/dist/ui/assets/inline-ask-S9RCvffn.js +1 -0
- package/dist/ui/assets/{local-side-panel-DV7OZQax.js → local-side-panel-DbsADL8W.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +2 -2
- package/dist/ui/assets/agent-list-query-DqVLNOuo.js +0 -1
- package/dist/ui/assets/index-CP_RdmQ5.css +0 -2
- package/dist/ui/assets/inline-ask-C6EV_383.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{c as t,l as n,t as r}from"./button-DizkG3Et.js";import{B as i,H as a,S as o,d as s,g as c,n as l,t as u,v as d,y as f}from"./query-error-DSrxRVZP.js";import{a as p,o as m}from"./bundle-mjs-IMkwHZOK.js";import{c as h,d as g,l as _,o as v,s as y,t as b}from"./schemas-D5jfrTNW.js";import{S as x,T as S,c as C,g as w,l as T,s as E,t as D,u as O,v as ee,w as k,y as A}from"./card-BPb3NZYg.js";import{a as j,n as M}from"./reviewer-connection-B1irBiYS.js";import{a as N,d as te,i as ne,l as re,n as ie,o as P,s as ae,t as oe,u as F}from"./command-DCMG8Nuf.js";import{a as se,i as ce,n as le,o as I,r as L,s as ue,t as R}from"./history-nav-buttons-CcP8rzqZ.js";import{i as de,l as z,n as fe,r as B,s as pe,t as me}from"./input-group-apzvTSGh.js";import{n as V}from"./CaretUp.es-C6IDKCMg.js";import{a as he,i as ge,n as _e,r as ve,t as H}from"./shortcut-label-Do9KpCPN.js";import{$ as ye,B as be,C as xe,D as U,Et as Se,F as Ce,G as we,H as Te,I as Ee,J as De,K as Oe,L as ke,M as W,N as Ae,O as je,Ot as Me,P as Ne,Q as Pe,R as G,S as Fe,T as Ie,U as Le,V as Re,W as ze,X as Be,Y as Ve,Z as He,at as Ue,b as K,c as We,ct as Ge,d as Ke,et as qe,f as Je,gt as Ye,h as Xe,ht as Ze,it as Qe,k as $e,l as et,lt as tt,m as nt,mt as q,nt as rt,p as it,q as at,rt as ot,s as st,st as ct,tt as lt,u as ut,w as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt}from"./index-D5VARefi.js";var J=e(m(),1),_t=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M146,104V64a6,6,0,0,1,12,0V89.51l45.76-45.75a6,6,0,0,1,8.48,8.48L166.48,98H192a6,6,0,0,1,0,12H152A6,6,0,0,1,146,104Zm-42,42H64a6,6,0,0,0,0,12H89.52L43.76,203.76a6,6,0,1,0,8.48,8.48L98,166.48V192a6,6,0,0,0,12,0V152A6,6,0,0,0,104,146Zm62.48,12H192a6,6,0,0,0,0-12H152a6,6,0,0,0-6,6v40a6,6,0,0,0,12,0V166.48l45.76,45.76a6,6,0,0,0,8.48-8.48ZM104,58a6,6,0,0,0-6,6V89.51L52.24,43.76a6,6,0,0,0-8.48,8.48L89.52,98H64a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V64A6,6,0,0,0,104,58Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M148,104V64a4,4,0,0,1,8,0V94.34l49.17-49.17a4,4,0,1,1,5.66,5.66L161.66,100H192a4,4,0,0,1,0,8H152A4,4,0,0,1,148,104Zm-44,44H64a4,4,0,0,0,0,8H94.34L45.17,205.17a4,4,0,0,0,5.66,5.66L100,161.66V192a4,4,0,0,0,8,0V152A4,4,0,0,0,104,148Zm57.66,8H192a4,4,0,0,0,0-8H152a4,4,0,0,0-4,4v40a4,4,0,0,0,8,0V161.66l49.17,49.17a4,4,0,0,0,5.66-5.66ZM104,60a4,4,0,0,0-4,4V94.34L50.83,45.17a4,4,0,0,0-5.66,5.66L94.34,100H64a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V64A4,4,0,0,0,104,60Z`}))]]),vt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,80v96H48V80Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z`}))]]),yt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,48V208H48V48Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z`}))]]),bt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM104.49,56.48,116,45V88a12,12,0,0,0,24,0V45l11.51,11.51a12,12,0,0,0,17-17l-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17Zm47,143L140,211V168a12,12,0,0,0-24,0v43l-11.51-11.52a12,12,0,0,0-17,17l32,32a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,32V224a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V32A16,16,0,0,1,56,16H200A16,16,0,0,1,216,32Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM101.66,53.66,120,35.31V96a8,8,0,0,0,16,0V35.31l18.34,18.35a8,8,0,0,0,11.32-11.32l-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32Zm52.68,148.68L136,220.69V160a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M88.61,51.06a8,8,0,0,1,1.73-8.72l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,160,56H136V96a8,8,0,0,1-16,0V56H96A8,8,0,0,1,88.61,51.06ZM216,120H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-56,80H136V160a8,8,0,0,0-16,0v40H96a8,8,0,0,0-5.66,13.66l32,32a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,160,200Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM100.24,52.24,122,30.49V96a6,6,0,0,0,12,0V30.49l21.76,21.75a6,6,0,0,0,8.48-8.48l-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48Zm55.52,151.52L134,225.51V160a6,6,0,0,0-12,0v65.51l-21.76-21.75a6,6,0,0,0-8.48,8.48l32,32a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM101.66,53.66,120,35.31V96a8,8,0,0,0,16,0V35.31l18.34,18.35a8,8,0,0,0,11.32-11.32l-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32Zm52.68,148.68L136,220.69V160a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM98.83,50.83,124,25.66V96a4,4,0,0,0,8,0V25.66l25.17,25.17a4,4,0,1,0,5.66-5.66l-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66Zm58.34,154.34L132,230.34V160a4,4,0,0,0-8,0v70.34L98.83,205.17a4,4,0,0,0-5.66,5.66l32,32a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z`}))]]),xt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),St=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M100,28H64A20,20,0,0,0,44,48V208a20,20,0,0,0,20,20h36a20,20,0,0,0,20-20V48A20,20,0,0,0,100,28ZM96,204H68V52H96ZM192,28H156a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h36a20,20,0,0,0,20-20V48A20,20,0,0,0,192,28Zm-4,176H160V52h28Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M112,48V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,112,48Zm80-8H152a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h40a8,8,0,0,0,8-8V48A8,8,0,0,0,192,40Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M120,48V208a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V48A16,16,0,0,1,64,32h40A16,16,0,0,1,120,48Zm72-16H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,34H64A14,14,0,0,0,50,48V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,104,34Zm2,174a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM192,34H152a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,192,34Zm2,174a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,36H64A12,12,0,0,0,52,48V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,104,36Zm4,172a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM192,36H152a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,192,36Zm4,172a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4Z`}))]]),Ct=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z`}))]]),wt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),Tt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),Et=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z`}))]]),Dt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z`}))]]),Ot=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,160H44V60H212Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,158a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,156a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z`}))]]),kt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,136H48a20,20,0,0,0-20,20v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V156A20,20,0,0,0,208,136Zm-4,52H52V160H204Zm4-144H48A20,20,0,0,0,28,64v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm-4,52H52V68H204Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,152v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152Zm-8-96H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V64A8,8,0,0,0,208,56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,152v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V152a16,16,0,0,1,16-16H208A16,16,0,0,1,224,152ZM208,48H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,138H48a14,14,0,0,0-14,14v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,50H48A14,14,0,0,0,34,64v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V64A14,14,0,0,0,208,50Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,140H48a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,52H48A12,12,0,0,0,36,64v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V64A12,12,0,0,0,208,52Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),At=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,64V168a16,16,0,0,1-16,16H40V64Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z`}))]]),jt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z`}))]]),Mt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:_t}));Mt.displayName=`ArrowsInIcon`;var Nt=Mt,Pt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:vt}));Pt.displayName=`ArrowsLeftRightIcon`;var Ft=Pt,It=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:yt}));It.displayName=`ArrowsOutIcon`;var Lt=It,Rt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:bt}));Rt.displayName=`ArrowsOutLineVerticalIcon`;var zt=Rt,Bt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:xt}));Bt.displayName=`ChatCircleDotsIcon`;var Vt=Bt,Ht=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:St}));Ht.displayName=`ColumnsIcon`;var Ut=Ht,Wt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Ct}));Wt.displayName=`CrosshairIcon`;var Gt=Wt,Kt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:wt}));Kt.displayName=`DotsThreeIcon`;var qt=Kt,Jt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Tt}));Jt.displayName=`ListMagnifyingGlassIcon`;var Yt=Jt,Xt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Et}));Xt.displayName=`PaletteIcon`;var Zt=Xt,Qt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Dt}));Qt.displayName=`PaperPlaneTiltIcon`;var $t=Qt,en=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Ot}));en.displayName=`RectangleIcon`;var tn=en,nn=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:kt}));nn.displayName=`RowsIcon`;var rn=nn,an=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:At}));an.displayName=`TextAlignLeftIcon`;var on=an,sn=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:jt}));sn.displayName=`TextTIcon`;var cn=sn,Y=p(),ln=`ContextMenu`,[un,dn]=d(ln,[tt]),X=tt(),[fn,pn]=un(ln),mn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,c]=J.useState(!1),l=X(t),u=s(r),d=J.useCallback(e=>{c(e),u(e)},[u]);return(0,Y.jsx)(fn,{scope:t,open:o,onOpenChange:d,modal:a,children:(0,Y.jsx)(Qe,{...l,dir:i,open:o,onOpenChange:d,modal:a,children:n})})};mn.displayName=ln;var hn=`ContextMenuTrigger`,gn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=pn(hn,n),o=X(n),s=J.useRef({x:0,y:0}),l=J.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=J.useRef(0),d=J.useCallback(()=>window.clearTimeout(u.current),[]),p=e=>{s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return J.useEffect(()=>d,[d]),J.useEffect(()=>void(r&&d()),[r,d]),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(at,{...o,virtualRef:l}),(0,Y.jsx)(f.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:c(e.onContextMenu,e=>{d(),p(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:c(e.onPointerDown,Un(e=>{d(),u.current=window.setTimeout(()=>p(e),700)})),onPointerMove:r?e.onPointerMove:c(e.onPointerMove,Un(d)),onPointerCancel:r?e.onPointerCancel:c(e.onPointerCancel,Un(d)),onPointerUp:r?e.onPointerUp:c(e.onPointerUp,Un(d))})]})});gn.displayName=hn;var _n=`ContextMenuPortal`,vn=e=>{let{__scopeContextMenu:t,...n}=e,r=X(t);return(0,Y.jsx)(lt,{...r,...n})};vn.displayName=_n;var yn=`ContextMenuContent`,bn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=pn(yn,n),a=X(n),o=J.useRef(!1);return(0,Y.jsx)(Be,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});bn.displayName=yn;var xn=`ContextMenuGroup`,Sn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(He,{...i,...r,ref:t})});Sn.displayName=xn;var Cn=`ContextMenuLabel`,wn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(qe,{...i,...r,ref:t})});wn.displayName=Cn;var Tn=`ContextMenuItem`,En=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Pe,{...i,...r,ref:t})});En.displayName=Tn;var Dn=`ContextMenuCheckboxItem`,On=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ve,{...i,...r,ref:t})});On.displayName=Dn;var kn=`ContextMenuRadioGroup`,An=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(rt,{...i,...r,ref:t})});An.displayName=kn;var jn=`ContextMenuRadioItem`,Mn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ot,{...i,...r,ref:t})});Mn.displayName=jn;var Nn=`ContextMenuItemIndicator`,Pn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ye,{...i,...r,ref:t})});Pn.displayName=Nn;var Fn=`ContextMenuSeparator`,In=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ue,{...i,...r,ref:t})});In.displayName=Fn;var Ln=`ContextMenuArrow`,Rn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(De,{...i,...r,ref:t})});Rn.displayName=Ln;var zn=`ContextMenuSubTrigger`,Bn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ge,{...i,...r,ref:t})});Bn.displayName=zn;var Vn=`ContextMenuSubContent`,Hn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ct,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Hn.displayName=Vn;function Un(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var Wn=mn,Gn=gn,Kn=vn,qn=bn,Jn=En,Yn=`Label`,Xn=J.forwardRef((e,t)=>(0,Y.jsx)(f.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Xn.displayName=Yn;var Zn=Xn,Qn={hasSubscribers:!1},Z=Qn,$n=Qn,er=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,tr=()=>Z.hasSubscribers||$n.hasSubscribers,nr=new Set,rr=typeof process==`object`&&process?process:{},ir=(e,t,n,r)=>{typeof rr.emitWarning==`function`?rr.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},ar=e=>!nr.has(e),Q=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),or=e=>Q(e)?e<=256?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?sr:null:null,sr=class extends Array{constructor(e){super(e),this.fill(0)}},cr=class e{heap;length;static#e=!1;static create(t){let n=or(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},lr=class e{#e;#t;#n;#r;#i;#a;#o;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;#C;#w;#T;#E;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#x,autopurgeTimers:e.#S,sizes:e.#y,keyMap:e.#u,keyList:e.#d,valList:e.#f,next:e.#p,prev:e.#m,get head(){return e.#h},get tail(){return e.#g},free:e.#_,isBackgroundFetch:t=>e.#W(t),backgroundFetch:(t,n,r,i)=>e.#U(t,n,r,i),moveToTail:t=>e.#X(t),indexes:t=>e.#I(t),rindexes:t=>e.#L(t),isStale:t=>e.#j(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get memoMethod(){return this.#o}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:c,dispose:l,onInsert:u,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:p,maxSize:m=0,maxEntrySize:h=0,sizeCalculation:g,fetchMethod:_,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:S,ignoreFetchAbort:C,backgroundFetchSize:w=1,perf:T}=t;if(this.backgroundFetchSize=w,T!==void 0&&typeof T?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(this.#s=T??er,n!==0&&!Q(n))throw TypeError(`max option must be a nonnegative integer`);let E=n?or(n):Array;if(!E)throw Error(`invalid max value: `+n);if(this.#e=n,this.#t=m,this.maxEntrySize=h||this.#t,this.sizeCalculation=g,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(v!==void 0&&typeof v!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#o=v,_!==void 0&&typeof _!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#a=_,this.#w=!!_,this.#u=new Map,this.#d=Array.from({length:n}).fill(void 0),this.#f=Array.from({length:n}).fill(void 0),this.#p=new E(n),this.#m=new E(n),this.#h=0,this.#g=0,this.#_=cr.create(n),this.#c=0,this.#l=0,typeof l==`function`&&(this.#n=l),typeof u==`function`&&(this.#r=u),typeof d==`function`?(this.#i=d,this.#v=[]):(this.#i=void 0,this.#v=void 0),this.#C=!!this.#n,this.#E=!!this.#r,this.#T=!!this.#i,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!C,this.maxEntrySize!==0){if(this.#t!==0&&!Q(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!Q(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#M()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=Q(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Q(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#D()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t=`LRU_CACHE_UNBOUNDED`;ar(t)&&(nr.add(t),ir(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#D(){let e=new sr(this.#e),t=new sr(this.#e);this.#x=e,this.#b=t;let n=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#S=n,this.#A=(n,i,a=this.#s.now())=>{t[n]=i===0?0:a,e[n]=i,r(n,i)},this.#O=n=>{t[n]=e[n]===0?0:this.#s.now(),r(n,e[n])};let r=this.ttlAutopurge?(e,t)=>{if(n?.[e]&&(clearTimeout(n[e]),n[e]=void 0),t&&t!==0&&n){let r=setTimeout(()=>{this.#j(e)&&this.#Z(this.#d[e],`expire`)},t+1);r.unref&&r.unref(),n[e]=r}}:()=>{};this.#k=(n,r)=>{if(e[r]){let o=e[r],s=t[r];if(!o||!s)return;n.ttl=o,n.start=s,n.now=i||a(),n.remainingTTL=o-(n.now-s)}};let i=0,a=()=>{let e=this.#s.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=this.#u.get(n);if(r===void 0)return 0;let o=e[r],s=t[r];return!o||!s?1/0:o-((i||a())-s)},this.#j=n=>{let r=t[n],o=e[n];return!!o&&!!r&&(i||a())-r>o}}#O=()=>{};#k=()=>{};#A=()=>{};#j=()=>!1;#M(){let e=new sr(this.#e);this.#l=0,this.#y=e,this.#N=t=>{this.#l-=e[t],e[t]=0},this.#F=(e,t,n,r)=>{if(!Q(n)){if(this.#W(t))return this.backgroundFetchSize;if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!Q(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`)}return n},this.#P=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#l>n;)this.#B(!0)}this.#l+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#l)}}#N=e=>{};#P=(e,t,n)=>{};#F=(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#I({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#g;this.#R(t)&&((e||!this.#j(t))&&(yield t),t!==this.#h);)t=this.#m[t]}*#L({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#h;this.#R(t)&&((e||!this.#j(t))&&(yield t),t!==this.#g);)t=this.#p[t]}#R(e){return e!==void 0&&this.#u.get(this.#d[e])===e}*entries(){for(let e of this.#I())this.#f[e]!==void 0&&this.#d[e]!==void 0&&!this.#W(this.#f[e])&&(yield[this.#d[e],this.#f[e]])}*rentries(){for(let e of this.#L())this.#f[e]!==void 0&&this.#d[e]!==void 0&&!this.#W(this.#f[e])&&(yield[this.#d[e],this.#f[e]])}*keys(){for(let e of this.#I()){let t=this.#d[e];t!==void 0&&!this.#W(this.#f[e])&&(yield t)}}*rkeys(){for(let e of this.#L()){let t=this.#d[e];t!==void 0&&!this.#W(this.#f[e])&&(yield t)}}*values(){for(let e of this.#I())this.#f[e]!==void 0&&!this.#W(this.#f[e])&&(yield this.#f[e])}*rvalues(){for(let e of this.#L())this.#f[e]!==void 0&&!this.#W(this.#f[e])&&(yield this.#f[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(e,t={}){for(let n of this.#I()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,this.#d[n],this))return this.#J(this.#d[n],t)}}forEach(e,t=this){for(let n of this.#I()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#d[n],this)}}rforEach(e,t=this){for(let n of this.#L()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#d[n],this)}}purgeStale(){let e=!1;for(let t of this.#L({allowStale:!0}))this.#j(t)&&(this.#Z(this.#d[t],`expire`),e=!0);return e}info(e){let t=this.#u.get(e);if(t===void 0)return;let n=this.#f[t],r=this.#W(n)?n.__staleWhileFetching:n;if(r===void 0)return;let i={value:r};if(this.#x&&this.#b){let e=this.#x[t],n=this.#b[t];e&&n&&(i.ttl=e-(this.#s.now()-n),i.start=Date.now())}return this.#y&&(i.size=this.#y[t]),i}dump(){let e=[];for(let t of this.#I({allowStale:!0})){let n=this.#d[t],r=this.#f[t],i=this.#W(r)?r.__staleWhileFetching:r;if(i===void 0||n===void 0)continue;let a={value:i};if(this.#x&&this.#b){a.ttl=this.#x[t];let e=this.#s.now()-this.#b[t];a.start=Math.floor(Date.now()-e)}this.#y&&(a.size=this.#y[t]),e.unshift([n,a])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=this.#s.now()-e}this.#z(t,n.value,n)}}set(e,t,n={}){let{status:r=Z.hasSubscribers?{}:void 0}=n;n.status=r,r&&(r.op=`set`,r.key=e,t!==void 0&&(r.value=t),r.cache=this);let i=this.#z(e,t,n);return r&&Z.hasSubscribers&&Z.publish(r),i}#z(e,t,n,r){let{ttl:i=this.ttl,start:a,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=n,l=this.#W(t);if(t===void 0)return c&&(c.set=`deleted`),this.delete(e),this;let{noUpdateTTL:u=this.noUpdateTTL}=n;c&&!l&&(c.value=t);let d=this.#F(e,t,n.size||0,s,c);if(this.maxEntrySize&&d>this.maxEntrySize)return this.#Z(e,`set`),c&&(c.set=`miss`,c.maxEntrySizeExceeded=!0),this;let f=this.#c===0?void 0:this.#u.get(e);if(f===void 0)f=this.#c===0?this.#g:this.#_.length===0?this.#c===this.#e?this.#B(!1):this.#c:this.#_.pop(),this.#d[f]=e,this.#f[f]=t,this.#u.set(e,f),this.#p[this.#g]=f,this.#m[f]=this.#g,this.#g=f,this.#c++,this.#P(f,d,c),c&&(c.set=`add`),u=!1,this.#E&&!l&&this.#r?.(t,e,`add`);else{this.#X(f);let n=this.#f[f];if(t!==n){if(!o){if(this.#W(n)){n!==r&&n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:i}=n;i!==void 0&&i!==t&&(this.#C&&this.#n?.(i,e,`set`),this.#T&&this.#v?.push([i,e,`set`]))}else this.#C&&this.#n?.(n,e,`set`),this.#T&&this.#v?.push([n,e,`set`])}if(this.#N(f),this.#P(f,d,c),this.#f[f]=t,!l){let r=n&&this.#W(n)?n.__staleWhileFetching:n,i=r===void 0?`add`:t===r?`update`:`replace`;c&&(c.set=i,r!==void 0&&(c.oldValue=r)),this.#E&&this.onInsert?.(t,e,i)}}else l||(c&&(c.set=`update`),this.#E&&this.onInsert?.(t,e,`update`))}if(i!==0&&!this.#x&&this.#D(),this.#x&&(u||this.#A(f,i,a),c&&this.#k(c,f)),!o&&this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}return this}pop(){try{for(;this.#c;){let e=this.#f[this.#h];if(this.#B(!0),this.#W(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}}}#B(e){let t=this.#h,n=this.#d[t],r=this.#f[t],i=this.#W(r);i&&r.__abortController.abort(Error(`evicted`));let a=i?r.__staleWhileFetching:r;return(this.#C||this.#T)&&a!==void 0&&(this.#C&&this.#n?.(a,n,`evict`),this.#T&&this.#v?.push([a,n,`evict`])),this.#N(t),this.#S?.[t]&&(clearTimeout(this.#S[t]),this.#S[t]=void 0),e&&(this.#d[t]=void 0,this.#f[t]=void 0,this.#_.push(t)),this.#c===1?(this.#h=this.#g=0,this.#_.length=0):this.#h=this.#p[t],this.#u.delete(n),this.#c--,t}has(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`has`,n.key=e,n.cache=this);let r=this.#V(e,t);return Z.hasSubscribers&&Z.publish(n),r}#V(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#u.get(e);if(i!==void 0){let e=this.#f[i];if(this.#W(e)&&e.__staleWhileFetching===void 0)return!1;if(this.#j(i))r&&(r.has=`stale`,this.#k(r,i));else return n&&this.#O(i),r&&(r.has=`hit`,this.#k(r,i)),!0}else r&&(r.has=`miss`);return!1}peek(e,t={}){let{status:n=tr()?{}:void 0}=t;n&&(n.op=`peek`,n.key=e,n.cache=this),t.status=n;let r=this.#H(e,t);return Z.hasSubscribers&&Z.publish(n),r}#H(e,t){let{status:n,allowStale:r=this.allowStale}=t,i=this.#u.get(e);if(i===void 0||!r&&this.#j(i)){n&&(n.peek=i===void 0?`miss`:`stale`);return}let a=this.#f[i],o=this.#W(a)?a.__staleWhileFetching:a;return n&&(o===void 0?n.peek=`miss`:(n.peek=`hit`,n.value=o)),o}#U(e,t,n,r){let i=t===void 0?void 0:this.#f[t];if(this.#W(i))return i;let a=new AbortController,{signal:o}=n;o?.addEventListener(`abort`,()=>a.abort(o.reason),{signal:a.signal});let s={signal:a.signal,options:n,context:r},c=(r,i=!1)=>{let{aborted:o}=a.signal,c=n.ignoreFetchAbort&&r!==void 0,l=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&r!==void 0);if(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),o&&!c&&!i)return u(a.signal.reason,l);let d=f,p=this.#f[t];return(p===f||p===void 0&&c&&i)&&(r===void 0?d.__staleWhileFetching===void 0?this.#Z(e,`fetch`):this.#f[t]=d.__staleWhileFetching:(n.status&&(n.status.fetchUpdated=!0),this.#z(e,r,s.options,d))),r},l=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),u(e,!1)),u=(r,i)=>{let{aborted:o}=a.signal,s=o&&n.allowStaleOnFetchAbort,c=s||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,u=f;if(this.#f[t]===f&&(!l||!i&&u.__staleWhileFetching===void 0?this.#Z(e,`fetch`):s||(this.#f[t]=u.__staleWhileFetching)),c)return n.status&&u.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw r},d=(t,r)=>{let o=this.#a?.(e,i,s);a.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}),o&&o instanceof Promise?o.then(e=>t(e===void 0?void 0:e),r):o!==void 0&&t(o)};n.status&&(n.status.fetchDispatched=!0);let f=new Promise(d).then(c,l),p=Object.assign(f,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.#z(e,p,{...s.options,status:void 0}),t=this.#u.get(e)):this.#f[t]=p,p}#W(e){if(!this.#w)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof AbortController}fetch(e,t={}){let n=$n.hasSubscribers,{status:r=tr()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#G(e,t);return r&&n&&(r.trace=!0,$n.tracePromise(()=>i,r).catch(()=>{})),i}async#G(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:h=!1,status:g,signal:_}=t;if(g&&(g.op=`fetch`,g.key=e,h&&(g.forceRefresh=!0),g.cache=this),!this.#w)return g&&(g.fetch=`get`),this.#J(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let v={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:g,signal:_},y=this.#u.get(e);if(y===void 0){g&&(g.fetch=`miss`);let t=this.#U(e,y,v,m);return t.__returned=t}{let t=this.#f[y];if(this.#W(t)){let e=n&&t.__staleWhileFetching!==void 0;return g&&(g.fetch=`inflight`,e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#j(y);if(!h&&!i)return g&&(g.fetch=`hit`),this.#X(y),r&&this.#O(y),g&&this.#k(g,y),t;let a=this.#U(e,y,v,m),o=a.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=i?`stale`:`refresh`,o&&i&&(g.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}forceFetch(e,t={}){let n=$n.hasSubscribers,{status:r=tr()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#K(e,t);return r&&n&&(r.trace=!0,$n.tracePromise(()=>i,r).catch(()=>{})),i}async#K(e,t={}){let n=await this.#G(e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}memo(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`memo`,n.key=e,t.context&&(n.context=t.context),n.cache=this);let r=this.#q(e,t);return n&&(n.value=r),Z.hasSubscribers&&Z.publish(n),r}#q(e,t={}){let n=this.#o;if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,status:i,forceRefresh:a,...o}=t;i&&a&&(i.forceRefresh=!0);let s=this.#J(e,o),c=a||s===void 0;if(i&&(i.memo=c?`miss`:`hit`,c||(i.value=s)),!c)return s;let l=n(e,s,{options:o,context:r});return i&&(i.value=l),this.#z(e,l,o),l}get(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`get`,n.key=e,n.cache=this);let r=this.#J(e,t);return n&&(r!==void 0&&(n.value=r),Z.hasSubscribers&&Z.publish(n)),r}#J(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#u.get(e);if(o===void 0){a&&(a.get=`miss`);return}let s=this.#f[o],c=this.#W(s);return a&&this.#k(a,o),this.#j(o)?c?(a&&(a.get=`stale-fetching`),n&&s.__staleWhileFetching!==void 0?(a&&(a.returnedStale=!0),s.__staleWhileFetching):void 0):(i||this.#Z(e,`expire`),a&&(a.get=`stale`),n?(a&&(a.returnedStale=!0),s):void 0):(a&&(a.get=c?`fetching`:`hit`),this.#X(o),r&&this.#O(o),c?s.__staleWhileFetching:s)}#Y(e,t){this.#m[t]=e,this.#p[e]=t}#X(e){e!==this.#g&&(e===this.#h?this.#h=this.#p[e]:this.#Y(this.#m[e],this.#p[e]),this.#Y(this.#g,e),this.#g=e)}delete(e){return this.#Z(e,`delete`)}#Z(e,t){Z.hasSubscribers&&Z.publish({op:`delete`,delete:t,key:e,cache:this});let n=!1;if(this.#c!==0){let r=this.#u.get(e);if(r!==void 0){if(this.#S?.[r]&&(clearTimeout(this.#S?.[r]),this.#S[r]=void 0),n=!0,this.#c===1)this.#Q(t);else{this.#N(r);let n=this.#f[r];if(this.#W(n)?n.__abortController.abort(Error(`deleted`)):(this.#C||this.#T)&&(this.#C&&this.#n?.(n,e,t),this.#T&&this.#v?.push([n,e,t])),this.#u.delete(e),this.#d[r]=void 0,this.#f[r]=void 0,r===this.#g)this.#g=this.#m[r];else if(r===this.#h)this.#h=this.#p[r];else{let e=this.#m[r];this.#p[e]=this.#p[r];let t=this.#p[r];this.#m[t]=this.#m[r]}this.#c--,this.#_.push(r)}}}if(this.#T&&this.#v?.length){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}return n}clear(){return this.#Q(`delete`)}#Q(e){for(let t of this.#L({allowStale:!0})){let n=this.#f[t];if(this.#W(n))n.__abortController.abort(Error(`deleted`));else{let r=this.#d[t];this.#C&&this.#n?.(n,r,e),this.#T&&this.#v?.push([n,r,e])}}if(this.#u.clear(),this.#f.fill(void 0),this.#d.fill(void 0),this.#x&&this.#b){this.#x.fill(0),this.#b.fill(0);for(let e of this.#S??[])e!==void 0&&clearTimeout(e);this.#S?.fill(void 0)}if(this.#y&&this.#y.fill(0),this.#h=0,this.#g=0,this.#_.length=0,this.#l=0,this.#c=0,this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}}},ur=e=>e===`add`?`(added)`:e===`delete`?`(deleted)`:e===`context`?`(unchanged)`:``,dr=e=>{let t=e.rows.map(e=>{let t=e.newLine??e.oldLine??``,n=e.kind===`add`?`+`:e.kind===`delete`?`-`:` `;return`${t} ${ur(e.kind)}: ${n}${e.content}`});return[`File: ${e.filename}`,"```",...t,"```"].join(`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{c as t,l as n,t as r}from"./button-DizkG3Et.js";import{B as i,H as a,S as o,d as s,g as c,n as l,t as u,v as d,y as f}from"./query-error-DSrxRVZP.js";import{a as p,o as m}from"./bundle-mjs-IMkwHZOK.js";import{c as h,d as g,l as _,o as v,s as y,t as b}from"./schemas-D5jfrTNW.js";import{S as x,T as S,c as C,g as w,l as T,s as E,t as D,u as O,v as ee,w as k,y as A}from"./card-BPb3NZYg.js";import{a as j,n as M}from"./reviewer-connection-B1irBiYS.js";import{a as N,d as te,i as ne,l as re,n as ie,o as P,s as ae,t as oe,u as F}from"./command-3yBkMBPV.js";import{a as se,i as ce,n as le,o as I,r as L,s as ue,t as R}from"./history-nav-buttons-9MGKgV8Z.js";import{i as de,l as z,n as fe,r as B,s as pe,t as me}from"./input-group-apzvTSGh.js";import{n as V}from"./CaretUp.es-C6IDKCMg.js";import{a as he,i as ge,n as _e,r as ve,t as H}from"./shortcut-label-Do9KpCPN.js";import{$ as ye,B as be,C as xe,D as U,Et as Se,F as Ce,G as we,H as Te,I as Ee,J as De,K as Oe,L as ke,M as W,N as Ae,O as je,Ot as Me,P as Ne,Q as Pe,R as G,S as Fe,T as Ie,U as Le,V as Re,W as ze,X as Be,Y as Ve,Z as He,at as Ue,b as K,c as We,ct as Ge,d as Ke,et as qe,f as Je,gt as Ye,h as Xe,ht as Ze,it as Qe,k as $e,l as et,lt as tt,m as nt,mt as q,nt as rt,p as it,q as at,rt as ot,s as st,st as ct,tt as lt,u as ut,w as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt}from"./index-D7PxCZso.js";var J=e(m(),1),_t=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M146,104V64a6,6,0,0,1,12,0V89.51l45.76-45.75a6,6,0,0,1,8.48,8.48L166.48,98H192a6,6,0,0,1,0,12H152A6,6,0,0,1,146,104Zm-42,42H64a6,6,0,0,0,0,12H89.52L43.76,203.76a6,6,0,1,0,8.48,8.48L98,166.48V192a6,6,0,0,0,12,0V152A6,6,0,0,0,104,146Zm62.48,12H192a6,6,0,0,0,0-12H152a6,6,0,0,0-6,6v40a6,6,0,0,0,12,0V166.48l45.76,45.76a6,6,0,0,0,8.48-8.48ZM104,58a6,6,0,0,0-6,6V89.51L52.24,43.76a6,6,0,0,0-8.48,8.48L89.52,98H64a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V64A6,6,0,0,0,104,58Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M148,104V64a4,4,0,0,1,8,0V94.34l49.17-49.17a4,4,0,1,1,5.66,5.66L161.66,100H192a4,4,0,0,1,0,8H152A4,4,0,0,1,148,104Zm-44,44H64a4,4,0,0,0,0,8H94.34L45.17,205.17a4,4,0,0,0,5.66,5.66L100,161.66V192a4,4,0,0,0,8,0V152A4,4,0,0,0,104,148Zm57.66,8H192a4,4,0,0,0,0-8H152a4,4,0,0,0-4,4v40a4,4,0,0,0,8,0V161.66l49.17,49.17a4,4,0,0,0,5.66-5.66ZM104,60a4,4,0,0,0-4,4V94.34L50.83,45.17a4,4,0,0,0-5.66,5.66L94.34,100H64a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V64A4,4,0,0,0,104,60Z`}))]]),vt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,80v96H48V80Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z`}))]]),yt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,48V208H48V48Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z`}))]]),bt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM104.49,56.48,116,45V88a12,12,0,0,0,24,0V45l11.51,11.51a12,12,0,0,0,17-17l-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17Zm47,143L140,211V168a12,12,0,0,0-24,0v43l-11.51-11.52a12,12,0,0,0-17,17l32,32a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,32V224a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V32A16,16,0,0,1,56,16H200A16,16,0,0,1,216,32Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM101.66,53.66,120,35.31V96a8,8,0,0,0,16,0V35.31l18.34,18.35a8,8,0,0,0,11.32-11.32l-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32Zm52.68,148.68L136,220.69V160a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M88.61,51.06a8,8,0,0,1,1.73-8.72l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,160,56H136V96a8,8,0,0,1-16,0V56H96A8,8,0,0,1,88.61,51.06ZM216,120H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-56,80H136V160a8,8,0,0,0-16,0v40H96a8,8,0,0,0-5.66,13.66l32,32a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,160,200Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM100.24,52.24,122,30.49V96a6,6,0,0,0,12,0V30.49l21.76,21.75a6,6,0,0,0,8.48-8.48l-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48Zm55.52,151.52L134,225.51V160a6,6,0,0,0-12,0v65.51l-21.76-21.75a6,6,0,0,0-8.48,8.48l32,32a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM101.66,53.66,120,35.31V96a8,8,0,0,0,16,0V35.31l18.34,18.35a8,8,0,0,0,11.32-11.32l-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32Zm52.68,148.68L136,220.69V160a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM98.83,50.83,124,25.66V96a4,4,0,0,0,8,0V25.66l25.17,25.17a4,4,0,1,0,5.66-5.66l-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66Zm58.34,154.34L132,230.34V160a4,4,0,0,0-8,0v70.34L98.83,205.17a4,4,0,0,0-5.66,5.66l32,32a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z`}))]]),xt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),St=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M100,28H64A20,20,0,0,0,44,48V208a20,20,0,0,0,20,20h36a20,20,0,0,0,20-20V48A20,20,0,0,0,100,28ZM96,204H68V52H96ZM192,28H156a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h36a20,20,0,0,0,20-20V48A20,20,0,0,0,192,28Zm-4,176H160V52h28Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M112,48V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,112,48Zm80-8H152a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h40a8,8,0,0,0,8-8V48A8,8,0,0,0,192,40Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M120,48V208a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V48A16,16,0,0,1,64,32h40A16,16,0,0,1,120,48Zm72-16H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,34H64A14,14,0,0,0,50,48V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,104,34Zm2,174a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM192,34H152a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,192,34Zm2,174a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M104,36H64A12,12,0,0,0,52,48V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,104,36Zm4,172a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM192,36H152a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,192,36Zm4,172a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4Z`}))]]),Ct=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z`}))]]),wt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),Tt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),Et=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z`}))]]),Dt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z`}))]]),Ot=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,160H44V60H212Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,158a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,156a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z`}))]]),kt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,136H48a20,20,0,0,0-20,20v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V156A20,20,0,0,0,208,136Zm-4,52H52V160H204Zm4-144H48A20,20,0,0,0,28,64v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm-4,52H52V68H204Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,152v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152Zm-8-96H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V64A8,8,0,0,0,208,56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M224,152v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V152a16,16,0,0,1,16-16H208A16,16,0,0,1,224,152ZM208,48H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,138H48a14,14,0,0,0-14,14v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,50H48A14,14,0,0,0,34,64v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V64A14,14,0,0,0,208,50Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,140H48a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,52H48A12,12,0,0,0,36,64v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V64A12,12,0,0,0,208,52Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),At=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M216,64V168a16,16,0,0,1-16,16H40V64Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z`}))]]),jt=new Map([[`bold`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z`}))],[`duotone`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z`,opacity:`0.2`}),J.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))],[`fill`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z`}))],[`light`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z`}))],[`regular`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))],[`thin`,J.createElement(J.Fragment,null,J.createElement(`path`,{d:`M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z`}))]]),Mt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:_t}));Mt.displayName=`ArrowsInIcon`;var Nt=Mt,Pt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:vt}));Pt.displayName=`ArrowsLeftRightIcon`;var Ft=Pt,It=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:yt}));It.displayName=`ArrowsOutIcon`;var Lt=It,Rt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:bt}));Rt.displayName=`ArrowsOutLineVerticalIcon`;var zt=Rt,Bt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:xt}));Bt.displayName=`ChatCircleDotsIcon`;var Vt=Bt,Ht=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:St}));Ht.displayName=`ColumnsIcon`;var Ut=Ht,Wt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Ct}));Wt.displayName=`CrosshairIcon`;var Gt=Wt,Kt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:wt}));Kt.displayName=`DotsThreeIcon`;var qt=Kt,Jt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Tt}));Jt.displayName=`ListMagnifyingGlassIcon`;var Yt=Jt,Xt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Et}));Xt.displayName=`PaletteIcon`;var Zt=Xt,Qt=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Dt}));Qt.displayName=`PaperPlaneTiltIcon`;var $t=Qt,en=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:Ot}));en.displayName=`RectangleIcon`;var tn=en,nn=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:kt}));nn.displayName=`RowsIcon`;var rn=nn,an=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:At}));an.displayName=`TextAlignLeftIcon`;var on=an,sn=J.forwardRef((e,n)=>J.createElement(t,{ref:n,...e,weights:jt}));sn.displayName=`TextTIcon`;var cn=sn,Y=p(),ln=`ContextMenu`,[un,dn]=d(ln,[tt]),X=tt(),[fn,pn]=un(ln),mn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,c]=J.useState(!1),l=X(t),u=s(r),d=J.useCallback(e=>{c(e),u(e)},[u]);return(0,Y.jsx)(fn,{scope:t,open:o,onOpenChange:d,modal:a,children:(0,Y.jsx)(Qe,{...l,dir:i,open:o,onOpenChange:d,modal:a,children:n})})};mn.displayName=ln;var hn=`ContextMenuTrigger`,gn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=pn(hn,n),o=X(n),s=J.useRef({x:0,y:0}),l=J.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=J.useRef(0),d=J.useCallback(()=>window.clearTimeout(u.current),[]),p=e=>{s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return J.useEffect(()=>d,[d]),J.useEffect(()=>void(r&&d()),[r,d]),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(at,{...o,virtualRef:l}),(0,Y.jsx)(f.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:c(e.onContextMenu,e=>{d(),p(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:c(e.onPointerDown,Un(e=>{d(),u.current=window.setTimeout(()=>p(e),700)})),onPointerMove:r?e.onPointerMove:c(e.onPointerMove,Un(d)),onPointerCancel:r?e.onPointerCancel:c(e.onPointerCancel,Un(d)),onPointerUp:r?e.onPointerUp:c(e.onPointerUp,Un(d))})]})});gn.displayName=hn;var _n=`ContextMenuPortal`,vn=e=>{let{__scopeContextMenu:t,...n}=e,r=X(t);return(0,Y.jsx)(lt,{...r,...n})};vn.displayName=_n;var yn=`ContextMenuContent`,bn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=pn(yn,n),a=X(n),o=J.useRef(!1);return(0,Y.jsx)(Be,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});bn.displayName=yn;var xn=`ContextMenuGroup`,Sn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(He,{...i,...r,ref:t})});Sn.displayName=xn;var Cn=`ContextMenuLabel`,wn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(qe,{...i,...r,ref:t})});wn.displayName=Cn;var Tn=`ContextMenuItem`,En=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Pe,{...i,...r,ref:t})});En.displayName=Tn;var Dn=`ContextMenuCheckboxItem`,On=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ve,{...i,...r,ref:t})});On.displayName=Dn;var kn=`ContextMenuRadioGroup`,An=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(rt,{...i,...r,ref:t})});An.displayName=kn;var jn=`ContextMenuRadioItem`,Mn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ot,{...i,...r,ref:t})});Mn.displayName=jn;var Nn=`ContextMenuItemIndicator`,Pn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ye,{...i,...r,ref:t})});Pn.displayName=Nn;var Fn=`ContextMenuSeparator`,In=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ue,{...i,...r,ref:t})});In.displayName=Fn;var Ln=`ContextMenuArrow`,Rn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(De,{...i,...r,ref:t})});Rn.displayName=Ln;var zn=`ContextMenuSubTrigger`,Bn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(Ge,{...i,...r,ref:t})});Bn.displayName=zn;var Vn=`ContextMenuSubContent`,Hn=J.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=X(n);return(0,Y.jsx)(ct,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Hn.displayName=Vn;function Un(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var Wn=mn,Gn=gn,Kn=vn,qn=bn,Jn=En,Yn=`Label`,Xn=J.forwardRef((e,t)=>(0,Y.jsx)(f.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Xn.displayName=Yn;var Zn=Xn,Qn={hasSubscribers:!1},Z=Qn,$n=Qn,er=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,tr=()=>Z.hasSubscribers||$n.hasSubscribers,nr=new Set,rr=typeof process==`object`&&process?process:{},ir=(e,t,n,r)=>{typeof rr.emitWarning==`function`?rr.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},ar=e=>!nr.has(e),Q=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),or=e=>Q(e)?e<=256?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?sr:null:null,sr=class extends Array{constructor(e){super(e),this.fill(0)}},cr=class e{heap;length;static#e=!1;static create(t){let n=or(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},lr=class e{#e;#t;#n;#r;#i;#a;#o;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;#C;#w;#T;#E;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#x,autopurgeTimers:e.#S,sizes:e.#y,keyMap:e.#u,keyList:e.#d,valList:e.#f,next:e.#p,prev:e.#m,get head(){return e.#h},get tail(){return e.#g},free:e.#_,isBackgroundFetch:t=>e.#W(t),backgroundFetch:(t,n,r,i)=>e.#U(t,n,r,i),moveToTail:t=>e.#X(t),indexes:t=>e.#I(t),rindexes:t=>e.#L(t),isStale:t=>e.#j(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get memoMethod(){return this.#o}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:c,dispose:l,onInsert:u,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:p,maxSize:m=0,maxEntrySize:h=0,sizeCalculation:g,fetchMethod:_,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:S,ignoreFetchAbort:C,backgroundFetchSize:w=1,perf:T}=t;if(this.backgroundFetchSize=w,T!==void 0&&typeof T?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(this.#s=T??er,n!==0&&!Q(n))throw TypeError(`max option must be a nonnegative integer`);let E=n?or(n):Array;if(!E)throw Error(`invalid max value: `+n);if(this.#e=n,this.#t=m,this.maxEntrySize=h||this.#t,this.sizeCalculation=g,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(v!==void 0&&typeof v!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#o=v,_!==void 0&&typeof _!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#a=_,this.#w=!!_,this.#u=new Map,this.#d=Array.from({length:n}).fill(void 0),this.#f=Array.from({length:n}).fill(void 0),this.#p=new E(n),this.#m=new E(n),this.#h=0,this.#g=0,this.#_=cr.create(n),this.#c=0,this.#l=0,typeof l==`function`&&(this.#n=l),typeof u==`function`&&(this.#r=u),typeof d==`function`?(this.#i=d,this.#v=[]):(this.#i=void 0,this.#v=void 0),this.#C=!!this.#n,this.#E=!!this.#r,this.#T=!!this.#i,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!C,this.maxEntrySize!==0){if(this.#t!==0&&!Q(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!Q(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#M()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=Q(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Q(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#D()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t=`LRU_CACHE_UNBOUNDED`;ar(t)&&(nr.add(t),ir(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#D(){let e=new sr(this.#e),t=new sr(this.#e);this.#x=e,this.#b=t;let n=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#S=n,this.#A=(n,i,a=this.#s.now())=>{t[n]=i===0?0:a,e[n]=i,r(n,i)},this.#O=n=>{t[n]=e[n]===0?0:this.#s.now(),r(n,e[n])};let r=this.ttlAutopurge?(e,t)=>{if(n?.[e]&&(clearTimeout(n[e]),n[e]=void 0),t&&t!==0&&n){let r=setTimeout(()=>{this.#j(e)&&this.#Z(this.#d[e],`expire`)},t+1);r.unref&&r.unref(),n[e]=r}}:()=>{};this.#k=(n,r)=>{if(e[r]){let o=e[r],s=t[r];if(!o||!s)return;n.ttl=o,n.start=s,n.now=i||a(),n.remainingTTL=o-(n.now-s)}};let i=0,a=()=>{let e=this.#s.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=this.#u.get(n);if(r===void 0)return 0;let o=e[r],s=t[r];return!o||!s?1/0:o-((i||a())-s)},this.#j=n=>{let r=t[n],o=e[n];return!!o&&!!r&&(i||a())-r>o}}#O=()=>{};#k=()=>{};#A=()=>{};#j=()=>!1;#M(){let e=new sr(this.#e);this.#l=0,this.#y=e,this.#N=t=>{this.#l-=e[t],e[t]=0},this.#F=(e,t,n,r)=>{if(!Q(n)){if(this.#W(t))return this.backgroundFetchSize;if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!Q(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`)}return n},this.#P=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#l>n;)this.#B(!0)}this.#l+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#l)}}#N=e=>{};#P=(e,t,n)=>{};#F=(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#I({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#g;this.#R(t)&&((e||!this.#j(t))&&(yield t),t!==this.#h);)t=this.#m[t]}*#L({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#h;this.#R(t)&&((e||!this.#j(t))&&(yield t),t!==this.#g);)t=this.#p[t]}#R(e){return e!==void 0&&this.#u.get(this.#d[e])===e}*entries(){for(let e of this.#I())this.#f[e]!==void 0&&this.#d[e]!==void 0&&!this.#W(this.#f[e])&&(yield[this.#d[e],this.#f[e]])}*rentries(){for(let e of this.#L())this.#f[e]!==void 0&&this.#d[e]!==void 0&&!this.#W(this.#f[e])&&(yield[this.#d[e],this.#f[e]])}*keys(){for(let e of this.#I()){let t=this.#d[e];t!==void 0&&!this.#W(this.#f[e])&&(yield t)}}*rkeys(){for(let e of this.#L()){let t=this.#d[e];t!==void 0&&!this.#W(this.#f[e])&&(yield t)}}*values(){for(let e of this.#I())this.#f[e]!==void 0&&!this.#W(this.#f[e])&&(yield this.#f[e])}*rvalues(){for(let e of this.#L())this.#f[e]!==void 0&&!this.#W(this.#f[e])&&(yield this.#f[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(e,t={}){for(let n of this.#I()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,this.#d[n],this))return this.#J(this.#d[n],t)}}forEach(e,t=this){for(let n of this.#I()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#d[n],this)}}rforEach(e,t=this){for(let n of this.#L()){let r=this.#f[n],i=this.#W(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#d[n],this)}}purgeStale(){let e=!1;for(let t of this.#L({allowStale:!0}))this.#j(t)&&(this.#Z(this.#d[t],`expire`),e=!0);return e}info(e){let t=this.#u.get(e);if(t===void 0)return;let n=this.#f[t],r=this.#W(n)?n.__staleWhileFetching:n;if(r===void 0)return;let i={value:r};if(this.#x&&this.#b){let e=this.#x[t],n=this.#b[t];e&&n&&(i.ttl=e-(this.#s.now()-n),i.start=Date.now())}return this.#y&&(i.size=this.#y[t]),i}dump(){let e=[];for(let t of this.#I({allowStale:!0})){let n=this.#d[t],r=this.#f[t],i=this.#W(r)?r.__staleWhileFetching:r;if(i===void 0||n===void 0)continue;let a={value:i};if(this.#x&&this.#b){a.ttl=this.#x[t];let e=this.#s.now()-this.#b[t];a.start=Math.floor(Date.now()-e)}this.#y&&(a.size=this.#y[t]),e.unshift([n,a])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=this.#s.now()-e}this.#z(t,n.value,n)}}set(e,t,n={}){let{status:r=Z.hasSubscribers?{}:void 0}=n;n.status=r,r&&(r.op=`set`,r.key=e,t!==void 0&&(r.value=t),r.cache=this);let i=this.#z(e,t,n);return r&&Z.hasSubscribers&&Z.publish(r),i}#z(e,t,n,r){let{ttl:i=this.ttl,start:a,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=n,l=this.#W(t);if(t===void 0)return c&&(c.set=`deleted`),this.delete(e),this;let{noUpdateTTL:u=this.noUpdateTTL}=n;c&&!l&&(c.value=t);let d=this.#F(e,t,n.size||0,s,c);if(this.maxEntrySize&&d>this.maxEntrySize)return this.#Z(e,`set`),c&&(c.set=`miss`,c.maxEntrySizeExceeded=!0),this;let f=this.#c===0?void 0:this.#u.get(e);if(f===void 0)f=this.#c===0?this.#g:this.#_.length===0?this.#c===this.#e?this.#B(!1):this.#c:this.#_.pop(),this.#d[f]=e,this.#f[f]=t,this.#u.set(e,f),this.#p[this.#g]=f,this.#m[f]=this.#g,this.#g=f,this.#c++,this.#P(f,d,c),c&&(c.set=`add`),u=!1,this.#E&&!l&&this.#r?.(t,e,`add`);else{this.#X(f);let n=this.#f[f];if(t!==n){if(!o){if(this.#W(n)){n!==r&&n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:i}=n;i!==void 0&&i!==t&&(this.#C&&this.#n?.(i,e,`set`),this.#T&&this.#v?.push([i,e,`set`]))}else this.#C&&this.#n?.(n,e,`set`),this.#T&&this.#v?.push([n,e,`set`])}if(this.#N(f),this.#P(f,d,c),this.#f[f]=t,!l){let r=n&&this.#W(n)?n.__staleWhileFetching:n,i=r===void 0?`add`:t===r?`update`:`replace`;c&&(c.set=i,r!==void 0&&(c.oldValue=r)),this.#E&&this.onInsert?.(t,e,i)}}else l||(c&&(c.set=`update`),this.#E&&this.onInsert?.(t,e,`update`))}if(i!==0&&!this.#x&&this.#D(),this.#x&&(u||this.#A(f,i,a),c&&this.#k(c,f)),!o&&this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}return this}pop(){try{for(;this.#c;){let e=this.#f[this.#h];if(this.#B(!0),this.#W(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}}}#B(e){let t=this.#h,n=this.#d[t],r=this.#f[t],i=this.#W(r);i&&r.__abortController.abort(Error(`evicted`));let a=i?r.__staleWhileFetching:r;return(this.#C||this.#T)&&a!==void 0&&(this.#C&&this.#n?.(a,n,`evict`),this.#T&&this.#v?.push([a,n,`evict`])),this.#N(t),this.#S?.[t]&&(clearTimeout(this.#S[t]),this.#S[t]=void 0),e&&(this.#d[t]=void 0,this.#f[t]=void 0,this.#_.push(t)),this.#c===1?(this.#h=this.#g=0,this.#_.length=0):this.#h=this.#p[t],this.#u.delete(n),this.#c--,t}has(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`has`,n.key=e,n.cache=this);let r=this.#V(e,t);return Z.hasSubscribers&&Z.publish(n),r}#V(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#u.get(e);if(i!==void 0){let e=this.#f[i];if(this.#W(e)&&e.__staleWhileFetching===void 0)return!1;if(this.#j(i))r&&(r.has=`stale`,this.#k(r,i));else return n&&this.#O(i),r&&(r.has=`hit`,this.#k(r,i)),!0}else r&&(r.has=`miss`);return!1}peek(e,t={}){let{status:n=tr()?{}:void 0}=t;n&&(n.op=`peek`,n.key=e,n.cache=this),t.status=n;let r=this.#H(e,t);return Z.hasSubscribers&&Z.publish(n),r}#H(e,t){let{status:n,allowStale:r=this.allowStale}=t,i=this.#u.get(e);if(i===void 0||!r&&this.#j(i)){n&&(n.peek=i===void 0?`miss`:`stale`);return}let a=this.#f[i],o=this.#W(a)?a.__staleWhileFetching:a;return n&&(o===void 0?n.peek=`miss`:(n.peek=`hit`,n.value=o)),o}#U(e,t,n,r){let i=t===void 0?void 0:this.#f[t];if(this.#W(i))return i;let a=new AbortController,{signal:o}=n;o?.addEventListener(`abort`,()=>a.abort(o.reason),{signal:a.signal});let s={signal:a.signal,options:n,context:r},c=(r,i=!1)=>{let{aborted:o}=a.signal,c=n.ignoreFetchAbort&&r!==void 0,l=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&r!==void 0);if(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),o&&!c&&!i)return u(a.signal.reason,l);let d=f,p=this.#f[t];return(p===f||p===void 0&&c&&i)&&(r===void 0?d.__staleWhileFetching===void 0?this.#Z(e,`fetch`):this.#f[t]=d.__staleWhileFetching:(n.status&&(n.status.fetchUpdated=!0),this.#z(e,r,s.options,d))),r},l=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),u(e,!1)),u=(r,i)=>{let{aborted:o}=a.signal,s=o&&n.allowStaleOnFetchAbort,c=s||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,u=f;if(this.#f[t]===f&&(!l||!i&&u.__staleWhileFetching===void 0?this.#Z(e,`fetch`):s||(this.#f[t]=u.__staleWhileFetching)),c)return n.status&&u.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw r},d=(t,r)=>{let o=this.#a?.(e,i,s);a.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}),o&&o instanceof Promise?o.then(e=>t(e===void 0?void 0:e),r):o!==void 0&&t(o)};n.status&&(n.status.fetchDispatched=!0);let f=new Promise(d).then(c,l),p=Object.assign(f,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.#z(e,p,{...s.options,status:void 0}),t=this.#u.get(e)):this.#f[t]=p,p}#W(e){if(!this.#w)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof AbortController}fetch(e,t={}){let n=$n.hasSubscribers,{status:r=tr()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#G(e,t);return r&&n&&(r.trace=!0,$n.tracePromise(()=>i,r).catch(()=>{})),i}async#G(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:h=!1,status:g,signal:_}=t;if(g&&(g.op=`fetch`,g.key=e,h&&(g.forceRefresh=!0),g.cache=this),!this.#w)return g&&(g.fetch=`get`),this.#J(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let v={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:g,signal:_},y=this.#u.get(e);if(y===void 0){g&&(g.fetch=`miss`);let t=this.#U(e,y,v,m);return t.__returned=t}{let t=this.#f[y];if(this.#W(t)){let e=n&&t.__staleWhileFetching!==void 0;return g&&(g.fetch=`inflight`,e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#j(y);if(!h&&!i)return g&&(g.fetch=`hit`),this.#X(y),r&&this.#O(y),g&&this.#k(g,y),t;let a=this.#U(e,y,v,m),o=a.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=i?`stale`:`refresh`,o&&i&&(g.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}forceFetch(e,t={}){let n=$n.hasSubscribers,{status:r=tr()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#K(e,t);return r&&n&&(r.trace=!0,$n.tracePromise(()=>i,r).catch(()=>{})),i}async#K(e,t={}){let n=await this.#G(e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}memo(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`memo`,n.key=e,t.context&&(n.context=t.context),n.cache=this);let r=this.#q(e,t);return n&&(n.value=r),Z.hasSubscribers&&Z.publish(n),r}#q(e,t={}){let n=this.#o;if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,status:i,forceRefresh:a,...o}=t;i&&a&&(i.forceRefresh=!0);let s=this.#J(e,o),c=a||s===void 0;if(i&&(i.memo=c?`miss`:`hit`,c||(i.value=s)),!c)return s;let l=n(e,s,{options:o,context:r});return i&&(i.value=l),this.#z(e,l,o),l}get(e,t={}){let{status:n=Z.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`get`,n.key=e,n.cache=this);let r=this.#J(e,t);return n&&(r!==void 0&&(n.value=r),Z.hasSubscribers&&Z.publish(n)),r}#J(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#u.get(e);if(o===void 0){a&&(a.get=`miss`);return}let s=this.#f[o],c=this.#W(s);return a&&this.#k(a,o),this.#j(o)?c?(a&&(a.get=`stale-fetching`),n&&s.__staleWhileFetching!==void 0?(a&&(a.returnedStale=!0),s.__staleWhileFetching):void 0):(i||this.#Z(e,`expire`),a&&(a.get=`stale`),n?(a&&(a.returnedStale=!0),s):void 0):(a&&(a.get=c?`fetching`:`hit`),this.#X(o),r&&this.#O(o),c?s.__staleWhileFetching:s)}#Y(e,t){this.#m[t]=e,this.#p[e]=t}#X(e){e!==this.#g&&(e===this.#h?this.#h=this.#p[e]:this.#Y(this.#m[e],this.#p[e]),this.#Y(this.#g,e),this.#g=e)}delete(e){return this.#Z(e,`delete`)}#Z(e,t){Z.hasSubscribers&&Z.publish({op:`delete`,delete:t,key:e,cache:this});let n=!1;if(this.#c!==0){let r=this.#u.get(e);if(r!==void 0){if(this.#S?.[r]&&(clearTimeout(this.#S?.[r]),this.#S[r]=void 0),n=!0,this.#c===1)this.#Q(t);else{this.#N(r);let n=this.#f[r];if(this.#W(n)?n.__abortController.abort(Error(`deleted`)):(this.#C||this.#T)&&(this.#C&&this.#n?.(n,e,t),this.#T&&this.#v?.push([n,e,t])),this.#u.delete(e),this.#d[r]=void 0,this.#f[r]=void 0,r===this.#g)this.#g=this.#m[r];else if(r===this.#h)this.#h=this.#p[r];else{let e=this.#m[r];this.#p[e]=this.#p[r];let t=this.#p[r];this.#m[t]=this.#m[r]}this.#c--,this.#_.push(r)}}}if(this.#T&&this.#v?.length){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}return n}clear(){return this.#Q(`delete`)}#Q(e){for(let t of this.#L({allowStale:!0})){let n=this.#f[t];if(this.#W(n))n.__abortController.abort(Error(`deleted`));else{let r=this.#d[t];this.#C&&this.#n?.(n,r,e),this.#T&&this.#v?.push([n,r,e])}}if(this.#u.clear(),this.#f.fill(void 0),this.#d.fill(void 0),this.#x&&this.#b){this.#x.fill(0),this.#b.fill(0);for(let e of this.#S??[])e!==void 0&&clearTimeout(e);this.#S?.fill(void 0)}if(this.#y&&this.#y.fill(0),this.#h=0,this.#g=0,this.#_.length=0,this.#l=0,this.#c=0,this.#T&&this.#v){let e=this.#v,t;for(;t=e?.shift();)this.#i?.(...t)}}},ur=e=>e===`add`?`(added)`:e===`delete`?`(deleted)`:e===`context`?`(unchanged)`:``,dr=e=>{let t=e.rows.map(e=>{let t=e.newLine??e.oldLine??``,n=e.kind===`add`?`+`:e.kind===`delete`?`-`:` `;return`${t} ${ur(e.kind)}: ${n}${e.content}`});return[`File: ${e.filename}`,"```",...t,"```"].join(`
|
|
2
2
|
`)},fr=({rows:e,anchorKey:t,headKey:n,filename:r})=>{let i=e.findIndex(e=>e.rowKey===t),a=e.findIndex(e=>e.rowKey===n);if(i===-1||a===-1)return null;let o=Math.min(i,a),s=Math.max(i,a),c=e.filter((e,t)=>t>=o&&t<=s&&(e.kind===`add`||e.kind===`delete`||e.kind===`context`));return c.length===0?null:{keys:c.map(e=>e.rowKey),lines:c.map(e=>e.newLine??e.oldLine??0),context:dr({filename:r,rows:c})}},pr=e=>(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey,mr=e=>{if(!(e instanceof HTMLElement))return null;let t=e.dataset.definitionColumn;return t!==void 0&&/^\d+$/.test(t)?Number(t):null},hr=new Set([`add`,`delete`,`context`]),gr=({rows:e,cursor:t,limit:n,batch:r})=>{if(t>=e.length||r.length>=n)return{rows:r,nextCursor:t};let i=e[t];return i?gr({rows:e,cursor:t+1,limit:n,batch:hr.has(i.kind)?[...r,i]:r}):{rows:r,nextCursor:e.length}},_r=({rows:e,cursor:t,limit:n})=>{let r=gr({rows:e,cursor:t,limit:n,batch:[]});return{rows:r.rows,nextCursor:r.nextCursor,done:r.nextCursor>=e.length}},vr=e=>e.sourceIndex===null?null:e.kind===`delete`&&e.oldLine?{line:e.oldLine,side:`LEFT`}:(e.kind===`add`||e.kind===`context`)&&e.newLine?{line:e.newLine,side:`RIGHT`}:null,yr=({file:e,parsedCache:t})=>{let n=t.get(e.filename);if(n)return n;let r=Je(e);return t.set(e.filename,r),r},br=({files:e,activeFile:t,limit:n})=>{let r=Math.max(0,e.findIndex(e=>e.filename===t)),i=new Set,a=[];for(let t of e.slice(r))if(!i.has(t.filename)&&(i.add(t.filename),a.push(t.filename),a.length>=n))break;return a},xr=({anchor:e,head:t,selectableAtOrBefore:n})=>{let r=Math.min(e,t),i=Math.max(e,t),a=n[i]??null;return{start:r,end:i,addToChatAnchorIndex:a!==null&&a>=r?a:null}};function Sr({className:e,...t}){return(0,Y.jsx)(`kbd`,{"data-slot":`kbd`,className:n(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-chip bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,e),...t})}var Cr=({onClick:e,onAskInline:t})=>(0,Y.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[t?(0,Y.jsxs)(r,{size:`sm`,variant:`outline`,className:`shadow-md`,onClick:t,children:[(0,Y.jsx)(Vt,{className:`size-4`}),`Ask inline`,(0,Y.jsx)(Sr,{children:(0,Y.jsx)(H,{keys:[`mod`,`I`]})})]}):null,(0,Y.jsxs)(r,{size:`sm`,className:`shadow-md`,onClick:e,children:[(0,Y.jsx)(re,{className:`size-4`}),`Add to chat`,(0,Y.jsx)(Sr,{children:(0,Y.jsx)(H,{keys:[`mod`,`L`]})})]})]});function wr({className:e,...t}){return(0,Y.jsx)(Zn,{"data-slot":`label`,className:n(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}var Tr=(e,t)=>[e>0?`${e} removed`:null,t>0?`${t} added`:null].filter(Boolean).join(`, `),Er=({block:e,status:t,ready:i,collapsed:a,collapsible:o,moveLabel:s,current:c,onToggleReviewed:l,onToggleCollapsed:u})=>{let d=`block-reviewed-${e.key}`;return(0,Y.jsxs)(`div`,{className:n(`text-muted-foreground flex h-6 items-center gap-2 border-l-2 border-l-transparent px-2 font-sans text-xs`,c&&`border-l-ring`),children:[t?(0,Y.jsxs)(wr,{htmlFor:d,className:`gap-1.5 text-xs font-normal`,title:t===`covered`?`Covered by the file's viewed mark. Uncheck to review this block again.`:void 0,children:[(0,Y.jsx)(Ke,{id:d,checked:t!==`unreviewed`,disabled:!i,onCheckedChange:e=>l(!!e)}),t===`covered`?`Viewed`:`Reviewed`]}):null,e.formatOnly?(0,Y.jsx)(_,{variant:`secondary`,children:`Formatting only`}):null,s?(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 truncate`,children:[(0,Y.jsx)(Ft,{className:`size-3.5 shrink-0`}),(0,Y.jsx)(`span`,{className:`truncate`,children:s})]}):null,(0,Y.jsx)(`span`,{className:`shrink-0 whitespace-nowrap tabular-nums`,children:Tr(e.removed,e.added)}),o?(0,Y.jsxs)(r,{variant:`ghost`,size:`xs`,className:`ml-auto`,"aria-expanded":!a,onClick:u,children:[a?(0,Y.jsx)(x,{}):(0,Y.jsx)(k,{}),a?`Show`:`Hide`]}):null]})},Dr=e=>/^import \S+$/.test(e),Or=()=>(0,Y.jsxs)(Y.Fragment,{children:[`Right-click a symbol, or `,(0,Y.jsx)(H,{keys:[`mod`]}),`-click its declaration, to find references.`]}),kr=()=>(0,Y.jsxs)(`div`,{className:`flex w-72 flex-col gap-2`,children:[(0,Y.jsx)(l,{className:`h-3 w-4/5`}),(0,Y.jsx)(l,{className:`h-3 w-3/5`}),(0,Y.jsx)(l,{className:`h-3 w-2/5`})]}),Ar=({provider:e,headSha:t,target:n,typesNote:a,tokenCache:o,shikiTheme:s,onFindReferences:c})=>{let l={path:n.path,...n.position},u=i({queryKey:[`review`,`code-intel`,`hover`,t,l],queryFn:()=>e.hover(l),staleTime:1/0,retry:!1});if(u.isPending)return(0,Y.jsx)(kr,{});if(u.isError)return(0,Y.jsxs)(`div`,{className:`text-muted-foreground flex max-w-sm flex-col gap-1 text-xs`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`span`,{children:`Couldn't load type info.`}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Retry loading type info`,onClick:()=>void u.refetch(),children:(0,Y.jsx)(M,{})})]}),a?(0,Y.jsx)(`p`,{children:a}):null]});if(!u.data)return(0,Y.jsxs)(`div`,{className:`text-muted-foreground flex max-w-sm flex-col gap-1 text-xs`,children:[(0,Y.jsx)(`p`,{children:`No type info here.`}),a?(0,Y.jsx)(`p`,{children:a}):null]});let{displayString:d,documentation:f}=u.data;return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsx)(`pre`,{className:`max-h-60 overflow-auto font-mono text-xs break-all whitespace-pre-wrap`,children:d.split(`
|
|
3
3
|
`).map((e,t)=>(0,Y.jsx)(`div`,{children:(0,Y.jsx)(L,{content:e,run:{text:d,offset:t},language:`ts`,tokenCache:o,shikiTheme:s})},t))}),f?(0,Y.jsx)(`p`,{className:`text-muted-foreground max-h-40 overflow-auto text-xs whitespace-pre-wrap`,children:f}):null,a&&Dr(d)?(0,Y.jsxs)(`p`,{className:`text-muted-foreground max-w-sm text-xs`,children:[`No types for this package. `,a]}):null,(0,Y.jsx)(`div`,{className:`border-edge flex justify-end border-t pt-2`,children:(0,Y.jsxs)(_e,{children:[(0,Y.jsx)(he,{asChild:!0,children:(0,Y.jsxs)(r,{variant:`ghost`,size:`xs`,onClick:c,children:[(0,Y.jsx)(Yt,{}),`Find references`,(0,Y.jsx)(Sr,{children:(0,Y.jsx)(H,{keys:[`shift`,`F12`]})})]})}),(0,Y.jsx)(ve,{children:(0,Y.jsx)(Or,{})})]})})]})},jr=({provider:e,headSha:t,hover:n,typesNote:r,tokenCache:i,shikiTheme:a,onFindReferences:o})=>{let s=n.target;return!e||!s?null:(0,Y.jsxs)(C,{open:!0,onOpenChange:e=>{e||n.dismiss()},children:[(0,Y.jsx)(O,{asChild:!0,children:(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute`,style:{top:s.anchor.top,left:s.anchor.left,width:s.anchor.width,height:s.anchor.height}})}),(0,Y.jsx)(T,{align:`start`,className:`w-auto max-w-xl min-w-48`,...n.cardHandlers,children:(0,Y.jsx)(Ar,{provider:e,headSha:t,target:s,typesNote:r,tokenCache:i,shikiTheme:a,onFindReferences:()=>{n.dismiss(),o({path:s.path,...s.position})}})})]})},Mr=(e,t)=>`${e}/search?type=code&q=${encodeURIComponent(t)}`,Nr=()=>(0,Y.jsx)(`div`,{className:`flex flex-col gap-4`,children:Array.from({length:2},(e,t)=>(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsx)(l,{className:`h-4 w-1/2`}),Array.from({length:3},(e,n)=>(0,Y.jsxs)(`div`,{className:`flex items-center gap-3 pl-2`,children:[(0,Y.jsx)(l,{className:`h-3 w-6 shrink-0`}),(0,Y.jsx)(l,{className:`h-3`,style:{width:`${40+(n*23+t*11)%45}%`}})]},n))]},t))}),Pr=e=>[...e.reduce((e,t)=>(e.set(t.path,[...e.get(t.path)??[],t]),e),new Map).entries()].map(([e,t])=>({path:e,entries:t})),Fr=({provider:e,headSha:t,position:n,typesNote:a,commitUrlBase:o,tokenCache:s,shikiTheme:c,onClose:l,onSelectFile:d})=>{let f=i({queryKey:[`review`,`code-intel`,`references`,t,n],queryFn:()=>e.references(n),staleTime:1/0,retry:!1}),p=f.data?.symbolName.trim()??``,m=p===``?`this symbol`:p,h=f.data?.references??[],g=Pr(h);return(0,Y.jsx)(ft,{open:!0,onOpenChange:e=>e?void 0:l(),children:(0,Y.jsxs)(Fe,{className:`sm:max-w-3xl`,children:[(0,Y.jsxs)(dt,{children:[(0,Y.jsx)(Ie,{children:f.isPending?`Finding references…`:`References to ${m}`}),(0,Y.jsx)(xe,{children:f.isSuccess&&h.length>0?`${h.length} in ${g.length} file${g.length===1?``:`s`}, from TypeScript at this pull request's head.`:`From TypeScript at this pull request's head.`})]}),(0,Y.jsxs)(`div`,{className:`max-h-96 overflow-auto`,children:[f.isPending?(0,Y.jsx)(Nr,{}):null,f.isError?(0,Y.jsx)(u,{message:`TypeScript couldn't list the references.`,refetch:()=>void f.refetch(),support:!1}):null,f.isError&&a?(0,Y.jsx)(`p`,{className:`text-muted-foreground px-1 pt-2 text-xs`,children:a}):null,f.isSuccess&&h.length===0?(0,Y.jsx)(S,{variant:`quiet`,size:`sm`,title:`No references found`,description:a?`TypeScript found no uses of ${m} in this repo. ${a}`:`TypeScript found no uses of ${m} in this repo.`,action:(0,Y.jsx)(r,{asChild:!0,variant:`outline`,size:`sm`,children:(0,Y.jsxs)(q,{href:Mr(o,m),children:[(0,Y.jsx)(F,{}),`Search on GitHub`]})})}):null,g.map(e=>(0,Y.jsxs)(`section`,{className:`mb-4 flex flex-col`,children:[(0,Y.jsxs)(`h3`,{className:`truncate pb-1 font-mono text-xs font-medium`,children:[e.path,(0,Y.jsx)(`span`,{className:`text-muted-foreground ml-2`,children:e.entries.length})]}),e.entries.map(e=>(0,Y.jsxs)(r,{variant:`ghost`,size:`sm`,className:`h-auto justify-start gap-3 py-1 font-mono text-xs`,onClick:()=>{l(),d(e.path,e.line)},children:[(0,Y.jsx)(`span`,{className:`text-muted-foreground w-10 shrink-0 text-right tabular-nums`,children:e.line}),(0,Y.jsx)(`span`,{className:`min-w-0 truncate whitespace-pre`,children:(0,Y.jsx)(L,{content:e.lineText.trim(),run:{text:e.lineText.trim(),offset:0},language:it(e.path),tokenCache:s,shikiTheme:c})})]},`${e.line}:${e.column}`))]},e.path))]})]})})},Ir=({intel:e,headSha:t,commitUrlBase:n,tokenCache:r,shikiTheme:i,onSelectFile:a})=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jr,{provider:e.provider,headSha:t,hover:e.hover,typesNote:e.typesNote,tokenCache:r,shikiTheme:i,onFindReferences:e.findReferences}),e.referencesAt&&e.provider?(0,Y.jsx)(Fr,{provider:e.provider,headSha:t,position:e.referencesAt,typesNote:e.typesNote,commitUrlBase:n,tokenCache:r,shikiTheme:i,onClose:e.closeReferences,onSelectFile:a}):null]}),Lr=1e3,Rr=()=>{let e=(0,J.use)(Ze),t=i({queryKey:[`review`,`code-intel`,`status`],queryFn:()=>e?e.status():Promise.resolve({state:`unavailable`,reason:``}),enabled:!!e,refetchInterval:e=>e.state.data?.state===`ready`||e.state.data?.state===`unavailable`?!1:Lr});return{status:e?t.data??null:null,ready:t.data?.state===`ready`?e:null}},zr=()=>{let{status:e}=Rr();if(!e||e.state===`ready`)return null;let t=e.state===`indexing`;return(0,Y.jsxs)(_e,{children:[(0,Y.jsx)(he,{asChild:!0,children:(0,Y.jsxs)(`output`,{className:`text-muted-foreground flex shrink-0 items-center gap-1.5 text-xs`,children:[t?(0,Y.jsx)(w,{}):(0,Y.jsx)(ht,{className:`size-4`}),t?`Indexing types…`:`Types off`]})}),(0,Y.jsx)(ve,{className:`max-w-xs`,children:t?`${e.detail}. Go to definition uses the syntax tree until it's done.`:e.reason})]})},Br={maxSourceChars:5e5,maxOutlineSymbols:500,maxCaptures:4e4,maxLineIdentifiers:200,maxDefinitionCandidates:20,parseTimeoutMs:1e4,coldStartTimeoutMs:3e4},Vr=({candidates:e,needle:t})=>e.toSorted((e,n)=>Number(n.name.toLowerCase()===t)-Number(e.name.toLowerCase()===t)).slice(0,Br.maxDefinitionCandidates),Hr=({filename:e,fileSymbols:t,fileBindings:n,prSymbols:i,symbolsPending:a,symbolsError:o,repoUrl:s,onRetrySymbols:c,onClose:u,onNavigate:d})=>{let[f,p]=(0,J.useState)(``),m=f.trim().toLowerCase(),h=e=>e.name.toLowerCase().includes(m),g=e=>Vr({candidates:e,needle:m}),v=g([...t.filter(h),...m?n.flatMap(e=>h(e)&&!t.some(t=>t.name===e.name&&t.line===e.line)?[{...e,kind:`binding`}]:[]):[]]),y=g(i.filter(t=>t.path!==e&&h(t))),b=v.length+y.length;return(0,Y.jsxs)(ie,{open:!0,onOpenChange:e=>{e||u()},title:`Go to definition`,description:`Jump to where a symbol is declared in this pull request.`,className:`max-w-xl`,children:[(0,Y.jsxs)(oe,{shouldFilter:!1,children:[(0,Y.jsx)(N,{placeholder:`Go to definition…`,value:f,onValueChange:p}),(0,Y.jsxs)(ae,{className:`max-h-80`,children:[v.length?(0,Y.jsx)(ne,{heading:`Declared in this file`,children:v.map(t=>(0,Y.jsxs)(P,{value:`file:${t.line}:${t.kind}:${t.name}`,onSelect:()=>d({path:e,line:t.line,tier:1,listLength:b}),children:[(0,Y.jsx)(`span`,{className:`truncate font-mono text-xs`,children:t.name}),(0,Y.jsxs)(`span`,{className:`text-muted-foreground ml-auto shrink-0 text-xs`,children:[t.kind,` · line `,t.line]})]},`file:${t.line}:${t.kind}:${t.name}`))}):null,y.length?(0,Y.jsx)(ne,{heading:`Best guess: same name elsewhere in this pull request`,children:y.map(e=>(0,Y.jsxs)(P,{value:`pr:${e.path}:${e.line}:${e.name}`,onSelect:()=>d({path:e.path,line:e.line,tier:3,listLength:b}),children:[(0,Y.jsx)(`span`,{className:`truncate font-mono text-xs`,children:e.name}),(0,Y.jsx)(_,{variant:`outline`,className:`shrink-0 text-xs`,children:`Guess`}),(0,Y.jsxs)(`span`,{className:`text-muted-foreground ml-auto shrink-0 truncate text-xs`,children:[e.path,` · line `,e.line]})]},`pr:${e.path}:${e.line}:${e.name}`))}):null]})]}),b?null:(0,Y.jsx)(`div`,{className:`text-muted-foreground space-y-2 px-3 pt-1 pb-3 text-xs`,children:o?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{children:`Couldn't search the rest of this pull request.`}),(0,Y.jsxs)(r,{size:`sm`,variant:`secondary`,onClick:c,children:[(0,Y.jsx)(M,{className:`size-3.5`}),`Try again`]})]}):a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(l,{className:`h-4 w-44`}),(0,Y.jsx)(l,{className:`h-4 w-32`})]}):m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`p`,{children:[`Nothing this pull request touches declares`,` `,(0,Y.jsx)(`span`,{className:`font-mono`,children:f.trim()}),`. It most likely lives in a file the pull request doesn't change.`]}),(0,Y.jsx)(r,{size:`sm`,variant:`secondary`,asChild:!0,children:(0,Y.jsxs)(q,{href:Mr(s,f.trim()),children:[(0,Y.jsx)(F,{className:`size-3.5`}),`Search the repository on GitHub`]})})]}):(0,Y.jsxs)(`p`,{children:[`Type a symbol name to jump to where this pull request declares it. Reopen this from anywhere in the diff with`,` `,(0,Y.jsx)(`span`,{className:`font-mono`,children:(0,Y.jsx)(H,{keys:[`mod`,`shift`,`F`]})}),`.`]})})]})},Ur=We.events({pr_review_code_index_built:{description:`On a pull request's review page, the in-browser code index parsed one file so go-to-definition works.`,properties:y({language:h().describe(`The file's language grammar, or unsupported.`),reason:h().nullable().describe(`Why indexing failed, or null when it worked.`),symbolCount:v().describe(`How many symbols the file defined.`),captureCount:v().describe(`How many syntax captures the parse produced.`),durationMs:v().describe(`How long parsing took, in milliseconds.`)})},pr_review_go_to_definition_resolved:{description:`On a pull request's review page, the user asked for a symbol's definition and Glen looked it up.`,properties:y({language:h().describe(`The file's language grammar, or unsupported.`),tier:v().describe(`How the definition was found (which lookup strategy matched).`),candidateCount:v().describe(`How many possible definitions were found.`)})},pr_review_import_followed:{description:`On a pull request's review page, the user followed an import to its file.`,properties:y({language:h().describe(`The file's language grammar, or unsupported.`),outcome:b([`resolved`,`external`,`declined`]).describe(`resolved (opened in the PR), external (outside the repo) or declined.`)})},pr_review_definition_candidate_picked:{description:`On a pull request's review page, the user picked one definition from a list of several candidates.`,properties:y({tier:v().describe(`How the candidates were found.`),listLength:v().describe(`How many candidates the list showed.`)})}}),Wr={resolved:({path:e,tier:t,candidateCount:n})=>Ur.capture({event:`pr_review_go_to_definition_resolved`,batch:!0,properties:{language:Xe(e)?.grammar??`unsupported`,tier:t,candidateCount:n}}),followed:({path:e,outcome:t})=>Ur.capture({event:`pr_review_import_followed`,batch:!0,properties:{language:Xe(e)?.grammar??`unsupported`,outcome:t}}),picked:({tier:e,listLength:t})=>Ur.capture({event:`pr_review_definition_candidate_picked`,batch:!0,properties:{tier:e,listLength:t}})},Gr=({filename:e,definitionIndex:t,prSymbols:n,repoUrl:r,onClose:i,onSelectFile:a})=>(0,Y.jsx)(et,{fallback:null,children:(0,Y.jsx)(Hr,{filename:e,fileSymbols:t?.symbols??[],fileBindings:t?.bindings??[],prSymbols:n.symbols,symbolsPending:n.isPending,symbolsError:n.isError,repoUrl:r,onRetrySymbols:n.retry,onClose:i,onNavigate:e=>{Wr.picked({tier:e.tier,listLength:e.listLength}),i(),a(e.path,e.line)}})}),Kr=({owner:e,repo:t,pr:i,headSha:a,peek:o,tokenCache:s,shikiTheme:c,codeAppearance:l,onClose:u,onJump:d})=>{let[f,p]=(0,J.useState)(!1);return(0,Y.jsx)(ft,{open:!0,onOpenChange:e=>e?void 0:u(),children:(0,Y.jsxs)(Fe,{className:n(`flex flex-col gap-3 p-0`,f?`h-11/12 sm:max-w-none`:`h-2/3 sm:max-w-4xl`),children:[(0,Y.jsxs)(dt,{className:`flex-row items-center gap-2 px-4 pt-3 pr-12`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Y.jsxs)(Ie,{className:`truncate font-mono text-sm`,children:[o.path,(0,Y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`:`,o.line]})]}),(0,Y.jsxs)(xe,{className:`truncate text-xs`,children:[`Definition of `,(0,Y.jsx)(`span`,{className:`font-mono`,children:o.name}),`. Close to stay where you are.`]})]}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-sm`,"aria-label":f?`Exit full screen`:`Full screen`,onClick:()=>p(!f),children:f?(0,Y.jsx)(Nt,{className:`size-4`}):(0,Y.jsx)(Lt,{className:`size-4`})}),(0,Y.jsxs)(r,{size:`sm`,variant:`secondary`,onClick:d,children:[(0,Y.jsx)(Me,{className:`size-4`}),`Go to definition`]})]}),(0,Y.jsx)(`div`,{className:`border-edge flex min-h-0 flex-1 flex-col border-t`,children:(0,Y.jsx)(le,{owner:e,repo:t,pr:i,headSha:a,path:o.path,target:{line:o.line,nonce:0},tokenCache:s,shikiTheme:c,codeAppearance:l})})]})})},qr=({githubPrUrl:e})=>(0,Y.jsx)(`div`,{className:`flex h-full items-center justify-center p-6`,children:(0,Y.jsx)(S,{title:`No file changes`,description:`This pull request doesn't include any file changes to review yet.`,action:(0,Y.jsx)(r,{asChild:!0,children:(0,Y.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,children:`View on GitHub`})})})}),Jr=({controls:e})=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Ee,{children:`Highlight theme`}),(0,Y.jsxs)(ke,{value:e.appearance.theme,onValueChange:t=>{let n=je.safeParse(t);n.success&&e.setTheme(n.data)},children:[(0,Y.jsxs)(G,{value:`automatic`,children:[(0,Y.jsx)(Zt,{className:`size-4`}),`Automatic`]}),(0,Y.jsxs)(G,{value:`github`,children:[(0,Y.jsx)(Zt,{className:`size-4`}),`GitHub`]}),(0,Y.jsxs)(G,{value:`vscode`,children:[(0,Y.jsx)(Zt,{className:`size-4`}),`VS Code`]})]}),(0,Y.jsx)(gt,{}),(0,Y.jsx)(Ee,{children:`Code size`}),(0,Y.jsxs)(ke,{value:e.appearance.size,onValueChange:t=>{let n=U.safeParse(t);n.success&&e.setSize(n.data)},children:[(0,Y.jsxs)(G,{value:`small`,children:[(0,Y.jsx)(cn,{className:`size-3`}),`Small`]}),(0,Y.jsxs)(G,{value:`medium`,children:[(0,Y.jsx)(cn,{className:`size-4`}),`Medium`]}),(0,Y.jsxs)(G,{value:`large`,children:[(0,Y.jsx)(cn,{className:`size-5`}),`Large`]})]}),(0,Y.jsx)(gt,{}),(0,Y.jsxs)(Ae,{checked:e.appearance.wrap,onCheckedChange:e.setWrap,children:[(0,Y.jsx)(on,{className:`size-4`}),`Wrap lines`]}),(0,Y.jsxs)(Ae,{checked:e.appearance.blame,onCheckedChange:e.setBlame,children:[(0,Y.jsx)(pt,{className:`size-4`}),`Show blame`]})]}),Yr=({layout:e,onLayoutChange:t,codeAppearance:n,onGoToDefinition:i})=>(0,Y.jsxs)(W,{children:[(0,Y.jsx)(Re,{asChild:!0,children:(0,Y.jsx)(r,{variant:`ghost`,size:`icon`,className:`size-8`,title:`Diff layout`,children:(0,Y.jsx)(qt,{className:`size-4`,weight:`bold`})})}),(0,Y.jsxs)(Ne,{align:`end`,children:[(0,Y.jsxs)(ke,{value:e,onValueChange:e=>{(e===`unified`||e===`split`)&&t(e)},children:[(0,Y.jsxs)(G,{value:`unified`,children:[(0,Y.jsx)(rn,{className:`size-4`}),`Unified`]}),(0,Y.jsxs)(G,{value:`split`,children:[(0,Y.jsx)(Ut,{className:`size-4`}),`Split`]})]}),(0,Y.jsx)(gt,{}),(0,Y.jsx)(Jr,{controls:n}),i?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(gt,{}),(0,Y.jsxs)(Ce,{onSelect:i,children:[(0,Y.jsx)(Gt,{className:`size-4`}),`Go to definition`,(0,Y.jsx)(be,{children:(0,Y.jsx)(H,{keys:[`mod`,`shift`,`F`]})})]})]}):null]})]}),Xr=({hidden:e,loading:t,error:n,onExpand:i,onPrefetch:a,onRetry:o})=>n?(0,Y.jsxs)(`div`,{className:`bg-muted/40 text-destructive flex h-6 items-center gap-2 px-3 font-mono text-xs`,children:[(0,Y.jsx)(`span`,{children:`Couldn't load file context.`}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Retry loading context`,onClick:o,children:(0,Y.jsx)(M,{className:`size-3.5`})})]}):(0,Y.jsxs)(`div`,{className:`bg-muted/40 text-muted-foreground flex h-6 items-center gap-1 px-2 font-mono text-xs`,onPointerEnter:a,children:[(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Expand up`,disabled:t,onClick:()=>i(`up`),children:(0,Y.jsx)(V,{className:`size-3.5`})}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Expand down`,disabled:t,onClick:()=>i(`down`),children:(0,Y.jsx)(k,{className:`size-3.5`})}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Expand all hidden lines`,disabled:t,onClick:()=>i(`all`),children:(0,Y.jsx)(zt,{className:`size-3.5`})}),(0,Y.jsx)(`span`,{children:t?`Loading…`:`${e} hidden line${e===1?``:`s`}`})]}),Zr=[{option:`caseSensitive`,label:`Aa`,title:`Match case`},{option:`wholeWord`,label:`ab`,title:`Match whole word`},{option:`regex`,label:`.*`,title:`Use regular expression`},{option:`thisFile`,label:`File`,title:`Only this file`}],Qr=e=>e.invalid?`Invalid pattern`:e.query?e.count===0?`No results`:e.current===null?`${e.count}${e.capped?`+`:``} results`:`${e.current+1} of ${e.count}${e.capped?`+`:``}`:``,$r=({bar:e})=>e.open?(0,Y.jsx)(`div`,{className:`pointer-events-none sticky top-2 left-0 z-30 flex h-0 w-full justify-end pr-4`,children:(0,Y.jsxs)(D,{material:`overlay`,size:`sm`,className:`pointer-events-auto flex h-fit flex-row items-center gap-1 p-1`,children:[(0,Y.jsxs)(me,{className:`w-80`,children:[(0,Y.jsx)(de,{ref:e.inputRef,autoFocus:!0,onFocus:e=>e.currentTarget.select(),"aria-label":`Find in the pull request's changed files`,placeholder:`Find in changed files`,value:e.query,"aria-invalid":e.invalid||void 0,onChange:t=>e.onQueryChange(t.target.value),onKeyDown:t=>{t.key===`Enter`?(t.preventDefault(),e.onStep(t.shiftKey?-1:1)):t.key===`Escape`&&(t.preventDefault(),e.onClose())}}),(0,Y.jsx)(fe,{align:`inline-end`,children:Zr.map(t=>(0,Y.jsx)(B,{size:`xs`,variant:e.options[t.option]?`secondary`:`ghost`,"aria-pressed":e.options[t.option],"aria-label":t.title,title:t.title,className:`font-mono`,onClick:()=>e.onToggle(t.option),children:t.label},t.option))})]}),(0,Y.jsx)(`span`,{"aria-live":`polite`,className:`text-muted-foreground w-24 shrink-0 text-center text-xs tabular-nums`,children:Qr(e)}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Previous match (Shift+Enter)`,disabled:e.count===0,onClick:()=>e.onStep(-1),children:(0,Y.jsx)(z,{})}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Next match (Enter)`,disabled:e.count===0,onClick:()=>e.onStep(1),children:(0,Y.jsx)(te,{})}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Close find (Escape)`,onClick:e.onClose,children:(0,Y.jsx)(o,{})})]})}):null,ei=({filename:e,line:t,isPending:n,onCancel:i,onSubmit:a})=>{let[s,c]=(0,J.useState)(``),l=s.trim().length-K,u=e=>{let t=s.trim();t?t.length>65536?j.error(`Comment is too long (GitHub allows at most ${K.toLocaleString()} characters).`):a(e,t):j.error(`Add a comment before posting.`)};return(0,Y.jsx)(`div`,{className:`border-edge bg-background border-b p-3`,children:(0,Y.jsxs)(`div`,{className:`border-edge bg-muted/30 rounded-md border p-3`,children:[(0,Y.jsxs)(`div`,{className:`text-muted-foreground mb-2 truncate text-xs`,children:[e,`:`,t]}),(0,Y.jsx)(E,{value:s,onChange:e=>c(e.target.value),placeholder:`Leave an inline review comment...`,className:`min-h-24`,disabled:n}),l>0?(0,Y.jsxs)(`p`,{className:`text-destructive mt-2 text-xs`,children:[l.toLocaleString(),` characters over GitHub's`,` `,K.toLocaleString(),` limit.`]}):null,(0,Y.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2`,children:[(0,Y.jsxs)(r,{variant:`ghost`,size:`sm`,className:`gap-1.5`,disabled:n,onClick:i,children:[(0,Y.jsx)(o,{className:`size-3.5`}),`Cancel`]}),(0,Y.jsxs)(r,{size:`sm`,className:`gap-1.5`,disabled:n||l>0,onClick:()=>u(`pending`),children:[n?(0,Y.jsx)(w,{className:`size-3.5`}):(0,Y.jsx)($t,{className:`size-3.5`}),`Add review comment`]}),(0,Y.jsxs)(W,{children:[(0,Y.jsx)(Re,{asChild:!0,children:(0,Y.jsx)(r,{variant:`outline`,size:`icon`,className:`size-8`,disabled:n||l>0,title:`More comment actions`,children:(0,Y.jsx)(qt,{className:`size-4`,weight:`bold`})})}),(0,Y.jsx)(Ne,{align:`end`,children:(0,Y.jsx)(Ce,{onSelect:()=>u(`now`),children:`Comment now`})})]})]})]})})},ti=e=>e.split(/[\s@.]+/).flatMap(e=>{let t=e[0];return t?[t]:[]}).slice(0,2).join(``).toUpperCase()||`?`,ni=({thread:e,resolvingThreadId:t,replyPending:n,onResolveThread:i,onReply:a})=>{let[o,s]=(0,J.useState)(!1),[c,l]=(0,J.useState)(``),u=c.trim().length-K,d=e.comments.some(e=>e.reviewState===`PENDING`);return(0,Y.jsx)(`div`,{className:`border-edge bg-background border-b p-3`,children:(0,Y.jsxs)(`div`,{className:`border-edge rounded-md border`,children:[(0,Y.jsxs)(`div`,{className:`border-edge flex items-center gap-2 border-b px-3 py-2`,children:[(0,Y.jsx)(`span`,{className:`text-muted-foreground text-xs font-medium`,children:`Review thread`}),d?(0,Y.jsx)(_,{variant:`secondary`,children:`Pending`}):null,e.isOutdated?(0,Y.jsx)(_,{variant:`outline`,children:`Outdated`}):null,d?null:(0,Y.jsx)(_,{variant:e.isResolved?`secondary`:`default`,children:e.isResolved?`Resolved`:`Unresolved`}),!d&&!e.isResolved?(0,Y.jsxs)(r,{variant:`outline`,size:`sm`,className:`ml-auto h-7 gap-1.5`,disabled:t===e.threadId,onClick:()=>i(e.threadId),children:[(0,Y.jsx)(ee,{className:`size-3.5`}),t===e.threadId?`Resolving`:`Resolve`]}):null]}),(0,Y.jsxs)(`div`,{className:`space-y-3 p-3`,children:[e.comments.map(e=>(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Y.jsxs)(ze,{size:`sm`,children:[e.author.avatarUrl?(0,Y.jsx)(Oe,{src:e.author.avatarUrl,alt:`${e.author.login} avatar`}):null,(0,Y.jsx)(we,{children:ti(e.author.login)})]}),(0,Y.jsx)(`span`,{className:`truncate text-xs font-medium`,children:e.author.login}),(0,Y.jsx)(`span`,{className:`text-muted-foreground ml-auto text-xs`,children:Te(new Date(e.createdAt))})]}),(0,Y.jsx)(`div`,{className:`max-w-none`,children:(0,Y.jsx)(mt,{children:e.body})})]},e.id)),o?(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(E,{value:c,onChange:e=>l(e.target.value),placeholder:`Reply...`,className:`min-h-20`,disabled:n}),u>0?(0,Y.jsxs)(`p`,{className:`text-destructive text-xs`,children:[u.toLocaleString(),` characters over GitHub's`,` `,K.toLocaleString(),` limit.`]}):null,(0,Y.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Y.jsx)(r,{variant:`ghost`,size:`sm`,disabled:n,onClick:()=>{s(!1),l(``)},children:`Cancel`}),(0,Y.jsxs)(r,{size:`sm`,className:`gap-1.5`,disabled:n||u>0,onClick:()=>{let t=c.trim();t?t.length>65536?j.error(`Reply is too long (GitHub allows at most ${K.toLocaleString()} characters).`):(a(e.threadId,t),l(``),s(!1)):j.error(`Add a reply before posting.`)},children:[n?(0,Y.jsx)(w,{className:`size-3.5`}):(0,Y.jsx)($t,{className:`size-3.5`}),`Reply`]})]})]}):(0,Y.jsxs)(r,{variant:`ghost`,size:`sm`,className:`h-7 gap-1.5 px-2`,onClick:()=>s(!0),children:[(0,Y.jsx)(A,{className:`size-3.5`}),`Reply`]})]})]})})},ri=({failure:e,onRetryFileLines:t})=>(0,Y.jsxs)(`div`,{className:`border-edge bg-muted/40 text-destructive flex shrink-0 items-center gap-2 border-b px-3 py-1 font-mono text-xs`,children:[(0,Y.jsx)(`span`,{children:e.message}),e.retry?(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Retry the jump`,onClick:()=>{t(),e.retry?.()},children:(0,Y.jsx)(M,{className:`size-3.5`})}):null]}),ii=({entry:e,commitUrl:t})=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(ze,{size:`sm`,children:[e.authorAvatarUrl?(0,Y.jsx)(Oe,{src:e.authorAvatarUrl,alt:``}):null,(0,Y.jsx)(we,{children:e.author.charAt(0)})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`div`,{className:`truncate font-medium`,children:e.author}),e.authorLogin?(0,Y.jsxs)(`div`,{className:`text-muted-foreground truncate text-xs`,children:[`@`,e.authorLogin]}):null]})]}),(0,Y.jsx)(`div`,{className:`mt-2 line-clamp-3`,children:e.messageHeadline}),(0,Y.jsxs)(`div`,{className:`text-muted-foreground mt-2 flex items-center gap-2 text-xs`,children:[(0,Y.jsx)(`span`,{children:Le(e.committed)}),(0,Y.jsx)(`span`,{children:`·`}),(0,Y.jsx)(`span`,{children:e.committed.toLocaleString()})]}),(0,Y.jsx)(`div`,{className:`mt-2 font-mono text-xs`,children:t?(0,Y.jsx)(q,{href:t,className:`hover:text-foreground text-muted-foreground transition-colors`,children:e.commitOid.slice(0,7)}):(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.commitOid.slice(0,7)})})]}),ai=`text-muted-foreground/60 hover:text-muted-foreground flex h-5 max-w-56 min-w-0 shrink items-center text-xs transition-colors`,oi=({entry:e,loading:t,commitUrl:n,rangeStart:r})=>{if(t)return(0,Y.jsx)(`span`,{className:ai,"aria-hidden":`true`,children:(0,Y.jsx)(l,{className:`h-2 w-20`})});if(!e)return null;let i=(0,Y.jsxs)(`span`,{className:`min-w-0 truncate`,children:[e.author,`, `,Le(e.committed)]});return(0,Y.jsxs)(C,{openDelay:250,children:[(0,Y.jsx)(O,{asChild:!0,children:n?(0,Y.jsx)(q,{href:n,className:ai,"aria-label":`${e.author} · ${e.label}`,tabIndex:r?void 0:-1,"aria-hidden":!r||void 0,children:i}):(0,Y.jsx)(`span`,{className:ai,"aria-hidden":`true`,children:i})}),(0,Y.jsx)(T,{side:`left`,align:`start`,className:`w-80 text-sm`,children:(0,Y.jsx)(ii,{entry:e,commitUrl:n})})]})},si=({entry:e})=>(0,Y.jsxs)(ze,{className:`size-4`,children:[e.authorAvatarUrl?(0,Y.jsx)(Oe,{src:e.authorAvatarUrl,alt:``}):null,(0,Y.jsx)(we,{className:`text-xs`,children:e.author.charAt(0)})]}),ci=({marker:e,kind:t,entry:i,commitUrl:a,onSelectFile:o})=>{if(!e?.label)return null;let s=t===`add`?`text-brand`:`text-destructive`,c=(0,Y.jsxs)(r,{variant:`outline`,size:`xs`,"aria-label":e.label,className:`h-5 max-w-64 min-w-0 shrink gap-1.5 px-1.5 font-normal shadow-sm`,onClick:()=>o(e.target.filename,e.target.line??void 0),children:[i?(0,Y.jsx)(si,{entry:i}):null,(0,Y.jsx)(Ft,{className:s}),(0,Y.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})]});return(0,Y.jsxs)(C,{openDelay:250,children:[(0,Y.jsx)(O,{asChild:!0,children:c}),(0,Y.jsxs)(T,{side:`left`,align:`start`,className:`w-80 text-sm`,children:[i?(0,Y.jsx)(ii,{entry:i,commitUrl:a}):null,(0,Y.jsxs)(`div`,{className:n(i&&`border-edge mt-3 border-t pt-3`),children:[(0,Y.jsxs)(`div`,{className:`flex items-start gap-1.5`,children:[(0,Y.jsx)(Ft,{className:n(`mt-0.5 size-4 shrink-0`,s)}),(0,Y.jsx)(`span`,{className:`font-medium break-all`,children:e.label})]}),(0,Y.jsx)(`div`,{className:`text-muted-foreground mt-1 text-xs`,children:`Click the label to open it.`})]})]})]})},li=({moveMarker:e,kind:t,blameEntry:n,blameLoading:r,rangeStart:i,commitUrlBase:a,onSelectFile:o})=>{let s=n?`${a}/commit/${n.commitOid}`:null;return(0,Y.jsx)(et,{fallback:null,children:e?.label?(0,Y.jsx)(ci,{marker:e,kind:t,entry:n,commitUrl:s,onSelectFile:o}):(0,Y.jsx)(oi,{entry:n,loading:r,rangeStart:i,commitUrl:s})})};function ui({...e}){return(0,Y.jsx)(Wn,{"data-slot":`context-menu`,...e})}function di({...e}){return(0,Y.jsx)(Gn,{"data-slot":`context-menu-trigger`,...e})}function fi({className:e,...t}){return(0,Y.jsx)(Kn,{children:(0,Y.jsx)(qn,{"data-slot":`context-menu-content`,className:n(`rounded-surface glass-overlay text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 low-power:duration-0 z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto p-1 shadow-2xl duration-(--duration-fast) data-closed:ease-(--ease-exit) data-open:ease-(--ease-enter) data-[state=closed]:overflow-hidden motion-reduce:duration-0`,e),...t})})}function pi({className:e,inset:t,variant:r=`default`,...i}){return(0,Y.jsx)(Jn,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":r,className:n(`group/context-menu-item rounded-chip focus:bg-muted focus:text-foreground not-data-[variant=destructive]:focus:**:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i})}function mi({className:e,...t}){return(0,Y.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:n(`text-muted-foreground group-focus/context-menu-item:text-foreground ml-auto text-xs tracking-widest`,e),...t})}var hi=({intel:e,onSelectIdentifier:t,children:n})=>{let r=e.hover.clicked;return(0,Y.jsxs)(ui,{onOpenChange:t=>{t&&e.hover.dismiss()},children:[(0,Y.jsx)(di,{asChild:!0,disabled:!r,children:n}),r?(0,Y.jsxs)(fi,{children:[(0,Y.jsxs)(pi,{onSelect:()=>t(r.position.line,r.position.column,`peek`),children:[(0,Y.jsx)(tn,{}),`Peek definition`,(0,Y.jsxs)(mi,{children:[(0,Y.jsx)(H,{keys:[`mod`]}),`-click`]})]}),(0,Y.jsxs)(pi,{onSelect:()=>t(r.position.line,r.position.column,`jump`),children:[(0,Y.jsx)(Se,{}),`Go to definition`]}),(0,Y.jsxs)(pi,{onSelect:()=>e.findReferences({path:r.path,...r.position}),children:[(0,Y.jsx)(Yt,{}),`Find all references`,(0,Y.jsx)(mi,{children:(0,Y.jsx)(H,{keys:[`shift`,`F12`]})})]})]}):null]})},gi=(e,t,n=`l`)=>{let r=(0,J.useRef)(t);(0,J.useEffect)(()=>{r.current=t}),(0,J.useEffect)(()=>{let t=t=>{e&&(t.metaKey||t.ctrlKey)&&t.key.toLowerCase()===n&&(t.preventDefault(),r.current())};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,n])},_i=e=>{let t=new Date(e.committedDate),n=e.authorName??e.authorLogin??`Unknown`;return{...e,committed:t,author:n,label:`${Le(t)} · ${e.messageHeadline}`}},vi=e=>new Map(e.flatMap(e=>{if(e.endingLine<e.startingLine)return[];let t=_i(e);return Array.from({length:e.endingLine-e.startingLine+1},(n,r)=>[e.startingLine+r,t])})),yi=e=>{let t=(0,J.useRef)(null);return t.current?.ranges!==e&&(t.current={ranges:e,index:vi(e??[])}),t.current.index},bi=({rows:e,blocks:t,views:n})=>{let r=new Map;t.forEach((e,t)=>{for(let n of Array.from({length:e.endRow-e.startRow+1},(t,n)=>e.startRow+n))r.set(n,t)});let i=new Set;return e.flatMap(e=>{let t=e.sourceIndex===null?void 0:r.get(e.sourceIndex),a=t===void 0?void 0:n[t];if(t===void 0||!a)return[{...e,blockIndex:null,dimmed:!1}];let o=a.bar&&!i.has(t)?[{...e,kind:`block`,oldLine:null,newLine:null,content:``,sourceIndex:null,rowKey:`block-${t}`,newRun:void 0,oldRun:void 0,blockIndex:t,dimmed:!1}]:[];return i.add(t),a.collapsed?o:[...o,{...e,blockIndex:t,dimmed:a.dimmed}]})},xi=({order:e,blocksByFile:t,isDone:n,from:r})=>{let i=Math.max(0,e.indexOf(r.path)),a=[...e.slice(i),...e.slice(0,i),r.path];return a.flatMap((e,n)=>(t.get(e)??[]).filter(e=>n===0?e.index>r.index:n!==a.length-1||e.index<=r.index)).find(e=>!n(e))??null},Si=[`INPUT`,`TEXTAREA`,`SELECT`],Ci=(e,t)=>{let n=(0,J.useRef)(t);(0,J.useEffect)(()=>{n.current=t}),(0,J.useEffect)(()=>{if(!e)return;let t=e=>{e.key.toLowerCase()!==`r`||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.repeat||e.target instanceof HTMLElement&&(e.target.isContentEditable||Si.includes(e.target.tagName))||(e.preventDefault(),n.current())};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])},wi=[],Ti=e=>e.flatMap(e=>e.kind===`file`?[e.file.filename]:Ti(e.children)),Ei=({files:e,selectedFile:t,lineTarget:n,revealSourceIndex:r,mergedRows:i,blocksByFile:a,blockMarks:o,moveMarkers:s,onSelectFile:c})=>{let l=t?a.get(t)??wi:wi,[u,d]=(0,J.useState)({}),[f,p]=(0,J.useState)(null),m=n?.filename===t?l.find(e=>e.newStart!==null&&n.line>=e.newStart&&n.line<e.newStart+e.added)?.key:void 0,h=r===null?void 0:l.find(e=>r>=e.startRow&&r<=e.endRow)?.key,g=l.map(e=>{let t=o.enabled?o.statusOf(e):null,n=t===`reviewed`||t===`covered`,r=e.formatOnly||n;return{block:e,status:t,collapsible:r,settled:n,collapsed:r&&e.key!==m&&e.key!==h&&(u[e.key]??e.formatOnly)}}),_=bi({rows:i,blocks:l,views:g.map(e=>({bar:o.enabled||e.block.formatOnly,collapsed:e.collapsed,dimmed:e.settled}))}),v=l.find(e=>e.key===f)??l.find(e=>o.statusOf(e)===`unreviewed`)??null,y=(e,t)=>{let n=l[e];n&&(p(n.key),o.setReviewed(n.path,[{key:n.key,reviewed:t}]))};Ci(o.ready,()=>{if(!v)return;o.statusOf(v)===`unreviewed`&&y(v.index,!0);let t=xi({order:Ti(ut(e)),blocksByFile:a,isDone:e=>e.key===v.key||o.statusOf(e)!==`unreviewed`,from:v});t&&(p(t.key),c(t.path,t.anchorLine))});let b=l.filter(e=>e.formatOnly&&o.statusOf(e)===`unreviewed`);return{displayRows:_,header:{formattingOnly:l.filter(e=>e.formatOnly).length,progress:o.enabled&&t?o.progress?.get(t)??null:null,onMarkFormattingReviewed:o.ready&&t&&b.length>0?()=>o.setReviewed(t,b.map(e=>({key:e.key,reviewed:!0}))):null,marksError:o.loadError,onRetryMarks:o.retry},rows:{bars:g,ready:o.ready,cursorIndex:o.enabled?v?.index??null:null,onCursor:e=>p(l[e]?.key??null),onToggleReviewed:y,onToggleCollapsed:e=>{let t=g[e];t&&d(e=>({...e,[t.block.key]:!t.collapsed}))},moveLabelOf:e=>[...Array.from({length:e.added},(t,n)=>e.newStart===null?null:`new:${e.newStart+n}`),...Array.from({length:e.removed},(t,n)=>e.oldStart===null?null:`old:${e.oldStart+n}`)].map(t=>t?s.get(`${e.path}:${t}`)?.label:null).find(Boolean)??null}}},Di=1e4,Oi=20,ki=e=>e.filter(e=>e.end>=e.start).toSorted((e,t)=>e.start-t.start).reduce((e,t)=>{let n=e[e.length-1];return n&&t.start<=n.end+1?(n.end=Math.max(n.end,t.end),e):(e.push({...t}),e)},[]),Ai=({rows:e,hunks:t,expandAll:n,expandedHunks:r})=>{if(n||e.length<=Di||t.length===0)return{rows:e.map((e,t)=>({...e,sourceIndex:t})),collapsed:!1};let i=new Set(r),a=ki(t.map((n,r)=>{let a=t[r+1];return i.has(n.rowIndex)?{start:n.rowIndex,end:a?a.rowIndex-1:e.length-1}:{start:Math.max(0,n.rowIndex-Oi),end:Math.min(e.length-1,n.rowIndex+Oi)}})),o=a.flatMap((t,n)=>{let r=a[n-1];return[...!r&&t.start>0?[{kind:`collapsed`,oldLine:null,newLine:null,content:`${t.start} hidden lines`,sourceIndex:null}]:r&&t.start>r.end+1?[{kind:`collapsed`,oldLine:null,newLine:null,content:`${t.start-r.end-1} hidden lines`,sourceIndex:null}]:[],...e.slice(t.start,t.end+1).map((e,n)=>({...e,sourceIndex:t.start+n}))]}),s=a[a.length-1],c=s&&s.end<e.length-1?[{kind:`collapsed`,oldLine:null,newLine:null,content:`${e.length-s.end-1} hidden lines`,sourceIndex:null}]:[];return{rows:[...o,...c],collapsed:!0}},ji=({hunks:e,totalNewLines:t})=>{if(e.length===0)return[];let n=(()=>{let t=e[0];return!t||t.newStart<=1?[]:[{id:`gap-leading`,kind:`leading`,hunkRowIndex:t.rowIndex,newStart:1,newEnd:t.newStart-1,delta:t.oldStart-t.newStart}]})(),r=e.flatMap((t,n)=>{let r=e[n+1];if(!r)return[];let i=t.newStart+t.newLines,a=r.newStart-1;if(a<i)return[];let o=t.oldStart+t.oldLines;return[{id:`gap-interior-${r.rowIndex}`,kind:`interior`,hunkRowIndex:r.rowIndex,newStart:i,newEnd:a,delta:o-i}]}),i=(()=>{let n=e[e.length-1];if(!n)return[];let r=n.newStart+n.newLines;return t!==null&&t<r?[]:[{id:`gap-trailing`,kind:`trailing`,hunkRowIndex:null,newStart:r,newEnd:t,delta:n.oldStart+n.oldLines-r}]})();return[...n,...r,...i]},Mi=({rows:e,gaps:t,hunks:n,collapsed:r,line:i,fileLineCount:a,fileLinesError:o})=>{if(!Number.isInteger(i)||i<1)return{action:`fail`,reason:`out-of-range`};let s=e.findIndex(e=>e.newLine===i);if(s!==-1)return{action:`scroll`,index:s};let c=n.find(e=>i>=e.newStart&&i<e.newStart+e.newLines);if(c&&r)return{action:`expand-hunk`,rowIndex:c.rowIndex};if(o)return{action:`fail`,reason:`content-unavailable`};if(a!==null&&i>a)return{action:`fail`,reason:`out-of-range`};let l=t.find(e=>i>=e.newStart&&(e.newEnd===null||i<=e.newEnd));if(l){if(a===null)return{action:`wait`};let e=l.newEnd??a,t=i-l.newStart+1,n=e-i+1;return{action:`expand-gap`,gapId:l.id,reveal:t<=n?{top:t,bottom:0}:{top:0,bottom:n}}}return a===null?{action:`wait`}:{action:`fail`,reason:`not-in-diff`}},Ni=(e,t)=>e.sourceIndex===null?`h${t}`:`p${e.sourceIndex}`,Pi=(e,t,n)=>({kind:`context`,newLine:e,oldLine:e+t,content:n?.[e-1]??``,sourceIndex:null,rowKey:`x${e}`}),Fi=(e,t,n)=>{let r=e.newEnd??(n?n.length:null);if(r===null||r<e.newStart)return{rows:[],fullyRevealed:!1};let i=r-e.newStart+1,a=n!==null&&n.length>0,o=a?Math.min(t?.top??0,i):0,s=a?Math.min(t?.bottom??0,i-o):0,c=i-o-s,l=Array.from({length:o},(t,r)=>Pi(e.newStart+r,e.delta,n)),u=Array.from({length:s},(t,i)=>Pi(r-s+1+i,e.delta,n)),d=c>0?[{kind:`gap`,oldLine:null,newLine:null,content:``,sourceIndex:null,rowKey:`gap-control-${e.id}`,gap:{id:e.id,hidden:c,canExpandUp:!0,canExpandDown:!0}}]:[];return{rows:[...l,...d,...u],fullyRevealed:a&&c===0}},Ii=({rows:e,gaps:t,revealed:n,fileLines:r})=>{let i=new Map(t.filter(e=>e.hunkRowIndex!==null).map(e=>[e.hunkRowIndex,e])),a=t.find(e=>e.kind===`trailing`)??null,o=e.flatMap((e,t)=>{let a=e.kind===`hunk`&&e.sourceIndex!==null?i.get(e.sourceIndex):void 0;if(!a)return[{...e,rowKey:Ni(e,t)}];let o=Fi(a,n[a.id],r);return o.fullyRevealed?o.rows:[...o.rows,{...e,rowKey:Ni(e,t)}]}),s=a?Fi(a,n[a.id],r).rows:[];return[...o,...s]},Li=20,Ri={},zi=[],Bi=({files:e,selectedFile:t,fileLines:n,parsedCache:r,expandedStoryFile:i,revealSourceIndex:a,revealLine:o})=>{let s=(0,J.useRef)(e),[c,l]=(0,J.useState)(()=>new Set(i?[i]:[])),[u,d]=(0,J.useState)({}),[f,p]=(0,J.useState)({});s.current!==e&&(s.current=e,r.current.clear(),p({}));let m=t?f[t]??Ri:Ri,h=t?u[t]??zi:zi,g=t?c.has(t):!1,_=(()=>{let i=e.find(e=>e.filename===t);if(!i)return{mergedRows:[],collapsed:!1,gaps:[],hunks:[],rowCount:null};let a=yr({file:i,parsedCache:r.current}),o=Ai({rows:a.rows,hunks:a.hunks,expandAll:g,expandedHunks:h}),s=ji({hunks:a.hunks,totalNewLines:n?n.length:null});return{mergedRows:I(Ii({rows:o.rows,gaps:s,revealed:m,fileLines:n})),collapsed:o.collapsed,gaps:s,hunks:a.hunks,rowCount:a.rows.length}})();t&&a!==null&&_.collapsed&&!_.mergedRows.some(e=>e.sourceIndex===a)&&l(e=>new Set(e).add(t));let v=(e,n)=>{t&&p(r=>{let i=r[t]??{};return{...r,[t]:{...i,[e]:n(i[e]??{top:0,bottom:0})}}})},y=(e,t)=>v(e,e=>({top:Math.max(e.top,t.top),bottom:Math.max(e.bottom,t.bottom)})),b=(e,t,n)=>v(e,e=>t===`all`?{top:n,bottom:0}:t===`up`?{...e,top:e.top+Li}:{...e,bottom:e.bottom+Li}),x=o===null?null:Mi({rows:_.mergedRows,gaps:_.gaps,hunks:_.hunks,collapsed:_.collapsed,line:o,fileLineCount:n?.length??null,fileLinesError:!1});x?.action===`expand-gap`&&y(x.gapId,x.reveal);let S=e=>{t&&d(n=>({...n,[t]:[...new Set([...n[t]??[],e])]}))};return{..._,revealGap:y,expandGap:b,expandHunk:S,setExpandedFiles:l}},Vi=(e,t)=>{switch(t.type){case`open`:return{...e,open:!0};case`close`:return{...e,open:!1};case`type`:return{...e,query:t.query};case`settle`:return e.settledQuery===e.query?e:{...e,settledQuery:e.query,current:null,nonce:e.nonce+1};case`toggle`:return{...e,options:{...e.options,[t.option]:!e.options[t.option]},current:null,nonce:e.nonce+1};case`land`:return{...e,current:t.key,nonce:e.nonce+1}}},Hi=1e4,Ui=String.raw`[\p{L}\p{N}_$]`,Wi=new Set([`hunk`,`meta`,`gap`]),Gi=(e,t)=>{try{return new RegExp(e,t)}catch{return null}},Ki=(e,t)=>{let n=[];for(let r of e){if(n.length===t)break;n.push(r)}return n};function*qi(e,t){for(let{filename:n,rows:r}of e)for(let e of r)if(!Wi.has(e.kind))for(let r of e.content.matchAll(t))r[0].length>0&&(yield{key:`${n}\u0000${e.rowKey}:${r.index}`,filename:n,rowKey:e.rowKey,sourceIndex:e.sourceIndex,newLine:e.newLine,start:r.index,end:r.index+r[0].length})}var Ji=({files:e,query:t,caseSensitive:n,wholeWord:r,regex:i})=>{if(!t)return{matches:[],invalid:!1,capped:!1};let a=i?t:t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),o=Gi(r?`(?<!${Ui})(?:${a})(?!${Ui})`:a,n?`gu`:`giu`);if(!o)return{matches:[],invalid:!0,capped:!1};let s=Ki(qi(e,o),10001);return{matches:s.slice(0,Hi),invalid:!1,capped:s.length>Hi}},Yi=({current:e,delta:t,count:n})=>n===0?null:e===null?t===1?0:n-1:(e+t+n)%n,Xi=({parsed:e,fileLines:t})=>{let n=e.rows.map((e,t)=>({...e,sourceIndex:t})),r=t?ji({hunks:e.hunks,totalNewLines:t.length}):[];return Ii({rows:n,gaps:r,revealed:Object.fromEntries(r.map(e=>[e.id,{top:t?.length??0,bottom:0}])),fileLines:t})},Zi=120,Qi=({files:e,selectedFile:t,fileLines:n,onSelectFile:r,onSearch:i})=>{let a=(0,J.useRef)(null),[o,s]=(0,J.useReducer)(Vi,{open:!1,query:``,settledQuery:``,options:{caseSensitive:!1,wholeWord:!1,regex:!1,thisFile:!1},current:null,nonce:0});(0,J.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||e.shiftKey||e.altKey||e.key.toLowerCase()!==`f`||e.target instanceof HTMLElement&&(e.target.isContentEditable||e.target.closest(`input, textarea, select, .xterm`))&&e.target!==a.current||(e.preventDefault(),s({type:`open`}),a.current?.focus(),a.current?.select())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),(0,J.useEffect)(()=>{if(o.query===o.settledQuery)return;let e=window.setTimeout(()=>s({type:`settle`}),Zi);return()=>window.clearTimeout(e)},[o.query,o.settledQuery]);let c=(0,J.useRef)(null),{caseSensitive:l,wholeWord:u,regex:d,thisFile:f}=o.options,p=o.open?o.settledQuery:``,m=[e,t,n,p,l,u,d,f],h=c.current,g=h?.key??[],_=g.length===m.length&&g.every((e,t)=>e===m[t]),v=h&&_?h:(()=>{let r=h?.key[0]===e?h.diffs:e.map(e=>{let t=Je(e);return{filename:e.filename,parsed:t,rows:Xi({parsed:t,fileLines:null})}}),i=h?.key[0]===e&&h.selectedRows.filename===t&&h.selectedRows.fileLines===n,a=r.find(e=>e.filename===t),o=i?h.selectedRows:{filename:t,fileLines:n,rows:a&&n?Xi({parsed:a.parsed,fileLines:n}):null},s=Ji({files:(f?r.filter(e=>e.filename===t):r).map(e=>e.filename===t&&o.rows?{filename:e.filename,rows:o.rows}:e),query:p,caseSensitive:l,wholeWord:u,regex:d});return{key:m,diffs:r,selectedRows:o,result:s,fileMatches:s.matches.filter(e=>e.filename===t)}})();c.current=v;let{result:y,fileMatches:b}=v,{matches:x}=y,S=x.findIndex(e=>e.key===o.current),C=x.findIndex(e=>e.filename===t),w=S===-1?C===-1?null:C:S,T=w===null?null:x[w]??null;return{bar:{open:o.open,inputRef:a,query:o.query,options:o.options,current:w,count:x.length,invalid:y.invalid,capped:y.capped,onQueryChange:e=>{i(),s({type:`type`,query:e})},onToggle:e=>s({type:`toggle`,option:e}),onStep:e=>{let n=Yi({current:w,delta:e,count:x.length}),i=n===null?void 0:x[n];n!==null&&i&&(i.filename!==t&&r(i.filename),s({type:`land`,key:i.key}))},onClose:()=>s({type:`close`})},fileMatches:b,target:T?.filename===t?{...T,nonce:o.nonce}:null}},$i=`review-find`,ea=`review-find-current`,ta=e=>e instanceof Text?[e]:[...e.childNodes].flatMap(ta),na=(e,t,n)=>{let r=ta(e).map((e,t,n)=>({node:e,from:n.slice(0,t).reduce((e,t)=>e+t.data.length,0)})),i=e=>r.find(({node:t,from:n})=>e>=n&&e<=n+t.data.length),a=i(t),o=i(n);if(!a||!o)return null;let s=document.createRange();return s.setStart(a.node,t-a.from),s.setEnd(o.node,n-o.from),s},ra=(e,t,{fileMatches:n,target:r})=>{let i=(0,J.useRef)(null);(0,J.useEffect)(()=>{let a=e.current,o=typeof CSS>`u`?void 0:CSS.highlights;if(!a||!o)return;let s=n.reduce((e,t)=>(e.set(t.rowKey,[...e.get(t.rowKey)??[],t]),e),new Map),c=()=>{let e=new Highlight,n=new Highlight;a.querySelectorAll(`[data-index]`).forEach(o=>{let c=t[Number(o.dataset.index)],l=c?s.get(c.rowKey):void 0;l&&o.querySelectorAll(`pre`).forEach(t=>l.forEach(o=>{let s=na(t,o.start,o.end);if(!s)return;let c=r?.rowKey===o.rowKey&&r.start===o.start;if((c?n:e).add(s),c&&r&&i.current!==r.nonce){i.current=r.nonce;let e=s.getBoundingClientRect(),t=a.getBoundingClientRect();(e.left<t.left+80||e.right>t.right-24)&&(a.scrollLeft+=e.left-t.left-t.width/3)}}))}),o.set($i,e),o.set(ea,n)},l={id:0},u=()=>{cancelAnimationFrame(l.id),l.id=requestAnimationFrame(c)};c();let d=new MutationObserver(u);return d.observe(a,{childList:!0,subtree:!0}),()=>{d.disconnect(),cancelAnimationFrame(l.id),o.delete($i),o.delete(ea)}},[e,t,n,r]);let a=r?t.findIndex(e=>e.rowKey===r.rowKey):-1;return r&&a!==-1?{index:a,nonce:-1-r.nonce}:null},ia=/\.[cm]?[jt]sx?$/,aa=({providerReady:e,path:t})=>e&&ia.test(t)?`language-server`:`tree-sitter`,oa=({name:e,candidateCount:t,searched:n})=>n?t>1?`${t} declarations named ${e} in this pull request, none provably the one you clicked.`:`Nothing this pull request changes declares ${e}.`:`Couldn't confirm where ${e} is declared in this pull request.`,sa=(e,t)=>e.filter(e=>e.path!==t.path||e.line!==t.line||e.column!==t.column),ca=(e,t,n,r)=>{if(n>r)return null;let i=n+r>>1,a=e[i];return a?t<a.startColumn?ca(e,t,n,i-1):t>=a.endColumn?ca(e,t,i+1,r):a:null},la=({identifiersByLine:e,line:t,column:n})=>{let r=e.get(t);return r?ca(r,n,0,r.length-1):null},ua=(e,t)=>e.length>0&&e.every(e=>e.path===t.path&&e.line===t.line&&e.column===t.column),da=e=>{let t=e.split(`/`);return e.startsWith(`@`)?t.slice(0,2).join(`/`):t[0]??e},fa=/^(?:@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/i,pa=e=>{let t=da(e);return fa.test(t)?`https://www.npmjs.com/package/${t}`:`https://www.npmjs.com/search?q=${encodeURIComponent(t)}`},ma=(e,t,n)=>(t>e.startRow||t===e.startRow&&n>=e.startColumn)&&(t<e.endRow||t===e.endRow&&n<e.endColumn),ha=(e,t)=>!t.scope||!!e.scope&&ma(t.scope,e.scope.startRow,e.scope.startColumn),ga=({index:e,reference:t})=>(e.definitionsByName.get(t.name)??[]).reduce((e,n)=>n.scope&&!ma(n.scope,t.row,t.startColumn)?e:!e||ha(n,e)?n:e,null),_a=({index:e,reference:t})=>{let n=ga({index:e,reference:t});if(n)return{line:n.row+1};let r=(e.symbolsByName.get(t.name)??[]).filter(e=>e.kind!==`method`),i=r.length===1?r[0]:void 0;return i?{line:i.line}:null},va=({index:e,filename:t,reference:n,prSymbols:r})=>{let i=_a({index:e,reference:n});if(i)return{tier:1,target:{path:t,line:i.line}};let a=e.importsByLocal.get(n.name);return a?{tier:2,binding:a}:{tier:3,candidates:r.filter(e=>e.name===n.name).slice(0,Br.maxDefinitionCandidates)}},ya=`This PR changes its packages, but the reviewer uses this clone's installed ones, so new or upgraded packages may have no types.`,ba=`This PR's new packages aren't installed`,xa=(e,t)=>{switch(e.reason){case`not-requested`:return{brief:`${ba}. Rerun with \`glen review ${t} --install-deps\` (this runs the PR's package install).`,full:`${ya} Rerun with \`glen review ${t} --install-deps\` to install them (this runs the PR's package install, which can run code from the PR).`};case`not-same-repo`:return{brief:`${ba}, because GitHub doesn't confirm the PR comes from this repo.`,full:`${ya} Installing is off because GitHub doesn't confirm this PR comes from this repo, and installing a fork's packages would run its code.`};case`install-config`:return{brief:`${ba}, because the PR changes ${e.file}.`,full:`${ya} Installing is off because this PR changes ${e.file}, which controls how packages install.`};case`local-dependency`:return{brief:`${ba}, because its lockfile adds a link: or file: package.`,full:`${ya} Installing is off because its lockfile adds a link: or file: package, which points outside the registry.`}}},Sa=({status:e,scriptFile:t})=>e.state===`unavailable`?`Find references needs TypeScript. ${e.reason}`:e.state===`indexing`?`TypeScript is still loading (${e.detail}). Try again in a moment.`:t?null:`Find references works in TypeScript and JavaScript files.`,Ca=e=>e.key===`F12`&&e.shiftKey&&!e.ctrlKey&&!e.metaKey&&!e.altKey,wa=(e,t)=>{let n=(0,J.useRef)(t);(0,J.useEffect)(()=>{n.current=t}),(0,J.useEffect)(()=>{if(!e)return;let t=e=>{Ca(e)&&(e.preventDefault(),n.current())};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])},Ta=(e,t)=>e.newLine===null||t===null?null:{line:e.newLine,column:t},Ea=300,Da=150,Oa=(e,t)=>!!e&&!!t&&e.path===t.path&&e.position.line===t.position.line&&e.position.column===t.position.column,ka=({enabled:e,path:t,rows:n,containerRef:r})=>{let[i,a]=(0,J.useState)(null),[o,s]=(0,J.useState)(null),c=(0,J.useRef)({open:void 0,close:void 0,pointer:null}),l=e=>{let i=r.current;if(!t||!i||!(e instanceof HTMLElement))return null;let a=e.closest(`[data-index]`),o=a?n[Number(a.dataset.index)]:void 0,s=o?Ta(o,mr(e)):null;if(!s)return null;let c=e.getBoundingClientRect(),l=i.getBoundingClientRect();return{path:t,position:s,anchor:{top:c.top-l.top+i.scrollTop,left:c.left-l.left+i.scrollLeft,width:c.width,height:c.height}}},u=()=>clearTimeout(c.current.close),d=()=>{clearTimeout(c.current.open),u(),c.current.close=setTimeout(()=>a(null),Da)},f=t=>{if(!e)return;let n=l(t.target);n&&(c.current.pointer=n,u(),clearTimeout(c.current.open),!Oa(n,i)&&(c.current.open=setTimeout(()=>a(n),Ea)))},p=t=>{e&&s(mr(t.target)===null?null:l(t.target))},m=t=>{e&&mr(t.target)!==null&&(c.current.pointer=null,d())},h=i?.path===t?i:null,g=e&&o?.path===t?o:null;return{target:e?h:null,clicked:g,shortcutTarget:()=>e?c.current.pointer??h??g:null,listHandlers:{onMouseOver:f,onMouseOut:m,onMouseDown:p},cardHandlers:{onPointerEnter:u,onPointerLeave:d},dismiss:()=>{clearTimeout(c.current.open),u(),a(null)}}},Aa=({pr:e,selectedFile:t,definitionIndex:n,modifierHeld:r,rows:i,scrollRef:a})=>{let o=Rr(),s=!!t&&aa({providerReady:!!o.ready,path:t})===`language-server`,c=ka({enabled:s&&n!==null,path:t,rows:i,containerRef:a}),[l,u]=(0,J.useState)(null),d=o.status,f=e=>{c.dismiss(),u(e)};wa(!!t&&!!d,()=>{let e=c.shortcutTarget();e?f({path:e.path,...e.position}):d&&t&&j.info(Sa({status:d,scriptFile:aa({providerReady:!0,path:t})===`language-server`})??(0,Y.jsx)(Or,{}))});let p=d?.state===`ready`&&d.skippedInstall?xa(d.skippedInstall,e):null;return{provider:o.ready,typesNote:p?.full??null,typesBrief:p?.brief??null,rowsIndex:r||s?n:null,hover:c,referencesAt:l,findReferences:f,closeReferences:()=>u(null)}},ja=({definitions:e,scopes:t})=>{let n=t.toSorted((e,t)=>e.startRow-t.startRow||e.startColumn-t.startColumn),r={next:0,open:[]},i=new Map;return e.map((e,t)=>({definition:e,index:t})).sort((e,t)=>e.definition.row-t.definition.row||e.definition.startColumn-t.definition.startColumn).forEach(({definition:e,index:t})=>{for(;r.next<n.length&&(n[r.next].startRow<e.row||n[r.next].startRow===e.row&&n[r.next].startColumn<=e.startColumn);)r.open.push(n[r.next]),r.next+=1;for(;r.open.length&&!ma(r.open[r.open.length-1],e.row,e.startColumn);)r.open.pop();let a=r.open[r.open.length-1];a&&i.set(t,a)}),e.map((e,t)=>({...e,scope:i.get(t)??null}))},Ma=e=>e.reduce((e,t)=>{let n=e.get(t.name);return n?n.push(t):e.set(t.name,[t]),e},new Map),Na=e=>{let t=Ma(ja(e)),n=Ma(e.symbols),r=new Map(e.imports.map(e=>[e.local,e]).reverse()),i=e.references.reduce((e,i)=>{let a=i.row+1,o={...i,exact:!!_a({index:{definitionsByName:t,symbolsByName:n},reference:i})||r.has(i.name)},s=e.get(a);return s?s.push(o):e.set(a,[o]),e},new Map);return i.forEach((e,t)=>i.set(t,e.sort((e,t)=>e.startColumn-t.startColumn).slice(0,Br.maxLineIdentifiers))),{identifiersByLine:i,definitionsByName:t,symbolsByName:n,symbols:e.symbols,importsByLocal:r,bindings:[...new Map(e.definitions.map(e=>[`${e.row}|${e.name}`,{name:e.name,line:e.row+1}])).values()]}},Pa=/^[ \t]*import\s+(?:type\s+)?([\w$*,{}\s]{0,600}?)\s*from\s*['"]([^'"\n]+)['"]/gm,Fa=e=>e.split(`/*`).map((e,t)=>{if(t===0)return e;let n=e.indexOf(`*/`);return n===-1?``:e.slice(n+2)}).join(``),Ia=e=>{let t=/{([^}]*)}/.exec(e),n=e.replace(/{[^}]*}/,``).replace(/,/g,` `).trim(),r=/^\*\s+as\s+([A-Za-z_$][\w$]*)$/.exec(n),i=/^([A-Za-z_$][\w$]*)$/.exec(n);return[...r?.[1]?[{local:r[1],imported:`*`}]:[],...i?.[1]?[{local:i[1],imported:`default`}]:[],...(t?.[1]??``).split(`,`).flatMap(e=>{let t=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/),n=(t[0]??``).trim(),r=(t[1]??t[0]??``).trim();return n&&r?[{local:r,imported:n}]:[]})]},La=e=>[...Fa(e).matchAll(Pa)].flatMap(e=>{let t=e[2];return t?Ia(e[1]??``).map(e=>({...e,specifier:t})):[]}),Ra=e=>({ok:!1,reason:e}),za=({path:e,sourceLength:t})=>{let n=Xe(e);return n?t>Br.maxSourceChars?{ok:!1,reason:`file-too-large`}:{ok:!0,...n}:{ok:!1,reason:`unsupported-language`}},$={worker:null,nextId:0,idle:Promise.resolve()},Ba=new Map,Va=new Set,Ha=(e,t)=>(Ur.capture({event:`pr_review_code_index_built`,batch:!0,properties:{language:Xe(e)?.grammar??`unsupported`,reason:t.ok?null:t.reason,symbolCount:t.ok?t.symbols.length:0,captureCount:t.ok?t.captureCount:0,durationMs:t.ok?t.durationMs:0}}),t),Ua=e=>{$.worker?.terminate(),$.worker=null,Va.clear(),Ba.forEach((t,n)=>t({id:n,...Ra(e)})),Ba.clear()},Wa=()=>{let e=new Worker(new URL(`/assets/code-intel.worker-BAIYzL2d.js`,``+import.meta.url),{type:`module`});return e.addEventListener(`message`,e=>{let t=Ba.get(e.data.id);t&&(Ba.delete(e.data.id),t(e.data))}),e.addEventListener(`error`,()=>Ua(`worker-crashed`)),e},Ga=(e,t,n)=>new Promise(r=>{let i=window.setTimeout(()=>Ua(`timed-out`),n?Br.coldStartTimeoutMs:Br.parseTimeoutMs);Ba.set(t.id,e=>{window.clearTimeout(i),r(e)}),e.postMessage(t)}),Ka=async(e,t,n)=>{if(e!==$.nextId)return Ha(n.path,{id:e,...Ra(`superseded`)});let r=!$.worker||!Va.has(t),i=await Promise.resolve().then(()=>$.worker??=Wa()).catch(()=>null);if(!i)return Ha(n.path,{id:e,...Ra(`worker-boot-failed`)});let a=await Ga(i,{id:e,...n},r);return a.ok&&Va.add(t),Ha(n.path,a)},qa=e=>{let t=za({path:e.path,sourceLength:e.source.length});if(!t.ok)return Promise.resolve(Ha(e.path,{id:0,...Ra(t.reason)}));$.nextId+=1;let n=$.nextId,r=$.idle.then(()=>Ka(n,t.grammar,e));return $.idle=r.catch(()=>void 0),r},Ja={definitions:e=>qa(e)},Ya=({filename:e,headSha:t,lines:n,enabled:r})=>i({queryKey:[`review`,`definition-index`,t,e],queryFn:async()=>{let t=(n??[]).join(`
|
|
4
4
|
`),r=await Ja.definitions({path:e??``,source:t});return r.ok?Na({...r,imports:La(t)}):null},enabled:r&&!!e&&n!==null&&!!Xe(e),retry:!1,staleTime:e=>e.state.data?1/0:0,structuralSharing:!1}).data??null,Xa=[`INPUT`,`TEXTAREA`,`SELECT`],Za=(e,t)=>{let n=(0,J.useRef)(t);(0,J.useEffect)(()=>{n.current=t}),(0,J.useEffect)(()=>{let t=t=>{!e||!t.shiftKey||!(t.metaKey||t.ctrlKey)||t.key.toLowerCase()!==`f`||t.target instanceof HTMLElement&&(t.target.isContentEditable||Xa.includes(t.target.tagName))||(t.preventDefault(),n.current())};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])},Qa=(e,t)=>e.github.reviewFollowImport.queryOptions(t),$a=({owner:e,repo:t,pr:n,headSha:r,onResolved:i,onExternal:o,onDeclined:s})=>{let c=g(),l=a(),u=(0,J.useRef)(0);return{follow:(a,d)=>{let f=u.current+1;u.current=f,l.fetchQuery(Qa(c,{owner:e,repo:t,pr:n,headSha:r,fromPath:a,specifier:d.specifier,name:d.imported})).then(e=>{u.current===f&&(e.status===`resolved`?i(e,a):e.status===`external`?o(e.specifier,a):s(d,a))}).catch(()=>{u.current===f&&s(d,a)})}}},eo=({regionRef:e})=>{let[t,n]=(0,J.useState)({inside:!1,held:!1});return(0,J.useEffect)(()=>{let t={inside:!1},r=e=>{let r=t.inside;n(t=>t.inside===r&&t.held===e?t:{inside:r,held:e})},i=e=>r(t.inside&&pr(e)),a=n=>{t.inside=n.target instanceof Node&&!!e.current?.contains(n.target),r(t.inside&&pr(n))},o=()=>{t.inside=!1,r(!1)};return window.addEventListener(`keydown`,i),window.addEventListener(`keyup`,i),window.addEventListener(`mousemove`,a),window.addEventListener(`blur`,o),document.addEventListener(`visibilitychange`,o),()=>{window.removeEventListener(`keydown`,i),window.removeEventListener(`keyup`,i),window.removeEventListener(`mousemove`,a),window.removeEventListener(`blur`,o),document.removeEventListener(`visibilitychange`,o)}},[e]),t},to=({owner:e,repo:t,pr:n,headSha:r,enabled:a})=>{let o=g(),s=i({...st(o,{owner:e,repo:t,pr:n,headSha:r}),enabled:a&&!!r});return{symbols:s.data??[],searched:s.isSuccess,isPending:s.isPending,isError:s.isError,retry:()=>void s.refetch()}},no=80,ro=({files:e,selectedFile:t,selectedMetadata:n,owner:i,repo:o,pr:s,headSha:c,fileLines:l,commitUrlBase:u,scrollRef:d,rows:f,onSelectFile:p})=>{let m=(0,J.useRef)(null),h=(0,J.useRef)(null),g=(0,J.useRef)(null),[_,v]=(0,J.useState)(null),y=(0,J.useRef)(null),b=a(),[x,S]=(0,J.useState)(!1),C=e.some(e=>Xe(e.filename)),w=eo({regionRef:d}),T=Ya({filename:t,headSha:c,lines:l,enabled:nt(n)}),E=Aa({pr:s,selectedFile:t,definitionIndex:T,modifierHeld:w.held,rows:f,scrollRef:d}),D=to({owner:i,repo:o,pr:s,headSha:c,enabled:C&&(w.inside||x)}),O=e=>{let t=e.slice(0,no);return{name:t,id:`definition:${t}`}},ee=e=>(0,Y.jsxs)(`span`,{className:`flex flex-col items-start gap-2`,children:[y.current,e]}),k=(e,t)=>{let{name:n,id:i}=O(e);m.current=null,j.info(t(n),{id:i,description:ee((0,Y.jsx)(r,{asChild:!0,size:`sm`,variant:`secondary`,children:(0,Y.jsxs)(q,{href:Mr(u,n),children:[(0,Y.jsx)(F,{className:`size-3.5`}),`Search on GitHub`]})}))})},A=(e,t)=>{let n=h.current;n?.intent===`peek`?v({name:n.name,path:e,line:t??1,fromLine:n.line}):p(e,t,n?.line)},M=()=>{_&&(v(null),p(_.path,_.line,_.fromLine))},N=()=>{m.current&&j.dismiss(m.current),m.current=null},te=$a({owner:i,repo:o,pr:s,headSha:c,onResolved:(e,t)=>{Wr.followed({path:t,outcome:`resolved`}),N(),g.current===h.current&&A(e.path,e.line??void 0)},onExternal:(e,t)=>{Wr.followed({path:t,outcome:`external`}),N(),g.current===h.current&&j.info(`${e} is a package, so its source isn't in this repo.`,{description:ee((0,Y.jsx)(r,{asChild:!0,size:`sm`,variant:`secondary`,children:(0,Y.jsx)(q,{href:pa(e),children:`View on npm`})}))})},onDeclined:(e,t)=>{Wr.followed({path:t,outcome:`declined`}),g.current===h.current?k(e.local,e=>`Couldn't find where ${e} comes from.`):N()}});Za(!!t&&C,()=>S(!0));let ne=(e,t,n)=>{let r=va({index:e,filename:t,reference:n,prSymbols:D.symbols});if(Wr.resolved({path:t,tier:r.tier,candidateCount:r.tier===3?r.candidates.length:1}),r.tier===1)A(r.target.path,r.target.line);else if(r.tier===2){let{name:e,id:n}=O(r.binding.local);m.current=n,j.loading(`Following ${e}…`,{id:n}),g.current=h.current,te.follow(t,r.binding)}else r.candidates.length===1&&r.candidates[0]?A(r.candidates[0].path,r.candidates[0].line):k(n.name,e=>oa({name:e,candidateCount:r.candidates.length,searched:D.searched}))};return{definitionsAvailable:C,modifierHeld:w.held,definitionIndex:T,prSymbols:D,paletteOpen:x,setPaletteOpen:S,onSelectIdentifier:(e,n,r)=>{if(!T||!t||e===null||n===null)return;let i=la({identifiersByLine:T.identifiersByLine,line:e,column:n});if(!i)return;y.current=null;let a={name:i.name,line:e,intent:r};h.current=a;let o=E.provider,s=aa({providerReady:!!o,path:t});if(!o||s===`tree-sitter`){ne(T,t,i);return}let l={path:t,line:e,column:i.startColumn},u=()=>{h.current===a&&(y.current=E.typesBrief,ne(T,t,i))};b.fetchQuery({queryKey:[`review`,`code-intel`,`definition`,c,l],queryFn:()=>o.definition(l),staleTime:1/0}).then(e=>{if(h.current!==a)return;if(ua(e,l)){E.findReferences(l);return}let t=sa(e,l),n=t.find(e=>!e.external),r=t[0];n?A(n.path,n.line):r?j.info(`${O(i.name).name} is defined in ${r.path}, outside this repo.`):u()},u)},intel:E,peek:_,closePeek:()=>v(null),jumpToPeek:M}},io=()=>{let[e,t]=(0,J.useState)(0),[n]=(0,J.useState)(()=>e=>{let n=e?.parentElement;if(!e||!n)return;let r=new ResizeObserver(()=>t(e.offsetTop));return r.observe(n),()=>r.disconnect()});return[e,n]},ao=8e3,oo=1600,so=6e3,co=4,lo=(e,t)=>e===`out-of-range`?`Line ${t.line} is past the end of ${t.filename}.`:e===`content-unavailable`?`Couldn't load ${t.filename} to jump to line ${t.line}.`:e===`timeout`?`Jumping to ${t.filename}:${t.line} took too long.`:`Couldn't find line ${t.line} in ${t.filename}.`,uo=({target:e,selectedFile:t,rows:n,gaps:r,hunks:i,collapsed:a,fileLineCount:o,fileLinesError:s,onExpandHunk:c,onRevealGap:l})=>{let[u,d]=(0,J.useState)({seenNonce:null,active:null,steps:0,landed:null,failure:null}),f=!!e&&e.nonce!==u.seenNonce;e&&f&&d({seenNonce:e.nonce,active:e,steps:0,landed:null,failure:null}),!e&&u.active&&d(e=>({...e,active:null}));let p=!f&&u.active?.filename===t?u.active:null,m=p?Mi({rows:n,gaps:r,hunks:i,collapsed:a,line:p.line,fileLineCount:o,fileLinesError:s}):null;p&&m?.action===`scroll`&&d(e=>({...e,active:null,landed:{...p,index:m.index}})),p&&m?.action===`fail`&&d(e=>({...e,active:null,failure:{target:p,reason:m.reason}})),p&&(m?.action===`expand-gap`||m?.action===`expand-hunk`)&&(u.steps>=co?d(e=>({...e,active:null,failure:{target:p,reason:`not-in-diff`}})):(d(e=>({...e,steps:e.steps+1})),m.action===`expand-gap`?l(m.gapId,m.reveal):c(m.rowIndex))),(0,J.useEffect)(()=>{if(!u.failure)return;let e=window.setTimeout(()=>d(e=>({...e,failure:null})),so);return()=>window.clearTimeout(e)},[u.failure]),(0,J.useEffect)(()=>{let e=u.active;if(!e)return;let t=window.setTimeout(()=>d(t=>t.active===e?{...t,active:null,failure:{target:e,reason:`timeout`}}:t),ao);return()=>window.clearTimeout(t)},[u.active]),(0,J.useEffect)(()=>{if(!u.landed)return;let e=window.setTimeout(()=>d(e=>({...e,landed:null})),oo);return()=>window.clearTimeout(e)},[u.landed]);let h=e&&(u.failure?.reason===`content-unavailable`||u.failure?.reason===`timeout`)?()=>d(t=>({...t,active:e,steps:0,failure:null})):null;return{scrollTarget:u.landed?{index:u.landed.index,nonce:u.landed.nonce}:null,failure:u.failure?.target.filename===t?{message:lo(u.failure.reason,u.failure.target),retry:h}:null,highlightedLine:u.landed?.filename===t?u.landed.line:null}},fo=4,po=80,mo=8,ho=20,go=`ring-ring ring-2 ring-inset`,_o=`dashed-l`,vo={gridTemplateColumns:`auto 1fr`},yo={gridTemplateColumns:`2.5rem 2.5rem 1.25rem`},bo={gridTemplateColumns:`2.5rem 1fr`},xo=`6.25rem + 2px + 1.5rem`,So=`2.5rem + 2px + 1.5rem`,Co=` `.repeat(8),wo=({kind:e,selected:t,wrap:r,codeSizeClass:i,highlighted:a,moved:o})=>n(`group/row grid min-h-5 font-mono leading-5`,i,r?`w-full`:`w-max min-w-full`,e===`add`&&(o?`bg-diff-add-bg/80`:`bg-diff-add-bg`),e===`delete`&&(o?`bg-diff-del-bg/80`:`bg-diff-del-bg`),(e===`hunk`||e===`collapsed`)&&`bg-diff-hunk-bg text-diff-hunk-fg`,e===`meta`&&`bg-muted/40 text-muted-foreground`,t&&`bg-accent`,a&&go),To=({kind:e,selected:t,moved:r})=>n(`bg-background sticky left-0 z-1 grid border-l-2 border-l-transparent`,e===`add`&&`bg-diff-add-bg`,e===`delete`&&`bg-diff-del-bg`,e===`add`&&r&&n(`border-l-brand`,_o),e===`delete`&&r&&n(`border-l-destructive`,_o),(e===`hunk`||e===`collapsed`)&&`bg-diff-hunk-bg`,t&&`bg-accent`),Eo=(e,t)=>{let n=e.reduce((e,t)=>Math.max(e,t.content.replaceAll(` `,Co).length),0);return t===`split`?`calc(2 * (${So} + ${n}ch))`:`calc(${xo} + ${n}ch)`},Do=`sticky left-0 w-scrollport`,Oo=`group-hover/line:pointer-events-auto has-[[data-state=open]]:pointer-events-auto pointer-coarse:pointer-events-auto`,ko=({edge:e,inert:t,onMouseDown:r,onMouseEnter:i,children:a})=>(0,Y.jsx)(`div`,{className:n(Do,`z-10 h-0`),children:(0,Y.jsx)(`div`,{role:`none`,className:n(`pointer-events-none absolute top-0 flex h-5 max-w-3/5 min-w-0 items-center justify-end gap-2 opacity-0 transition-opacity duration-150 ease-out group-hover/line:opacity-100 focus-within:opacity-100 has-[[data-state=open]]:opacity-100 pointer-coarse:opacity-100`,e,!t&&Oo),onMouseDown:e=>{e.button===0&&(e.preventDefault(),r())},onMouseEnter:i,children:a})}),Ao=e=>n(`px-3`,e?`break-words whitespace-pre-wrap`:`whitespace-pre`),jo=(e,t,i,a)=>{let o=n(`h-full min-h-5 justify-end rounded-none px-1 font-mono font-normal tabular-nums text-muted-foreground/70`,a,i&&`text-foreground`);return t?(0,Y.jsxs)(`div`,{className:n(o,`relative flex items-center`),children:[(0,Y.jsx)(`span`,{className:`transition-opacity duration-150 ease-out group-hover/row:opacity-0`,children:e??``}),(0,Y.jsxs)(_e,{children:[(0,Y.jsx)(he,{asChild:!0,children:(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,onClick:t,"aria-label":`Leave an inline comment`,className:`absolute inset-0 m-auto opacity-0 transition-opacity duration-150 ease-out group-hover/row:opacity-100 focus-visible:opacity-100`,children:(0,Y.jsx)(A,{className:`size-3.5`})})}),(0,Y.jsx)(ve,{side:`left`,children:`Leave an inline comment`})]})]}):(0,Y.jsx)(`span`,{className:n(o,`flex items-center`),children:e??``})},Mo=e=>e===`add`||e===`delete`||e===`context`,No=e=>e.reduce((e,t,n)=>(e.push(Mo(t.kind)?n:e[n-1]??null),e),[]),Po=e=>e.split(`_`).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `),Fo=({skipped:e,file:t})=>{let n=e?`Moved-code detection is off: this pull request is too large to scan.`:t?.previousFilename&&!t.patch?`Renamed from ${t.previousFilename}. Whole-file renames aren't marked as moved code.`:null;return n?(0,Y.jsx)(`div`,{className:`text-muted-foreground truncate text-xs`,children:n}):null},Io=({selectedFile:e,selectedMetadata:t,rowCount:n,layout:i,codeAppearance:a,fileCollapsed:o,moveDetectionSkipped:s,blocks:c,onCommentFile:l,onLayoutChange:u,onExpandFile:d,onGoToDefinition:f,history:p})=>(0,Y.jsxs)(`div`,{className:`border-edge bg-background flex shrink-0 items-center gap-2 border-b px-3 py-2`,children:[(0,Y.jsx)(R,{history:p}),(0,Y.jsx)(pe,{className:`text-muted-foreground size-4`}),(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Y.jsx)(`div`,{className:`truncate font-mono text-sm font-medium`,children:e??`No file selected`}),(0,Y.jsxs)(`div`,{className:`text-muted-foreground flex min-w-0 items-center gap-2 overflow-hidden text-xs`,children:[t?(0,Y.jsx)(_,{variant:`outline`,children:Po(t.status)}):null,(0,Y.jsx)(`span`,{children:n===null?`No diff selected`:`${n} rows`}),t?(0,Y.jsxs)(`span`,{className:`hidden shrink-0 sm:inline`,children:[(0,Y.jsxs)(`span`,{className:`text-brand`,children:[`+`,t.additions]}),` `,(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,t.deletions]})]}):null,c.formattingOnly>0?(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[c.formattingOnly===1?`1 formatting-only change`:`${c.formattingOnly} formatting-only changes`,c.onMarkFormattingReviewed?(0,Y.jsx)(r,{variant:`link`,size:`xs`,className:`h-auto px-0`,onClick:c.onMarkFormattingReviewed,children:`Mark reviewed`}):null]}):null,c.progress&&c.progress.total>0?(0,Y.jsxs)(`span`,{className:`shrink-0 tabular-nums`,children:[c.progress.reviewed,`/`,c.progress.total,` blocks reviewed`]}):null,c.marksError?(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[`Couldn't load reviewed marks.`,(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Retry loading reviewed marks`,onClick:c.onRetryMarks,children:(0,Y.jsx)(M,{className:`size-3.5`})})]}):null]}),(0,Y.jsx)(Fo,{skipped:s,file:t})]}),(0,Y.jsx)(zr,{}),e?(0,Y.jsxs)(r,{variant:`outline`,size:`sm`,className:`h-8 shrink-0 gap-1.5`,onClick:()=>l(e),children:[(0,Y.jsx)(A,{className:`size-4`}),`Comment`]}):null,(0,Y.jsx)(Yr,{layout:i,onLayoutChange:u,codeAppearance:a,onGoToDefinition:f}),e&&o?(0,Y.jsx)(r,{size:`sm`,variant:`outline`,onClick:d,children:`Expand file`}):null]}),Lo=({row:e,displayIndex:t,filename:n,language:i,tokenCache:a,selected:o,wrap:s,collapsed:c,onExpandHunk:l,onOpenComment:u,onRowMouseDown:d,onRowMouseEnter:f,onRowShiftSelect:p,identifiers:m,identifiersArmed:h,onSelectIdentifier:g,shikiTheme:_,codeSizeClass:v,highlighted:y,moved:b})=>{if(e.kind===`collapsed`)return(0,Y.jsxs)(`div`,{style:vo,className:wo({kind:e.kind,selected:!1,wrap:s,codeSizeClass:v,highlighted:!1,moved:!1}),children:[(0,Y.jsx)(`span`,{style:yo,className:To({kind:e.kind,selected:!1,moved:!1})}),(0,Y.jsx)(`div`,{className:`flex items-center justify-between gap-3 px-3`,children:(0,Y.jsx)(`span`,{children:e.content})})]});if(e.kind===`hunk`)return(0,Y.jsxs)(`div`,{style:vo,className:wo({kind:e.kind,selected:!1,wrap:s,codeSizeClass:v,highlighted:!1,moved:!1}),children:[(0,Y.jsx)(`span`,{style:yo,className:To({kind:e.kind,selected:!1,moved:!1})}),(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3`,children:[(0,Y.jsx)(`span`,{children:e.content}),c&&e.sourceIndex!==null?(0,Y.jsx)(r,{size:`sm`,variant:`ghost`,className:`h-5 px-2 text-xs`,onClick:()=>l(e.sourceIndex??0),children:`Expand hunk`}):null]})]});let x=vr(e),S=r=>{r.shiftKey?p(t):pr(r)||e.sourceIndex!==null&&x&&u({filename:n,rowIndex:e.sourceIndex,line:x.line,side:x.side})};return(0,Y.jsxs)(`div`,{role:`none`,style:vo,className:wo({kind:e.kind,selected:o,wrap:s,codeSizeClass:v,highlighted:y,moved:b}),onMouseDown:n=>{n.button===0&&(pr(n)?g(e.newLine,mr(n.target)):(n.preventDefault(),d(t)))},onMouseEnter:()=>{f(t)},children:[(0,Y.jsxs)(`div`,{style:yo,className:To({kind:e.kind,selected:o,moved:b}),children:[jo(e.oldLine,x?.side===`RIGHT`?S:void 0,o,v),jo(e.newLine,x?.side===`LEFT`?S:void 0,o,v),(0,Y.jsx)(`span`,{className:`text-muted-foreground flex h-full min-h-5 min-w-0 items-center justify-center font-mono`,children:e.kind===`add`?`+`:e.kind===`delete`?`-`:` `})]}),(0,Y.jsx)(`pre`,{className:Ao(s),children:(0,Y.jsx)(L,{content:e.content,run:e.kind===`delete`?e.oldRun:e.newRun,language:i,tokenCache:a,shikiTheme:_,identifiers:m,armed:h})})]})},Ro=({row:e,displayIndex:t,filename:r,language:i,tokenCache:a,selected:o,wrap:s,collapsed:c,onExpandHunk:l,onOpenComment:u,onRowMouseDown:d,onRowMouseEnter:f,onRowShiftSelect:p,identifiers:m,identifiersArmed:h,onSelectIdentifier:g,shikiTheme:_,codeSizeClass:v,highlighted:y,moved:b})=>{if(e.kind===`hunk`||e.kind===`collapsed`)return(0,Y.jsx)(Lo,{row:e,displayIndex:t,filename:r,language:i,tokenCache:a,selected:o,wrap:s,collapsed:c,onExpandHunk:l,onOpenComment:u,onRowMouseDown:d,onRowMouseEnter:f,onRowShiftSelect:p,identifiers:void 0,identifiersArmed:h,onSelectIdentifier:g,shikiTheme:_,codeSizeClass:v,highlighted:!1,moved:!1});let x=vr(e),S=n=>{n.shiftKey?p(t):pr(n)||e.sourceIndex!==null&&x&&u({filename:r,rowIndex:e.sourceIndex,line:x.line,side:x.side})};return(0,Y.jsxs)(`div`,{role:`none`,className:n(`group/row grid min-h-5 grid-cols-2 font-mono leading-5`,v,s?`w-full`:`w-max min-w-full`,o&&`bg-accent`,y&&go),onMouseDown:n=>{n.button===0&&(pr(n)?g(e.newLine,mr(n.target)):(n.preventDefault(),d(t)))},onMouseEnter:()=>{f(t)},children:[(0,Y.jsxs)(`div`,{style:bo,className:n(`grid border-l-2 border-l-transparent`,e.kind===`delete`&&(b?n(`border-l-destructive bg-diff-del-bg/80`,_o):`bg-diff-del-bg`)),children:[jo(e.oldLine,x?.side===`RIGHT`?S:void 0,o,v),(0,Y.jsx)(`pre`,{className:Ao(s),children:e.kind===`add`?null:(0,Y.jsx)(L,{content:e.content,run:e.oldRun,language:i,tokenCache:a,shikiTheme:_})})]}),(0,Y.jsxs)(`div`,{style:bo,className:n(`grid border-l-2 border-l-transparent`,e.kind===`add`&&(b?n(`border-l-brand bg-diff-add-bg/80`,_o):`bg-diff-add-bg`)),children:[jo(e.newLine,x?.side===`LEFT`?S:void 0,o,v),(0,Y.jsx)(`pre`,{className:Ao(s),children:e.kind===`delete`?null:(0,Y.jsx)(L,{content:e.content,run:e.newRun,language:i,tokenCache:a,shikiTheme:_,identifiers:m,armed:h})})]})]})},zo=({rows:e,selectedFile:t,onAddSelection:n})=>{let r=(0,J.useRef)(null),i=(0,J.useRef)(null),[a,o]=(0,J.useState)(null),s=a?.filename===t?a:null;i.current?.rows!==e&&(i.current={rows:e,indexes:No(e),rowIndexes:new Map(e.map((e,t)=>[e.rowKey,t]))});let c=i.current.indexes,l=i.current.rowIndexes,u=s?l.get(s.anchorKey):void 0,d=s?l.get(s.headKey):void 0,f=u!==void 0&&d!==void 0?xr({anchor:u,head:d,selectableAtOrBefore:c}):null,p=(n,r)=>{if(!t||xr({anchor:n,head:r,selectableAtOrBefore:c}).addToChatAnchorIndex===null)return;let i=e[n]?.rowKey,a=e[r]?.rowKey;i&&a&&o({filename:t,anchorKey:i,headKey:a})},m=e=>{r.current=e,p(e,e)},h=e=>{r.current!==null&&p(r.current,e)},g=e=>{let t=f?.start??e;r.current=null,p(t,e)};(0,J.useEffect)(()=>{let e=()=>{r.current=null};return window.addEventListener(`mouseup`,e),()=>window.removeEventListener(`mouseup`,e)},[]);let _=()=>{if(!t||!s||f?.addToChatAnchorIndex===null||f?.addToChatAnchorIndex===void 0)return;let r=fr({rows:e,anchorKey:s.anchorKey,headKey:s.headKey,filename:t});r&&(n({filename:t,...r}),o(null))},v=f?.addToChatAnchorIndex!==null&&f?.addToChatAnchorIndex!==void 0;gi(v,_);let y=(0,J.use)(Ye),b=(0,J.useSyncExternalStore)(y?.subscribe??Ho,y?.getLineChats??Bo,y?.getLineChats??Bo),x=()=>{let n=f?.addToChatAnchorIndex===null||f?.addToChatAnchorIndex===void 0?void 0:e[f.addToChatAnchorIndex],r=n?Uo(n):null;if(!y||!t||!s||!r)return;let i=fr({rows:e,anchorKey:s.anchorKey,headKey:s.headKey,filename:t});i&&(y.start({path:t,...r,item:$e({filename:t,...i})}),o(null))};gi(v&&y!==null,x,`i`);let S=b.reduce((e,n)=>{if(n.path!==t)return e;let r=`${n.side}:${n.line}`;return e.set(r,[...e.get(r)??[],n.id]),e},new Map);return{preview:f,span:f,lineChatsAt:e=>{let t=Uo(e),n=t?S.get(`${t.side}:${t.line}`):void 0;return y&&n?n.map(e=>(0,Y.jsx)(J.Fragment,{children:y.render(e)},e)):null},selectionActions:(0,Y.jsx)(Cr,{onClick:_,onAskInline:y?x:null}),onRowMouseDown:m,onRowMouseEnter:h,onRowShiftSelect:g}},Bo=()=>Vo,Vo=[],Ho=()=>()=>void 0,Uo=e=>vr({...e,sourceIndex:void 0}),Wo=({files:e,selectedFile:t,prewarmFile:n,shikiTheme:r,parsedCache:i,tokenCache:a})=>{(0,J.useEffect)(()=>{if(!a)return;let o=[...n?[n]:[],...br({files:e,activeFile:t,limit:fo})].filter((e,t,n)=>n.indexOf(e)===t).slice(0,fo).flatMap(t=>{let n=e.find(e=>e.filename===t);if(!n)return[];let r=it(t);if(r===`text`)return[];let a=yr({file:n,parsedCache:i.current});return[{rows:I(a.rows),language:r,cursor:0,warmed:0}]}),s=new Set,c=new Set,l=window,u=e=>{if(l.requestIdleCallback&&l.cancelIdleCallback){let t=l.requestIdleCallback(()=>{s.delete(t),e()},{timeout:750});s.add(t);return}let t=window.setTimeout(()=>{c.delete(t),e()},16);c.add(t)},d=()=>{let e=o[0];if(!e)return;let t=_r({rows:e.rows,cursor:e.cursor,limit:Math.min(mo,po-e.warmed)});t.rows.forEach(t=>{t.newRun&&a.request({text:t.newRun.text,offset:t.newRun.offset,language:e.language,theme:r}),t.oldRun&&a.request({text:t.oldRun.text,offset:t.oldRun.offset,language:e.language,theme:r})}),e.cursor=t.nextCursor,e.warmed+=t.rows.length,(t.done||e.warmed>=po)&&o.shift(),o.length>0&&u(d)};return u(d),()=>{s.forEach(e=>l.cancelIdleCallback?.(e)),c.forEach(e=>window.clearTimeout(e))}},[e,i,n,t,r,a])},Go=({scrollRef:e,rows:t,selectedFile:r,onAddSelection:i,gaps:a,layout:o,language:s,tokenCache:c,wrap:l,collapsed:u,onExpandHunk:d,onExpandGap:f,onOpenComment:p,commentTarget:m,inlineCommentPending:h,onCloseComment:g,onSubmitInlineComment:_,inlineThreadsByLine:v,resolvingThreadId:y,replyPending:b,onResolveThread:x,onReply:S,shikiTheme:C,codeSizeClass:w,fileLines:T,fileLinesLoading:E,fileLinesError:D,onRetryFileLines:O,onPrefetchFileLines:ee,scrollNonce:k,scrollTarget:A,highlightedLine:j,blameIndex:M,blameVisible:N,blameLoading:te,blame:ne,commitUrlBase:re,moveMarkers:ie,definitionIndex:P,identifiersArmed:ae,onSelectIdentifier:oe,onSelectFile:F,blocks:se})=>{let[ce,le]=io(),I=ue({count:t.length,getScrollElement:()=>e.current,estimateSize:()=>20,overscan:30,scrollMargin:ce}),{preview:L,span:R,lineChatsAt:de,selectionActions:z,onRowMouseDown:fe,onRowMouseEnter:B,onRowShiftSelect:pe}=zo({rows:t,selectedFile:r,onAddSelection:i}),me=o===`split`?Ro:Lo;(0,J.useEffect)(()=>{e.current?.scrollTo({left:0}),e.current?.scrollTo({top:0,behavior:`smooth`})},[r,k,e]);let V=(0,J.useRef)(null);return(0,J.useEffect)(()=>{A&&V.current!==A.nonce&&(V.current=A.nonce,I.scrollToIndex(A.index,{align:`center`}))},[A,I]),(0,Y.jsx)(`div`,{ref:le,className:`relative w-full`,style:{height:I.getTotalSize()},children:I.getVirtualItems().map(e=>{let i=e.index,k=t[i];if(!k)return null;let A=!!R&&i>=R.start&&i<=R.end&&Mo(k.kind),le=vr(k),ue=le?v.get(`${r}:${le.line}`)??[]:[],V=N&&k.newLine!==null?M.get(k.newLine):void 0,he=N&&k.newLine!==null&&te&&!ne,ge=k.kind===`delete`&&k.oldLine!==null?ie.get(`${r}:old:${k.oldLine}`):k.kind===`add`&&k.newLine!==null?ie.get(`${r}:new:${k.newLine}`):void 0,_e=k.newLine!==null&&k.newLine===j,ve=P&&k.newLine!==null&&T?.[k.newLine-1]===k.content?P.identifiersByLine.get(k.newLine):void 0,H=m?.filename===r&&m.rowIndex===k.sourceIndex,ye=i===L?.addToChatAnchorIndex;return(0,Y.jsxs)(`div`,{"data-index":i,ref:I.measureElement,className:n(`absolute top-0 left-0 w-full`,ye&&`z-20`),style:{transform:`translateY(${e.start-ce}px)`},children:[(0,Y.jsxs)(Jo,{row:k,blocks:se,children:[(0,Y.jsx)(ko,{edge:o===`split`&&k.kind===`delete`?`right-[calc(50%+0.75rem)]`:`right-3`,inert:P!==null&&ae,onMouseDown:()=>fe(i),onMouseEnter:()=>B(i),children:(0,Y.jsx)(li,{moveMarker:ge,kind:k.kind,blameEntry:V,blameLoading:he,rangeStart:V?.startingLine===k.newLine,commitUrlBase:re,onSelectFile:F})}),k.kind===`gap`&&k.gap?(0,Y.jsx)(`div`,{className:Do,children:(0,Y.jsx)(Xr,{hidden:k.gap.hidden,loading:E&&!T,error:D,onRetry:O,onPrefetch:()=>ee(r),onExpand:e=>{k.gap&&f(k.gap.id,e,qo(a,k.gap,T))}})}):(0,Y.jsx)(me,{row:k,displayIndex:i,filename:r,language:s,tokenCache:c,selected:A,wrap:l,collapsed:u,onExpandHunk:d,onOpenComment:p,onRowMouseDown:fe,onRowMouseEnter:B,onRowShiftSelect:pe,identifiers:ve,identifiersArmed:ae,onSelectIdentifier:oe,shikiTheme:C,codeSizeClass:w,highlighted:_e,moved:!!ge})]}),(0,Y.jsxs)(`div`,{className:Do,children:[H&&m?(0,Y.jsx)(ei,{filename:m.filename,line:m.line,isPending:h,onCancel:g,onSubmit:_}):null,ue.map(e=>(0,Y.jsx)(ni,{thread:e,resolvingThreadId:y,replyPending:b,onResolveThread:x,onReply:S},e.id)),de(k)]}),ye?(0,Y.jsx)(`div`,{className:n(Do,`h-0`),children:(0,Y.jsx)(`div`,{className:`absolute top-1 right-3`,children:z})}):null]},e.key)})})},Ko=e=>e.reduce((e,t)=>{if(!t.line)return e;let n=`${t.path}:${t.line}`;return e.set(n,[...e.get(n)??[],t]),e},new Map),qo=(e,t,n)=>{let r=e.find(e=>e.id===t.id);return r?(r.newEnd??n?.length??0)-r.newStart+1:t.hidden},Jo=({row:e,blocks:t,children:r})=>(0,Y.jsx)(`div`,{className:n(`group/row group/line relative`,e.dimmed&&`opacity-60`),onMouseDownCapture:()=>{e.blockIndex!==null&&t.onCursor(e.blockIndex)},children:e.kind===`block`&&e.blockIndex!==null?(0,Y.jsx)(`div`,{className:Do,children:(0,Y.jsx)(Yo,{blocks:t,blockIndex:e.blockIndex})}):r}),Yo=({blocks:e,blockIndex:t})=>{let n=e.bars[t];return n?(0,Y.jsx)(Er,{block:n.block,status:n.status,ready:e.ready,collapsed:n.collapsed,collapsible:n.collapsible,moveLabel:e.moveLabelOf(n.block),current:e.cursorIndex===t,onToggleReviewed:n=>e.onToggleReviewed(t,n),onToggleCollapsed:()=>e.onToggleCollapsed(t)}):null},Xo=({message:e,onRetry:t})=>(0,Y.jsxs)(`div`,{className:`border-edge bg-muted/40 text-muted-foreground flex items-center gap-2 border-b px-3 py-1 font-mono text-xs`,children:[(0,Y.jsx)(`span`,{children:e}),(0,Y.jsx)(r,{variant:`ghost`,size:`icon-xs`,"aria-label":`Retry loading blame`,onClick:t,children:(0,Y.jsx)(M,{className:`size-3.5`})})]}),Zo=({files:e,activeFile:t,owner:r,repo:i,pr:a,headSha:o,scrollNonce:s,lineTarget:c,expandedStoryFile:l,onAddSelection:u,prewarmFile:d,githubPrUrl:f,commitUrlBase:p,inlineThreads:m,fileThreads:h,inlineCommentPending:g,resolvingThreadId:_,replyPending:v,onCommentFile:y,onInlineCommented:b,onResolveThread:x,onReply:S,tokenCache:C,shikiTheme:w,codeAppearance:T,fileLines:E,fileLinesLoading:D,fileLinesError:O,onRetryFileLines:ee,onPrefetchFileLines:k,onFindUsed:A,blame:j,blameEnabled:M,blameLoading:N,blameError:te,onRetryBlame:ne,layout:re,onLayoutChange:ie,onSelectFile:P,history:ae,viewportRef:oe,moves:F,blocksByFile:le,blockMarks:I})=>{let L=(0,J.useRef)(null),ue=(0,J.useRef)(new lr({max:ho})),[R,de]=(0,J.useState)(null),z=t??e[0]?.filename??null,fe=e.find(e=>e.filename===z)??null,B=Qi({files:e,selectedFile:z,fileLines:E,onSelectFile:P,onSearch:A}),{mergedRows:pe,collapsed:me,gaps:V,hunks:he,rowCount:_e,revealGap:ve,expandGap:H,setExpandedFiles:ye,expandHunk:be}=Bi({files:e,selectedFile:z,fileLines:E,parsedCache:ue,expandedStoryFile:l,revealSourceIndex:B.target?.sourceIndex??null,revealLine:B.target?.sourceIndex===null?B.target.newLine:null}),xe=yi(j),{displayRows:U,...Se}=Ei({files:e,selectedFile:z,lineTarget:c,revealSourceIndex:B.target?.sourceIndex??null,mergedRows:pe,blocksByFile:le,blockMarks:I,moveMarkers:F.markers,onSelectFile:P}),{definitionsAvailable:Ce,modifierHeld:we,definitionIndex:Te,prSymbols:Ee,paletteOpen:De,setPaletteOpen:Oe,onSelectIdentifier:ke,intel:W,peek:Ae,closePeek:je,jumpToPeek:Me}=ro({files:e,selectedFile:z,selectedMetadata:fe,owner:r,repo:i,pr:a,headSha:o,fileLines:E,commitUrlBase:p,scrollRef:L,rows:U,onSelectFile:P});(0,J.useImperativeHandle)(oe,()=>({centerLine:()=>{let e=se(L.current);return e===null?null:U.slice(0,e+1).findLast(e=>e.newLine!==null)?.newLine??null}}));let Ne=z?it(z):`text`,Pe=ce(T.appearance.size),G=h.filter(e=>e.path===z),Fe=Ko(m);Wo({files:e,selectedFile:z,prewarmFile:d,shikiTheme:w,parsedCache:ue,tokenCache:C});let Ie=(e,t,n)=>{z&&(k(z),H(e,t,n))},{scrollTarget:Le,highlightedLine:Re,failure:ze}=uo({target:c,selectedFile:z,rows:U,gaps:V,hunks:he,collapsed:me,fileLineCount:E?.length??null,fileLinesError:O,onExpandHunk:be,onRevealGap:ve}),Be=ra(L,U,B),Ve=(e,t)=>{R&&(b({mode:e,body:t,target:R}),de(null))};return e.length===0?(0,Y.jsx)(qr,{githubPrUrl:f}):(0,Y.jsxs)(ge,{children:[(0,Y.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,Y.jsx)(Io,{selectedFile:z,selectedMetadata:fe,rowCount:_e,moveDetectionSkipped:F.skipped,blocks:Se.header,layout:re,codeAppearance:T,fileCollapsed:me,onCommentFile:y,onGoToDefinition:Ce?()=>Oe(!0):null,history:ae,onLayoutChange:ie,onExpandFile:()=>{z&&ye(e=>new Set(e).add(z))}}),ze?(0,Y.jsx)(ri,{failure:ze,onRetryFileLines:ee}):null,(0,Y.jsx)(hi,{intel:W,onSelectIdentifier:ke,children:(0,Y.jsxs)(`div`,{ref:L,className:`@container relative min-h-0 flex-1 overflow-auto`,...W.hover.listHandlers,children:[(0,Y.jsx)($r,{bar:B.bar}),(0,Y.jsxs)(`div`,{className:T.appearance.wrap?`w-full`:`w-max min-w-full`,children:[T.appearance.wrap?null:(0,Y.jsx)(`div`,{"aria-hidden":!0,className:n(`h-0 font-mono`,Pe),style:{width:Eo(U,re)}}),(0,Y.jsxs)(`div`,{className:Do,children:[G.map(e=>(0,Y.jsx)(ni,{thread:e,resolvingThreadId:_,replyPending:v,onResolveThread:x,onReply:S},e.id)),M&&te?(0,Y.jsx)(Xo,{message:te,onRetry:ne}):null]}),z?(0,Y.jsx)(Go,{scrollRef:L,rows:U,selectedFile:z,onAddSelection:u,gaps:V,layout:re,language:Ne,tokenCache:C,wrap:T.appearance.wrap,collapsed:me,onExpandHunk:be,onExpandGap:Ie,onOpenComment:de,commentTarget:R,inlineCommentPending:g,onCloseComment:()=>de(null),onSubmitInlineComment:Ve,inlineThreadsByLine:Fe,resolvingThreadId:_,replyPending:v,onResolveThread:x,onReply:S,shikiTheme:w,codeSizeClass:Pe,fileLines:E,fileLinesLoading:D,fileLinesError:O,onRetryFileLines:ee,onPrefetchFileLines:k,scrollNonce:s,scrollTarget:Le??Be,highlightedLine:Re,blameIndex:xe,blameVisible:M,blameLoading:N,blame:j,commitUrlBase:p,moveMarkers:F.markers,definitionIndex:W.rowsIndex,identifiersArmed:we,onSelectIdentifier:(e,t)=>ke(e,t,`peek`),onSelectFile:P,blocks:Se.rows}):null]}),(0,Y.jsx)(Ir,{intel:W,headSha:o,commitUrlBase:p,tokenCache:C,shikiTheme:w,onSelectFile:P})]})})]}),z&&De?(0,Y.jsx)(Gr,{filename:z,definitionIndex:Te,prSymbols:Ee,repoUrl:p,onClose:()=>Oe(!1),onSelectFile:P}):null,Ae?(0,Y.jsx)(Kr,{owner:r,repo:i,pr:a,headSha:o,peek:Ae,tokenCache:C,shikiTheme:w,codeAppearance:T,onClose:je,onJump:Me}):null]})};export{Zo as DiffViewer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./button-DizkG3Et.js";import{S as t}from"./query-error-DSrxRVZP.js";import{a as n}from"./bundle-mjs-IMkwHZOK.js";import{l as r}from"./schemas-D5jfrTNW.js";import{n as i,t as a}from"./history-nav-buttons-
|
|
1
|
+
import{t as e}from"./button-DizkG3Et.js";import{S as t}from"./query-error-DSrxRVZP.js";import{a as n}from"./bundle-mjs-IMkwHZOK.js";import{l as r}from"./schemas-D5jfrTNW.js";import{n as i,t as a}from"./history-nav-buttons-9MGKgV8Z.js";import{Et as o,St as s,mt as c,o as l}from"./index-D7PxCZso.js";var u=n(),d=({owner:n,repo:d,pr:f,headSha:p,path:m,lineTarget:h,tokenCache:g,shikiTheme:_,codeAppearance:v,history:y,viewportRef:b,onClose:x})=>{let S=h?.filename===m?h:null;return(0,u.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,u.jsxs)(`div`,{className:`border-edge bg-muted/30 flex shrink-0 items-center gap-2 border-b border-dashed px-3 py-2`,children:[(0,u.jsx)(a,{history:y}),(0,u.jsx)(s,{className:`text-muted-foreground size-4`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,u.jsx)(`div`,{className:`truncate font-mono text-sm font-medium`,children:m}),(0,u.jsxs)(`div`,{className:`text-muted-foreground flex items-center gap-2 text-xs`,children:[(0,u.jsx)(r,{variant:`outline`,children:`Explored`}),(0,u.jsx)(`span`,{children:`Read-only reference. Not part of this pull request, so it can't be commented on or marked viewed.`})]})]}),(0,u.jsx)(e,{variant:`outline`,size:`sm`,className:`h-8 shrink-0 gap-1.5`,asChild:!0,children:(0,u.jsxs)(c,{href:l({owner:n,repo:d,ref:p,path:m,line:S?.line??null}),children:[(0,u.jsx)(o,{className:`size-4`}),`GitHub`]})}),(0,u.jsx)(e,{variant:`ghost`,size:`icon-sm`,"aria-label":`Close ${m}`,onClick:x,children:(0,u.jsx)(t,{className:`size-4`})})]}),(0,u.jsx)(i,{owner:n,repo:d,pr:f,headSha:p,path:m,target:S,tokenCache:g,shikiTheme:_,codeAppearance:v,viewportRef:b})]})};export{d as ExploredFileView};
|