PageSourceSearch

https://govgov.ai/_next/static/chunks/3970-2ddea255e424b58d.js

js govgov.ai collected 2026-10-05 12:01:44 UTC 70,552 bytes, 58 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var r=1;r<arguments.length;r++){var l=arguments[r];if(null!=l)for(var s in l)l.hasOwnProperty(s)&&(t[s]=l[s])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var r=(new t.Error).stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="428f85cc-0d37-4920-958c-1ac11f059266",t._sentryDebugIdIdentifier="sentry-dbid-428f85cc-0d37-4920-958c-1ac11f059266")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3970],{3897:(t,r,l)=>{l.d(r,{A:()=>S});var s=l(25104),i=l(8349),n=l(77381),o=l(16681),a=l(97461),c={base:{s:"min-h-8 px-3 text-xs",m:"min-h-10 px-4 text-sm",l:"min-h-12 px-6 text-sm"},sm:{s:"sm:min-h-8 sm:px-3 sm:text-xs",m:"sm:min-h-10 sm:px-4 sm:text-sm",l:"sm:min-h-12 sm:px-6 sm:text-sm"},md:{s:"md:min-h-8 md:px-3 md:text-xs",m:"md:min-h-10 md:px-4 md:text-sm",l:"md:min-h-12 md:px-6 md:text-sm"},lg:{s:"lg:min-h-8 lg:px-3 lg:text-xs",m:"lg:min-h-10 lg:px-4 lg:text-sm",l:"lg:min-h-12 lg:px-6 lg:text-sm"},xl:{s:"xl:min-h-8 xl:px-3 xl:text-xs",m:"xl:min-h-10 xl:px-4 xl:text-sm",l:"xl:min-h-12 xl:px-6 xl:text-sm"},"2xl":{s:"2xl:min-h-8 2xl:px-3 2xl:text-xs",m:"2xl:min-h-10 2xl:px-4 2xl:text-sm",l:"2xl:min-h-12 2xl:px-6 2xl:text-sm"}},u=l(65556),d=l(3254),p=l(46875),h=l(30549),f=l(84057),y=l(36474),g=l(74964),m=l(46051),b=l(78833),v=l(19324),x=l(16239),K=l(32508),w=l(97360),S=(0,v.memo)((0,v.forwardRef)(function(t,r){let{elementType:l="button",children:S,autoFocus:P,isDisabled:k,variant:M,size:D="m",isFull:R=!1,isPending:C,onPress:F,onPressStart:T,onPressEnd:N,onPressChange:I,onPressUp:E,onKeyDown:A,onKeyUp:j,prefetch:B}=t=(0,u.zT)(t),O=(0,s.t0)(r),L=()=>{},{buttonProps:$,isPressed:z}=(0,d.s)({...t,onPress:C?L:F,onPressStart:C?L:T,onPressEnd:C?L:N,onPressChange:C?L:I,onPressUp:C?L:E,onKeyDown:C?L:A,onKeyUp:C?L:j},O),{hoverProps:V,isHovered:U}=(0,p.M)({isDisabled:k}),[H,_]=(0,v.useState)(!1),{focusProps:W}=(0,h.i)({onFocusChange:_,isDisabled:k}),X=!!$["aria-label"]||!!$["aria-labelledby"],[q,Y]=(0,v.useState)(()=>!!C),G=(0,f.dz)((0,f.a1)(D,"m"),c),J=(0,v.useId)(),Q=$.id||J,Z=(0,v.useId)(),ee=(0,v.useId)(),et=(0,y.o)(a.D);(0,v.useEffect)(()=>{let t;return C?t=setTimeout(()=>{Y(!0)},1e3):Y(!1),()=>{clearTimeout(t)}},[C]);let er=`${X?$["aria-label"]:""} ${et.format("pending")}`.trim(),el=X?$["aria-labelledby"]?.replace(Q,ee)??ee:`${Z} ${ee}`.trim(),es="polite";(0,g.lg)()&&(!X||(0,g.gm)())&&(es="off");let ei=(0,v.useMemo)(()=>(0,x.QP)(K(`
2      ${o.R.base}
3      ${o.R[M]}
4      ${G}
5      ${R?o.R.full:""}
6      ${k||q?o.R.disabled:""}
7      `)),[M,G,R,k,q]),en=(0,v.useMemo)(()=>K(`
8      relative flex items-center justify-center font-bold
9      ${q?"opacity-0":""}
10      `),[q]);return(0,w.jsx)(m.v,{autoFocus:P,children:(0,w.jsxs)(l,{"data-name":"Button",...(0,b.v)($,V,W),id:Q,disabled:k,"aria-disabled":C?"true":void 0,"aria-label":C?er:$["aria-label"],"aria-labelledby":C?el:$["aria-labelledby"],className:ei,ref:O,prefetch:B,children:[(0,w.jsx)(i.P,{isInverted:"primary"===M||"invert"===M,isPressed:z,isHovered:U}),(0,w.jsx)("span",{id:Z,className:en,children:S}),C&&(0,w.jsx)("div",{"aria-hidden":"true",style:{visibility:q?"visible":"hidden"},className:"absolute top-1/2 left-1/2 flex -translate-x-1/2 -translate-y-1/2",children:(0,w.jsx)(n.A,{size:"m",ariaLabel:er})}),C&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{"aria-live":H?es:"off",children:q&&(0,w.jsx)("div",{"data-testid":"live-element",role:"img","aria-labelledby":el})}),(0,w.jsx)("div",{id:ee,role:"img","aria-label":er})]})]})})}))},10138:(t,r,l)=>{l.d(r,{M:()=>n});var s=l(28969),i=l(19324);function n(t){let{id:r,"aria-labelledby":l}=t,{label:n,"aria-label":o,labelElementType:a="label"}=t;r??=(0,i.useId)();let c=(0,i.useId)(),u={};return n?(l=l?`${l} ${c}`:c,u={id:c,htmlFor:"label"===a?r:void 0}):l||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:u,fieldProps:(0,s.b)({id:r,"aria-label":o,"aria-labelledby":l})}}},11667:(t,r,l)=>{l.d(r,{Y:()=>a});var s=l(19324),i=l(25874),n=l(32508),o=l(97360),a=(0,s.memo)(function(t){let{size:r="m",variant:l="basic",children:a,isPill:c=!0,...u}=t;return(0,o.jsx)("span",{className:(0,s.useMemo)(()=>n(`
11    inline-flex items-center whitespace-nowrap px-2 text-xs
12    ${i.c[l]}
13    ${c?"rounded-full":"rounded"}
14    ${"quiet"===l?"py-1 text-text-secondary":"font-bold text-text-invert"}
15    ${"s"===r?"h-[1.125rem]":"h-5"}
16    `),[l,c,r]),...u,children:a})})},13074:(t,r,l)=>{l.d(r,{U:()=>i});var s=l(19324);function i(t){let r=(0,s.useRef)(null),l=(0,s.useRef)(void 0),i=(0,s.useCallback)(r=>{if("function"==typeof t){let l=t(r);return()=>{"function"==typeof l?l():t(null)}}if(t)return t.current=r,()=>{t.current=null}},[t]);return(0,s.useMemo)(()=>({get current(){return r.current},set current(e){r.current=e,l.current&&=void l.current(),null!=e&&(l.current=i(e))}}),[i])}},18006:(t,r,l)=>{l.d(r,{BX:()=>o,N9:()=>i,au:()=>n});var s=l(74964);function i(t){return(0,s.lg)()?t.altKey:t.ctrlKey}function n(t,r){let l=`[data-key="${CSS.escape(String(r))}"]`,s=t.current?.dataset.collection;return s&&(l=`[data-collection="${CSS.escape(s)}"]${l}`),t.current?.querySelector(l)}function o(t){return(0,s.cX)()?t.metaKey:t.ctrlKey}},22114:(t,r,l)=>{l.d(r,{o:()=>n});var s=l(12570),i=l(19324);
16function n(t,r,l){let n,{type:o}=t,{isOpen:a}=r;(0,i.useEffect)(()=>{l?.current&&s.a.set(l.current,r.close)}),"menu"===o?n=!0:"listbox"===o?n="listbox":"dialog"===o&&(n="dialog");let c=(0,i.useId)();return{triggerProps:{"aria-haspopup":n,"aria-expanded":a,"aria-controls":a?c:void 0},overlayProps:{id:c}}}},25428:(t,r,l)=>{l.d(r,{A:()=>j});var s=l(25104),i=l(77339),n=l(13074),o=l(53075),a=l(56138),c=l(49902),u=l(78833),d=l(37631),p=l(22208),h=l(30549),f=l(7569),y=l(46875),g=l(24217),m=l(77748),b=new WeakMap,v=l(93059),x=l(19324),K=l(38256),w=l(69645),S=l(46051),P=l(77432),k=l(32508),M=l(97360),D=(0,x.memo)(function(t){let{item:r,state:l,isVirtualized:s,onAction:m}=t,{closeOnSelect:D,onClose:R}=(0,i.KZ)(),{rendered:C,key:F,elementType:T="button",href:N,rel:I,target:E}=r,A=(0,i.CH)(),{triggerRef:j,...B}=A||{},O=!!A,L;O&&(L=A.isUnavailable);let $=l.disabledKeys.has(F),z=!O&&"none"!==l.selectionManager.selectionMode&&l.selectionManager.isSelected(F),V=(0,x.useRef)(null),U=(0,n.U)((0,x.useMemo)(()=>(function(...t){return r=>{for(let l of t)"function"==typeof l?l(r):null!=l&&(l.current=r)}})(V,j),[V,j])),{menuItemProps:H}=function(t,r,l){let{id:s,key:i,closeOnSelect:n,isVirtualized:m,"aria-haspopup":S,onPressStart:P,onPressUp:k,onPress:M,onPressChange:D,onPressEnd:R,onClick:C,onHoverStart:F,onHoverChange:T,onHoverEnd:N,onKeyDown:I,onKeyUp:E,onFocus:A,onFocusChange:j,onBlur:B,selectionManager:O=r.selectionManager}=t,L=!!S,$=L&&"true"===t["aria-expanded"],z=t.isDisabled??O.isDisabled(i),V=t.isSelected??O.isSelected(i),U=b?.get(r)??{},H=r.collection.getItem(i),_=t.onClose||U.onClose,W=(0,d.rd)(),X="menuitem";L||("single"===O.selectionMode?X="menuitemradio":"multiple"===O.selectionMode&&(X="menuitemcheckbox"));let q=(0,c.X1)(),Y=(0,c.X1)(),G=(0,c.X1)(),J={id:s,"aria-disabled":z||void 0,role:X,"aria-label":t["aria-label"],"aria-labelledby":q,"aria-describedby":[Y,G].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":S,"aria-expanded":t["aria-expanded"],"aria-checked":void 0,"aria-posinset":void 0,"aria-setsize":void 0};"none"===O.selectionMode||L||(J["aria-checked"]=V),m&&(J["aria-posinset"]=H?.index,J["aria-setsize"]=(0,K.v)(r.collection));let Q=(0,x.useRef)(!1),Z=(0,x.useRef)(null),{itemProps:ee,isFocused:et}=(0,v.p)({id:s,selectionManager:O,key:i,ref:l,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:U.shouldUseVirtualFocus}),{pressProps:er,isPressed:el}=(0,p.dD)({onPressStart:P,onPress:M,onPressUp:t=>{"keyboard"!==t.pointerType&&(Z.current={pointerType:t.pointerType}),"mouse"===t.pointerType&&(Q.current||t.target.click()),k?.(t)},onPressChange:t=>{D?.(t),Q.current=t},onPressEnd:R,isDisabled:z}),{hoverProps:es}=(0,y.M)({isDisabled:z,onHoverStart(t){(0,f.pP)()||$&&"dialog"===S||(O.setFocused(!0),O.setFocusedKey(i)),F?.(t)},onHoverChange:T,onHoverEnd:N}),{keyboardProps:ei}=(0,g.d)({onKeyDown:t=>{if(t.repeat)return void t.continuePropagation();switch(t.key){case" ":Z.current={pointerType:"keyboard",key:" "},t.target.click();break;case"Enter":Z.current={pointerType:"keyboard",key:"Enter"},"A"!==t.target.tagName&&t.target.click();break;default:L||t.continuePropagation(),I?.(t)}},onKeyUp:E}),{focusProps:en}=(0,h.i)({onBlur:B,onFocus:A,onFocusChange:j}),eo=(0,o.$)(H?.props);delete eo.id;let ea=(0,d._h)(H?.props);return{menuItemProps:{...J,...(0,u.v)(eo,ea,L?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,er,es,ei,en,U.shouldUseVirtualFocus||L?{onMouseDown:t=>t.preventDefault()}:{},z?void 0:{onClick:r=>{if((0,d.MN)(r.nativeEvent))return;C?.(r);let l=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||"none"===O.selectionMode||O.isLink(i):"multiple"!==O.selectionMode||O.isLink(i);l=n??l;let s=U.triggerRef?.current,o=(U.submenuLevel??0)===0,c=O.isLink(i),u=()=>{!L&&(H?.props?.onAction?H.props.onAction():t.onAction&&t.onAction(i),U.onAction)&&(0,U.onAction)(i),(0,d.PJ)(r,W,H.props.href,H?.props.routerOptions),Z.current=null};if(l&&!L&&o&&s&&!c&&s){"persist"in r&&"function"==typeof r.persist&&r.persist(),_&&_(),requestAnimationFrame(()=>{(0,a.e)(s),(0,w.flushSync)(()=>{u()})});return}u(),_&&!L&&l&&_()}}),tabIndex:void 0!==ee.tabIndex&&$?-1:ee.tabIndex},labelProps:{id:q},descriptionProps:{id:Y},keyboardShortcutProps:{id:G},isFocused:et,isFocusVisible:et&&O.isFocused&&(0,f.pP)()&&!$,isSelected:V,isPressed:el,isDisabled:z}}({isButton:"button"===T,isSelected:z,isDisabled:$,"aria-label":r["aria-label"],key:F,onClose:R,closeOnSelect:D,isVirtualized:s,onAction:m,...B},l,U),_=(0,c.X1)();
16_&&(H["aria-describedby"]=[H["aria-describedby"],_].filter(Boolean).join(" "));let{hoverProps:W,isHovered:X}=(0,y.M)({isDisabled:$}),q=(0,x.useMemo)(()=>k(`
17   relative m-0 flex min-w-28 touch-manipulation appearance-none items-center justify-between break-words px-4 py-3 text-left text-base md:p-2 md:text-sm outline-0
18  ${$?"cursor-not-allowed text-text-disabled":"cursor-pointer"}
19  ${z?"is-selected":""}
20  ${B.isOpen?"is-opened":""}
21  ${"none"===l.selectionManager.selectionMode?"":"is-selectable"}
22  ${X?"bg-background-secondary":""}
23  `),[$,z,X,l.selectionManager.selectionMode,B.isOpen]);return(0,M.jsx)(S.v,{focusRingClass:"focus-visible:outline-2",children:"button"!==T&&(0,x.isValidElement)(C)?(0,M.jsx)(T,{...(0,u.v)(H,W),href:N,className:q,ref:U,rel:I,target:E,children:C}):(0,M.jsxs)(T,{...(0,u.v)(H,W),ref:U,className:q,children:[(0,M.jsx)("div",{className:"flex-1",children:C}),z&&(0,M.jsx)(P.Jlk,{"aria-label":"","aria-hidden":!0,size:"s"}),null==L&&O&&(0,M.jsx)(P.h5p,{"aria-label":"","aria-hidden":!0,size:"s"})]})})}),R=l(71972),C=(0,x.memo)(function(t){let{item:r,state:l,onAction:s}=t,{itemProps:i,headingProps:n,groupProps:o}=function(t){let{heading:r,"aria-label":l}=t,s=(0,x.useId)();return{itemProps:{role:"presentation"},headingProps:r?{id:s,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":r?s:void 0}}}({heading:r.rendered,"aria-label":r["aria-label"]}),{separatorProps:a}=(0,R.r)({elementType:"div"}),c=l.collection.getFirstKey(),u=[...l.collection].filter(t=>"section"===t.type).at(-1)?.key,d=c===r.key&&l.collection.getFirstKey()===c,p=l.collection.getLastKey(),h=u===r.key&&null!=p&&l.collection.getItem(p).parentKey===u;return(0,M.jsxs)(M.Fragment,{children:[r.key!==l.collection.getFirstKey()&&(0,M.jsx)("div",{"data-name":"MenuDivider",...a,className:"my-2 h-px bg-surface-disabled"}),(0,M.jsxs)("div",{...i,children:[r.rendered&&(0,M.jsx)("span",{"data-name":"MenuTitle",...n,className:"px-4 text-sm text-text-secondary",children:r.rendered}),(0,M.jsx)("div",{"data-name":"MenuChild",...o,className:`flex flex-col ${null==r.rendered?"nohead":""}
24          ${d?"is-fast":""}
25          ${h?"isLast":""}
26        `,children:[...r.childNodes].map(t=>{let r=(0,M.jsx)(D,{item:t,state:l,onAction:s},t.key);return t.wrapper&&(r=t.wrapper(r)),r})})]})]})}),F=l(9377),T=l(20517);function N(t){let{children:r,isTray:l=!1,isSubmenu:s,hasOpenSubmenu:i,parentMenuTreeState:n,rootMenuTriggerState:o,onBackButtonPress:a,wrapperKeyDown:u,menuRef:d,unsafeClassName:p,submenuLevel:h}=t,f=o?.expandedKeysStack.slice(-1)[0],y="";null!=f&&(y=n?.collection.getItem(f)?.textValue??"");let g=(0,c.X1)(),[m,b]=(0,x.useState)("");(0,T.N)(()=>{i||b("enter")},[i,l]);let v=(0,x.useRef)(null);(0,x.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]);let K=(0,x.useRef)(null);(0,x.useEffect)(()=>(l&&s&&!i&&"enter"===m&&(K.current=setTimeout(()=>{d?.current?.querySelector('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')?.focus()},220)),()=>{K.current&&clearTimeout(K.current)}),[i,l,s,d,m]);let w=k(`
27  max-h-full overflow-y-auto inline-flex flex-col bg-surface-normal outline-0
28  ${l?"w-full py-3":"max-w-xs rounded-lg py-2 shadow-1"}
29  ${l&&i?"height-0 absolute left-full border-0 opacity-0":""}
30  ${p??""}
31  `);return(0,M.jsx)("div",{role:g?"dialog":void 0,"aria-labelledby":g,"aria-hidden":l&&i,"data-testid":`menu-wrapper-level-${h??0}`,className:w,children:(0,M.jsxs)("div",{role:"presentation",className:k(`flex flex-col outline-0 ${l?"overflow-x-hidden":""}`),onKeyDown:u,"deta-testid":"Submenu-wrapper",children:[l&&s&&!i&&(0,M.jsxs)("div",{className:"mb-2 flex items-center gap-2 border-border-default border-b px-2 pb-2",children:[(0,M.jsx)(F.A,{onPress:()=>{b("exit"),v.current=setTimeout(()=>{a?.()},220)},children:(0,M.jsx)(P.Ldj,{"aria-label":"前に戻る"})}),(0,M.jsx)("h1",{id:g,className:"font-bold text-sm",children:y})]}),r]})})}var I=l(69190),E=l(16951),A=l(65638),j=(0,x.forwardRef)(function(t,r){let l=(0,x.useContext)(i.xu),n=(0,i.Rd)(),{rootMenuTriggerState:a,state:c}=n||{rootMenuTriggerState:l.state},d={...(0,u.v)(l,t)},{unsafeClassName:p}=t,h=(0,s.zD)(r),[f,y]=(0,x.useState)(null),g=(0,x.useRef)(null),v=(0,A.p)(d),K=(0,x.useRef)(null),{menuProps:w}=function(t,r,l){let{shouldFocusWrap:s=!0,onKeyDown:i,onKeyUp:n,...a}=t;t["aria-label"]||t["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let c=(0,o.$)(t,{labelable:!0}),{listProps:d}=(0,m.y)({...a,ref:l,selectionManager:r.selectionManager,collection:r.collection,disabledKeys:r.disabledKeys,shouldFocusWrap:s,linkBehavior:"override"});return b.set(r,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus,triggerRef:t.triggerRef,submenuLevel:t.submenuLevel}),{menuProps:(0,u.v)(c,{onKeyDown:i,onKeyUp:n},{role:"menu",...d,onKeyDown:t=>{"Escape"!==t.key&&d.onKeyDown?.(t)}})}}(d,v,h);(0,I.w)(l,h);let[S,P]=(0,x.useState)({left:0}),k=(0,x.useRef)(null);(0,x.useEffect)(()=>
31{if(f&&k.current!==f&&0===S.left){k.current=f;let{left:t}=f.getBoundingClientRect();P({left:-1*t})}},[S,f]);let R=l.isTray??!1,F=l.submenuLevel??0,T=a?.expandedKeysStack[F],j=!1;return null!=T&&(j=null!=v.collection.getItem(T)),(0,M.jsxs)(i.A0.Provider,{value:{popoverContainer:f,trayContainerRef:g,menu:h,submenu:K,rootMenuTriggerState:a,state:v},children:[(0,M.jsx)("div",{style:{height:j?"100%":void 0},ref:g}),(0,M.jsxs)(E.n1,{children:[(0,M.jsx)(N,{isTray:R,onBackButtonPress:l.onBackButtonPress,hasOpenSubmenu:j,isSubmenu:!!n,parentMenuTreeState:c,rootMenuTriggerState:a,menuRef:h,unsafeClassName:p,submenuLevel:l.submenuLevel,children:(0,M.jsx)("div",{...w,style:w.style,ref:h,className:"flex flex-col outline-none outline-0",children:[...v.collection].map(t=>{if("section"===t.type)return(0,M.jsx)(C,{item:t,state:v},t.key);let r=(0,M.jsx)(D,{item:t,state:v},t.key);return t.wrapper&&(r=t.wrapper(r)),r})})}),a?.isOpen&&(0,M.jsx)("div",{ref:y,style:{width:"100vw",position:"absolute",top:-5,...S}})]})]})})},25874:(t,r,l)=>{l.d(r,{c:()=>s});var s={basic:"bg-surface-tertiary",primary:"bg-surface-primary",secondary:"bg-surface-secondary",custom:"bg-custom-accent",offer:"bg-surface-offer",quiet:"bg-background-secondary"}},26819:(t,r,l)=>{l.d(r,{e:()=>g});var s=l(25104),i=l(8349),n={base:{xs:"w-4 h-4",s:"w-5 h-5",m:"w-6 h-6",l:"w-8 h-8",xl:"w-14 h-14","2xl":"w-20 h-20","3xl":"w-[6.5rem] h-[6.5rem]"},sm:{xs:"sm:w-4 sm:h-4",s:"sm:w-5 sm:h-5",m:"sm:w-6 sm:h-6",l:"sm:w-8 sm:h-8",xl:"sm:w-14 sm:h-14","2xl":"sm:w-20 sm:h-20","3xl":"sm:w-[6.5rem] sm:h-[6.5rem]"},md:{xs:"md:w-4 md:h-4",s:"md:w-5 md:h-5",m:"md:w-6 md:h-6",l:"md:w-8 md:h-8",xl:"md:w-14 md:h-14","2xl":"md:w-20 md:h-20","3xl":"md:w-[6.5rem] md:h-[6.5rem]"},lg:{xs:"lg:w-4 lg:h-4",s:"lg:w-5 lg:h-5",m:"lg:w-6 lg:h-6",l:"lg:w-8 lg:h-8",xl:"lg:w-14 lg:h-14","2xl":"lg:w-20 lg:h-20","3xl":"lg:w-[6.5rem] lg:h-[6.5rem]"},xl:{xs:"xl:w-4 xl:h-4",s:"xl:w-5 xl:h-5",m:"xl:w-6 xl:h-6",l:"xl:w-8 xl:h-8",xl:"xl:w-14 xl:h-14","2xl":"xl:w-20 xl:h-20","3xl":"xl:w-[6.5rem] xl:h-[6.5rem]"},"2xl":{xs:"2xl:w-4 2xl:h-4",s:"2xl:w-5 2xl:h-5",m:"2xl:w-6 2xl:h-6",l:"2xl:w-8 2xl:h-8",xl:"2xl:w-14 2xl:h-14","2xl":"2xl:w-20 2xl:h-20","3xl":"2xl:w-[6.5rem] 2xl:h-[6.5rem]"}},o={xs:16,s:20,m:24,l:32,xl:56,"2xl":80,"3xl":104},a=l(3254),c=l(46875),u=l(84057),d=l(46051),p=l(78833),h=l(19324),f=l(32508),y=l(97360),g=(0,h.memo)((0,h.forwardRef)(function(t,r){let{src:l,alt:g,isDisabled:m,size:b="m",autoFocus:v,name:x,children:K,isInline:w,isBold:S,stretchable:P,truncatable:k,elementType:M="button",imageElementType:D="img",isStatic:R,prefetch:C}=t;"button"===M&&!t["aria-label"]&&!t["aria-labelledby"]&&x&&K&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let F=(0,s.t0)(r),{buttonProps:T,isPressed:N}=(0,a.s)(t,F),{hoverProps:I,isHovered:E}=(0,c.M)({isDisabled:m}),A=(0,h.useMemo)(()=>(0,u.a1)(b,"m"),[b]),j=(0,h.useMemo)(()=>(0,u.dz)(A,n),[A]),B=(0,h.useMemo)(()=>f(`
32    relative shrink-0 overflow-hidden rounded-full pointer-events-none
33    ${j}
34    ${m?"opacity-50":""}
35    `),[j,m]),O=o[A.base??"m"];return(0,y.jsx)(d.v,{autoFocus:v,children:(0,y.jsxs)(M,{...(0,h.useMemo)(()=>R?{}:(0,p.v)(T,I),[R,T,I]),"data-name":"avatar",role:T.role,disabled:m,className:`relative inline-block ${k?"w-full":""}`,ref:F,prefetch:C,children:[(0,y.jsxs)("div",{className:"relative flex items-center",children:[(0,y.jsxs)("div",{className:B,children:[(0,y.jsx)(()=>(0,y.jsx)(D,{className:"block h-full w-full object-cover",width:O,height:O,src:l,alt:g,loading:"lazy"}),{}),!R&&(!x||!K)&&(0,y.jsx)(i.P,{isPressed:N,isHovered:E})]}),(x||K)&&(0,y.jsxs)("div",{className:f(`ml-2 flex-1 overflow-hidden text-left text-text-secondary text-xs ${w?"flex items-center gap-3":""} ${P?"justify-between":""}`),children:[x&&(0,y.jsx)("div",{className:`${k?"truncate":""} ${S?"font-bold":""}`,children:x}),K&&(0,y.jsx)("div",{className:"text-nowrap leading-none",children:K})]})]}),!R&&(x||K)&&(0,y.jsx)(i.P,{unSafeClassName:"-inset-x-2 -inset-y-1 rounded-lg pointer-events-none",isPressed:N,isHovered:E})]})})}))},28873:(t,r,l)=>{l.d(r,{V:()=>o});var s=l(79772),i=l(68549),n=l(19324);function o(t){let[r,l]=(0,s.P)(t.selectedKey,t.defaultSelectedKey??void 0,t.onSelectionChange),o=(0,n.useMemo)(()=>null==r?[]:[r],[r]),{collection:a,disabledKeys:c,selectionManager:u}=(0,i.p)({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:s=>{if("all"===s)return;let i=s.values().next().value??void 0;i===r&&t.onSelectionChange&&t.onSelectionChange(i),l(i)}});return{collection:a,disabledKeys:c,selectionManager:u,selectedKey:r,setSelectedKey:l,selectedItem:null==r?null:a.getItem(String(r))}}},28969:(t,r,l)=>{l.d(r,{b:()=>i});var s=l(19324);function i(t,r){let{id:l,"aria-label":i,"aria-labelledby":n}=t;return l??=(0,s.useId)(),n&&i?n=[...new Set([...n.trim().split(/\s+/),l])].join(" "):n&&=n.trim().split(/\s+/).join(" "),i||n||!r||(i=r),{id:l,"aria-label":i,"aria-labelledby":n}}},30489:(t,r,l)=>{function s(t,r,l){if(r?.index===void 0||l?.index===void 0)return -1;if(r.parentKey===l.parentKey)return r.index-l.index;let s=[...i(t,r),r],n=[...i(t,l),l],o=s.slice(0,n.length).findIndex((t,r)=>t!==n[r]);return -1===o?s.indexOf(l)>=0?1:(n.indexOf(r),-1):(r=s[o],l=n[o],r?.index===void 0||l?.index===void 0?-1:r.index-l.index)}function i(t,r){let l=[];for(;r?.parentKey!=null;)l.unshift(r=t.getItem(r.parentKey));return l}l.d(r,{Y:()=>o});var n=l(90419),o=class{collection;state;allowsCellSelection;_isSelectAll;constructor(t,r,l){this.collection=t,this.state=r,this.allowsCellSelection=l?.allowsCellSelection??!1,this._isSelectAll=null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(null==t||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return"none"!==this.state.selectionMode&&(t=this.getKey(t),"all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;
35if(null!=this._isSelectAll)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(t=>r.has(t)),this._isSelectAll}get firstSelectedKey(){let t;for(let r of this.state.selectedKeys){let l=this.collection.getItem(r);(!t||l&&0>s(this.collection,l,t))&&(t=l)}return t?.key??void 0}get lastSelectedKey(){let t;for(let r of this.state.selectedKeys){let l=this.collection.getItem(r);(!t||l&&s(this.collection,l,t)>0)&&(t=l)}return t?.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){let r;if("none"!==this.selectionMode){if("single"===this.selectionMode)return void this.replaceSelection(t);if(t=this.getKey(t),"all"===this.state.selectedKeys)r=new n.L([t],t,t);else{let l=this.state.selectedKeys,s=l.anchorKey||t;for(let i of(r=new n.L(l,s,t),this.getKeyRange(s,l.currentKey||t)))r.delete(i);for(let l of this.getKeyRange(t,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}}getKeyRange(t,r){let l=this.collection.getItem(t),i=this.collection.getItem(r);return l&&i?0>=s(this.collection,l,i)?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let l=[],s=t;for(;s;){let t=this.collection.getItem(s);if((t&&"item"===t.type||t?.type==="cell"&&this.allowsCellSelection)&&l.push(s),s===r)return l;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||"cell"===r.type&&this.allowsCellSelection)return t;for(;r?.type!=="item"&&r?.parentKey!=null;)r=this.collection.getItem(r.parentKey);return r?.type==="item"?r.key:null}toggleSelection(t){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(t))return void this.replaceSelection(t);if(null==(t=this.getKey(t)))return;let r=new n.L("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),this.disallowEmptySelection&&0===r.size||this.state.setSelectedKeys(r)}replaceSelection(t){if("none"===this.selectionMode||null==(t=this.getKey(t)))return;let r=this.canSelectItem(t)?new n.L([t],t,t):new n.L;this.state.setSelectedKeys(r)}setSelectedKeys(t){if("none"===this.selectionMode)return;let r=new n.L;for(let l of t)if(null!=(l=this.getKey(l))&&(r.add(l),"single"===this.selectionMode))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=l=>{for(;l;){if(this.canSelectItem(l)){var s;let i=this.collection.getItem(l);i?.type==="item"&&t.push(l),i?.hasChildNodes&&(this.allowsCellSelection||"item"!==i.type)&&r(function(t){!1;let r=0;for(let l of t){if(0===r)return l;r++}}("function"==typeof(s=this.collection).getChildren?s.getChildren(i.key):i.childNodes).key??"")}l=this.collection.getKeyAfter(l)}};return r(this.collection.getFirstKey()),t}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new n.L)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):"toggle"===this.selectionBehavior||r&&("touch"===r.pointerType||"virtual"===r.pointerType)?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let l of t)if(!r.has(l))return!1;for(let l of r)if(!t.has(l))return!1;return!0}canSelectItem(t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r?.props?.isDisabled||"cell"===r.type&&!this.allowsCellSelection)}isDisabled(t){return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled)}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}}},31085:(t,r,l)=>{l.d(r,{o:()=>n});var s=l(38001),i=l(50927);function n(){return!((0,s.w)()||typeof window>"u")&&window.screen.width<i.fi.md}},34117:(t,r,l)=>{l.d(r,{R:()=>o});var s=l(79772),i=l(90419),n=l(19324);function o(t){let{selectionMode:r="none",disallowEmptySelection:l,allowDuplicateSelectionEvents:o,selectionBehavior:c="toggle",disabledBehavior:u="all"}
35=t,d=(0,n.useRef)(!1),[,p]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useRef)(null),[,y]=(0,n.useState)(null),[g,m]=(0,s.P)((0,n.useMemo)(()=>a(t.selectedKeys),[t.selectedKeys]),(0,n.useMemo)(()=>a(t.defaultSelectedKeys,new i.L),[t.defaultSelectedKeys]),t.onSelectionChange),b=(0,n.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,x]=(0,n.useState)(c);"replace"===c&&"toggle"===v&&"object"==typeof g&&0===g.size&&x("replace");let K=(0,n.useRef)(c);return(0,n.useEffect)(()=>{c!==K.current&&(x(c),K.current=c)},[c]),{selectionMode:r,disallowEmptySelection:l,selectionBehavior:v,setSelectionBehavior:x,get isFocused(){return d.current},setFocused(t){d.current=t,p(t)},get focusedKey(){return h.current},get childFocusStrategy(){return f.current},setFocusedKey(t,r="first"){h.current=t,f.current=r,y(t)},selectedKeys:g,setSelectedKeys(t){(o||!function(t,r){if(t.size!==r.size)return!1;for(let l of t)if(!r.has(l))return!1;return!0}(t,g))&&m(t)},disabledKeys:b,disabledBehavior:u}}function a(t,r){return t?"all"===t?"all":new i.L(t):r}},34983:(t,r,l)=>{l.d(r,{f:()=>x});var s=l(77339),i=l(59900),n=l(42255),o=l(56138),a=l(49902),c=l(20517),u=l(55157),d=l(36322),p=l(25648),h=l(7569),f=l(19324),y=Math.PI/12,g=l(78833),m=l(97360),b=l(69645);function v(t){let r=(0,f.useRef)(null),{children:l,targetKey:v}=t,x=(0,s.KZ)(),[K,w]=f.Children.toArray(l),{popoverContainer:S,trayContainerRef:P,menu:k,submenu:M,rootMenuTriggerState:D}=(0,s.Rd)(),R=function(t,r){let{triggerKey:l}=t,{expandedKeysStack:s,openSubmenu:i,closeSubmenu:n,close:o}=r,[a]=(0,f.useState)(s?.length),c=(0,f.useMemo)(()=>s[a]===l,[s,l,a]),[u,d]=(0,f.useState)(null),p=(0,f.useCallback)(t=>{d(t??null),i(l,a)},[i,a,l]),h=(0,f.useCallback)(()=>{d(null),n(l,a)},[n,a,l]),y=(0,f.useCallback)(t=>{d(t??null),c?h():p(t)},[h,p,c]);return(0,f.useMemo)(()=>({focusStrategy:u,isOpen:c,open:p,close:h,closeAll:o,submenuLevel:a,setOpen:()=>{},toggle:y}),[c,p,h,o,u,y,a])}({triggerKey:v},D),{submenuTriggerProps:C,submenuProps:F,popoverProps:T}=function(t,r,l){let{parentMenuRef:s,submenuRef:i,type:g="menu",isDisabled:m,delay:b=200,shouldUseVirtualFocus:v}=t,x=(0,a.Bi)(),K=(0,a.Bi)(),{direction:w}=(0,n.Y)(),S=(0,f.useRef)(void 0),P=(0,f.useCallback)(()=>{S.current&&=void clearTimeout(S.current)},[S]),k=(0,u.J)(t=>{P(),r.open(t)}),M=(0,u.J)(()=>{P(),r.close()});(0,c.N)(()=>()=>{P()},[P]);let D={id:K,"aria-labelledby":x,submenuLevel:r.submenuLevel,..."menu"===g&&{onClose:r.closeAll,autoFocus:r.focusStrategy??void 0,onKeyDown:t=>{if(t.currentTarget.contains(document.activeElement))switch(t.key){case"ArrowLeft":"ltr"===w&&t.currentTarget.contains(t.target)&&(t.preventDefault(),t.stopPropagation(),M(),!v&&l.current&&(0,o.e)(l.current));break;case"ArrowRight":"rtl"===w&&t.currentTarget.contains(t.target)&&(t.preventDefault(),t.stopPropagation(),M(),!v&&l.current&&(0,o.e)(l.current));break;case"Escape":i.current?.contains(t.target)&&(t.stopPropagation(),M(),!v&&l.current&&(0,o.e)(l.current))}}}};return(0,d._)(s,"focusin",t=>{r.isOpen&&s.current?.contains(t.target)&&t.target!==l.current&&M()}),function(t){let{menuRef:r,submenuRef:l,isOpen:s,isDisabled:i}=t,n=(0,f.useRef)(void 0),o=(0,f.useRef)(void 0),a=(0,f.useRef)(0),c=(0,f.useRef)(void 0),d=(0,f.useRef)(void 0),g=(0,f.useRef)(void 0),m=(0,f.useRef)(2),[b,v]=(0,f.useState)(!1);(0,p.w)({ref:l,onResize:()=>{l.current&&(o.current=l.current.getBoundingClientRect(),g.current=void 0)}});let x=()=>{v(!1),m.current=2,n.current=void 0},K=(0,h.lb)(),w=(0,u.J)(t=>{b&&t.preventDefault()});(0,f.useEffect)(()=>{b&&r.current?r.current.style.pointerEvents="none":r.current.style.pointerEvents=""},[r,b]),(0,f.useEffect)(()=>{let t=l.current,u=r.current;if(i||!t||!s||"pointer"!==K||!u)return void x();o.current=t.getBoundingClientRect();let p=t=>{if("touch"===t.pointerType||"pen"===t.pointerType)return;let r=Date.now();if(r-a.current<50)return;clearTimeout(c.current),clearTimeout(d.current);let{clientX:l,clientY:s}=t;if(!n.current){n.current={x:l,y:s};return}if(!o.current)return;if(g.current||=l>o.current.right?"left":"right",l<u.getBoundingClientRect().left||l>u.getBoundingClientRect().right||s<u.getBoundingClientRect().top||s>u.getBoundingClientRect().bottom)return void x();let i=n.current.x,p=n.current.y,h="right"===g.current?o.current.left-i:i-o.current.right,f=Math.atan2(p-o.current.top,h)+y,b=Math.atan2(p-o.current.bottom,h)-y,K=Math.atan2(p-s,"left"===g.current?-(l-i):l-i),w=K<f&&K>b;m.current=w?Math.min(m.current+1,2):Math.max(m.current-1,0),m.current>=2?v(!0):v(!1),a.current=r,n.current={x:l,y:s},w&&(c.current=setTimeout(()=>{x(),d.current=setTimeout(()=>{let t=document.elementFromPoint(l,s);t&&u.contains(t)&&t.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},1e3))};return window.addEventListener("pointermove",p),window.addEventListener("pointerdown",w,!0),()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerdown",w,!0),clearTimeout(c.current),clearTimeout(d.current),m.current=2}},[i,s,r,K,v,w,l])}({menuRef:s,submenuRef:i,isOpen:r.isOpen,isDisabled:m}),{submenuTriggerProps:{id:x,"aria-controls":r.isOpen?K:void 0,"aria-haspopup":m?void 0:g,"aria-expanded":r.isOpen?"true":"false",onPressStart:t=>
35{m||"virtual"!==t.pointerType&&"keyboard"!==t.pointerType||k("first")},onPress:t=>{m||"touch"!==t.pointerType&&"mouse"!==t.pointerType||k()},onHoverChange:t=>{m||(t&&!r.isOpen?S.current||=setTimeout(()=>{k()},b):t||P())},onKeyDown:t=>{switch(t.key){case"ArrowRight":m||("ltr"===w?(t.preventDefault(),r.isOpen||k("first"),"menu"===g&&i?.current&&document.activeElement===l?.current&&(0,o.e)(i.current)):r.isOpen?M():t.continuePropagation());break;case"ArrowLeft":m||("rtl"===w?(t.preventDefault(),r.isOpen||k("first"),"menu"===g&&i?.current&&document.activeElement===l?.current&&(0,o.e)(i.current)):r.isOpen?M():t.continuePropagation());break;default:t.continuePropagation()}},isOpen:r.isOpen,isButton:!0},submenuProps:D,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:t=>t!==l.current}}}({parentMenuRef:k,submenuRef:M},R,r),N=x.isTray??!1,{direction:I}=(0,n.Y)(),E;N?(delete C.onBlur,delete C.onHoverChange,F.autoFocus??=!0,P.current&&R.isOpen&&(E=b.createPortal(w,P.current))):E=(0,m.jsx)(i.A,{...T,onDismissButtonPress:()=>{R.close(),k.current?.focus()},unsafeClassName:"",container:S,containerPadding:0,enableBothDismissButtons:!0,unsafeStyle:{clipPath:"unset",overflow:"visible",borderWidth:"0px"},state:R,triggerRef:r,scrollRef:M,placement:"right top",hideArrow:!0,isSubmenu:!0,children:w});let A={...(0,g.v)(F,{ref:M,UNSAFE_style:N?{width:"100%",maxHeight:"inherit"}:void 0,...N&&{onBackButtonPress:()=>{R.close(),k.current&&!k.current.contains(document.activeElement)&&k.current.focus()},onKeyDown:t=>{switch(t.key){case"ArrowLeft":"ltr"===I&&r.current?.focus();break;case"ArrowRight":"rtl"===I&&r.current?.focus()}}}}),submenuLevel:(x.submenuLevel??0)+1,isTray:N};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.XL.Provider,{value:{triggerRef:r,...C},children:K}),(0,m.jsx)(s.xu.Provider,{value:A,children:E})]})}v.getCollectionNode=function*(t){let r=[];f.Children.forEach(t.children,t=>{f.isValidElement(t)&&r.push(t)});let[l]=r,[,s]=t.children;yield{element:f.cloneElement(l,{...l.props,hasChildItems:!0,isTrigger:!0}),wrapper:r=>(0,m.jsxs)(v,{targetKey:r.key??void 0,...t,children:[r,s]},r.key)}};var x=v},36322:(t,r,l)=>{l.d(r,{_:()=>i});var s=l(19324);function i(t,r,l,i){let n=(0,s.useRef)(l);n.current=l;let o=null==l;(0,s.useEffect)(()=>{if(o)return;let l=t.current,s=t=>n.current.call(this,t);return l?.addEventListener(r,s,i),()=>{l?.removeEventListener(r,s,i)}},[t,r,i,o])}},36827:(t,r,l)=>{l.d(r,{n:()=>o});var s=l(97904),i=l(18006),n=class{ref;constructor(t){this.ref=t}getItemRect(t){let r=this.ref.current;if(!r)return;let l=null==t?void 0:(0,i.au)(this.ref,t);if(!l)return;let s=r.getBoundingClientRect(),n=l.getBoundingClientRect();return{x:n.left-s.left+r.scrollLeft,y:n.top-s.top+r.scrollTop,width:n.width,height:n.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.offsetWidth??0,height:t?.offsetHeight??0}}},o=class{collection;disabledKeys;disabledBehavior;ref;collator;layout;orientation;direction;layoutDelegate;constructor(...t){if(1===t.length){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new n(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new n(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return"all"===this.disabledBehavior&&(t.props?.isDisabled||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let l=t;for(;null!=l;){let t=this.collection.getItem(l);if(t?.type==="item"&&!this.isDisabled(t))return l;l=r(l)}}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,t=>this.collection.getKeyAfter(t))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,t=>this.collection.getKeyBefore(t))}findKey(t,r,l){let s=t,i=this.layoutDelegate.getItemRect(s);if(!i||null==s)return;let n=i;do{if(null==(s=r(s)))break;i=this.layoutDelegate.getItemRect(s)}while(i&&l(n,i)&&null!=s);return s}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(t,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(t)}
35getKeyAbove(t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(t,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r="getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,t=>this.layoutDelegate[r](t))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(t,"rtl"===this.direction):this.findKey(t,t=>this.getNextColumn(t,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(t,"rtl"===this.direction):void 0}getKeyLeftOf(t){let r="getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,t=>this.layoutDelegate[r](t))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(t,"ltr"===this.direction):this.findKey(t,t=>this.getNextColumn(t,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(t,"ltr"===this.direction):void 0}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,t=>this.collection.getKeyAfter(t))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(t){let r=this.ref.current,l=this.layoutDelegate.getItemRect(t);if(!l)return;if(r&&!(0,s.o)(r))return this.getFirstKey();let i=t;if("horizontal"===this.orientation){let t=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>t&&null!=i;)l=null==(i=this.getKeyAbove(i))?void 0:this.layoutDelegate.getItemRect(i)}else{let t=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>t&&null!=i;)l=null==(i=this.getKeyAbove(i))?void 0:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,l=this.layoutDelegate.getItemRect(t);if(!l)return;if(r&&!(0,s.o)(r))return this.getLastKey();let i=t;if("horizontal"===this.orientation){let t=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<t&&null!=i;)l=null==(i=this.getKeyBelow(i))?void 0:this.layoutDelegate.getItemRect(i)}else{let t=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<t&&null!=i;)l=null==(i=this.getKeyBelow(i))?void 0:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return;let l=this.collection,s=r||this.getFirstKey();for(;null!=s;){let r=l.getItem(s);if(!r)return;let i=r.textValue.slice(0,t.length);if(r.textValue&&0===this.collator.compare(i,t))return s;s=this.getNextKey(s)}}}},38182:(t,r,l)=>{l.d(r,{x:()=>y});var s=l(62720),i=l(53075),n=l(74964),o=l(49902),a=l(78833),c=l(37631),u=l(7569),d=l(46875),p=l(41377),h=l(93059),f=l(38256);function y(t,r,l){let{key:y}=t,g=p.b.get(r),m=t.isDisabled??r.disabledKeys.has(y),b=t.isSelected??r.selectionManager.isSelected(y),v=t?.shouldSelectOnPressUp??g?.shouldSelectOnPressUp,x=t?.shouldFocusOnHover??g?.shouldFocusOnHover,K=t?.shouldUseVirtualFocus??g?.shouldUseVirtualFocus,w=t?.isVirtualized??g?.isVirtualized,S=(0,o.X1)(),P=(0,o.X1)(),k={role:"option","aria-disabled":m,"aria-selected":"none"===r.selectionManager.selectionMode?void 0:b};(0,n.cX)()&&(0,n.Tc)()||(k["aria-label"]=t["aria-label"],k["aria-labelledby"]=S,k["aria-describedby"]=P);let M=r.collection.getItem(y);if(w){let t=Number(M?.index);k["aria-posinset"]=Number.isNaN(t)?void 0:t+1,k["aria-setsize"]=(0,f.v)(r.collection)}let D=g?.onAction?()=>g?.onAction?.(y):void 0,R=(0,p.H)(r,y),{itemProps:C,isPressed:F,isFocused:T,hasAction:N,allowsSelection:I}=(0,h.p)({selectionManager:r.selectionManager,key:y,ref:l,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v,isVirtualized:w,shouldUseVirtualFocus:K,isDisabled:m,onAction:D||M?.props?.onAction?(0,s.c)(M?.props?.onAction,D):void 0,linkBehavior:g?.linkBehavior,id:R}),{hoverProps:E}=(0,d.M)({isDisabled:m||!x,onHoverStart(){(0,u.pP)()||(r.selectionManager.setFocused(!0),r.selectionManager.setFocusedKey(y))}}),A=(0,i.$)(M?.props);delete A.id;let j=(0,c._h)(M?.props);return{optionProps:{...k,...(0,a.v)(A,C,E,j),id:R},labelProps:{id:S},descriptionProps:{id:P},isFocused:T,isFocusVisible:T&&r.selectionManager.isFocused&&(0,u.pP)(),isSelected:b,isDisabled:m,isPressed:F,allowsSelection:I,hasAction:N}}},38256:(t,r,l)=>{l.d(r,{v:()=>function t(r){let l=s.get(r);if(null!=l)return l;for(let s of(l=0,r))"section"===s.type?l+=t(s.childNodes):l++;return s.set(r,l),l}});var s=new WeakMap},41377:(t,r,l)=>{l.d(r,{H:()=>i,b:()=>s});var s=new WeakMap;function i(t,r){let l=s.get(t);if(!l)throw Error("Unknown list");return`${l.id}-option-${"string"==typeof r?r.replace(/\s*/g,""):`${r}`}`}},50820:(t,r,l)=>{l.d(r,{X:()=>d});var s=l(53075),i=l(78833),n=l(29143),o=l(10138),a=l(41377),c=l(77748),u=l(19324);function d(t,r,l){let d=(0,s.$)(t,{labelable:!0}),p=t.selectionBehavior||"toggle",h=t.linkBehavior||("replace"===p?"action":"override");
35"toggle"===p&&"action"===h&&(h="override");let{listProps:f}=(0,c.y)({...t,ref:l,selectionManager:r.selectionManager,collection:r.collection,disabledKeys:r.disabledKeys,linkBehavior:h}),{focusWithinProps:y}=(0,n.R)({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),g=t.id??(0,u.useId)();a.b.set(r,{id:g,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:h});let{labelProps:m,fieldProps:b}=(0,o.M)({...t,id:g,labelElementType:"span"});return{labelProps:m,listBoxProps:(0,i.v)(d,y,"multiple"===r.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,i.v)(b,f)})}}},57362:(t,r,l)=>{l.d(r,{G:()=>a});var s=l(19324),i=class{context;cache=new WeakMap;build(t,r){return this.context=r,n(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:l}=t;if("function"==typeof r){if(!l)throw Error("props.children was a function but props.items is missing");for(let l of t.items)yield*this.getFullNode({value:l},{renderer:r})}else{let t=[];s.Children.forEach(r,r=>{t.push(r)});let l=0;for(let r of t)for(let t of this.getFullNode({element:r,index:l},{}))l++,yield t}}getKey(t,r,l,s){if(null!=t.key)return t.key;if("cell"===r.type&&null!=r.key)return`${s??""}${r.key}`;let i=r.value;if(null!=i){let t=i.key??i.id;if(null==t)throw Error("No key found for item");return t}return s?`${s}.${r.index??""}`:`$.${r.index??""}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,l,i){let a=t.element;if(!a&&t.value&&r?.renderer){let l=this.cache.get(t.value);if(l&&!l.shouldInvalidate?.(this.context)){l.index=t.index,l.parentKey=i?i.key:null,yield l;return}a=r.renderer(t.value)}if(s.isValidElement(a)){let s=a.type;if("function"!=typeof s&&"function"!=typeof s.getCollectionNode){let t="function"==typeof a.type?a.type.name:a.type;throw Error(`Unknown element <${t}> in collection.`)}let n=s.getCollectionNode(a.props,this.context),c=t.index,u=n.next();for(;!u.done&&u.value;){let s=u.value;t.index=c;let d=s.key;d||=s.element?null:this.getKey(a,t,r,l);let p=[...this.getFullNode({...s,key:d,index:c,wrapper:function(t,r){return t&&r?l=>t(r(l)):t||r||void 0}(t.wrapper,s.wrapper)},this.getChildState(r,s),l?`${l}${a.key??""}`:a.key,i)];for(let r of p){if(r.value=s.value||t.value,r.value&&this.cache.set(r.value,r),t.type&&r.type!==t.type)throw Error(`Unsupported type <${o(r.type)}> in <${o(i.type)}>. Only <${o(t.type)}> is supported.`);c++,yield r}u=n.next(p)}return}if(null==t.key)return;let c=this,u={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],elementType:t.elementType,href:t.href,rel:t.rel,target:t.target,wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:n(function*(){if(!t.hasChildNodes)return;let l=0;for(let s of t.childNodes())for(let t of(null!=s.key&&(s.key=`${u.key}${s.key}`),s.index=l,c.getFullNode(s,c.getChildState(r,s),u.key,u)))l++,yield t})};yield u}};function n(t){let r=[],l=null;return{*[Symbol.iterator](){for(let t of r)yield t;for(let s of l||=t())r.push(s),yield s}}}function o(t){return t[0].toUpperCase()+t.slice(1)}function a(t,r,l){let n=(0,s.useMemo)(()=>new i,[]),{children:o,items:a,collection:c}=t;return(0,s.useMemo)(()=>c||r(n.build({children:o,items:a},l)),[n,o,a,c,l,r])}},59900:(t,r,l)=>{l.d(r,{A:()=>x});var s=l(25104),i=l(11342),n=l(16445),o=l(13074),a=l(78833),c=l(32289),u=l(19581),d=l(69406),p=l(72338),h=l(19324),f=l(79629),y=l(20517),g=l(16239),m=l(32508),b=l(97360),v={left:"right",right:"right",top:"bottom",bottom:"bottom"},x=(0,h.forwardRef)(function(t,r){let{children:l,isEmphasized:n,unsafeClassName:o,state:a,...c}=t,u=(0,s.zD)(r),d=(0,h.useRef)(null);return(0,b.jsx)(i.A,{...c,isOpen:a.isOpen,nodeRef:d,children:(0,b.jsx)(K,{ref:u,...t,wrapperRef:d,children:l})})}),K=(0,h.forwardRef)(function(t,r){let{children:l,isOpen:s,hideArrow:i,isNonModal:y,isEmphasized:x,isSubmenu:K,state:w,wrapperRef:P,unsafeClassName:k,unsafeStyle:M,onDismissButtonPress:D=()=>w.close()}=t,R=(0,o.U)(r),C=(0,h.useRef)(null),{popoverProps:F,arrowProps:T,underlayProps:N,placement:I}=function(t,r){let{triggerRef:l,popoverRef:s,groupRef:i,underlayRef:n,isNonModal:o,isSubmenu:f,isKeyboardDismissDisabled:y,shouldCloseOnInteractOutside:g,isDismissable:m=!o,...b}=t,v=(0,h.useContext)(u.eV);(0,h.useEffect)(()=>{v?.setContain(!o)},[v,o]);let{overlayProps:x,underlayProps:K}=(0,d.e)({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:m,isDismissable:!o||f,isKeyboardDismissDisabled:y,shouldCloseOnInteractOutside:g},i||s),{overlayProps:w,arrowProps:S,placement:P}
35=(0,p.v)({...b,targetRef:l,overlayRef:s,isOpen:r.isOpen,shouldUpdateOnScroll:!o,onClose:o&&!f?r.close:void 0});return(0,h.useEffect)(()=>{if(r.isOpen&&s.current)return o?(0,c.O)(i?.current??s.current):(0,c.h)([i?.current??s.current,n?.current].filter(Boolean),{shouldUseInert:!0})},[o,r.isOpen,s,i,n]),{popoverProps:(0,a.v)(x,w),arrowProps:S,underlayProps:K,placement:P}}({...t,popoverRef:R,underlayRef:C,maxHeight:void 0,isSubmenu:K},w),E=(0,h.useMemo)(()=>(0,g.QP)(m(`
36      absolute z-40 inline-flex flex-col
37      transition-[opacity,transform] duration-200 ease-inOut will-change-[opacity,transform]
38      ${s?"translate-x-0 translate-y-0 opacity-100":(()=>{switch(I){case"bottom":default:return"opacity-0 translate-y-1";case"top":return"opacity-0 -translate-y-1";case"left":return"opacity-0 -translate-x-1";case"right":return"opacity-0 translate-x-1"}})()}
39      ${!i&&"left"===I?"mr-[7px]":""}
40      ${!i&&"right"===I?"ml-[7px]":""}
41      ${!i&&"top"===I?"mb-[7px]":""}
42      ${!i&&"bottom"===I?"mt-[7px]":""}
43      ${k||""}
44      `)),[i,I,k,s]);return(0,b.jsxs)("div",{ref:P,children:[!y&&(0,b.jsx)(n.B,{ref:C,isTransparent:!0,...N,isOpen:s}),(0,b.jsxs)("div",{...F,style:{...M,...F.style},"data-name":"Popover",ref:R,className:E,role:"presentation","data-testid":"popover",children:[!y&&(0,b.jsx)(f.R,{onDismiss:()=>w.close()}),l,i?null:(0,b.jsx)(S,{isEmphasized:x,placement:I,arrowProps:T,direction:v[I]}),(0,b.jsx)(f.R,{onDismiss:D})]})]})}),w=Math.sqrt(2);function S({placement:t,arrowProps:r,style:l,isEmphasized:s}){let[i,n]=(0,h.useState)(13),[o,a]=(0,h.useState)(1),c=(0,h.useRef)(null);(0,y.N)(()=>{if(c.current){let t=window.getComputedStyle(c.current).getPropertyValue("--popover-tip-size");""!==t&&n(parseInt(t,10)/2);let r=window.getComputedStyle(c.current).getPropertyValue("--popover-tip-borderWidth");""!==r&&a(parseInt(r,10))}},[c]);let u="top"===t||"bottom"===t,d="left"===t||"top"===t,p=o*w,f=p/2,v=2*i+2*p,x=i+p,K=d?x:0,P=d?f:x-f,k=v/2,M=v-f,D=(0,h.useMemo)(()=>(0,g.QP)(m(`absolute [--popover-tip-borderWidth:1px] [--popover-tip-size:13px]
45      ${"top"===t?"top-full left-1/2 mb-[6px] ml-[-8px] -translate-y-px -scale-y-100":""}
46      ${"right"===t?"top-1/2 right-full mt-[-8px] ml-[6px] translate-x-px -scale-x-100":""}
47      ${"bottom"===t?"bottom-full left-1/2 mt-[6px] ml-[-8px] translate-y-px -scale-y-100":""}
48      ${"left"===t?"top-1/2 left-full mt-[-8px] mr-[6px] -translate-x-px -scale-x-100":""}
49      ${s?"fill-surface-primary":"fill-surface-normal stroke-border-weak"}
50      `)),[t,s]);return(0,b.jsx)("svg",{"aria-hidden":!0,width:Math.ceil(u?v:x),height:Math.ceil(u?x:v),style:l,className:D,ref:c,...r,children:(0,b.jsx)("path",{className:m("[-webkit-transform:translate(0,0)] [stroke-linecap:square] [stroke-linejoin:miter] [stroke-width:1px]"),d:(u?["M",f,K,"L",k,P,"L",M,K]:["M",K,f,"L",P,k,"L",K,M]).join(" ")})})}},64234:(t,r,l)=>{l.d(r,{V:()=>o});var s=l(69096),i=l(22114),n=l(19324);function o(t,r,l){let{type:o="menu",isDisabled:a,trigger:c="press"}=t,u=(0,n.useId)(),{triggerProps:d,overlayProps:p}=(0,i.o)({type:o},r,l),{longPressProps:h}=(0,s.H)({isDisabled:a||"longPress"!==c,accessibilityDescription:"長押しします。",onLongPressStart(){r.close()},onLongPress(){r.open("first")}});return delete d.onPress,{menuTriggerProps:{...d,..."press"===c?{onPressStart(t){"touch"===t.pointerType||"keyboard"===t.pointerType||a||r.toggle("virtual"===t.pointerType?"first":null)},onPress(t){"touch"!==t.pointerType||a||r.toggle()}}:h,id:u,onKeyDown:t=>{if(!a&&!("longPress"===c&&!t.altKey)&&l?.current)switch(t.key){case"Enter":case" ":if("longPress"===c)return;case"ArrowDown":"continuePropagation"in t||t.stopPropagation(),t.preventDefault(),r.toggle("first");break;case"ArrowUp":"continuePropagation"in t||t.stopPropagation(),t.preventDefault(),r.toggle("last")}}},menuProps:{...p,"aria-labelledby":u,autoFocus:r.focusStrategy||!0,onClose:r.close}}}},65638:(t,r,l)=>{l.d(r,{p:()=>u});var s=l(79772),i=l(57362),n=l(30489),o=l(34117),a=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(t,{expandedKeys:r}={}){this.iterable=t,r||=new Set;let l=t=>{if(this.keyMap.set(t.key,t),t.childNodes&&("section"===t.type||r.has(t.key)))for(let r of t.childNodes)l(r)};for(let r of t)l(r);let s,i=0;for(let[t,r]of this.keyMap)s?(s.nextKey=t,r.prevKey=s.key):(this.firstKey=t,r.prevKey=void 0),"item"===r.type&&(r.index=i++),(s=r).nextKey=void 0;this.lastKey=s?.key}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:void 0}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:void 0}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}},c=l(19324);function u(t){let{onExpandedChange:r}=t,[l,u]=(0,s.P)(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,r),d=(0,o.R)(t),p=(0,c.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),h=(0,i.G)(t,(0,c.useCallback)(t=>new a(t,{expandedKeys:l}),[l]),null);return(0,c.useEffect)(()=>{null==d.focusedKey||h.getItem(d.focusedKey)||d.setFocusedKey(null)},[h,d.focusedKey]),{collection:h,expandedKeys:l,disabledKeys:p,toggleKey:t=>{var r,s;let i;u((r=l,s=t,(i=new Set(r)).has(s)?i.delete(s):i.add(s),i))},selectionManager:new n.Y(h,d)}}},68549:(t,r,l)=>{l.d(r,{p:()=>c});var s=l(57362),i=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(t){this.iterable=t;let r=t=>{if(this.keyMap.set(t.key,t),t.childNodes&&"section"===t.type)for(let l of t.childNodes)r(l)};for(let l of t)r(l);let l,s=0;for(let[t,r]of this.keyMap)l?(l.nextKey=t,r.prevKey=l.key):(this.firstKey=t,r.prevKey=void 0),"item"===r.type&&(r.index=s++),(l=r).nextKey=void 0;this.lastKey=l?.key}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:void 0}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:void 0}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}},n=l(30489),o=l(34117),a=l(19324);function c(t){let{filter:r}=t,l=(0,o.R)(t),c=(0,a.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),u=(0,s.G)(t,t=>
50new i(r?r(t):t),(0,a.useMemo)(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),[r]);return(0,a.useEffect)(()=>{null==l.focusedKey||u.getItem(l.focusedKey)||l.setFocusedKey(null)},[u,l.focusedKey]),{collection:u,disabledKeys:c,selectionManager:new n.Y(u,l)}}},69096:(t,r,l)=>{l.d(r,{H:()=>c});var s=l(78833),i=l(74216),n=l(27646),o=l(22208),a=l(19324);function c(t){let{isDisabled:r,onLongPressStart:l,onLongPressEnd:c,onLongPress:u,threshold:d=500,accessibilityDescription:p}=t,h=(0,a.useRef)(null),{addGlobalListener:f,removeGlobalListener:y}=(0,n.A)(),{pressProps:g}=(0,o.dD)({isDisabled:r,onPressStart(t){if(("mouse"===t.pointerType||"touch"===t.pointerType)&&(l&&l({...t,type:"longpressstart"}),h.current=setTimeout(()=>{t.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),u&&u({...t,type:"longpress"}),h.current=null},d),"touch"===t.pointerType)){let r=t=>{t.preventDefault()};f(t.target,"contextmenu",r,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{y(t.target,"contextmenu",r)},30)},{once:!0})}},onPressEnd(t){h.current&&clearTimeout(h.current),c&&("mouse"===t.pointerType||"touch"===t.pointerType)&&c({...t,type:"longpressend"})}});return{longPressProps:(0,s.v)(g,(0,i.I)(u&&!r?p:null))}}},71972:(t,r,l)=>{l.d(r,{r:()=>i});var s=l(53075);function i(t){let r=(0,s.$)(t,{labelable:!0}),l;return"vertical"===t.orientation&&(l="vertical"),"hr"===t.elementType?{separatorProps:r}:{separatorProps:{...r,role:"separator","aria-orientation":l}}}},72921:(t,r,l)=>{l.d(r,{A:()=>g});var s=l(25104),i=l(31085),n=l(77339),o=l(59900),a=l(96457),c=l(34983),u=l(64234),d=l(2120),p=l(94563),h=l(19324),f=l(97360),y=l(80009),g=(0,h.memo)((0,h.forwardRef)(function(t,r){let l,g=(0,h.useRef)(null),m=(0,s.zD)(r)||g,b=(0,h.useRef)(null),{children:v,shouldFlip:x=!0,direction:K="bottom",closeOnSelect:w,trigger:S="press",isNonModal:P,isDismissable:k=!0,mobileType:M="tray"}=t,[D,R]=h.Children.toArray(v),C=function(t){let r=(0,y.T)(t),[l,s]=(0,h.useState)(void 0),[i,n]=(0,h.useState)([]);return{focusStrategy:l,...r,open(t){s(t),r.open()},toggle(t){s(t),r.toggle()},close(){n([]),r.close()},expandedKeysStack:i,openSubmenu:(t,r)=>{void 0!==t&&n(l=>r>l.length?l:[...l.slice(0,r),t])},closeSubmenu:(t,r)=>{n(l=>l[r]===t?l.slice(0,r):l)}}}(t),{close:F,isOpen:T,focusStrategy:N}=C,{menuTriggerProps:I,menuProps:E}=(0,u.V)({trigger:S},C,m),A=(0,h.useMemo)(()=>{if(!R?.props?.children)return!1;let t=!1;return h.Children.forEach(R.props.children,r=>{h.isValidElement(r)&&r.type===c.f&&(t=!0)}),t},[R]),j;j=`${K}`;let B=(0,i.o)()&&"tray"===M,O={...E,ref:b,triggerRef:m,onClose:F,closeOnSelect:w,autoFocus:N||!0,unsafeStyle:B?{width:"100%",maxHeight:"inherit"}:void 0,state:C,submenuLevel:0,isTray:B},L=(0,h.useRef)(null);return(0,d.$)({ref:(0,s.Rv)(L),onInteractOutside:()=>{C?.close()},isDisabled:!C.isOpen||0===C.expandedKeysStack.length}),l=B?(0,f.jsx)(a.A,{state:C,isFixedHeight:A,ref:L,children:R}):(0,f.jsx)(o.A,{ref:L,unsafeStyle:{clipPath:"unset",overflow:"visible",filter:"unset",borderWidth:"0px"},state:C,triggerRef:m,scrollRef:b,placement:j,shouldFlip:x,isNonModal:P,isDismissable:k,children:R}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(p.Y,{...I,ref:m,isPressed:T,children:D}),(0,f.jsx)(n.xu.Provider,{value:O,children:l})]})}))},74216:(t,r,l)=>{l.d(r,{I:()=>a});var s=l(20517),i=l(19324),n=0,o=new Map;function a(t){let[r,l]=(0,i.useState)();return(0,s.N)(()=>{if(!t)return;let r=o.get(t);if(r)l(r.element.id);else{let s=`noteui-description-${n++}`;l(s);let i=document.createElement("div");i.id=s,i.style.display="none",i.textContent=t,document.body.appendChild(i),r={refCount:0,element:i},o.set(t,r)}return r.refCount++,()=>{r&&0==--r.refCount&&(r.element.remove(),o.delete(t))}},[t]),{"aria-describedby":t?r??void 0:void 0}}},77339:(t,r,l)=>{l.d(r,{A0:()=>c,CH:()=>a,KZ:()=>n,Rd:()=>u,XL:()=>o,xu:()=>i});var s=l(19324),i=s.createContext({});function n(){return(0,s.useContext)(i)}var o=s.createContext(void 0);function a(){return(0,s.useContext)(o)}var c=s.createContext(void 0);function u(){return(0,s.useContext)(c)}},77748:(t,r,l)=>{l.d(r,{y:()=>v});var s=l(42255),i=new Map,n=l(36827),o=l(56138),a=l(78833),c=l(37631),u=l(80557),d=l(36322),p=l(7569),h=l(12579),f=l(16951),y=l(18006),g=l(98232),m=l(19324),b=l(69645);function v(t){let{selectionManager:r,collection:l,disabledKeys:v,ref:x,keyboardDelegate:K,layoutDelegate:w}=t,S=function(t){let{locale:r}
50=(0,s.Y)(),l=r+(t?Object.entries(t).sort((t,r)=>t[0]<r[0]?-1:1).join():"");if(i.has(l))return i.get(l);let n=new Intl.Collator(r,t);return i.set(l,n),n}({usage:"search",sensitivity:"base"}),P=r.disabledBehavior,k=(0,m.useMemo)(()=>K||new n.n({collection:l,disabledKeys:v,disabledBehavior:P,ref:x,collator:S,layoutDelegate:w}),[K,w,l,v,x,S,P]),{collectionProps:M}=function(t){let r,{selectionManager:l,keyboardDelegate:s,ref:i,autoFocus:n=!1,shouldFocusWrap:v=!1,disallowEmptySelection:x=!1,disallowSelectAll:K=!1,selectOnFocus:w="replace"===l.selectionBehavior,disallowTypeAhead:S=!1,shouldUseVirtualFocus:P,allowsTabNavigation:k=!1,isVirtualized:M,scrollRef:D=i,linkBehavior:R="action"}=t,C=(0,c.rd)(),F=(0,m.useRef)({top:0,left:0});(0,d._)(D,"scroll",M?null:()=>{F.current={top:D.current.scrollTop,left:D.current.scrollLeft}});let T=(0,m.useRef)(n);(0,m.useEffect)(()=>{if(T.current){let t;"first"===n&&(t=s.getFirstKey()),"last"===n&&(t=s.getLastKey());let r=l.selectedKeys;if(r.size){for(let s of r)if(l.canSelectItem(s)){t=s;break}}if(l.setFocused(!0),l.setFocusedKey(t),null!=t||P||(0,h.l)(i.current),null!=t&&!M&&D?.current){let r=()=>{let r=D.current,l=r?.querySelector(`[data-key="${t}"]`);r&&l&&((0,u.R)(r,l),(0,u.o)(l,{containingElement:i.current??void 0}))};"function"==typeof requestAnimationFrame?requestAnimationFrame(r):r()}}T.current=!1},[]);let N=(0,m.useRef)(l.focusedKey);(0,m.useEffect)(()=>{let t=(0,p.ME)();if(l.isFocused&&null!=l.focusedKey&&D?.current){let r=D.current.querySelector(`[data-key="${l.focusedKey}"]`);r&&"keyboard"===t&&(M||(0,u.R)(D.current,r),(0,u.o)(r,{containingElement:i.current??void 0}))}l.isFocused&&null==l.focusedKey&&null!=N.current&&(0,h.l)(i.current),N.current=l.focusedKey},[M,D,l.focusedKey,l.isFocused,i]);let I={onKeyDown:t=>{if(t.altKey&&"Tab"===t.key&&t.preventDefault(),!i.current?.contains(t.target))return;let r=(r,s)=>{if(null!=r){if(l.isLink(r)&&"selection"===R&&w&&!(0,y.N9)(t)){(0,b.flushSync)(()=>{l.setFocusedKey(r,s)});let i=D.current?.querySelector(`[data-key="${r}"]`),n=l.getItemProps(r);i&&C.open(i,t,n.href,n.routerOptions);return}l.setFocusedKey(r,s),l.isLink(r)&&"override"===R||(t.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(r):w&&!(0,y.N9)(t)&&l.replaceSelection(r))}};switch(t.key){case"ArrowDown":if(s.getKeyBelow){t.preventDefault();let i=null==l.focusedKey?s.getFirstKey?.():s.getKeyBelow(l.focusedKey);null==i&&v&&(i=s.getFirstKey?.(l.focusedKey)),r(i)}break;case"ArrowUp":if(s.getKeyAbove){t.preventDefault();let i=null==l.focusedKey?s.getLastKey?.():s.getKeyAbove(l.focusedKey);null==i&&v&&(i=s.getLastKey?.(l.focusedKey)),r(i)}break;case"ArrowLeft":s.getKeyLeftOf&&(t.preventDefault(),r(s.getKeyLeftOf(l.focu
50sedKey),"last"));break;case"ArrowRight":s.getKeyRightOf&&(t.preventDefault(),r(s.getKeyRightOf(l.focusedKey),"first"));break;case"Home":if(s.getFirstKey){t.preventDefault();let r=s.getFirstKey(l.focusedKey,(0,y.BX)(t));l.setFocusedKey(r),(0,y.BX)(t)&&t.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(r):w&&l.replaceSelection(r)}break;case"End":if(s.getLastKey){t.preventDefault();let r=s.getLastKey(l.focusedKey,(0,y.BX)(t));l.setFocusedKey(r),(0,y.BX)(t)&&t.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(r):w&&l.replaceSelection(r)}break;case"PageDown":s.getKeyPageBelow&&(t.preventDefault(),r(s.getKeyPageBelow(l.focusedKey)));break;case"PageUp":s.getKeyPageAbove&&(t.preventDefault(),r(s.getKeyPageAbove(l.focusedKey)));break;case"a":(0,y.BX)(t)&&"multiple"===l.selectionMode&&!0!==K&&(t.preventDefault(),l.selectAll());break;case"Escape":t.preventDefault(),x||l.clearSelection();break;case"Tab":if(!k)if(t.shiftKey)i.current?.focus();else{let t=i.current?(0,f.N$)(i.current,{tabbable:!0}):null,r,l;do null!==(l=t?.lastChild())&&(r=l);while(l);r&&!r.contains(document.activeElement)&&(0,o.e)(r)}}},onFocus:t=>{if(l.isFocused){t.currentTarget.contains(t.target)||l.setFocused(!1);return}if(t.currentTarget.contains(t.target)){if(l.setFocused(!0),null==l.focusedKey){let r=t=>{null!=t&&(l.setFocusedKey(t),w&&l.replaceSelection(t))},i=t.relatedTarget;if(i&&t.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING){let t=l.lastSelectedKey;r(null==t||l.isDisabled(t)?s.getLastKey?.():t)}else{let t=l.firstSelectedKey;r(null==t||l.isDisabled(t)?s.getFirstKey?.():t)}}else M||(D.current.scrollTop=F.current.top,D.current.scrollLeft=F.current.left);if(!M&&null!=l.focusedKey){let t=D.current?.querySelector(`[data-key="${l.focusedKey}"]`);t&&(t.contains(document.activeElement)||(0,o.e)(t),"keyboard"===(0,p.ME)()&&(0,u.o)(t,{containingElement:i.current??void 0}))}}},onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||l.setFocused(!1)},onMouseDown(t){D.current===t.target&&t.preventDefault()}},{typeSelectProps:E}=(0,g.I)({keyboardDelegate:s,selectionManager:l});return S||(I=(0,a.v)(E,I)),P||(r=null==l.focusedKey?0:-1),{collectionProps:{...I,tabIndex:r}}}({...t,ref:x,selectionManager:r,keyboardDelegate:k});return{listProps:M}}},79629:(t,r,l)=>{l.d(r,{R:()=>o});var s=l(28969),i=l(98218),n=l(97360);function o(t){let{onDismiss:r,...l}=t,o=(0,s.b)(l,"閉じる");return(0,n.jsx)(i.s,{"data-id":"VisuallyHidden",isFocusable:!0,children:(0,n.jsx)("button",{...o,tabIndex:-1,onClick:()=>{r&&r()}})})}},80557:(t,r,l)=>{l.d(r,{R:()=>i,o:()=>o});var s=l(97904);function i(t,r){let l=n(t,r,"left"),s=n(t,r,"top"),i=r.offsetWidth,o=r.offsetHeight,a=t.scrollLeft,c=t.scrollTop,{borderTopWidth:u,borderLeftWidth:d}=getComputedStyle(t),p=t.scrollLeft+parseInt(d,10),h=t.scrollTop+parseInt(u,10),f=p+t.clientWidth,y=h+t.clientHeight;l<=a?a=l-parseInt(d,10):l+i>f&&(a+=l+i-f),s<=h?c=s-parseInt(u,10):s+o>y&&(c+=s+o-y),t.scrollLeft=a,t.scrollTop=c}function n(t,r,l){let s="left"===l?"offsetLeft":"offsetTop",i=0;for(;r.offsetParent&&(i+=r[s],r.offsetParent!==t);){if(r.offsetParent.contains(t)){i-=t[s];break}r=r.offsetParent}return i}function o(t,r){if(document.contains(t)){let l=document.scrollingElement||document.documentElement;if("hidden"!==window.getComputedStyle(l).overflow){let{left:l,top:s}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:i,top:n}=t.getBoundingClientRect();(Math.abs(l-i)>1||Math.abs(s-n)>1)&&(r?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),t.scrollIntoView?.({block:"nearest"}))}else{let r=(0,s.m)(t);for(;t&&r&&t!==l&&r!==l;)i(r,t),t=r,r=(0,s.m)(t)}}}},88897:(t,r,l)=>{l.d(r,{q:()=>i});var s=l(19324);function i(t){return null}i.getCollectionNode=function*(t,r){var l;let{childItems:i,title:n,children:o,elementType:a,href:c,rel:u,target:d}=t,p=t.title||t.children,h=t.textValue||("string"==typeof p?p:"")||t["aria-label"]||"";h||r?.suppressTextValueWarning||console.warn("<Item>
50 with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:p,textValue:h,elementType:a,href:c,rel:u,target:d,"aria-label":t["aria-label"],hasChildNodes:null==(l=t).hasChildItems?!!(l.childItems||l.title&&s.Children.count(l.children)>0):l.hasChildItems,*childNodes(){if(i)for(let t of i)yield{type:"item",value:t};else if(n){let t=[];s.Children.forEach(o,r=>{t.push({type:"item",element:r})}),yield*t}}}}},90419:(t,r,l)=>{l.d(r,{L:()=>s});var s=class t extends Set{anchorKey;currentKey;constructor(r,l,s){super(r),r instanceof t?(this.anchorKey=l||r.anchorKey,this.currentKey=s||r.currentKey):(this.anchorKey=l,this.currentKey=s)}}},93059:(t,r,l)=>{l.d(r,{p:()=>d});var s=l(78833),i=l(37631),n=l(22208),o=l(69096),a=l(12579),c=l(18006),u=l(19324);function d(t){let{selectionManager:r,key:l,ref:d,shouldSelectOnPressUp:f,shouldUseVirtualFocus:y,focus:g,onAction:m,allowsDifferentPressOrigin:b,linkBehavior:v="action"}=t,{isDisabled:x}=t,K=(0,i.rd)(),w=t=>{if("keyboard"===t.pointerType&&(0,c.N9)(t))r.toggleSelection(l);else{if("none"===r.selectionMode)return;if(r.isLink(l)){if("selection"===v&&d.current){let s=r.getItemProps(l);K.open(d.current,t,s.href,s.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if("override"===v||"none"===v)return}"single"===r.selectionMode?r.isSelected(l)&&!r.disallowEmptySelection?r.toggleSelection(l):r.replaceSelection(l):t?.shiftKey?r.extendSelection(l):"toggle"===r.selectionBehavior||t&&((0,c.BX)(t)||"touch"===t.pointerType||"virtual"===t.pointerType)?r.toggleSelection(l):r.replaceSelection(l)}};(0,u.useEffect)(()=>{l===r.focusedKey&&r.isFocused&&!y&&(g?g():document.activeElement!==d.current&&(0,a.l)(d.current))},[d,l,r.focusedKey,r.childFocusStrategy,r.isFocused,y]),x||=r.isDisabled(l);let S={};y||x?x&&(S.onMouseDown=t=>{t.preventDefault()}):S={tabIndex:l===r.focusedKey?0:-1,onFocus(t){t.target===d.current&&r.setFocusedKey(l)}};let P=r.isLink(l)&&"override"===v,k=r.isLink(l)&&"selection"!==v&&"none"!==v,M=!x&&r.canSelectItem(l)&&!P,D=(m||k)&&!x,R=D&&("replace"===r.selectionBehavior?!M:!M||r.isEmpty),C=D&&M&&"replace"===r.selectionBehavior,F=R||C,T=(0,u.useRef)(null),N=F&&M,I=(0,u.useRef)(!1),E=(0,u.useRef)(!1),A=t=>{m&&m(),k&&d.current&&K.open(d.current,t,S.href,S.routerOptions)},j={};f?(j.onPressStart=t=>{T.current=t.pointerType,I.current=N,"keyboard"===t.pointerType&&(!F||h())&&w(t)},b?(j.onPressUp=R?void 0:t=>{"keyboard"!==t.pointerType&&M&&w(t)},j.onPress=R?()=>m?.():null):j.onPress=t=>{R||C&&"mouse"!==t.pointerType?("keyboard"!==t.pointerType||p())&&A(t):"keyboard"!==t.pointerType&&M&&w(t)}):(j.onPressStart=t=>{T.current=t.pointerType,I.current=N,E.current=R,M&&("mouse"===t.pointerType&&!R||"keyboard"===t.pointerType&&(!D||h()))&&w(t)},j.onPress=t=>{("touch"===t.pointerType||"pen"===t.pointerType||"virtual"===t.pointerType||"keyboard"===t.pointerType&&F&&p()||"mouse"===t.pointerType&&E.current)&&(F?A(t):M&&w(t))}),S["data-key"]=l,j.preventFocusOnPress=y;let{pressProps:B,isPressed:O}=(0,n.dD)(j),L=C?t=>{"mouse"===T.current&&(t.stopPropagation(),t.preventDefault(),A(t))}:void 0,{longPressProps:$}=(0,o.H)({isDisabled:!N,onLongPress(t){"touch"===t.pointerType&&(w(t),r.setSelectionBehavior("toggle"))}}),z="none"!==v&&r.isLink(l)?t=>{(0,i.$e)()||t.preventDefault()}:void 0;return{itemProps:(0,s.v)(S,M||R?B:{},N?$:{},{onDoubleClick:L,onDragStartCapture:t=>{"touch"===T.current&&I.current&&t.preventDefault()},onClick:z}),isPressed:O,isSelected:r.isSelected(l),isFocused:r.isFocused&&r.focusedKey===l,isDisabled:x,allowsSelection:M,hasAction:F}}function p(){return window.event?.key==="Enter"}function h(){let t=window.event;return t?.key===" "||t?.code==="Space"}},96457:(t,r,l)=>{l.d(r,{A:()=>y});var s=l(25104),i=l(11342),n=l(16445),o=l(35749),a=l(10205),c=l(79629),u=l(19324),d=l(16239),p=l(32508),h=l(97360),f=(0,u.forwardRef)(function(t,r){let{children:l,isOpen:s,isFixedHeight:i,state:f,wrapperRef:y}=t,{modalProps:g,underlayProps:m}=(0,o.l)({...t,isDismissable:!0},f,r),b=(0,a.l)(),v="u">typeof window?Math.max(0,window.innerHeight-(b.offsetTop+b.height)):0,x={"--visual-viewport-height":`${b.height}px`,"--tray-bottom-inset":`${v}px`},K=(0,u.useMemo)(()=>(0,d.QP)(p(`
51        pointer-events-auto absolute [bottom:var(--tray-bottom-inset)] overflow-hidden rounded-t-2xl
52        flex w-full
53        flex-col bg-surface-normal transition-[opacity,transform] duration-200
54        will-change-[opacity,transform] [--tray-margin-top:20vh] [--tray-max-width:28rem] [max-height:calc(var(--visual-viewport-height)_-_var(--tray-margin-top))] [max-width:var(--tray-max-width)] [min-height:8rem] [padding-bottom:env(safe-area-inset-bottom)]
55        ${s?"opacity-100 ease-in [transform:translateY(0)]":"opacity-0 ease-out [transform:translateY(100%)]"}
56        ${i?"[height:calc(var(--visual-viewport-height)_-_var(--tray-margin-top))]":""}
57        ${t.className||""}
58        `)),[s,i,t.className]);return(0,h.jsxs)("div",{ref:y,children:[(0,h.jsx)(n.B,{...m,isOpen:s}),(0,h.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 flex w-full justify-center",style:x,children:(0,h.jsxs)("div",{...g,className:K,ref:r,"data-testid":"tray",children:[(0,h.jsx)(c.R,{onDismiss:()=>f.close()}),l,(0,h.jsx)(c.R,{onDismiss:()=>f.close()})]})})]})}),y=(0,u.forwardRef)(function(t,r){let{children:l,state:n,...o}=t,a=(0,s.zD)(r),c=(0,u.useRef)(null);return(0,h.jsx)(i.A,{...o,isOpen:n.isOpen,nodeRef:c,children:(0,h.jsx)(f,{...t,ref:a,wrapperRef:c,children:l})})})},97795:(t,r,l)=>{l.d(r,{A:()=>o});var s=l(19324),i=l(32508),n=l(97360),o=(0,s.memo)(function(t){let{size:r="m",ariaLabel:l}=t,s=`${(()=>{switch(r){case"s":return"w-1 h-1 mx-[2px]";case"m":return"w-2 h-2 mx-1";case"l":return"w-3 h-3 mx-1"}})()} bg-surface-invert rounded-full opacity-30 animate-pulse`;return(0,n.jsxs)("div",{role:l?"progressbar":void 0,"aria-label":l,className:"flex items-center justify-center",children:[(0,n.jsx)("div",{className:s}),(0,n.jsx)("div",{className:i(`[animation-delay:666ms] ${s}`)}),(0,n.jsx)("div",{className:i(`[animation-delay:1300ms] ${s}`)})]})})},98232:(t,r,l)=>{l.d(r,{I:()=>i});var s=l(19324);function i(t){let{keyboardDelegate:r,selectionManager:l,onTypeSelect:i}=t,n=(0,s.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:r.getKeyForSearch?t=>{var s;let o=1!==(s=t.key).length&&/^[A-Z]/i.test(s)?"":s;if(!o||t.ctrlKey||t.metaKey)return;" "===o&&n.search.trim().length>0&&(t.preventDefault(),"continuePropagation"in t||t.stopPropagation()),n.search+=o;let a=r.getKeyForSearch(n.search,l.focusedKey);null!=(a??=r.getKeyForSearch(n.search))&&(l.setFocusedKey(a),i&&i(a)),clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},500)}:null}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.