PageSourceSearch

https://note.jp/_next/static/chunks/847-c1be85e73d88ccd2.js

js note.jp collected 2026-10-01 10:12:37 UTC 44,369 bytes, 24 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 n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var n=(new t.Error).stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="350ef74e-4fc9-4d26-8e15-1d516b225a08",t._sentryDebugIdIdentifier="sentry-dbid-350ef74e-4fc9-4d26-8e15-1d516b225a08")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[847],{1130:(t,n,o)=>{o.d(n,{P:()=>i});var r=o(19324);function i(t,n,o){let[i,s]=(0,r.useState)(t||n),l=(0,r.useRef)(void 0!==t),a=void 0!==t;(0,r.useEffect)(()=>{let t=l.current;t!==a&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),l.current=a},[a]);let u=a?t:i,c=(0,r.useCallback)((t,...n)=>{let r=(t,...n)=>{o&&(Object.is(u,t)||o(t,...n)),a||(u=t)};"function"==typeof t?s((o,...i)=>{let s=t(a?u:o,...i);return r(s,...n),a?o:s}):(a||s(t),r(t,...n))},[a,u,o]);return[u,c]}},2877:(t,n,o)=>{o.d(n,{l:()=>l});var r=o(52992),i=o(13383),s=o(63143);function l(t){if("virtual"===(0,s.ME)()){let n=document.activeElement;(0,i.v)(()=>{document.activeElement===n&&document.contains(t)&&(0,r.e)(t)})}else(0,r.e)(t)}},4528:(t,n,o)=>{o.d(n,{o:()=>s});var r=o(60948),i=o(19324);function s(t,n,o){let s,{type:l}=t,{isOpen:a}=n;(0,i.useEffect)(()=>{o?.current&&r.a.set(o.current,n.close)}),"menu"===l?s=!0:"listbox"===l?s="listbox":"dialog"===l&&(s="dialog");let u=(0,i.useId)();return{triggerProps:{"aria-haspopup":s,"aria-expanded":a,"aria-controls":a?u:void 0},overlayProps:{id:u}}}},12274:(t,n,o)=>{o.d(n,{$:()=>l});var r=o(75544),i=o(47279),s=o(19324);function l(t){let{ref:n,onInteractOutside:o,isDisabled:l,onInteractOutsideStart:u}=t,c=(0,s.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),d=(0,i.J)(t=>{let r=a(t,n);o&&r?(u&&u(t),c.current.isPointerDown=!0):c.current.isPointerDown=!1}),f=(0,i.J)(t=>{o&&o(t)});(0,s.useEffect)(()=>{let t=c.current;if(l)return;let o=n.current,i=(0,r.TW)(o);if("u">typeof PointerEvent){let o=o=>{let r=a(o,n);t.isPointerDown&&r&&f(o),t.isPointerDown=!1};return i.addEventListener("pointerdown",d,!0),i.addEventListener("pointerup",o,!0),()=>{i.removeEventListener("pointerdown",d,!0),i.removeEventListener("pointerup",o,!0)}}{let o=o=>{let r=a(o,n);t.ignoreEmulatedMouseEvents?t.ignoreEmulatedMouseEvents=!1:t.isPointerDown&&r&&f(o),t.isPointerDown=!1},r=o=>{let r=a(o,n);t.ignoreEmulatedMouseEvents=!0,t.isPointerDown&&r&&f(o),t.isPointerDown=!1};return i.addEventListener("mousedown",d,!0),i.addEventListener("mouseup",o,!0),i.addEventListener("touchstart",d,!0),i.addEventListener("touchend",r,!0),()=>{i.removeEventListener("mousedown",d,!0),i.removeEventListener("mouseup",o,!0),i.removeEventListener("touchstart",d,!0),i.removeEventListener("touchend",r,!0)}}},[n,l,d,f])}function a(t,n){if(t.button>0)return!1;let o=t.target;return!!o&&!(!o.ownerDocument?.documentElement.contains(o)||o.closest("[data-noteui-top-layer]"))&&!!(n.current&&!n.current.contains(o))}},15378:(t,n,o)=>{function r(t){for(i(t)&&null!==t.parentElement&&(t=t.parentElement);t&&!i(t)&&null!==t.parentElement;)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function i(t){let n=window.getComputedStyle(t);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}o.d(n,{m:()=>r,o:()=>i})},22607:(t,n,o)=>{o.d(n,{l:()=>s});var r=o(19324),i="u">typeof window&&window.visualViewport;function s(){let[t,n]=(0,r.useState)(()=>l());return(0,r.useEffect)(()=>{let t=()=>{n(t=>{let n=l();return n.width===t.width&&n.height===t.height&&n.offsetTop===t.offsetTop?t:n})};return i?(i.addEventListener("resize",t),i.addEventListener("scroll",t)):window.addEventListener("resize",t),()=>{i?(i.removeEventListener("resize",t),i.removeEventListener("scroll",t)):window.removeEventListener("resize",t)}},[]),t}function l(){return{width:i?i.width:window.innerWidth,height:i?i.height:window.innerHeight,offsetTop:i?i.offsetTop:0}}},30127:(t,n,o)=>{o.d(n,{l:()=>x});var r,i=o(59999),s=o(75875),l=o(54375),a=o(82952),u=o(16006),c=o(15378),d=o(50018),f=o(40679),p="u">
1typeof window&&window.visualViewport,m=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),h=0;function v(t,n,o){let r=t.style[n];return t.style[n]=o,()=>{t.style[n]=r}}function g(t,n,o,r){return t.addEventListener(n,o,r),()=>{t.removeEventListener(n,o,r)}}function E(t){let n=document.scrollingElement||document.documentElement;for(;t&&t!==n;){let n=(0,c.m)(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let o=n.getBoundingClientRect().top,r=t.getBoundingClientRect().top;r>o+t.clientHeight&&(n.scrollTop+=r-o)}t=n.parentElement}}function w(t){return t instanceof HTMLInputElement&&!m.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var b=o(19324);function x(t,n,o){let{overlayProps:m,underlayProps:x}=(0,a.e)({...t,isOpen:n.isOpen,onClose:n.close},o);return function(t={}){let{isDisabled:n}=t;(0,f.N)(()=>{if(!n){let t,n,o,i,s,l;return 1==++h&&(r=(0,d.un)()?(n=0,o=window.pageXOffset,i=window.pageYOffset,s=(0,u.c)(v(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),v(document.documentElement,"overflow","hidden"),v(document.body,"marginTop",`-${i}px`)),window.scrollTo(0,0),l=(0,u.c)(g(document,"touchstart",o=>{((t=(0,c.m)(o.target))!==document.documentElement||t!==document.body)&&(n=o.changedTouches[0].pageY)},{passive:!1,capture:!0}),g(document,"touchmove",o=>{if(!t||t===document.documentElement||t===document.body)return void o.preventDefault();let r=o.changedTouches[0].pageY,i=t.scrollTop,s=t.scrollHeight-t.clientHeight;0!==s&&((i<=0&&r>n||i>=s&&r<n)&&o.preventDefault(),n=r)},{passive:!1,capture:!0}),g(document,"touchend",t=>{let n=t.target;w(n)&&n!==document.activeElement&&(t.preventDefault(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame(()=>{n.style.transform=""}))},{passive:!1,capture:!0}),g(document,"focus",t=>{let n=t.target;w(n)&&(n.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{n.style.transform="",p&&(p.height<window.innerHeight?requestAnimationFrame(()=>{E(n)}):p.addEventListener("resize",()=>E(n),{once:!0}))}))},!0),g(window,"scroll",()=>{window.scrollTo(0,0)})),()=>{s(),l(),window.scrollTo(o,i)}):(0,u.c)(v(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),v(document.documentElement,"overflow","hidden"))),()=>{0==--h&&r()}}},[n])}({isDisabled:!n.isOpen}),(0,l.Se)(),(0,b.useEffect)(()=>{if(n.isOpen)return(0,s.h)([o.current])},[n.isOpen,o]),{modalProps:(0,i.v)(m),underlayProps:x}}},30933:(t,n,o)=>{o.d(n,{A:()=>x});var r=o(62549),i=o(19324),s=o(97360),l=o(8324),a=o(30673),u=o(69645);let c=i.createContext(null);var d="unmounted",f="exited",p="entering",m="entered",h="exiting",v=function(t){function n(n,o){var r,i=t.call(this,n,o)||this,s=o&&!o.isMounting?n.enter:n.appear;return i.appearStatus=null,n.in?s?(r=f,i.appearStatus=p):r=m:r=n.unmountOnExit||n.mountOnEnter?d:f,i.state={status:r},i.nextCallback=null,i}(0,a.A)(n,t),n.getDerivedStateFromProps=function(t,n){return t.in&&n.status===d?{status:f}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var n=null;if(t!==this.props){var o=this.state.status;this.props.in?o!==p&&o!==m&&(n=p):(o===p||o===m)&&(n=h)}this.updateStatus(!1,n)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t,n,o,r=this.props.timeout;return t=n=o=r,null!=r&&"number"!=typeof r&&(t=r.exit,n=r.enter,o=void 0!==r.appear?r.appear:n),{exit:t,enter:n,appear:o}},o.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this);o&&o.scrollTop}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})},o.performEnter=function(t){var n=this,o=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[u.findDOMNode(this),r],s=i[0],l=i[1],a=this.getTimeouts(),c=r?a.appear:a.enter;(t||o)&&1?(this.props.onEnter(s,l),this.safeSetState({status:p},function(){n.props.onEntering(s,l),n.onTransitionEnd(c,function(){n.safeSetState({status:m},function(){n.props.onEntered(s,l)})})})):this.safeSetState({status:m},function(){n.props.onEntered(s)})},o.performExit=function(){var t=this,n=this.props.exit,o=this.getTimeouts(),r=this.props.nodeRef?void 0:u.findDOMNode(this);n?(this.props.onExit(r),this.safeSetState({status:h},function(){t.props.onExiting(r),t.onTransitionEnd(o.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(r)})})})):this.safeSetState({status:f},function(){t.props.onExited(r)})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},o.setNextCallback=function(t){var n=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,n.nextCallback=null,t(r))},this.nextCallback.cancel=function(){o=!1}
1,this.nextCallback},o.onTransitionEnd=function(t,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(!o||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],s=i[0],l=i[1];this.props.addEndListener(s,l)}null!=t&&setTimeout(this.nextCallback,t)},o.render=function(){var t=this.state.status;if(t===d)return null;var n=this.props,o=n.children,r=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,l.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(c.Provider,{value:null},"function"==typeof o?o(t,r):i.cloneElement(i.Children.only(o),r))},n}(i.Component);function g(){}v.contextType=c,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},v.UNMOUNTED=d,v.EXITED=f,v.ENTERING=p,v.ENTERED=m,v.EXITING=h;var E={entering:!1,entered:!0};function w(t){return(0,s.jsx)(v,{timeout:{enter:0,exit:200},...t,children:n=>i.Children.map(t.children,t=>t&&i.cloneElement(t,{isOpen:("entering"===n||"entered"===n)&&E[n]}))})}var b=o(54375),x=(0,i.forwardRef)(function(t,n){let{children:o,isOpen:l,container:a,onEnter:u,onEntering:c,onEntered:d,onExit:f,onExiting:p,onExited:m,nodeRef:h,disableFocusManagement:v,shouldContainFocus:g}=t,[E,x]=(0,i.useState)(!l),y=(0,i.useCallback)(()=>{x(!1),d&&d()},[d]),T=(0,i.useCallback)(()=>{x(!0),m&&m()},[m]);return l||!E?(0,s.jsx)(b.hJ,{portalContainer:a,disableFocusManagement:v,shouldContainFocus:g,isExiting:!l,children:(0,s.jsx)(r.Ay,{ref:n,className:"bg-transparent",isDisabled:!1,children:(0,s.jsx)(w,{in:l,appear:!0,onExit:f,onExiting:p,onExited:T,onEnter:u,onEntering:c,onEntered:y,nodeRef:h,children:o})})}):null})},34901:(t,n,o)=>{o.d(n,{n1:()=>c,N$:()=>y,Pu:()=>E});var r=o(40679),i=o(2877),s=o(19324),l=o(97360),a=(0,s.createContext)(null),u=null;function c(t){var n,o,i,c,d,f,p,E,R,L;let C,O,M,P,{children:S,contain:D,restoreFocus:k,autoFocus:F}=t,A=(0,s.useRef)(null),I=(0,s.useRef)(null),H=(0,s.useRef)([]),{parentNode:j}=(0,s.useContext)(a)||{},z=(0,s.useMemo)(()=>new T({scopeRef:H}),[H]);(0,r.N)(()=>{let t=j||N.root;if(N.getTreeNode(t.scopeRef)&&u&&!w(u,t.scopeRef)){let n=N.getTreeNode(u);n&&(t=n)}t.addChild(z),N.addNode(z)},[z,j]),(0,r.N)(()=>{let t=N.getTreeNode(H);t&&(t.contain=!!D)},[D]),(0,r.N)(()=>{let t=A.current?.nextSibling,n=[];for(;t&&t!==I.current;)n.push(t),t=t.nextSibling;H.current=n},[S]),n=H,o=!!k,i=!!D,(0,r.N)(()=>{if(o||i)return;let t=n.current,r=t=>{let o=t.target;v(o,n.current)?u=n:g(o)||(u=null)};return document.addEventListener("focusin",r,!1),t?.forEach(t=>{t.addEventListener("focusin",r,!1)}),()=>{document.removeEventListener("focusin",r,!1),t?.forEach(t=>{t.removeEventListener("focusin",r,!1)})}},[n,o,i]),c=H,d=D,C=(0,s.useRef)(void 0),O=(0,s.useRef)(null),(0,r.N)(()=>{let t=c.current;if(!d){O.current&&=(cancelAnimationFrame(O.current),null);return}let n=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(c)||t.isComposing)return;let n=document.activeElement,o=c.current;if(!v(n,o))return;let r=m(o),i;null!==r&&(i=y(r,{tabbable:!0},o??void 0)),i?.currentNode&&(i.currentNode=n);let s=t.shiftKey?i?.previousNode():i?.nextNode();if(!s&&i){let n=o?.[o.length-1].nextElementSibling,r=o?.[0].previousElementSibling;n&&r&&(i.currentNode=t.shiftKey?n:r),s=t.shiftKey?i.previousNode():i.nextNode()}t.preventDefault(),s&&b(s,!0)},o=t=>{let n=t.target;(!u||w(u,c))&&v(t.target,c.current)?(u=c,C.current=n??void 0):h(c)&&!g(n,c)?C.current?C.current.focus():u&&x(u.current):h(c)&&(C.current=t.target??void 0)},r=t=>{O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{h(c)&&document?.activeElement&&!g(document?.activeElement,c)&&(u=c,t.target&&document.body.contains(t.target)?(C.current=t.target,C.current?.focus()):u&&x(u.current))})};return document.addEventListener("keydown",n,!1),document.addEventListener("focusin",o,!1),t?.forEach(t=>{t.addEventListener("focusin",o,!1)}),t?.forEach(t=>{t.addEventListener("focusout",r,!1)}),()=>{document.removeEventListener("keydown",n,!1),document.removeEventListener("focusin",o,!1),t?.forEach(t=>{t.removeEventListener("focusin",o,!1)}),t?.forEach(t=>{t.removeEventListener("focusout",r,!1)})}},[c,d]),(0,s.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[O]),f=H,p=!!k,E=!!D,M=(0,s.useRef)("u">typeof document?document.activeElement:null),(0,r.N)(()=>{let t=f.current;
1if(!p||E)return;let n=()=>{(!u||w(u,f))&&(u=f)};return document.addEventListener("focusin",n,!1),t?.forEach(t=>{t.addEventListener("focusin",n,!1)}),()=>{document.removeEventListener("focusin",n,!1),t?.forEach(t=>{t.removeEventListener("focusin",n,!1)})}},[f,E]),(0,r.N)(()=>{if(!p)return;let t=N.getTreeNode(f);void 0!==t&&(t.nodeToRestore=M.current??void 0);let n=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!v(n,f.current))return;let o=N.getTreeNode?.(f)?.nodeToRestore,r=y(document.body,{tabbable:!0});r&&(r.currentNode=n);let i=t.shiftKey?r?.previousNode():r?.nextNode();if(!document.body.contains(o??null)||o===document.body){o=void 0;let t=N.getTreeNode(f);t?.nodeToRestore!==void 0&&(t.nodeToRestore=void 0)}if((!i||!v(i,f.current))&&o){r&&(r.currentNode=o);do i=t.shiftKey?r.previousNode():r.nextNode();while(v(i,f.current));t.preventDefault(),t.stopPropagation(),i?b(i,!0):g(o)?b(o,!0):n.blur()}};return E||document.addEventListener("keydown",n,!0),()=>{E||document.removeEventListener("keydown",n,!0);let t=N.getTreeNode?.(f)?.nodeToRestore;if(p&&t&&(v(document.activeElement,f.current)||document.activeElement===document.body&&function(t){let n=u&&N.getTreeNode(u);for(;n&&n.scopeRef!==t;){if(n.nodeToRestore)return!1;n=n.parent}return n?.scopeRef===t}(f))){let t=N.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(f);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void b(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(f);n;){if(n.scopeRef&&N.getTreeNode(n.scopeRef))return void x(n.scopeRef.current,!0);n=n.parent}}})}}},[f,p,E]),R=H,L=!!F,P=s.useRef(L),(0,s.useEffect)(()=>{P.current&&(u=R,v(document.activeElement,u.current)||x(R.current)),P.current=!1},[R]),(0,s.useEffect)(()=>{if(H){let t=document.activeElement,n=null;if(v(t,H.current)){for(let o of N.traverse())v(t,o.scopeRef.current)&&(n=o);n===N.getTreeNode(H)&&(u=n.scopeRef)}return()=>{let t=N.getTreeNode(H)?.parent?.scopeRef;(H===u||w(H,u))&&(!t||N.getTreeNode(t))&&(u=t??null),N.removeTreeNode(H)}}},[H]);let $=(0,s.useMemo)(()=>{var t;return t=H,{focusNext(n={}){let o=t.current,{from:r,tabbable:i,wrap:s,accept:l}=n,a=r||document.activeElement,u=o?.[0].previousElementSibling,c=m(o),d;null!==c&&(d=y(c,{tabbable:i,accept:l},o??void 0)),void 0!==d&&null!==a&&null!=u&&(d.currentNode=v(a,o)?a:u);let f=d?.nextNode()??void 0;return!f&&s&&void 0!==d&&(null!=u&&(d.currentNode=u),f=d?.nextNode()??void 0),f&&b(f,!0),f},focusPrevious(n={}){let o=t.current,{from:r,tabbable:i,wrap:s,accept:l}=n,a=r||document.activeElement,u=o?.[o.length-1].nextElementSibling??null,c=m(o),d;null!==c&&(d=y(c,{tabbable:i,accept:l},o??void 0));let f=v(a,o)?a:u;d&&f&&(d.currentNode=f);let p=d?.previousNode()??void 0;return!p&&s&&d&&(u&&(d.currentNode=u),p=d.previousNode()),p&&b(p,!0),p},focusFirst(n={}){let o=t.current,{tabbable:r,accept:i}=n,s=m(o),l;null!==s&&(l=y(s,{tabbable:r,accept:i},o??void 0));let a=o?.[0].previousElementSibling;l&&a&&(l.currentNode=a);let u=l?.nextNode()??void 0;return u&&b(u,!0),u},focusLast(n={}){let o=t.current,{tabbable:r,accept:i}=n,s=m(o),l;null!==s&&(l=y(s,{tabbable:r,accept:i},o??void 0));let a=o?.[o.length-1].nextElementSibling;l&&a&&(l.currentNode=a);let u=l?.previousNode()??void 0;return void 0!==u&&b(u,!0),u}}},[]),B=(0,s.useMemo)(()=>({focusManager:$,parentNode:z}),[z,$]);return(0,l.jsxs)(a.Provider,{value:B,children:[(0,l.jsx)("span",{"data-focus-scope-start":!0,hidden:!0,ref:A}),S,(0,l.jsx)("span",{"data-focus-scope-end":!0,hidden:!0,ref:I})]})}var d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=`${d.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`;d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var p=d.join(':not([hidden]):not([tabindex="-1"]),');function m(t){return t?t[0].parentElement:null}function h(t){let n=N.getTreeNode(u??void 0);for(;n&&n.scopeRef!==t;){if(n.contain)return!1;n=n.parent}return!0}function v(t,n){return!!n?.some(n=>n.contains(t))}function g(t,n=null){if(t instanceof Element&&t.closest("[data-noteui-top-layer]"))return!0;for(let{scopeRef:o}of N.traverse(N.getTreeNode(n??void 0)))if(v(t,o.current))return!0;return!1}function E(t){return g(t,u)}function w(t,n){let o=N.getTreeNode(n??void 0)?.parent;for(;o;){if(o.scopeRef===t)return!0;o=o.parent}return!1}function b(t,n=!1){if(null==t||n){if(null!=t)try{t.focus()}catch{}}else try{(0,i.l)(t)}catch{}}function x(t,n=!0){let o=t?.[0].previousElementSibling??null,r=m(t),i;null!==r&&(i=y(r,{tabbable:n},t??void 0)),null!==o&&void 0!==i&&(i.currentNode=o);let s=i?.nextNode();if(n&&!s){let n=m(t);null!==n&&(i=y(n,{tabbable:!1},t??void 0)),null!==o&&void 0!==i&&(i.currentNode=o),s=i?.nextNode()}b(s)}function y(t,n,o){let r=n?.tabbable?p:f,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>n?.from?.contains(t)?NodeFilter.FILTER_REJECT:t.matches(r)&&function t(n,o){return"#comment"!==n.nodeName&&function(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return!1;let{display:n,visibility:o}
1=t.style,r="none"!==n&&"hidden"!==o&&"collapse"!==o;if(r){let{display:n,visibility:o}=t.ownerDocument.defaultView?.getComputedStyle(t)||{};r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(n)&&!n.hasAttribute("hidden")&&("DETAILS"!==n.nodeName||!o||"SUMMARY"===o.nodeName||n.hasAttribute("open"))&&(!n.parentElement||t(n.parentElement,n))}(t)&&(!o||v(t,o))&&(!n?.accept||n.accept(t))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return n?.from&&(i.currentNode=n.from),i}var T=class{scopeRef;nodeToRestore;parent;children=new Set;contain=!1;constructor(t){this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}},N=new class t{root;fastMap=new Map;constructor(){this.root=new T({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return t&&this.fastMap.get(t)}addTreeNode(t,n,o){let r=this.fastMap.get(n??null),i=new T({scopeRef:t});r?.addChild(i),i.parent=r,this.fastMap.set(t,i),o&&(i.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(null===t)return;let n=this.fastMap.get(t),o=n?.parent;for(let t of this.traverse())t!==n&&n?.nodeToRestore&&t.nodeToRestore&&n.scopeRef.current&&v(t.nodeToRestore,n.scopeRef.current)&&(t.nodeToRestore=n.nodeToRestore);let r=n?.children;void 0!==n&&o?.removeChild(n),r?.size!==void 0&&r?.size>0&&r?.forEach(t=>{o?.addChild(t)}),n?.scopeRef!==void 0&&this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(null!=t.scopeRef&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let n=new t;for(let t of this.traverse())t.parent&&n.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return n}}},38424:(t,n,o)=>{o.d(n,{U:()=>i});var r=o(19324);function i(t){let n=(0,r.useRef)(null),o=(0,r.useRef)(void 0),i=(0,r.useCallback)(n=>{if("function"==typeof t){let o=t(n);return()=>{"function"==typeof o?o():t(null)}}if(t)return t.current=n,()=>{t.current=null}},[t]);return(0,r.useMemo)(()=>({get current(){return n.current},set current(e){n.current=e,o.current&&=void o.current(),null!=e&&(o.current=i(e))}}),[i])}},41376:(t,n,o)=>{o.d(n,{A:()=>h});var r=o(53773),i=o(30933),s=o(59784),l=o(30127),a=o(22607),u=o(63875),c=o(19324),d=o(16239),f=o(32508),p=o(97360),m=(0,c.forwardRef)(function(t,n){let{children:o,isOpen:r,isFixedHeight:i,state:m,wrapperRef:h}=t,{modalProps:v,underlayProps:g}=(0,l.l)({...t,isDismissable:!0},m,n),E=(0,a.l)(),w="u">typeof window?Math.max(0,window.innerHeight-(E.offsetTop+E.height)):0,b={"--visual-viewport-height":`${E.height}px`,"--tray-bottom-inset":`${w}px`},x=(0,c.useMemo)(()=>(0,d.QP)(f(`
2        pointer-events-auto absolute [bottom:var(--tray-bottom-inset)] overflow-hidden rounded-t-2xl
3        flex w-full
4        flex-col bg-surface-normal transition-[opacity,transform] duration-200
5        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)]
6        ${r?"opacity-100 ease-in [transform:translateY(0)]":"opacity-0 ease-out [transform:translateY(100%)]"}
7        ${i?"[height:calc(var(--visual-viewport-height)_-_var(--tray-margin-top))]":""}
8        ${t.className||""}
9        `)),[r,i,t.className]);return(0,p.jsxs)("div",{ref:h,children:[(0,p.jsx)(s.B,{...g,isOpen:r}),(0,p.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 flex w-full justify-center",style:b,children:(0,p.jsxs)("div",{...v,className:x,ref:n,"data-testid":"tray",children:[(0,p.jsx)(u.R,{onDismiss:()=>m.close()}),o,(0,p.jsx)(u.R,{onDismiss:()=>m.close()})]})})]})}),h=(0,c.forwardRef)(function(t,n){let{children:o,state:s,...l}=t,a=(0,r.zD)(n),u=(0,c.useRef)(null);return(0,p.jsx)(i.A,{...l,isOpen:s.isOpen,nodeRef:u,children:(0,p.jsx)(m,{...t,ref:a,wrapperRef:u,children:o})})})},42271:(t,n,o)=>{o.d(n,{T:()=>i});var r=o(1130);function i(t){let[n,o]=(0,r.P)(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:n,setOpen:o,open(){o(!0)},close(){o(!1)},toggle(){o(!n)}}}},54375:(t,n,o)=>{o.d(n,{Se:()=>p,eV:()=>d,hJ:()=>f});var r=o(53003),i=o(40679),s=o(63349),l=o(34901),a=o(19324),u=o(97360),c=o(69645),d=(0,a.createContext)(null);function f(t){let n=(0,r.w)(),{portalContainer:o=n?null:document.body,isExiting:i}=t,[f,p]=(0,a.useState)(!1),m=(0,a.useMemo)(()=>({contain:f,setContain:p}),[f,p]);if(!o)return null;let h=t.children;return t.disableFocusManagement||(h=(0,u.jsx)(l.n1,{restoreFocus:!0,contain:(t.shouldContainFocus||f)&&!i,children:h})),h=(0,u.jsx)(d.Provider,{value:m,children:(0,u.jsx)(s.N,{children:h})}),c.createPortal(h,o)}function p(){let t=(0,a.useContext)(d)?.setContain;(0,i.N)(()=>{t?.(!0)},[t])}},59784:(t,n,o)=>{o.d(n,{B:()=>l});var r=o(19324),i=o(32508),s=o(97360),l=(0,r.forwardRef)(function({isOpen:t,isTransparent:n},o){return(0,s.jsx)("div",{ref:o,"data-name":"Underlay",className:i(`fixed inset-0 z-40 transition-opacity duration-200 ease-inOut ${t?"pointer-events-auto visible opacity-100":"invisible opacity-0"} ${n?"":"bg-surface-image-overlay-strong"}`)})})},60846:(t,n,o)=>{o.d(n,{A:()=>b});var r=o(53773),i=o(30933),s=o(59784),l=o(38424),a=o(59999),u=o(75875),c=o(54375),d=o(82952),f=o(89359),p=o(19324),m=o(63875),h=o(4
90679),v=o(16239),g=o(32508),E=o(97360),w={left:"right",right:"right",top:"bottom",bottom:"bottom"},b=(0,p.forwardRef)(function(t,n){let{children:o,isEmphasized:s,unsafeClassName:l,state:a,...u}=t,c=(0,r.zD)(n),d=(0,p.useRef)(null);return(0,E.jsx)(i.A,{...u,isOpen:a.isOpen,nodeRef:d,children:(0,E.jsx)(x,{ref:c,...t,wrapperRef:d,children:o})})}),x=(0,p.forwardRef)(function(t,n){let{children:o,isOpen:r,hideArrow:i,isNonModal:h,isEmphasized:b,isSubmenu:x,state:y,wrapperRef:N,unsafeClassName:R,unsafeStyle:L,onDismissButtonPress:C=()=>y.close()}=t,O=(0,l.U)(n),M=(0,p.useRef)(null),{popoverProps:P,arrowProps:S,underlayProps:D,placement:k}=function(t,n){let{triggerRef:o,popoverRef:r,groupRef:i,underlayRef:s,isNonModal:l,isSubmenu:m,isKeyboardDismissDisabled:h,shouldCloseOnInteractOutside:v,isDismissable:g=!l,...E}=t,w=(0,p.useContext)(c.eV);(0,p.useEffect)(()=>{w?.setContain(!l)},[w,l]);let{overlayProps:b,underlayProps:x}=(0,d.e)({isOpen:n.isOpen,onClose:n.close,shouldCloseOnBlur:g,isDismissable:!l||m,isKeyboardDismissDisabled:h,shouldCloseOnInteractOutside:v},i||r),{overlayProps:y,arrowProps:T,placement:N}
9=(0,f.v)({...E,targetRef:o,overlayRef:r,isOpen:n.isOpen,shouldUpdateOnScroll:!l,onClose:l&&!m?n.close:void 0});return(0,p.useEffect)(()=>{if(n.isOpen&&r.current)return l?(0,u.O)(i?.current??r.current):(0,u.h)([i?.current??r.current,s?.current].filter(Boolean),{shouldUseInert:!0})},[l,n.isOpen,r,i,s]),{popoverProps:(0,a.v)(b,y),arrowProps:T,underlayProps:x,placement:N}}({...t,popoverRef:O,underlayRef:M,maxHeight:void 0,isSubmenu:x},y),F=(0,p.useMemo)(()=>(0,v.QP)(g(`
10      absolute z-40 inline-flex flex-col
11      transition-[opacity,transform] duration-200 ease-inOut will-change-[opacity,transform]
12      ${r?"translate-x-0 translate-y-0 opacity-100":(()=>{switch(k){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"}})()}
13      ${!i&&"left"===k?"mr-[7px]":""}
14      ${!i&&"right"===k?"ml-[7px]":""}
15      ${!i&&"top"===k?"mb-[7px]":""}
16      ${!i&&"bottom"===k?"mt-[7px]":""}
17      ${R||""}
18      `)),[i,k,R,r]);return(0,E.jsxs)("div",{ref:N,children:[!h&&(0,E.jsx)(s.B,{ref:M,isTransparent:!0,...D,isOpen:r}),(0,E.jsxs)("div",{...P,style:{...L,...P.style},"data-name":"Popover",ref:O,className:F,role:"presentation","data-testid":"popover",children:[!h&&(0,E.jsx)(m.R,{onDismiss:()=>y.close()}),o,i?null:(0,E.jsx)(T,{isEmphasized:b,placement:k,arrowProps:S,direction:w[k]}),(0,E.jsx)(m.R,{onDismiss:C})]})]})}),y=Math.sqrt(2);function T({placement:t,arrowProps:n,style:o,isEmphasized:r}){let[i,s]=(0,p.useState)(13),[l,a]=(0,p.useState)(1),u=(0,p.useRef)(null);(0,h.N)(()=>{if(u.current){let t=window.getComputedStyle(u.current).getPropertyValue("--popover-tip-size");""!==t&&s(parseInt(t,10)/2);let n=window.getComputedStyle(u.current).getPropertyValue("--popover-tip-borderWidth");""!==n&&a(parseInt(n,10))}},[u]);let c="top"===t||"bottom"===t,d="left"===t||"top"===t,f=l*y,m=f/2,w=2*i+2*f,b=i+f,x=d?b:0,N=d?m:b-m,R=w/2,L=w-m,C=(0,p.useMemo)(()=>(0,v.QP)(g(`absolute [--popover-tip-borderWidth:1px] [--popover-tip-size:13px]
19      ${"top"===t?"top-full left-1/2 mb-[6px] ml-[-8px] -translate-y-px -scale-y-100":""}
20      ${"right"===t?"top-1/2 right-full mt-[-8px] ml-[6px] translate-x-px -scale-x-100":""}
21      ${"bottom"===t?"bottom-full left-1/2 mt-[6px] ml-[-8px] translate-y-px -scale-y-100":""}
22      ${"left"===t?"top-1/2 left-full mt-[-8px] mr-[6px] -translate-x-px -scale-x-100":""}
23      ${r?"fill-surface-primary":"fill-surface-normal stroke-border-weak"}
24      `)),[t,r]);return(0,E.jsx)("svg",{"aria-hidden":!0,width:Math.ceil(c?w:b),height:Math.ceil(c?b:w),style:o,className:C,ref:u,...n,children:(0,E.jsx)("path",{className:g("[-webkit-transform:translate(0,0)] [stroke-linecap:square] [stroke-linejoin:miter] [stroke-width:1px]"),d:(c?["M",m,x,"L",R,N,"L",L,x]:["M",x,m,"L",N,R,"L",x,L]).join(" ")})})}},60948:(t,n,o)=>{o.d(n,{a:()=>i,o:()=>s});var r=o(19324),i=new WeakMap;function s(t){let{triggerRef:n,isOpen:o,onClose:s}=t;(0,r.useEffect)(()=>{if(!o)return;let t=new Map;for(let o=n.current;o;o=o.parentElement)t.set(o,{left:o.scrollLeft,top:o.scrollTop});let r=o=>{let r=o.target;if(!n.current||r instanceof Node&&!r.contains(n.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=r===document||r===window?document.scrollingElement||document.documentElement:r instanceof Element?r:null;if(l){let n=t.get(l),o={left:l.scrollLeft,top:l.scrollTop};if(n?.left===o.left&&n.top===o.top)return;t.set(l,o)}let a=s||i.get(n.current);a&&a()};return window.addEventListener("scroll",r,!0),()=>{window.removeEventListener("scroll",r,!0)}},[o,s,n])}},63349:(t,n,o)=>{o.d(n,{N:()=>c,Y:()=>u});var r=o(59999),i=o(72312),s=o(41117),l=o(19324),a=o(97360),u=(0,l.forwardRef)(function({children:t,...n},o){let u=(0,l.useRef)(!1),c=(0,l.useContext)(s.F),d=(0,r.v)(c||{},{...n,ref:o||c?.ref,register(){u.current=!0,c?.register&&c.register()}});return(0,i.w)(c,o),(0,l.useEffect)(()=>{u.current||=(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),!0)},[]),(0,a.jsx)(s.F.Provider,{value:d,children:t})});function c({children:t}){let n=(0,l.useMemo)(()=>({register:()=>{}}),[]);return(0,a.jsx)(s.F.Provider,{value:n,children:t})}},63875:(t,n,o)=>{o.d(n,{R:()=>l});var r=o(79659),i=o(99976),s=o(97360);function l(t){let{onDismiss:n,...o}=t,l=(0,r.b)(o,"閉じる");return(0,s.jsx)(i.s,{"data-id":"VisuallyHidden",isFocusable:!0,children:(0,s.jsx)("button",{...l,tabIndex:-1,onClick:()=>{n&&n()}})})}},64630:(t,n,o)=>{o.d(n,{w:()=>i});var r=o(19324);function i(t){let{ref:n,onResize:o}=t;(0,r.useEffect)(()=>{let t=n?.current;if(t)if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};else{let n=new window.ResizeObserver(t=>{t.length&&o()});return n.observe(t),()=>{t&&n.unobserve(t)}}},[o,n])}},75875:(t,n,o)=>{o.d(n,{O:()=>u,h:()=>a});var r=o(75544),i="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,s=new WeakMap,l=[];function a(t,n){let o=(0,r.mD)(t?.[0]),a=n instanceof o.Element?{root:n}:n,u=a?.root??document.body,c=a?.shouldUseInert&&i,d=new Set(t),f=new Set,p=(t,n)=>{c&&t instanceof o.HTMLElement?t.inert=n:n?t.setAttribute("aria-hidden","true"):(t.removeAttribute("aria-hidden"),t instanceof o.HTMLElement&&(t.inert=!1))},m=t=>{for(let n of t.querySelectorAll("[data-live-announcer], [data-noteui-top-layer]"))d.add(n);let n=t=>{if(f.has(t)||d.has(t)||t.parentElement&&f.has(t.parentElement)&&"row"!==t.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let n of d)if(t.contains(n))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n}),r=n(t);if(r===NodeFilter.FILTER_ACCEPT&&h(t),r!==NodeFilter.FILTER_REJECT){let t=o.nextNode();for(;null!=t;)h(t),t=o.nextNode()}},h=t=>{let n=s.get(t)??0;(c&&t instanceof o.HTMLElement?t.inert:"true"===t.getAttribute("aria-hidden"))&&0===n||(0===n&&p(t,!0),f.add(t),s.set(t,n+1))};l.length&&l[l.length-1].disconnect(),m(u);let v=new MutationObserver(t=>{for(let n of t)if("childList"===n.type&&![...d,...f].some(t=>t.contains(n.target)))for(let t of n.addedNodes)(t instanceof HTMLElement||t instanceof SVGElement)&&("true"===t.dataset.liveAnnouncer||"true"===t.dataset.reactAriaTopLayer)?d.add(t):t instanceof Element&&m(t)});v.observe(u,{childList:!0,subtree:!0});let g={visibleNodes:d,hiddenNodes:f,observe(){v.observe(u,{childList:!0,subtree:!0})},disconnect(){v.disconnect()}};return l.push(g),()=>{for(let t of(v.disconnect(),f)){let n=s.get(t);null!=n&&(1===n?(p(t,!1),s.delete(t)):s.set(t,n-1))}g===l[l.length-1]?(l.pop(),l.length&&l[l.length-1].observe()):l.splice(l.indexOf(g),1)}}function u(t){let n=l[l.length-1];if(n&&!n.visibleNodes.has(t))return n.visibleNodes.add(t),()=>{n.visibleNodes.delete(t)}}},82644:(t,n,o)=>{o.d(n,{o:()=>s});var r=o(53003),i=o(5476);function s(){return!((0,r.w)()||typeof window>"u")&&window.screen.width<i.fi.md}},82952:(t,n,o)=>{o.d(n,{e:()=>u});var r=o(64272),i=o(12274),s=o(34901),l=o(19324),a=[];function u(t,n){let{onClose:o,shouldCloseOnBlur:u,isOpen:c,isDismissable:d=!1,isKeyboardDismissDisabled:f=!1,shouldCloseOnInteractOutside:p}=t;(0,l.useEffect)(()=>(c&&a.push(n),()=>{let t=a.indexOf(n);t>=0&&a.splice(t,1)}),[c,n]);let m=(0,l.useRef)(null),h=(0,l.useCallback)(()=>{null!=m.current&&(cancelAnimationFrame(m.current),m.current=null)},[]);(0,l.useEffect)(()=>h,[h]),(0,l.useEffect)(()=>{c||h()},[c,h]);let v=(0,l.useCallback)(t=>{a[a.length-1]===n&&o&&(h(),m.current=requestAnimationFrame(()=>{m.current=null,a[a.length-1]===n&&(!t||t())&&o()}))},[n,o,h]);(0,l.useEffect)(()=>
24{if(!c||f)return;let t=n.current?.ownerDocument??document,o=o=>{if("Escape"!==o.key||o.isComposing||o.defaultPrevented||a[a.length-1]!==n)return;let r=o.target instanceof Element?o.target.closest("button"):null,i=r&&!n.current?.contains(r)&&r.getAttribute("aria-controls")?.split(/\s+/).some(o=>{let r=t.getElementById(o);return r&&n.current?.contains(r)});(o.target===t.body||o.target===t.documentElement||i)&&v(()=>!o.defaultPrevented)};return t.addEventListener("keydown",o,!0),()=>t.removeEventListener("keydown",o,!0)},[c,f,n,v]),(0,i.$)({ref:n,isDisabled:!c,onInteractOutside:d?t=>{let o=t.target;(!p||o&&p(o))&&(a[a.length-1]===n&&(t.stopPropagation(),t.preventDefault()),v())}:void 0,onInteractOutsideStart:t=>{let o=t.target;(!p||o&&p(o))&&a[a.length-1]===n&&(t.stopPropagation(),t.preventDefault())}});let{focusWithinProps:g}=(0,r.R)({isDisabled:!u,onBlurWithin:t=>{!t.relatedTarget||(0,s.Pu)(t.relatedTarget)||(!p||p(t.relatedTarget))&&o?.()}});return{overlayProps:{onKeyDown:t=>{"Escape"!==t.key||f||t.nativeEvent.isComposing||(t.stopPropagation(),t.preventDefault(),v())},...g},underlayProps:{onPointerDown:t=>{t.target===t.currentTarget&&t.preventDefault()}}}}},89359:(t,n,o)=>{o.d(n,{v:()=>C});var r=o(40679),i=o(64630),s=o(50018);function l(t,n=-1/0,o=1/0){return Math.min(Math.max(t,n),o)}var a={top:"top",bottom:"top",left:"left",right:"left"},u={top:"bottom",bottom:"top",left:"right",right:"left"},c={top:"left",left:"top"},d={top:"height",left:"width"},f={width:"totalWidth",height:"totalHeight"},p={},m="u">typeof window?window.visualViewport:void 0;function h(t){let n=0,o=0,r=0,i=0,l=0,a=0,u={},c=(m?.scale??1)>1;if("BODY"===t.tagName){let s=document.documentElement;r=s.clientWidth,i=s.clientHeight,n=m?.width??r,o=m?.height??i,u.top=s.scrollTop||t.scrollTop,u.left=s.scrollLeft||t.scrollLeft,u.top=Math.max(s.scrollTop,t.scrollTop,window.pageYOffset||0),u.left=Math.max(s.scrollLeft,t.scrollLeft,window.pageXOffset||0),m&&(l=m.offsetTop,a=m.offsetLeft)}else({width:n,height:o,top:l,left:a}=x(t,!1)),u.top=t.scrollTop,u.left=t.scrollLeft,r=n,i=o;return(0,s.Tc)()&&("BODY"===t.tagName||"HTML"===t.tagName)&&c&&(u.top=0,u.left=0,l=m?.pageTop??0,a=m?.pageLeft??0),{width:n,height:o,totalWidth:r,totalHeight:i,scroll:u,top:l,left:a}}function v(t,n,o,r,i,s,l){let u=i.scroll[t]??0,c=r[d[t]],f=r.scroll[a[t]]+s,p=c+r.scroll[a[t]]-s,m=n-u+l[t]-r[a[t]],h=n-u+o+l[t]-r[a[t]];return m<f?f-m:h>p?Math.max(p-h,f-m):0}function g(t){if(p[t])return p[t];let[n,o]=t.split(" "),r=a[n]||"right",i=c[r];a[o]||(o="center");let s=d[r],l=d[i];return p[t]={placement:n,crossPlacement:o,axis:r,crossAxis:i,size:s,crossSize:l},p[t]}function E(t,n,o,r,i,s,a,c,d,p){let{placement:m,crossPlacement:h,axis:v,crossAxis:g,size:E,crossSize:w}=r,b={};b[g]=t[g]??0,"center"===h?b[g]+=((t[w]??0)-(o[w]??0))/2:h!==g&&(b[g]+=(t[w]??0)-(o[w]??0)),b[g]+=s;let x=t[g]-o[w]+d+p,y=t[g]+t[w]-d-p;if(b[g]=l(b[g],x,y),m===v){let o=c?a[E]:n[f[E]];b[u[v]]=Math.floor(o-t[v]+i)}else b[v]=Math.floor(t[v]+t[E]+i);return b}function w(t,n,o,r,i,s){let{placement:l,axis:a,size:c}=s;return l===a?Math.max(0,o[a]-t[a]-(t.scroll[a]??0)+n[a]-(r[a]??0)-r[u[a]]-i):Math.max(0,t[c]+t[a]+t.scroll[a]-n[a]-o[a]-o[c]-(r[a]??0)-r[u[a]]-i)}function b(t,n){let{top:o,left:r,width:i,height:s}=t.getBoundingClientRect();return n&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,s=t.offsetHeight),{top:o,left:r,width:i,height:s}}function x(t,n){let{top:o,left:r,width:i,height:s}=b(t,n),{scrollTop:l,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:o+l-u,left:r+a-c,width:i,height:s}}function y(t,n,o){let r=window.getComputedStyle(t),i;if("fixed"===r.position)i=b(t,o);else{i=x(t,o);let r=x(n,o),s=window.getComputedStyle(n);r.top+=(parseInt(s.borderTopWidth,10)||0)-n.scrollTop,r.left+=(parseInt(s.borderLeftWidth,10)||0)-n.scrollLeft,i.top-=r.top,i.left-=r.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function T(t){let n=window.getComputedStyle(t);return"none"!==n.transform||/transform|perspective/.test(n.willChange)||"none"!==n.filter||"paint"===n.contain||"backdropFilter"in n&&"none"!==n.backdropFilter||"WebkitBackdropFilter"in n&&"none"!==n.WebkitBackdropFilter}var N=o(60948),R=o(19324),L="u">
24typeof window?window.visualViewport:void 0;function C(t){var n;let{arrowSize:o,targetRef:s,overlayRef:c,arrowRef:d,scrollRef:p=c,placement:m="bottom",containerPadding:C=12,shouldFlip:O=!0,boundaryElement:M="u">typeof document?document.body:null,offset:P=0,crossOffset:S=0,shouldUpdatePosition:D=!0,shouldUpdateOnScroll:k=!0,isOpen:F=!0,onClose:A,maxHeight:I,arrowBoundaryOffset:H=0}=t,[j,z]=(0,R.useState)(void 0),$=k?[D,m,c.current,s?.current,p.current,C,O,M,P,S,F,k,I,H,o]:[D,F],B=(0,R.useCallback)(()=>{if(!1===D||!F||!c.current||!s.current||!M)return;let t=null;if(p.current?.contains(document.activeElement)){let n=document.activeElement?.getBoundingClientRect(),o=p.current.getBoundingClientRect();(t={type:"top",offset:(n?.top??0)-o.top}).offset>o.height/2&&(t.type="bottom",t.offset=(n?.bottom??0)-o.bottom)}let n=c.current;!I&&c.current&&(n.style.top="0px",n.style.bottom="",n.style.maxHeight=`${window.visualViewport?.height??window.innerHeight}px`);let r=function(t){let n,{placement:o,targetNode:r,overlayNode:i,scrollNode:s,padding:c,shouldFlip:d,boundaryElement:p,offset:m,crossOffset:b,maxHeight:N,arrowSize:R=0,arrowBoundaryOffset:L=0}=t,C=i instanceof HTMLElement?function(t){let n=t.offsetParent;if(n&&n===document.body&&"static"===window.getComputedStyle(n).position&&!T(n)&&(n=document.documentElement),null==n)for(n=t.parentElement;n&&!T(n);)n=n.parentElement;return n||document.documentElement}(i):document.documentElement,O=C===document.documentElement,M=window.getComputedStyle(C).position,P=O?x(r,!1):y(r,C,!1);if(!O){let{marginTop:t,marginLeft:n}=window.getComputedStyle(r);P.top+=parseInt(t,10)||0,P.left+=parseInt(n,10)||0}let S=x(i,!0),D={top:parseInt((n=window.getComputedStyle(i)).marginTop,10)||0,bottom:parseInt(n.marginBottom,10)||0,left:parseInt(n.marginLeft,10)||0,right:parseInt(n.marginRight,10)||0};S.width+=(D.left??0)+(D.right??0),S.height+=(D.top??0)+(D.bottom??0);let k={top:s.scrollTop,left:s.scrollLeft,width:s.scrollWidth,height:s.scrollHeight},F=h(p),A=h(C),I="BODY"===p.tagName?x(C,!1):y(C,p,!1);return"HTML"===C.tagName&&"BODY"===p.tagName&&(A.scroll.top=0,A.scroll.left=0),function(t,n,o,r,i,s,c,d,p,m,h,b,x,y,T,N){var R,L,C;let O,M,P,S=g(t),{size:D,crossAxis:k,crossSize:F}=S,{placement:A,crossPlacement:I}=S,H=E(n,d,o,S,h,b,m,x,T,N),j=h,z=w(d,m,n,i,s+h,S);if(c&&r[D]>z){let t=g(`${u[A]} ${I}`),r=E(n,d,o,t,h,b,m,x,T,N);w(d,m,n,i,s+h,t)>z&&(S=t,H=r,j=h)}let $="bottom";"top"===S.axis?"top"===S.placement?$="top":"bottom"===S.placement&&($="bottom"):"top"===S.crossAxis&&("top"===S.crossPlacement?$="bottom":"bottom"===S.crossPlacement&&($="top"));let B=v(k,H[k],o[F],d,p,s,m);H[k]+=B;let W=(R=H,L=o.height,C=$,O=x?m.height:d[f.height],M=null==R.top?m.top+(O-(R.bottom??0)-L):m.top+R.top,P="top"===C?Math.max(0,M+L-(d.top+(d.scroll.top??0))-((i.top??0)+(i.bottom??0)+s)):Math.max(0,d.height+d.top+(d.scroll.top??0)-M-((i.top??0)+(i.bottom??0)+s)),Math.min(d.height-2*s,P));y&&y<W&&(W=y),o.height=Math.min(o.height,W),B=v(k,(H=E(n,d,o,S,j,b,m,x,T,N))[k],o[F],d,p,s,m),H[k]+=B;let _={},K=n[k]-H[k]-i[a[k]],Y=K+.5*n[F],V=T/2+N,U="left"===a[k]?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),q=o[F]-U-T/2-N;_[k]=l(l(Y,n[k]+T/2-(H[k]+i[a[k]]),n[k]+n[F]-T/2-(H[k]+i[a[k]])),V,q);let{placement:J,crossPlacement:X}=S;A=J,I=X,T?K=_[k]:"right"===I?K+=n[F]:"center"===I&&(K+=n[F]/2);let G="left"===A||"top"===A?o[D]:0,Q={x:"top"===A||"bottom"===A?K:G,y:"left"===A||"right"===A?K:G};return{position:H,maxHeight:W,arrowOffsetLeft:_.left,arrowOffsetTop:_.top,placement:A,triggerAnchorPoint:Q}}(o,P,S,k,D,c,d,F,A,I,m,b,!!M&&"static"!==M,N,R,L)}({placement:m,overlayNode:c.current,targetNode:s.current,scrollNode:p.current||c.current,padding:C,shouldFlip:O,boundaryElement:M,offset:P,crossOffset:S,maxHeight:I,arrowSize:o??(d?.current?b(d.current,!0).width:0),arrowBoundaryOffset:H});if(r.position){for(let t of(n.style.top="",n.style.bottom="",n.style.left="",n.style.right="",Object.keys(r.position)))n.style[t]=`${r.position[t]}px`;if(n.style.maxHeight=null==r.maxHeight?"":`${r.maxHeight}px`,t&&document.activeElement&&p.current){let n=document.activeElement.getBoundingClientRect(),o=p.current.getBoundingClientRect(),r=n[t.type]-o[t.type];p.current.scrollTop+=r-t.offset}z(r)}},$);(0,r.N)(B,$),n=k?B:()=>{},(0,r.N)(()=>(window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}),[n]),(0,i.w)({ref:c,onResize:B}),(0,i.w)({ref:s,onResize:B});let W=(0,R.useRef)(!1);(0,r.N)(()=>
24{if(!k)return;let t,n=()=>{W.current=!0,clearTimeout(t),t=setTimeout(()=>{W.current=!1},500),B()},o=()=>{W.current&&n()};return L?.addEventListener("resize",n),L?.addEventListener("scroll",o),()=>{L?.removeEventListener("resize",n),L?.removeEventListener("scroll",o)}},[B,k]),(0,r.N)(()=>{if(!F||!k)return;let t,n=window.pageYOffset||document.documentElement.scrollTop,o=window.pageXOffset||document.documentElement.scrollLeft,r=()=>{let r=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,s=Math.abs(i-o);(Math.abs(r-n)>50||s>50)&&(clearTimeout(t),t=setTimeout(()=>{B(),n=r,o=i},100))};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r),clearTimeout(t)}},[F,k,B]);let _=(0,R.useCallback)(()=>{W.current||A?.()},[A,W]);return(0,N.o)({triggerRef:s,isOpen:F,onClose:k&&A?_:void 0}),{overlayProps:{style:{position:j?"absolute":"fixed",top:j?void 0:0,left:j?void 0:0,...j?.position,maxHeight:j?.maxHeight??"100vh"}},placement:j?.placement,triggerAnchorPoint:j?.triggerAnchorPoint??void 0,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:j?.arrowOffsetLeft,top:j?.arrowOffsetTop}},updatePosition:B}}},99976:(t,n,o)=>{o.d(n,{B:()=>u,s:()=>c});var r=o(59999),i=o(13875),s=o(19324),l=o(97360),a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function u(t={}){let{style:n,isFocusable:o}=t,[r,l]=(0,s.useState)(!1),{focusProps:c}=(0,i.i)({isDisabled:!o,onFocusChange:l}),d=(0,s.useMemo)(()=>r?n:n?{...a,...n}:a,[r]);return{visuallyHiddenProps:{...c,style:d}}}function c(t){let{children:n,elementType:o="div",isFocusable:i,style:s,...a}=t,{visuallyHiddenProps:c}=u(t);return(0,l.jsx)(o,{...(0,r.v)(a,c),children:n})}}}]);

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.