@juejin-opensource/jusage 0.1.1-beta.8
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/README.md +72 -0
- package/bin/jusage.js +2 -0
- package/dist/daemon.d.ts +12 -0
- package/dist/daemon.js +68 -0
- package/dist/dashboard/assets/antigravity-color-DgAQAdn3.svg +1 -0
- package/dist/dashboard/assets/click-idle-6pQvdt8N.png +0 -0
- package/dist/dashboard/assets/dashboard-CUazuH2T.js +55 -0
- package/dist/dashboard/assets/dashboard-QA2DxQpC.css +1 -0
- package/dist/dashboard/assets/download-BzFSswoC.js +1 -0
- package/dist/dashboard/assets/env-BKC5UKtr.js +1 -0
- package/dist/dashboard/assets/hawking-idle-C6M3ZvDm.png +0 -0
- package/dist/dashboard/assets/hermesagent-DUfTwIy7.svg +1 -0
- package/dist/dashboard/assets/index-1sV0Fo6m.js +143 -0
- package/dist/dashboard/assets/index-C1eSlCqF.css +1 -0
- package/dist/dashboard/assets/index-DcW6PDH-.js +1 -0
- package/dist/dashboard/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/dashboard/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/dashboard/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/dashboard/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/dashboard/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/dashboard/assets/qoder-color-CCjsVbDP.svg +1 -0
- package/dist/dashboard/assets/rank-DedRCNMw.js +16 -0
- package/dist/dashboard/assets/settings-jDmOMdkE.js +1 -0
- package/dist/dashboard/assets/yoyo-idle-DmXh5tLT.png +0 -0
- package/dist/dashboard/brand-logos/claude-code.svg +1 -0
- package/dist/dashboard/brand-logos/codex.svg +15 -0
- package/dist/dashboard/index.html +13 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +486 -0
- package/dist/service-macos.d.ts +7 -0
- package/dist/service-macos.js +97 -0
- package/dist/service-windows.d.ts +6 -0
- package/dist/service-windows.js +50 -0
- package/dist/service.d.ts +3 -0
- package/dist/service.js +109 -0
- package/package.json +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pet-running-loader{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible}.pet-running-loader__sprite{display:block;width:80px;height:auto;object-fit:contain;will-change:transform;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--pet-glow-primary, #ff7a1a) 55%,transparent)) drop-shadow(0 0 18px color-mix(in srgb,var(--pet-glow-accent, #ffd21f) 35%,transparent))}@media(prefers-reduced-motion:reduce){.pet-running-loader__sprite{transform:none!important}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,j as e,B as r,A as i,p as m}from"./index-1sV0Fo6m.js";import{C as a}from"./index-DcW6PDH-.js";const d=n=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 10.421V5.475l-2 .714V8.25a.75.75 0 0 1-1.5 0V6.725l-2.25.804v6.088l4.777-1.792a1.5 1.5 0 0 0 .973-1.404m-2.254-5.734 1.6-.571a2 2 0 0 0-.175-.104L9.499 2.427a1.5 1.5 0 0 0-1.197-.063l-.941.353 3.724 1.862q.09.045.16.108M5.444 3.435l3.878 1.94-2.273.811-3.805-1.903q.108-.063.23-.109zm.806 4.029L2.5 5.589v5.057a1.5 1.5 0 0 0 .83 1.342l2.92 1.46zM1 5.579c0-.436.094-.856.266-1.236a.75.75 0 0 1 .2-.37c.342-.54.855-.968 1.48-1.203L7.777.96a3 3 0 0 1 2.394.125l3.172 1.586A3 3 0 0 1 15 5.354v5.067a3 3 0 0 1-1.947 2.809l-4.828 1.81a3 3 0 0 1-2.395-.125l-3.172-1.586A3 3 0 0 1 1 10.646z",clipRule:"evenodd"})),u=n=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.418 2.489c.9-1.196 2.382-1.724 3.154-1.391.852.367 1.539 2.08 1.054 3.702a4 4 0 0 1-2.616 5.559c.309.471.49 1.035.49 1.641v2.25a.75.75 0 0 1-1.5 0V12a1.5 1.5 0 0 0-3 0v2.25a.75.75 0 0 1-1.5 0v-.75h-.876a2.626 2.626 0 0 1-2.625-2.625c0-.621-.504-1.125-1.125-1.125h-.125a.75.75 0 0 1 0-1.5h.125a2.625 2.625 0 0 1 2.625 2.625c0 .621.504 1.125 1.125 1.125H6.5c0-.606.18-1.17.488-1.641A4 4 0 0 1 4.373 4.8c-.484-1.623.202-3.335 1.054-3.702.772-.333 2.254.195 3.155 1.39zm2.549.02a1.4 1.4 0 0 0-.35.098 2.5 2.5 0 0 0-1 .784l-.451.598H7.834l-.45-.598a2.5 2.5 0 0 0-1.001-.784 1.4 1.4 0 0 0-.352-.099c-.063.088-.14.231-.204.429a2.5 2.5 0 0 0-.016 1.434l.163.546-.242.517c-.13.279-.21.586-.228.913l-.004.142a2.5 2.5 0 0 0 2.5 2.5h3a2.5 2.5 0 0 0 2.267-3.555l-.242-.517.163-.547a2.5 2.5 0 0 0-.016-1.433 1.6 1.6 0 0 0-.205-.429",clipRule:"evenodd"})),x={new_user:{label:"还没有使用记录",description:"下载 Juejin Usage,开始查看 AI Agent 用量与趋势。"},uninstalled:{label:"客户端暂未连接",description:"启动 Juejin Usage,继续同步你的用量。"}},o="https://github.com/juejin-cn/juejin-usage",h=`${o}/releases`;function p({reason:n}){const s=x[n],l=c=>{window.open(c,"_blank","noopener,noreferrer")};return e.jsx("section",{className:"flex min-h-[calc(100svh-9rem)] items-center justify-center py-12 sm:py-20",children:e.jsx(a,{className:"w-full max-w-xl text-center",variant:"transparent",children:e.jsxs(a.Content,{className:"flex min-h-72 flex-col items-center justify-center rounded-2xl px-5 py-6",children:[e.jsx("span",{className:"mb-4 grid size-16 place-items-center rounded-2xl bg-surface-secondary text-muted",children:e.jsx(d,{className:"size-8"})}),e.jsx(a.Title,{className:"text-xl font-normal",children:s.label}),e.jsx(a.Description,{className:"mt-2 max-w-sm text-base leading-6 font-normal",children:s.description}),e.jsxs("div",{className:"mt-4 grid w-full max-w-xs grid-cols-2 gap-3",children:[e.jsxs(r,{className:"font-normal",fullWidth:!0,onPress:()=>l(h),variant:"primary",children:[e.jsx(i,{}),"下载客户端"]}),e.jsxs(r,{className:"font-normal",fullWidth:!0,onPress:()=>l(o),variant:"secondary",children:[e.jsx(u,{}),"访问 GitHub"]})]})]})})})}function g(){const n=m(),s=(n==null?void 0:n.reason)==="uninstalled"?"uninstalled":"new_user";return e.jsx(p,{reason:s})}export{g as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as c,r as n,t as L,ad as de,ae as U,af as A,ag as _,ah as Wl,ai as Hl,aj as We,ak as B,al as Gl,am as Yl,an as Xl,ao as fe,ap as He,aq as Ge,ar as Fe,as as Q,at as ke,au as be,av as Jl,aw as Ql,ax as R,ay as ea,az as ee,aA as ta,aB as Ye,aC as H,aD as ne,aE as la,aF as aa,aG as ra,aH as oa,aI as Xe,aJ as ia,aK as na,aL as sa,aM as ua,aN as $e,aO as ge,aP as I,aQ as ca,aR as G,aS as da,aT as fa,aU as Je,aV as Qe,aW as et,aX as ba,aY as he,aZ as $a,a_ as Y,a$ as ga,b0 as ha,b1 as pa,b2 as xa,b3 as ma,b4 as va,b5 as ya,b6 as Pa,b7 as Da,b8 as Ca,b9 as tt,ba as Sa,bb as Ea,bc as pe,bd as lt,be as at,bf as rt,bg as Ba,bh as wa,bi as ot,j as m,H as O,w as K,bj as Ra,bk as Ma,bl as Aa,bm as Fa,z as T,bn as ka,bo as Ia,bp as za,bq as it,br as Ka,bs as La,bt as Ta,bu as Oa,bv as Va,bw as Na,E as ja,bx as _a,x as Ua,y as Za,by as Ie,bz as qa,bA as Wa,Y as Ha,T as V}from"./index-1sV0Fo6m.js";const nt={prefix:String(Math.round(Math.random()*1e10)),current:0},st=c.createContext(nt),Ga=c.createContext(!1);let re=new WeakMap;function Ya(t=!1){var a,r;let e=n.useContext(st),l=n.useRef(null);if(l.current===null&&!t){let o=(r=(a=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:a.ReactCurrentOwner)==null?void 0:r.current;if(o){let i=re.get(o);i==null?re.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==i.state&&(e.current=i.id,re.delete(o))}l.current=++e.current}return l.current}function Xa(t){let e=n.useContext(st),l=Ya(!!t),a=`react-aria${e.prefix}`;return t||`${a}-${l}`}function Ja(t){let e=c.useId(),[l]=n.useState(ut()),a=l?"react-aria":`react-aria${nt.prefix}`;return t||`${a}-${e}`}c.useId;function Qa(){return!1}function er(){return!0}function tr(t){return()=>{}}function ut(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(tr,Qa,er):n.useContext(Ga)}const lr=L({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),ar=L({base:"label",defaultVariants:{isDisabled:!1,isInvalid:!1,isRequired:!1},variants:{isDisabled:{true:"label--disabled"},isInvalid:{true:"label--invalid"},isRequired:{true:"label--required"}}}),rr=L({base:"list-box",defaultVariants:{variant:"default"},variants:{variant:{danger:"list-box--danger",default:"list-box--default"}}}),or=L({defaultVariants:{variant:"default"},slots:{indicator:"list-box-item__indicator",item:"list-box-item"},variants:{variant:{danger:{item:"list-box-item--danger"},default:{item:"list-box-item--default"}}}}),ir=L({base:"list-box-section"}),nr=L({defaultVariants:{fullWidth:!1,variant:"primary"},slots:{base:"select",indicator:"select__indicator",popover:"select__popover",trigger:"select__trigger",value:"select__value"},variants:{fullWidth:{false:{},true:{base:"select--full-width",trigger:"select__trigger--full-width"}},variant:{primary:{base:"select--primary"},secondary:{base:"select--secondary"}}}}),sr=L({defaultVariants:{animationType:"shimmer"},slots:{base:"skeleton"},variants:{animationType:{none:"skeleton--none",pulse:"skeleton--pulse",shimmer:"skeleton--shimmer"}}}),ur=L({defaultVariants:{size:"md"},slots:{base:"switch",content:"switch__content",control:"switch__control",icon:"switch__icon",thumb:"switch__thumb"},variants:{size:{lg:{base:"switch--lg"},md:{base:"switch--md"},sm:{base:"switch--sm"}}}}),cr=L({slots:{base:"tooltip",trigger:"tooltip__trigger"}}),xe=n.createContext({}),dr=de(function(e,l){[e,l]=U(e,l,xe);let{elementType:a="label",...r}=e,o=A[a];return c.createElement(o,{className:"react-aria-Label",...r,ref:l})});function ct(t){let{id:e,label:l,"aria-labelledby":a,"aria-label":r,labelElementType:o="label"}=t;e=_(e);let i=_(),u={};l&&(a=a?`${i} ${a}`:i,u={id:i,htmlFor:o==="label"?e:void 0});let s=Wl({id:e,"aria-label":r,"aria-labelledby":a});return{labelProps:u,fieldProps:s}}const fr=n.createContext(null),br=n.createContext({}),$r=n.createContext({}),Be=class Be extends Hl{filter(e,l){let a=l.getItem(this.prevKey);if(a&&a.type!=="separator"){let r=this.clone();return l.addDescendants(r,e),r}return null}};Be.type="separator";let ze=Be;var dt={};dt={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var ft={};ft={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var bt={};bt={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var $t={};$t={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var gt={};gt={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var ht={};ht={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var pt={};pt={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var xt={};xt={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var mt={};mt={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var vt={};vt={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var yt={};yt={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Pt={};Pt={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Dt={};Dt={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Ct={};Ct={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var St={};St={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Et={};Et={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Bt={};Bt={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var wt={};wt={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Rt={};Rt={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Mt={};Mt={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var At={};At={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ft={};Ft={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var kt={};kt={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var It={};It={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var zt={};zt={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Kt={};Kt={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Lt={};Lt={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Tt={};Tt={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ot={};Ot={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Vt={};Vt={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Nt={};Nt={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var jt={};jt={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var _t={};_t={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ut={};Ut={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Zt={};Zt={"ar-AE":dt,"bg-BG":ft,"cs-CZ":bt,"da-DK":$t,"de-DE":gt,"el-GR":ht,"en-US":pt,"es-ES":xt,"et-EE":mt,"fi-FI":vt,"fr-FR":yt,"he-IL":Pt,"hr-HR":Dt,"hu-HU":Ct,"it-IT":St,"ja-JP":Et,"ko-KR":Bt,"lt-LT":wt,"lv-LV":Rt,"nb-NO":Mt,"nl-NL":At,"pl-PL":Ft,"pt-BR":kt,"pt-PT":It,"ro-RO":zt,"ru-RU":Kt,"sk-SK":Lt,"sl-SI":Tt,"sr-SP":Ot,"sv-SE":Vt,"tr-TR":Nt,"uk-UA":jt,"zh-CN":_t,"zh-TW":Ut};function gr(t){let{onContextMenu:e}=t,l=n.useRef(!1),{longPressProps:a}=We({onLongPressStart(){l.current=!1},onLongPress(r){l.current?l.current=!1:e==null||e({target:r.target,x:r.x,y:r.y})}});return e?{contextMenuProps:B(Gl()?a:{},{onContextMenu(r){r.stopPropagation(),r.preventDefault(),l.current=!0;let o=r.currentTarget.getBoundingClientRect();e({target:r.currentTarget,x:r.clientX-o.x,y:r.clientY-o.y})},onKeyDown(r){if(Yl()&&r.ctrlKey&&r.key==="Enter"){l.current=!1;let o=r.currentTarget;r.stopPropagation(),setTimeout(()=>{if(l.current)l.current=!1;else{let i=o.getBoundingClientRect();e({target:o,x:i.width/2,y:i.height/2})}},10)}}})}:{contextMenuProps:{}}}function hr(t){return t&&t.__esModule?t.default:t}function pr(t,e,l){let{type:a="menu",isDisabled:r,trigger:o="press"}=t,i=_(),{triggerProps:u,overlayProps:s}=Xl({type:a},e,l),d=(f,y,P="first")=>{if(!f||y.isDefaultPrevented())return!1;e.toggle(P)},{keyboardProps:b}=fe({isDisabled:r,shortcuts:{Enter:f=>d(o!=="longPress",f,"first")," ":f=>d(o!=="longPress",f,"first"),ArrowDown:f=>d(o!=="longPress",f,"first"),ArrowUp:f=>d(o!=="longPress",f,"last"),"Alt+Enter":f=>d(o==="longPress",f,"first"),"Alt+ ":f=>d(o==="longPress",f,"first"),"Alt+ArrowDown":f=>d(!0,f,"first"),"Alt+ArrowUp":f=>d(!0,f,"last")}}),g=He(hr(Zt),"@react-aria/menu"),{longPressProps:p}=We({isDisabled:r||o!=="longPress",accessibilityDescription:g.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),$={preventFocusOnPress:!0,onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!r&&(Fe(f.target),e.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!r&&(Fe(f.target),e.toggle())}};delete u.onPress;let{contextMenuProps:x}=gr({onContextMenu(f){let y=f.target.getBoundingClientRect();e.setPoint({x:y.x+f.x,y:y.y+f.y}),e.open()}});n.useEffect(()=>{if(e.isOpen&&o==="contextMenu"){let f=y=>{(y.button===2||y.button===0&&y.ctrlKey===!0)&&Ge(y)===document.body&&e.close()};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)}},[e,o]);let v;if(o==="press")v={...$,...b};else if(o==="longPress")v={...p,...b};else if(o==="contextMenu"){v=x;let{"aria-haspopup":f,"aria-expanded":y,"aria-controls":P,...h}=u;u=h}return{menuTriggerProps:{...u,...v,id:i},menuProps:{...s,"aria-labelledby":i,autoFocus:e.focusStrategy||!0,onClose:e.close}}}class Ke{constructor(e){this.ref=e}getItemRect(e){let l=this.ref.current;if(!l)return null;let a=e!=null?Q(this.ref,e):null;if(!a)return null;let r=l.getBoundingClientRect(),o=a.getBoundingClientRect();return{x:o.left-r.left-l.clientLeft+l.scrollLeft,y:o.top-r.top-l.clientTop+l.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:(e==null?void 0:e.scrollWidth)??0,height:(e==null?void 0:e.scrollHeight)??0}}getVisibleRect(){let e=this.ref.current;return{x:(e==null?void 0:e.scrollLeft)??0,y:(e==null?void 0:e.scrollTop)??0,width:(e==null?void 0:e.clientWidth)??0,height:(e==null?void 0:e.clientHeight)??0}}}class me{constructor(...e){if(e.length===1){let l=e[0];this.collection=l.collection,this.ref=l.ref,this.collator=l.collator,this.disabledKeys=l.disabledKeys||new Set,this.disabledBehavior=l.disabledBehavior||"all",this.orientation=l.orientation||"vertical",this.direction=l.direction,this.layout=l.layout||"stack",this.layoutDelegate=l.layoutDelegate||new Ke(l.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ke(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){var l,a;return this.disabledBehavior==="all"&&(((l=e.props)==null?void 0:l.isDisabled)||this.disabledKeys.has(e.key))&&((a=e.props)==null?void 0:a.disabledBehavior)!=="selection"}findNextNonDisabled(e,l,a=!1){let r=e;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&(a||!this.isDisabled(o)))return r;r=l(r)}return null}getNextKey(e,l){let a=e;return a=this.collection.getKeyAfter(a),this.findNextNonDisabled(a,r=>this.collection.getKeyAfter(r),l==null?void 0:l.includeDisabled)}getPreviousKey(e,l){let a=e;return a=this.collection.getKeyBefore(a),this.findNextNonDisabled(a,r=>this.collection.getKeyBefore(r),l==null?void 0:l.includeDisabled)}findKey(e,l,a){let r=e,o=this.layoutDelegate.getItemRect(r);if(!o||r==null)return null;let i=o;do{if(r=l(r),r==null)break;o=this.layoutDelegate.getItemRect(r)}while(o&&a(i,o)&&r!=null);return r}isSameRow(e,l){return e.y===l.y||e.x!==l.x}isSameColumn(e,l){return e.x===l.x||e.y!==l.y}isReversed(e){let l=this.getNextKey(e),a=Q(this.ref,e);if(l!=null){let o=Q(this.ref,l);return!a||!o?!1:a.getBoundingClientRect().top>o.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let o=Q(this.ref,r);return!a||!o?!1:o.getBoundingClientRect().top>a.getBoundingClientRect().top}return!1}getKeyBelow(e,l){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,a=>this.getNextKey(a,l),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getPreviousKey(e,l):this.getNextKey(e,l):this.getNextKey(e,l)}getKeyAbove(e,l){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,a=>this.getPreviousKey(a,l),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getNextKey(e,l):this.getPreviousKey(e,l):this.getPreviousKey(e,l)}getNextColumn(e,l,a){return l?this.getPreviousKey(e,a):this.getNextKey(e,a)}getKeyRightOf(e,l){let a=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[a]?(e=this.layoutDelegate[a](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[a](r),l==null?void 0:l.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",l):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl",l),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",l):null}getKeyLeftOf(e,l){let a=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[a]?(e=this.layoutDelegate[a](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[a](r),l==null?void 0:l.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",l):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr",l),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",l):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,l=>this.collection.getKeyAfter(l))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,l=>this.collection.getKeyBefore(l))}getKeyPageAbove(e){let l=this.ref.current,a=this.layoutDelegate.getItemRect(e);if(!a)return null;let r=this.isReversed(e);if(l&&!ke(l))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,a.x+a.width-this.layoutDelegate.getVisibleRect().width);for(;a&&a.x>i&&o!=null;)o=this.getKeyAbove(o),a=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=this.layoutDelegate.getVisibleRect(),u=r?a.y-i.height:Math.max(0,a.y+a.height-i.height);for(;a&&a.y>u&&o!=null;)o=this.getKeyAbove(o),a=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let l=this.ref.current,a=this.layoutDelegate.getItemRect(e);if(!a)return null;let r=this.isReversed(e);if(l&&!ke(l))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,a.x-a.width+this.layoutDelegate.getVisibleRect().width);for(;a&&a.x<i&&o!=null;)o=this.getKeyBelow(o),a=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,a.y-a.height+this.layoutDelegate.getVisibleRect().height);for(;a&&a.y<i&&o!=null;)o=this.getKeyBelow(o),a=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,l){if(!this.collator)return null;let a=this.collection,r=l||this.getFirstKey();for(;r!=null;){let o=a.getItem(r);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}}let oe=new Map;function ve(t){let{locale:e}=be(),l=e+(t?Object.entries(t).sort((r,o)=>r[0]<o[0]?-1:1).join():"");if(oe.has(l))return oe.get(l);let a=new Intl.Collator(e,t);return oe.set(l,a),a}function xr(t){let{selectionManager:e,collection:l,disabledKeys:a,ref:r,keyboardDelegate:o,layoutDelegate:i,orientation:u}=t,s=ve({usage:"search",sensitivity:"base"}),d=e.disabledBehavior,b=n.useMemo(()=>o||new me({collection:l,disabledKeys:a,disabledBehavior:d,ref:r,collator:s,layoutDelegate:i,orientation:u}),[o,i,l,a,r,s,d,u]),{collectionProps:g}=Jl({...t,ref:r,selectionManager:e,keyboardDelegate:b});return{listProps:g}}const Le=new WeakMap;function mr(t){let e=Le.get(t);if(e!=null)return e;let l=0,a=r=>{for(let o of r)o.type==="section"?a(Ql(o,t)):o.type==="item"&&l++};return a(t),Le.set(t,l),l}var qt={};qt={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var Wt={};Wt={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var Ht={};Ht={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Gt={};Gt={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Yt={};Yt={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Xt={};Xt={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Jt={};Jt={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Qt={};Qt={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var el={};el={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var tl={};tl={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var ll={};ll={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var al={};al={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var rl={};rl={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var ol={};ol={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var il={};il={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var nl={};nl={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var sl={};sl={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var ul={};ul={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var cl={};cl={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var dl={};dl={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var fl={};fl={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var bl={};bl={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var $l={};$l={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var gl={};gl={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var hl={};hl={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var pl={};pl={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var xl={};xl={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var ml={};ml={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var vl={};vl={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var yl={};yl={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Pl={};Pl={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Dl={};Dl={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Cl={};Cl={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Sl={};Sl={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var El={};El={"ar-AE":qt,"bg-BG":Wt,"cs-CZ":Ht,"da-DK":Gt,"de-DE":Yt,"el-GR":Xt,"en-US":Jt,"es-ES":Qt,"et-EE":el,"fi-FI":tl,"fr-FR":ll,"he-IL":al,"hr-HR":rl,"hu-HU":ol,"it-IT":il,"ja-JP":nl,"ko-KR":sl,"lt-LT":ul,"lv-LV":cl,"nb-NO":dl,"nl-NL":fl,"pl-PL":bl,"pt-BR":$l,"pt-PT":gl,"ro-RO":hl,"ru-RU":pl,"sk-SK":xl,"sl-SI":ml,"sr-SP":vl,"sv-SE":yl,"tr-TR":Pl,"uk-UA":Dl,"zh-CN":Cl,"zh-TW":Sl};const te=n.createContext({}),Bl=n.createContext(null),vr=n.forwardRef(function(e,l){let{render:a}=n.useContext(Bl);return c.createElement(c.Fragment,null,a(e,l))});function wl(t,e){var o;let l=t==null?void 0:t.renderDropIndicator,a=(o=t==null?void 0:t.isVirtualDragging)==null?void 0:o.call(t),r=n.useCallback(i=>{if(a||e!=null&&e.isDropTarget(i))return l?l(i):c.createElement(vr,{target:i})},[e==null?void 0:e.target,a,l]);return t!=null&&t.useDropIndicator?r:void 0}function yr(t,e,l){var o,i,u;let a=t.focusedKey,r=null;if((o=e==null?void 0:e.isVirtualDragging)!=null&&o.call(e)&&((i=l==null?void 0:l.target)==null?void 0:i.type)==="item"&&(r=l.target.key,l.target.dropPosition==="after")){let s=l.collection.getKeyAfter(r),d=null;if(s!=null){let b=((u=l.collection.getItem(r))==null?void 0:u.level)??0;for(;s!=null;){let g=l.collection.getItem(s);if(!g)break;if(g.type!=="item"){s=l.collection.getKeyAfter(s);continue}if((g.level??0)<=b)break;d=s,s=l.collection.getKeyAfter(s)}}r=s??d??r}return n.useMemo(()=>new Set([a,r].filter(s=>s!=null)),[a,r])}const ye=new WeakMap;function Pr(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Dr(t,e){let l=ye.get(t);if(!l)throw new Error("Unknown list");return`${l.id}-option-${Pr(e)}`}function Cr(t,e,l){let a=R(t,{labelable:!0}),r=t.selectionBehavior||"toggle",o=t.orientation||"vertical",i=t.linkBehavior||(r==="replace"?"action":"override");r==="toggle"&&i==="action"&&(i="override");let{listProps:u}=xr({...t,ref:l,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=ea({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),d=_(t.id);ye.set(e,{id:d,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:b,fieldProps:g}=ct({...t,id:d,labelElementType:"span"});return{labelProps:b,listBoxProps:B(a,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":o,...B(g,u)})}}function Sr(t,e,l){var D,F;let{key:a}=t,r=ye.get(e),o=t.isDisabled??e.selectionManager.isDisabled(a),i=t.isSelected??e.selectionManager.isSelected(a),u=t.shouldSelectOnPressUp??(r==null?void 0:r.shouldSelectOnPressUp),s=t.shouldFocusOnHover??(r==null?void 0:r.shouldFocusOnHover),d=t.shouldUseVirtualFocus??(r==null?void 0:r.shouldUseVirtualFocus),b=t.isVirtualized??(r==null?void 0:r.isVirtualized),g=ee(),p=ee(),$={role:"option","aria-disabled":o||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?i:void 0,"aria-label":t["aria-label"],"aria-labelledby":g,"aria-describedby":p},x=e.collection.getItem(a);if(b){let w=Number(x==null?void 0:x.index);$["aria-posinset"]=Number.isNaN(w)?void 0:w+1,$["aria-setsize"]=mr(e.collection)}let v=r!=null&&r.onAction?()=>{var w;return(w=r==null?void 0:r.onAction)==null?void 0:w.call(r,a)}:void 0,f=Dr(e,a),{itemProps:y,isPressed:P,isFocused:h,hasAction:E,allowsSelection:C}=ta({selectionManager:e.selectionManager,key:a,ref:l,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&s,isVirtualized:b,shouldUseVirtualFocus:d,isDisabled:o,onAction:v||(D=x==null?void 0:x.props)!=null&&D.onAction?Ye((F=x==null?void 0:x.props)==null?void 0:F.onAction,v):void 0,linkBehavior:r==null?void 0:r.linkBehavior,UNSTABLE_itemBehavior:r==null?void 0:r.UNSTABLE_itemBehavior,id:f}),{hoverProps:M}=H({isDisabled:o||!s,onHoverStart(){ne()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(a))}}),S=R(x==null?void 0:x.props);delete S.id;let z=la(x==null?void 0:x.props);return{optionProps:{...$,...B(S,y,M,z),id:f},labelProps:{id:g},descriptionProps:{id:p},isFocused:h,isFocusVisible:h&&e.selectionManager.isFocused&&ne(),isSelected:i,isDisabled:o,isPressed:P,allowsSelection:C,hasAction:E}}function Er(t){let{heading:e,"aria-label":l}=t,a=_();return{itemProps:{role:"presentation"},headingProps:e?{id:a,role:"presentation",onMouseDown:r=>{r.preventDefault()}}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":e?a:void 0}}}function Br(t,e){let{collection:l,onLoadMore:a,scrollOffset:r=1,direction:o="end"}=t,i=n.useRef(null),u=aa(s=>{for(let d of s)d.isIntersecting&&a&&a()});ra(()=>{if(e.current){const s=100*r,d=o==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;i.current=new IntersectionObserver(u,{root:oa(e==null?void 0:e.current),rootMargin:d}),i.current.observe(e.current)}return()=>{i.current&&i.current.disconnect()}},[l,e,r,o])}const Pe=n.createContext(null),q=n.createContext(null),wr=n.forwardRef(function(e,l){[e,l]=U(e,l,Pe);let a=n.useContext(q);return a?c.createElement(Rl,{state:a,props:e,listBoxRef:l}):c.createElement(Xe,{content:c.createElement(ia,e)},r=>c.createElement(Rr,{props:e,listBoxRef:l,collection:r}))});function Rr({props:t,listBoxRef:e,collection:l}){t={...t,collection:l,children:null,items:null};let{layoutDelegate:a}=n.useContext($e),r=Je({...t,layoutDelegate:a});return c.createElement(Rl,{state:r,props:t,listBoxRef:e})}function Rl({state:t,props:e,listBoxRef:l}){[e,l]=U(e,l,fr);let{dragAndDropHooks:a,layout:r="stack",orientation:o="vertical",filter:i}=e,u=ua(t,i),{collection:s,selectionManager:d}=u,b=!!(a!=null&&a.useDraggableCollectionState),g=!!(a!=null&&a.useDroppableCollectionState),{direction:p}=be(),{disabledBehavior:$,disabledKeys:x}=d,v=ve({usage:"search",sensitivity:"base"}),{isVirtualized:f,layoutDelegate:y,dropTargetDelegate:P,CollectionRoot:h}=n.useContext($e),E=n.useMemo(()=>e.keyboardDelegate||new me({collection:s,collator:v,ref:l,disabledKeys:x,disabledBehavior:$,layout:r,orientation:o,direction:p,layoutDelegate:y}),[s,v,l,$,x,o,p,e.keyboardDelegate,r,y]),{listBoxProps:C}=Cr({...e,shouldSelectOnPressUp:b||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:f},u,l);n.useRef(b),n.useRef(g),n.useEffect(()=>{},[b,g]);let M,S,z,D=!1,F=null,w=n.useRef(null);if(b&&a){M=a.useDraggableCollectionState({collection:s,selectionManager:d,preview:a.renderDragPreview?w:void 0}),a.useDraggableCollection({},M,l);let ae=a.DragPreview;F=a.renderDragPreview?c.createElement(ae,{ref:w},a.renderDragPreview):null}if(g&&a){S=a.useDroppableCollectionState({collection:s,selectionManager:d});let ae=a.dropTargetDelegate||P||new a.ListDropTargetDelegate(s,l,{orientation:o,layout:r,direction:p});z=a.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:ae},S,l),D=S.isDropTarget({type:"root"})}let{focusProps:Ul,isFocused:we,isFocusVisible:Re}=ge(),le=u.collection.size===0,Me={isDropTarget:D,isEmpty:le,isFocused:we,isFocusVisible:Re,layout:e.layout||"stack",orientation:o,state:u},Zl=I({...e,children:void 0,defaultClassName:"react-aria-ListBox",values:Me}),Ae=null;le&&e.renderEmptyState&&(Ae=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(Me)));let ql=R(e,{global:!0});return c.createElement(ca,null,c.createElement(A.div,{...B(ql,Zl,C,Ul,z==null?void 0:z.collectionProps),ref:l,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":D||void 0,"data-empty":le||void 0,"data-focused":we||void 0,"data-focus-visible":Re||void 0,"data-layout":e.layout||"stack","data-orientation":o},c.createElement(G,{values:[[Pe,e],[q,u],[te,{dragAndDropHooks:a,dragState:M,dropState:S}],[$r,{elementType:"div"}],[Bl,{render:Fr}],[da,{name:"ListBoxSection",render:Ml}]]},c.createElement(fa,null,c.createElement(h,{collection:s,scrollRef:l,persistedKeys:yr(d,a,S),renderDropIndicator:wl(a,S)}))),Ae,F))}function Ml(t,e,l,a="react-aria-ListBoxSection"){let r=n.useContext(q),{dragAndDropHooks:o,dropState:i}=n.useContext(te),{CollectionBranch:u}=n.useContext($e),[s,d]=Qe(),{headingProps:b,groupProps:g}=Er({heading:d,"aria-label":t["aria-label"]??void 0}),p=I({...t,id:void 0,children:void 0,defaultClassName:a,values:void 0}),$=R(t,{global:!0});return delete $.id,c.createElement(A.section,{...B($,p,g),ref:e},c.createElement(br.Provider,{value:{...b,ref:s}},c.createElement(u,{collection:r.collection,parent:l,renderDropIndicator:wl(o,i)})))}const Mr=na(sa,Ml),Ar=et(ba,function(e,l,a){let r=he(l),o=n.useContext(q),{dragAndDropHooks:i,dragState:u,dropState:s}=n.useContext(te),d=u&&!(u.isDisabled||u.selectionManager.isDisabled(a.key)),{optionProps:b,labelProps:g,descriptionProps:p,...$}=Sr({key:a.key,"aria-label":e==null?void 0:e["aria-label"]},o,r),{hoverProps:x,isHovered:v}=H({isDisabled:!$.allowsSelection&&!$.hasAction&&!d,onHoverStart:a.props.onHoverStart,onHoverChange:a.props.onHoverChange,onHoverEnd:a.props.onHoverEnd}),{keyboardProps:f}=fe(e),{focusProps:y}=$a(e),P=null;u&&i&&(P=i.useDraggableItem({key:a.key,hasAction:$.hasAction},u));let h=null;s&&i&&(h=i.useDroppableItem({target:{type:"item",key:a.key,dropPosition:"on"}},s,r));let E=u&&u.isDragging(a.key),C=I({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...$,isHovered:v,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!u,isDragging:E,isDropTarget:h==null?void 0:h.isDropTarget}});n.useEffect(()=>{a.textValue},[a.textValue]);let M=e.href?A.a:A.div,S=R(e,{global:!0});return delete S.id,delete S.onClick,e.href&&b.tabIndex==null&&(b.tabIndex=-1),c.createElement(M,{...B(S,C,b,x,f,y,P==null?void 0:P.dragProps,h==null?void 0:h.dropProps),ref:r,"data-allows-dragging":!!u||void 0,"data-selected":$.isSelected||void 0,"data-disabled":$.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":$.isFocusVisible||void 0,"data-pressed":$.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":(h==null?void 0:h.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement(G,{values:[[Y,{slots:{[ha]:g,label:g,description:p}}],[ga,{isSelected:$.isSelected}]]},C.children))});function Fr(t,e){e=he(e);let{dragAndDropHooks:l,dropState:a}=n.useContext(te),{dropIndicatorProps:r,isHidden:o,isDropTarget:i}=l.useDropIndicator(t,a,e);return o?null:c.createElement(Ir,{...t,dropIndicatorProps:r,isDropTarget:i,ref:e})}function kr(t,e){let{dropIndicatorProps:l,isDropTarget:a,...r}=t,o=I({...r,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:a}});return c.createElement(c.Fragment,null,c.createElement(A.div,{...l,...o,role:"option",ref:e,"data-drop-target":a||void 0}))}const Ir=n.forwardRef(kr);et(pa,function(e,l,a){let r=n.useContext(q),{isLoading:o,onLoadMore:i,scrollOffset:u,...s}=e,d=n.useRef(null),b=n.useMemo(()=>({onLoadMore:i,collection:r==null?void 0:r.collection,sentinelRef:d,scrollOffset:u}),[i,u,r==null?void 0:r.collection]);Br(b,d);let g=I({...s,id:void 0,children:a.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return c.createElement(c.Fragment,null,c.createElement("div",{style:{position:"relative",width:0,height:0},inert:xa(!0)},c.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),o&&g.children&&c.createElement(c.Fragment,null,c.createElement(A.div,{...B(R(e,{global:!0}),p),...g,role:"option",ref:l},g.children)))});function zr(t){let{description:e,errorMessage:l,isInvalid:a,validationState:r}=t,{labelProps:o,fieldProps:i}=ct(t),u=ee([!!e,!!l,a,r]),s=ee([!!e,!!l,a,r]);return i=B(i,{"aria-describedby":[u,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:u},errorMessageProps:{id:s}}}const De=new WeakMap;function Kr(t,e,l){let{keyboardDelegate:a,isDisabled:r,isRequired:o,name:i,form:u,validationBehavior:s="aria"}=t,d=ve({usage:"search",sensitivity:"base"}),b=n.useMemo(()=>a||new me(e.collection,e.disabledKeys,l,d),[a,e.collection,e.disabledKeys,d,l]),{menuTriggerProps:g,menuProps:p}=pr({isDisabled:r,type:"listbox"},e,l),{keyboardProps:$}=fe({shortcuts:{ArrowLeft:()=>{var F,w;if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?(F=b.getKeyAbove)==null?void 0:F.call(b,e.selectedKey):(w=b.getFirstKey)==null?void 0:w.call(b);D!=null&&e.setSelectedKey(D)},ArrowRight:()=>{var F,w;if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?(F=b.getKeyBelow)==null?void 0:F.call(b,e.selectedKey):(w=b.getFirstKey)==null?void 0:w.call(b);D!=null&&e.setSelectedKey(D)}},allowRepeats:!0,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:x}=ma({keyboardDelegate:b,selectionManager:e.selectionManager,onTypeSelect(D){e.setSelectedKey(D)}}),{isInvalid:v,validationErrors:f,validationDetails:y}=e.displayValidation,{labelProps:P,fieldProps:h,descriptionProps:E,errorMessageProps:C}=zr({...t,labelElementType:"span",isInvalid:v,errorMessage:t.errorMessage||f});e.selectionManager.selectionMode==="multiple"&&(x={});let M=R(t,{labelable:!0}),S=B(x,g,h),z=_();return De.set(e,{isDisabled:r,isRequired:o,name:i,form:u,validationBehavior:s}),{labelProps:{...P,onClick:()=>{var D;t.isDisabled||((D=l.current)==null||D.focus(),ya("keyboard"))}},triggerProps:B(M,{...S,isDisabled:r,onKeyDown:Ye(S.onKeyDown,$.onKeyDown),onKeyUp:$.onKeyUp,"aria-labelledby":[z,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].filter(Boolean).join(" "),onFocus(D){e.isFocused||(t.onFocus&&t.onFocus(D),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(D){e.isOpen||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:z},menuProps:{...p,onAction:void 0,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:D=>{va(D.currentTarget,D.relatedTarget)||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[h["aria-labelledby"],S["aria-label"]&&!h["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:E,errorMessageProps:C,isInvalid:v,validationErrors:f,validationDetails:y,hiddenSelectProps:{isDisabled:r,name:i,label:t.label,state:e,triggerRef:l,form:u}}}function Lr(t,e,l){let a=De.get(e)||{},{autoComplete:r,name:o=a.name,form:i=a.form,isDisabled:u=a.isDisabled}=t,{validationBehavior:s,isRequired:d}=a,{visuallyHiddenProps:b}=Pa({style:{position:"fixed",top:0,left:0}});Da(t.selectRef,e.defaultValue,e.setValue),Ca({validationBehavior:s,focus:()=>{var $;return($=l.current)==null?void 0:$.focus()}},e,t.selectRef);let g=e.setValue,p=n.useCallback($=>{let x=Ge($);x.multiple?g(Array.from(x.selectedOptions,v=>v.value)):g($.currentTarget.value)},[g]);return{containerProps:{...b,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:r,disabled:u,multiple:e.selectionManager.selectionMode==="multiple",required:s==="native"&&d,name:o,form:i,value:e.value??"",onChange:p,onInput:p}}}function Tr(t){let{state:e,triggerRef:l,label:a,name:r,form:o,isDisabled:i}=t,u=n.useRef(null),s=n.useRef(null),{containerProps:d,selectProps:b}=Lr({...t,selectRef:e.collection.size<=300?u:s},e,l),g=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return c.createElement("div",{...d,"data-testid":"hidden-select-container"},c.createElement("label",null,a,c.createElement("select",{...b,ref:u},c.createElement("option",{value:"",label:" "}," "),[...e.collection.getKeys()].map(p=>{let $=e.collection.getItem(p);if($&&$.type==="item")return c.createElement("option",{key:$.key,value:$.key},$.textValue)}),e.collection.size===0&&r&&g.map((p,$)=>c.createElement("option",{key:$,value:p??""})))));if(r){let p=De.get(e)||{},{validationBehavior:$}=p;g.length===0&&(g=[null]);let x=g.map((v,f)=>{let y={type:"hidden",autoComplete:b.autoComplete,name:r,form:o,disabled:i,value:v??""};return $==="native"?c.createElement("input",{key:f,...y,ref:f===0?s:null,style:{display:"none"},type:"text",required:f===0?b.required:!1,onChange:()=>{}}):c.createElement("input",{key:f,...y,ref:f===0?s:null})});return c.createElement(c.Fragment,null,x)}return null}function Or(t){let{selectionMode:e="single",shouldCloseOnSelect:l=e==="single"}=t,a=tt(t),[r,o]=n.useState(null),i=n.useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),u=n.useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[s,d]=Sa(u,i,t.onChange),b=e==="single"&&Array.isArray(s)?s[0]:s,g=h=>{var E;if(e==="single"){let C=Array.isArray(h)?h[0]??null:h;d(C),C!==b&&((E=t.onSelectionChange)==null||E.call(t,C))}else{let C=[];Array.isArray(h)?C=h:h!=null&&(C=[h]),d(C)}},p=Je({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:!0,selectedKeys:n.useMemo(()=>Vr(b),[b]),onSelectionChange:h=>{if(h!=="all"){if(e==="single"){let E=h.values().next().value??null;g(E)}else g([...h]);l&&a.close(),v.commitValidation()}}}),$=p.selectionManager.firstSelectedKey,x=n.useMemo(()=>[...p.selectionManager.selectedKeys].map(h=>p.collection.getItem(h)).filter(h=>h!=null),[p.selectionManager.selectedKeys,p.collection]),v=Ea({...t,value:Array.isArray(b)&&b.length===0?null:b}),[f,y]=n.useState(!1),[P]=n.useState(b);return{...v,...p,...a,value:b,defaultValue:i??P,setValue:g,selectedKey:$,setSelectedKey:g,selectedItem:x[0]??null,selectedItems:x,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?P:null),focusStrategy:r,open(h=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(h),a.open())},toggle(h=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(h),a.toggle())},isFocused:f,setFocused:y}}function Vr(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}function Nr(t={}){let{locale:e}=be();return n.useMemo(()=>new Intl.ListFormat(e,t),[e,t])}function jr(t){return t&&t.__esModule?t.default:t}const Ce=n.createContext(null),Se=n.createContext(null),_r=de(function(e,l){[e,l]=U(e,l,Ce);let{children:a,isDisabled:r=!1,isInvalid:o=!1,isRequired:i=!1}=e,u=n.useMemo(()=>typeof a=="function"?a({isOpen:!1,isDisabled:r,isInvalid:o,isRequired:i,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):a,[a,r,o,i]);return c.createElement(Xe,{content:u},s=>c.createElement(Zr,{props:e,collection:s,selectRef:l}))}),Ur=[xe,rt,Y];function Zr({props:t,selectRef:e,collection:l}){let{validationBehavior:a}=pe(lt)||{},r=t.validationBehavior??a??"native",o=Or({...t,collection:l,children:void 0,validationBehavior:r}),{isFocusVisible:i,focusProps:u}=ge({within:!0}),s=n.useRef(null),[d,b]=Qe(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:p,valueProps:$,menuProps:x,descriptionProps:v,errorMessageProps:f,hiddenSelectProps:y,...P}=Kr({...at(t),label:b,validationBehavior:r},o,s),h=n.useMemo(()=>({isOpen:o.isOpen,isFocused:o.isFocused,isFocusVisible:i,isDisabled:t.isDisabled||!1,isInvalid:P.isInvalid||!1,isRequired:t.isRequired||!1}),[o.isOpen,o.isFocused,i,t.isDisabled,P.isInvalid,t.isRequired]),E=I({...t,values:h,defaultClassName:"react-aria-Select"}),C=R(t,{global:!0});delete C.id;let M=n.useRef(null);return c.createElement(G,{values:[[Ce,t],[Se,o],[Al,$],[xe,{...g,ref:d,elementType:"span"}],[rt,{...p,ref:s,isPressed:o.isOpen,autoFocus:t.autoFocus}],[Ba,o],[wa,{trigger:"Select",triggerRef:s,scrollRef:M,placement:"bottom start","aria-labelledby":x["aria-labelledby"],clearContexts:Ur}],[Pe,{...x,ref:M}],[q,o],[Y,{slots:{description:v,errorMessage:f}}],[ot,P]]},c.createElement(A.div,{...B(C,E,u),ref:e,slot:t.slot||void 0,"data-focused":o.isFocused||void 0,"data-focus-visible":i||void 0,"data-open":o.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":P.isInvalid||void 0,"data-required":t.isRequired||void 0},E.children,c.createElement(Tr,{...y,autoComplete:t.autoComplete})))}const Al=n.createContext(null),qr=de(function(e,l){var x;[e,l]=U(e,l,Al);let a=n.useContext(Se),{placeholder:r}=pe(Ce),o=a.selectedItems.map(v=>{var y;let f=(y=v.props)==null?void 0:y.children;return typeof f=="function"&&(f=f({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),f}),i=Nr(),u=n.useMemo(()=>a.selectedItems.map(v=>v==null?void 0:v.textValue),[a.selectedItems]),s=a.selectionManager.selectionMode,d=n.useMemo(()=>s==="single"?u[0]??"":i.format(u),[s,i,u]),b=n.useMemo(()=>{if(s==="single")return o[0];let v=i.formatToParts(u);if(v.length===0)return null;let f=0;return v.map(y=>y.type==="element"?c.createElement(n.Fragment,{key:f},o[f++]):y.value)},[s,i,u,o]),g=He(jr(El),"react-aria-components"),p=I({...e,defaultChildren:b??r??g.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:((x=a.selectedItems[0])==null?void 0:x.value)??null,selectedItems:n.useMemo(()=>a.selectedItems.map(v=>v.value??null),[a.selectedItems]),selectedText:d,isPlaceholder:a.selectedItems.length===0,state:a}}),$=R(e,{global:!0});return c.createElement(A.span,{ref:l,...$,...p,"data-placeholder":a.selectedItems.length===0||void 0},c.createElement(Y.Provider,{value:void 0},p.children))}),Wr=n.createContext(!1),Hr=({children:t})=>m.jsx(Wr,{value:!0,children:t}),Fl=n.createContext({}),Te=({children:t,className:e,color:l,size:a,variant:r,...o})=>{const i=c.useMemo(()=>lr({color:l,size:a,variant:r}),[l,a,r]),u=c.useMemo(()=>typeof t=="string"||typeof t=="number"?m.jsx(kl,{children:t}):t,[t]);return m.jsx(Fl,{value:{slots:i},children:m.jsx(O.span,{...o,className:K(i.base,e),"data-slot":"chip",children:u})})},kl=({children:t,className:e,...l})=>{const{slots:a}=n.use(Fl);return m.jsx(O.span,{className:K(a==null?void 0:a.label,e),"data-slot":"chip-label",...l,children:t})},Eo=Object.assign(Te,{Root:Te,Label:kl}),ie=new Map;function se(t,e,l=!0){const a=ut();return n.useMemo(()=>{if(e!==void 0)return e;if(!a){if(l&&ie.has(t))return ie.get(t);try{const r=document.documentElement,o=getComputedStyle(r).getPropertyValue(t).trim()||void 0;return l&&ie.set(t,o),o}catch{return}}},[t,e,a,l])}const Oe=({animationType:t,className:e,...l})=>{const a=se("--skeleton-animation",t),r=c.useMemo(()=>sr({animationType:a}),[a]);return m.jsx(O.div,{className:r.base({className:e}),...l})},Bo=Object.assign(Oe,{Root:Oe});function Gr(t,e,l){let{labelProps:a,inputProps:r,isSelected:o,...i}=Ra(t,e,l);return{labelProps:a,inputProps:{...r,role:"switch",checked:o},isSelected:o,...i}}const Yr=n.createContext(null),Il=n.createContext(null),zl=n.createContext(null),Xr=n.forwardRef(function(e,l){let{inputRef:a=null,...r}=e;[e,l]=U(r,l,Yr);let{validationBehavior:o}=pe(lt)||{},i=e.validationBehavior??o??"native",u=he(Ma(a,e.inputRef!==void 0?e.inputRef:null)),s=Aa(e),d=Gr({...at(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:i},s,u),{descriptionProps:b,errorMessageProps:g,isSelected:p,isDisabled:$,isReadOnly:x,isInvalid:v,validationDetails:f,validationErrors:y}=d,P=I({...e,defaultClassName:"react-aria-SwitchField",values:{isSelected:p,isDisabled:$,isReadOnly:x,isInvalid:v,isRequired:e.isRequired||!1,state:s}}),h=R(e,{global:!0});return delete h.id,delete h.onClick,c.createElement(A.div,{...B(h,P),ref:l,slot:e.slot||void 0,"data-selected":p||void 0,"data-disabled":$||void 0,"data-readonly":x||void 0,"data-invalid":v||void 0,"data-required":e.isRequired||void 0},c.createElement(G,{values:[[Il,s],[zl,{...d,inputRef:u,defaultClassName:"react-aria-SwitchButton",isRequired:e.isRequired}],[Y,{slots:{description:b,errorMessage:g}}],[ot,{isInvalid:v,validationDetails:f,validationErrors:y}]]},P.children))}),Jr=n.forwardRef(function(e,l){let{labelProps:a,inputProps:r,isSelected:o,isDisabled:i,isReadOnly:u,isPressed:s,isInvalid:d,inputRef:b,defaultClassName:g,isRequired:p}=n.useContext(zl),{isFocused:$,isFocusVisible:x,focusProps:v}=ge(),f=i||u,y=n.useContext(Il),{hoverProps:P,isHovered:h}=H({...e,isDisabled:f}),E=I({...e,defaultClassName:g,values:{isSelected:o,isPressed:s,isHovered:h,isFocused:$,isFocusVisible:x,isDisabled:i,isReadOnly:u,isInvalid:d,isRequired:p||!1,state:y}}),C=R(e,{global:!0});return delete C.id,delete C.onClick,c.createElement(A.label,{...B(C,a,P,E),ref:l,slot:e.slot||void 0,"data-selected":o||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0,"data-focused":$||void 0,"data-focus-visible":x||void 0,"data-disabled":i||void 0,"data-readonly":u||void 0,"data-invalid":d||void 0,"data-required":p||void 0},c.createElement(Fa,{elementType:"span"},c.createElement("input",{...B(r,v),ref:b})),E.children)}),X=n.createContext({}),ue=({children:t,className:e,size:l,...a})=>{const r=c.useMemo(()=>ur({size:l}),[l]);return m.jsx(Xr,{"data-slot":"switch",...a,className:T(e,r.base()),children:o=>m.jsx(X,{value:{slots:r,state:o},children:typeof t=="function"?t(o):t})})};ue.displayName="HeroUI.Switch";const Kl=({children:t,className:e,...l})=>{const{slots:a}=n.use(X);return m.jsx(Jr,{"data-slot":"switch-content",...l,className:T(e,a==null?void 0:a.content()),children:t})};Kl.displayName="HeroUI.Switch.Content";const Ll=({children:t,className:e,...l})=>{const{slots:a}=n.use(X);return m.jsx(O.span,{className:K(a==null?void 0:a.control,e),"data-slot":"switch-control",...l,children:t})};Ll.displayName="HeroUI.Switch.Control";const Tl=({children:t,className:e,...l})=>{const{slots:a}=n.use(X);return m.jsx(O.span,{className:K(a==null?void 0:a.thumb,e),"data-slot":"switch-thumb",...l,children:t})};Tl.displayName="HeroUI.Switch.Thumb";const Ol=({children:t,className:e,...l})=>{const{slots:a}=n.use(X);return m.jsx(O.span,{className:K(a==null?void 0:a.icon,e),"data-slot":"switch-icon",...l,children:t})};Ol.displayName="HeroUI.Switch.Icon";const wo=Object.assign(ue,{Root:ue,Content:Kl,Control:Ll,Thumb:Tl,Icon:Ol}),ce=c.createContext(null);function Qr(t){let{children:e}=t,l=n.useContext(ce),[a,r]=n.useState(0),o=n.useMemo(()=>({parent:l,modalCount:a,addModal(){r(i=>i+1),l&&l.addModal()},removeModal(){r(i=>i-1),l&&l.removeModal()}}),[l,a]);return c.createElement(ce.Provider,{value:o},e)}function eo(){let t=n.useContext(ce);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function to(t){let{modalProviderProps:e}=eo();return c.createElement("div",{"data-overlay-container":!0,...t,...e})}function lo(t){return c.createElement(Qr,null,c.createElement(to,t))}function ao(t){let e=ka(),{portalContainer:l=e?null:document.body,...a}=t,{getContainer:r}=Ia();if(!t.portalContainer&&r&&(l=r()),c.useEffect(()=>{if(l!=null&&l.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[l]),!l)return null;let o=c.createElement(lo,a);return za.createPortal(o,l)}const ro=1500,Ve=500;let N={},oo=0,Z=!1,k=null,j=null;function Vl(t={}){let{delay:e=ro,closeDelay:l=Ve}=t,{isOpen:a,open:r,close:o}=tt(t),[i,u]=n.useState(!1),s=n.useMemo(()=>`${++oo}`,[]),d=n.useRef(null),b=n.useRef(o),g=()=>{N[s]=x},p=()=>{for(let f in N)f!==s&&(N[f](!0,!0),delete N[f])},$=f=>{d.current&&clearTimeout(d.current),d.current=null,p(),g(),u(!!f),Z=!0,r(),k&&(clearTimeout(k),k=null),j&&(clearTimeout(j),j=null)},x=(f,y)=>{u(!!y),f||l<=0?(d.current&&clearTimeout(d.current),d.current=null,b.current()):d.current||(d.current=setTimeout(()=>{d.current=null,b.current()},l)),k&&(clearTimeout(k),k=null),Z&&(j&&clearTimeout(j),j=setTimeout(()=>{delete N[s],j=null,Z=!1},Math.max(Ve,l)))},v=()=>{p(),g(),!a&&!Z?(k&&clearTimeout(k),k=setTimeout(()=>{k=null,Z=!0,$(!1)},e)):a||$(!0)};return n.useEffect(()=>{b.current=o},[o]),n.useEffect(()=>()=>{d.current&&clearTimeout(d.current),N[s]&&delete N[s]},[s]),{isOpen:a,shouldSkipAnimation:i,open:f=>{!f&&e>0&&!d.current?v():$(Z)},close:x}}function io(t,e){let l=R(t,{labelable:!0}),{hoverProps:a}=H({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:B(l,a,{role:"tooltip"})}}function no(t,e,l){let{isDisabled:a,trigger:r,shouldCloseOnPress:o=!0}=t,i=_(),u=n.useRef(!1),s=n.useRef(!1),d=()=>{(u.current||s.current)&&e.open(s.current)},b=P=>{!u.current&&!s.current&&e.close(P)};n.useEffect(()=>{let P=h=>{l&&l.current&&h.key==="Escape"&&(h.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",P,!0),()=>{document.removeEventListener("keydown",P,!0)}},[l,e]);let g=()=>{r!=="focus"&&(Ka()==="pointer"?u.current=!0:u.current=!1,d())},p=()=>{r!=="focus"&&(s.current=!1,u.current=!1,b())},$=()=>{o&&(s.current=!1,u.current=!1,b(!0))},x=()=>{ne()&&(s.current=!0,d())},v=()=>{s.current=!1,u.current=!1,b(!0)},{hoverProps:f}=H({isDisabled:a,onHoverStart:g,onHoverEnd:p}),{focusableProps:y}=it({isDisabled:a,onFocus:x,onBlur:v},l);return{triggerProps:{"aria-describedby":e.isOpen?i:void 0,...B(y,f,{onPointerDown:$,onKeyDown:$}),tabIndex:void 0},tooltipProps:{id:i}}}const W=n.createContext(null),Nl=n.createContext(null);function so(t){let e=Vl(t),l=n.useRef(null),{triggerProps:a,tooltipProps:r}=no(t,e,l);return c.createElement(G,{values:[[W,e],[Nl,{...r,triggerRef:l}]]},c.createElement(La,{...a,ref:l},t.children))}const uo=n.forwardRef(function({UNSTABLE_portalContainer:e,...l},a){[l,a]=U(l,a,Nl);let r=n.useContext(W),o=Vl(l),i=l.isOpen!=null||l.defaultOpen!=null||!r?o:r,u=Ta(a,i.isOpen),s=l.isExiting||!i.shouldSkipAnimation&&u||!1;return!i.isOpen&&!s?null:c.createElement(ao,{portalContainer:e},c.createElement(co,{...l,tooltipRef:a,isExiting:s}))});function co(t){let e=n.useContext(W),l=n.useRef(null),{overlayProps:a,arrowProps:r,placement:o,triggerAnchorPoint:i}=Oa({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,arrowRef:l,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,containerPadding:t.containerPadding,onClose:()=>e.close(!0)}),u=Va(t.tooltipRef,!!o),s=t.isEntering||!e.shouldSkipAnimation&&u||!1,d=I({...t,defaultClassName:"react-aria-Tooltip",values:{placement:o,isEntering:s,isExiting:t.isExiting,state:e}});t=B(t,a);let{tooltipProps:b}=io(t,e),g=R(t,{global:!0});return c.createElement(A.div,{...B(g,d,b),ref:t.tooltipRef,style:{...a.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...d.style},"data-placement":o??void 0,"data-entering":s||void 0,"data-exiting":t.isExiting||void 0},c.createElement(Na.Provider,{value:{...r,placement:o,ref:l}},d.children))}const Ne=t=>{if(!t)return;const e=t.trim(),l=parseFloat(e);if(!Number.isNaN(l))return e.endsWith("ms")?l:e.endsWith("s")?l*1e3:l},Ee=n.createContext({}),fo=({children:t,shouldSkipAnimation:e})=>{const l=n.use(W);return!l||e?t:m.jsx(W,{value:{...l,shouldSkipAnimation:!1},children:t})},je=({children:t,closeDelay:e,delay:l,shouldSkipAnimation:a=!1,...r})=>{const o=c.useMemo(()=>cr(),[]),i=se("--tooltip-delay"),u=se("--tooltip-close-delay"),s=l??Ne(i),d=e??Ne(u);return m.jsx(Ee,{value:{slots:o},children:m.jsx(so,{closeDelay:d,"data-slot":"tooltip-root",delay:s,...r,children:m.jsx(fo,{shouldSkipAnimation:a,children:t})})})},bo=({children:t,className:e,offset:l,showArrow:a=!1,...r})=>{const{slots:o}=n.use(Ee),i=l||(a?7:3);return m.jsx(uo,{...r,className:T(e,o==null?void 0:o.base()),offset:i,children:t})},$o=({children:t,className:e,...l})=>{const a=m.jsx("svg",{"data-slot":"overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),r=c.isValidElement(t)?c.cloneElement(t,{"data-slot":"overlay-arrow"}):a;return m.jsx(ja,{"data-slot":"tooltip-arrow",...l,className:e,children:r})},go=({children:t,className:e,...l})=>{const{slots:a}=n.use(Ee),r=n.useRef(null),{focusableProps:o}=it({},r);return m.jsx(O.div,{ref:r,className:K(a==null?void 0:a.trigger,e),"data-slot":"tooltip-trigger",role:"button",..._a(o,l),children:t})},Ro=Object.assign(je,{Root:je,Trigger:go,Content:bo,Arrow:$o}),_e=({children:t,className:e,isDisabled:l,isInvalid:a,isRequired:r,...o})=>m.jsx(dr,{className:ar({isRequired:r,isDisabled:l,isInvalid:a,className:e}),"data-slot":"label",...o,children:t}),Mo=Object.assign(_e,{Root:_e}),jl=n.createContext({}),Ue=({children:t,className:e,variant:l,...a})=>{const r=c.useMemo(()=>or({variant:l}),[l]);return m.jsx(Ar,{className:T(e,r.item()),"data-slot":"list-box-item",...a,children:o=>m.jsx(jl,{value:{slots:r,state:o},children:typeof t=="function"?t(o):t})})},_l=({children:t,className:e,...l})=>{const{slots:a,state:r}=n.use(jl),o=r==null?void 0:r.isSelected,i=typeof t=="function"?t(r??{}):t||m.jsx("svg",{"aria-hidden":"true","data-slot":"list-box-item-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:o?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:m.jsx("polyline",{points:"1 9 7 14 15 4"})});return m.jsx(O.span,{"aria-hidden":"true",className:K(a==null?void 0:a.indicator,e),"data-slot":"list-box-item-indicator","data-visible":o||void 0,...l,children:i})},ho=Object.assign(Ue,{Root:Ue,Indicator:_l}),po=({children:t,className:e,...l})=>{const a=c.useMemo(()=>ir({class:typeof e=="string"?e:void 0}),[e]);return m.jsx(Mr,{className:a,...l,children:t})},xo=po;function Ze({className:t,variant:e,...l}){const a=c.useMemo(()=>rr({variant:e}),[e]);return m.jsx(wr,{className:T(t,a),"data-slot":"list-box",...l})}const Ao=Object.assign(Ze,{Root:Ze,Item:ho,ItemIndicator:_l,Section:xo}),J=n.createContext({}),qe=({children:t,className:e,fullWidth:l,variant:a,...r})=>{const o=c.useMemo(()=>nr({fullWidth:l,variant:a}),[l,a]);return m.jsx(Hr,{children:m.jsx(J,{value:{slots:o},children:m.jsx(_r,{"data-slot":"select",...r,className:T(e,o==null?void 0:o.base()),children:i=>m.jsx(m.Fragment,{children:typeof t=="function"?t(i):t})})})})},mo=({children:t,className:e,...l})=>{const{slots:a}=n.use(J);return m.jsx(Wa,{className:T(e,a==null?void 0:a.trigger()),"data-slot":"select-trigger",...l,children:r=>m.jsx(m.Fragment,{children:typeof t=="function"?t(r):t})})},vo=({children:t,className:e,...l})=>{const{slots:a}=n.use(J);return m.jsx(qr,{className:T(e,a==null?void 0:a.value()),"data-slot":"select-value",...l,children:t})},yo=({children:t,className:e,...l})=>{const{slots:a}=n.use(J),r=n.use(Se);return t&&c.isValidElement(t)?c.cloneElement(t,{...l,className:K(a==null?void 0:a.indicator,e),"data-slot":"select-indicator","data-open":Ie(r==null?void 0:r.isOpen)}):m.jsx(qa,{className:K(a==null?void 0:a.indicator,e),"data-open":Ie(r==null?void 0:r.isOpen),"data-slot":"select-default-indicator",...l})},Po=({children:t,className:e,placement:l="bottom",...a})=>{const{slots:r}=n.use(J);return m.jsx(Ua,{value:{variant:"default"},children:m.jsx(Za,{...a,className:T(e,r==null?void 0:r.popover()),"data-slot":"select-popover",placement:l,children:t})})},Fo=Object.assign(qe,{Root:qe,Trigger:mo,Value:vo,Indicator:yo,Popover:Po}),Do=t=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 0 0 2.263-10.514 5.5 5.5 0 0 1-7.278 7.278A5.5 5.5 0 0 0 8 13.5M1.045 8.795a7.001 7.001 0 1 0 7.75-7.75l-.028-.003A7 7 0 0 0 8 1c-.527 0-.59.842-.185 1.18a4 4 0 0 1 .342.322A4 4 0 1 1 2.18 7.814C1.842 7.41 1 7.474 1 8a7 7 0 0 0 .045.794",clipRule:"evenodd"})),Co=t=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 3a.75.75 0 0 1-.75-.75V.75a.75.75 0 0 1 1.5 0v1.5A.75.75 0 0 1 8 3m0 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8m-.75 3.25a.75.75 0 0 0 1.5 0v-1.5a.75.75 0 0 0-1.5 0zM13 8a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 13 8M.75 7.25a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5zm10.786-2.786a.75.75 0 0 1 0-1.06l1.06-1.06a.75.75 0 0 1 1.06 1.06l-1.06 1.06a.75.75 0 0 1-1.06 0m-9.193 8.132a.75.75 0 0 0 1.06 1.06l1.062-1.06a.75.75 0 0 0-1.061-1.06zm9.193-1.06a.75.75 0 0 1 1.06 0l1.06 1.06a.75.75 0 0 1-1.06 1.06l-1.06-1.06a.75.75 0 0 1 0-1.06M3.404 2.343a.75.75 0 0 0-1.06 1.06l1.06 1.061a.75.75 0 1 0 1.06-1.06z",clipRule:"evenodd"}));function ko(){const{theme:t,setTheme:e}=Ha(),l=a=>{const r=a;(r==="light"||r==="dark")&&e(r)};return m.jsx(V,{className:"w-fit shrink-0 text-center",selectedKey:t,onSelectionChange:a=>l(String(a)),children:m.jsx(V.ListContainer,{children:m.jsxs(V.List,{"aria-label":"页面主题",className:"w-fit",children:[m.jsxs(V.Tab,{"aria-label":"使用亮色模式",className:"h-6 w-6 px-0 text-xs data-[selected=true]:text-accent-foreground",id:"light",children:[m.jsx(Co,{className:"size-3.5"}),m.jsx(V.Indicator,{className:"bg-accent"})]}),m.jsxs(V.Tab,{"aria-label":"使用暗色模式",className:"h-6 w-6 px-0 text-xs data-[selected=true]:text-accent-foreground",id:"dark",children:[m.jsx(Do,{className:"size-3.5"}),m.jsx(V.Indicator,{className:"bg-accent"})]})]})})})}function Io(){return!1}export{Eo as C,Mo as L,Bo as S,Ro as T,ko as a,Fo as b,Ao as c,wo as d,Io as i};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Hermes Agent</title><path d="M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z"></path><path d="M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z"></path><path clip-rule="evenodd" d="M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"></path></svg>
|