PageSourceSearch

https://static.valley.town/builds/valley-ai/20261006095219/_next/static/chunks/1ifwrkvvr3j8t.js

js valley.town collected 2026-10-06 17:47:11 UTC 26,236 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f45edb84-368f-cd26-e1ed-386febe8eabd")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,964930,e=>{"use strict";var t=e.i(363600),n=e.i(888659),r=(e.i(425017),'input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])'),o="u"<typeof Element,l=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function e(t,n){void 0===n&&(n=!0);var r,o=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},a=function(e,t,n){if(u(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&l.call(e,r)&&o.unshift(e),o=o.filter(n)},s=function e(t,n,o){for(var i=[],c=Array.from(t);c.length;){var a=c.shift();if(!u(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),f=e(s.length?s:a.children,!0,o);o.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else{l.call(a,r)&&o.filter(a)&&(n||!t.includes(a))&&i.push(a);var d=a.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(a),v=!u(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(d&&v){var m=e(!0===d?a.children:d.children,!0,o);o.flatten?i.push.apply(i,m):i.push({scopeParent:a,candidates:m})}else c.unshift.apply(c,a.children)}}return i},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!f(e)?0:e.tabIndex},v=function(e,t){var n=d(e);return n<0&&t&&!f(e)?0:n},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},g=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},h=function(e){if(!e.name)return!0;var t,n=e.form||i(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=g(t,e.form);return!o||o===e},E=function(e){return p(e)&&"radio"===e.type&&!h(e)},y=function(e){var t,n,r,o,l,u,c,a=e&&i(e),s=null==(t=a)?void 0:t.host,f=!1;if(a&&a!==e)for(f=!!(null!=(n=s)&&null!=(r=n.ownerDocument)&&r.contains(s)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!f&&s;)f=!!(null!=(u=s=null==(l=a=i(s))?void 0:l.host)&&null!=(c=u.ownerDocument)&&c.contains(s));return f},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},w=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=l.call(e,"details>summary:first-of-type")?e.parentElement:e;if(l.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var u=e;e;){var c=e.parentElement,a=i(e);if(c&&!c.shadowRoot&&!0===r(c))return b(e);e=e.assignedSlot?e.assignedSlot:c||a===e.ownerDocument?c:a.host}e=u}if(y(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
2,R=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!l.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},x=function(e,t){return!(t.disabled||u(t)||p(t)&&"hidden"===t.type||w(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||R(t))},C=function(e,t){return!(E(t)||0>d(t))&&!!x(e,t)},S=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},L=function e(t){var n=[],r=[];return t.forEach(function(t,o){var l=!!t.scopeParent,i=l?t.scopeParent:t,u=v(i,l),c=l?e(t.candidates):i;0===u?l?n.push.apply(n,c):n.push(i):r.push({documentOrder:o,tabIndex:u,item:t,isScope:l,content:c})}),r.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},T=function(e,t){return L((t=t||{}).getShadowRoot?s([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:S}):a(e,t.includeContainer,C.bind(null,t)))};function k(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.isShadowRoot)(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function A(e){return"composedPath"in e?e.composedPath()[0]:e.target}function P(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function M(e){return(null==e?void 0:e.ownerDocument)||document}function N(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...N(e,t.id,n)])}function I(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var D="u">typeof document?t.useLayoutEffect:function(){};function O(e){let n=t.useRef(e);return D(()=>{n.current=e}),n}let B={...t}.useInsertionEffect||(e=>e());function j(e){let n=t.useRef(()=>{});return B(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}let _=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function F(e,t){let n=T(e,_()),r=n.length;if(0===r)return;let o=function(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}(M(e)),l=n.indexOf(o);return n[-1===l?1===t?0:r-1:l+t]}function K(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!k(n,r)}function U(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var W=e.i(193711),X=e.i(873950),H=e.i(701612);e.i(422957);let Y="active",q="selected",z={...t},V=!1,$=0,G=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+$++,Q=z.useId||function(){let[e,n]=t.useState(()=>V?G():void 0);return D(()=>{null==e&&n(G())},[]),t.useEffect(()=>{V=!0},[]),e},Z=t.forwardRef(function(e,r){let{context:{placement:o,elements:{floating:l},middlewareData:{arrow:i,shift:u}},width:c=14,height:a=7,tipRadius:s=0,strokeWidth:f=0,staticOffset:d,stroke:v,d:m,style:{transform:p,...g}={},...h}=e,E=Q(),[y,b]=t.useState(!1);if(D(()=>{l&&"rtl"===(0,n.getComputedStyle)(l).direction&&b(!0)},[l]),!l)return null;let[w,R]=o.split("-"),x="top"===w||"bottom"===w,C=d;(x&&null!=u&&u.x||!x&&null!=u&&u.y)&&(C=null);let S=2*f,L=S/2,T=c/2*(-(s/8)+1),k=a/2*s/4,A=!!m,P=C&&"end"===R?"bottom":"top",M=C&&"end"===R?"right":"left";C&&y&&(M="end"===R?"left":"right");let N=(null==i?void 0:i.x)!=null?C||i.x:"",I=(null==i?void 0:i.y)!=null?C||i.y:"",O=m||"M0,0 H"+c+(" L"+(c-T))+","+(a-k)+(" Q"+c/2+","+a+" "+T)+","+(a-k)+" Z",B={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,W.jsxs)("svg",{...h,"aria-hidden":!0,ref:r,width:A?c:c+S,height:c,viewBox:"0 0 "+c+" "+(a>c?a:c),style:{position:"absolute",pointerEvents:"none",[M]:N,[P]:I,[w]:x||A?"100%":"calc(100% - "+S/2+"px)",transform:[B,p].filter(e=>!!e).join(" "),...g},children:[S>0&&(0,W.jsx)("path",{clipPath:"url(#"+E+")",fill:"none",stroke:v,strokeWidth:S+ +!m,d:O}),(0,W.jsx)("path",{stroke:S&&!m?h.fill:"none",d:O}),(0,W.jsx)("clipPath",{id:E,children:(0,W.jsx)("rect",{x:-L,y:L*(A?-1:1),width:c+S,height:c})})]})}),J=t.createContext(null),ee=t.createContext(null),et=()=>{var e;return(null==(e=t.useContext(J))?void 0:e.id)||null};function en(e){return"data-floating-ui-"+e}function er(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let eo=en("safe-polygon");function el(e,t,n){if(n&&!I(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ei(e){return"function"==typeof e?e():e}function eu(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
2if(r&&(0,n.isShadowRoot)(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let ec={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},ea=t.forwardRef(function(e,n){let[r,o]=t.useState();D(()=>{/apple/i.test(navigator.vendor)&&o("button")},[]);let l={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[en("focus-guard")]:"",style:ec};return(0,W.jsx)("span",{...e,...l})}),es=t.createContext(null),ef=en("portal"),ed={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ev={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},em=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ep(e,t,n){let r=new Map,o="item"===n,l=e;if(o&&e){let{[Y]:t,[q]:n,...r}=e;l=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...l,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,l]=t;if(!(o&&[Y,q].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof l){var i;null==(i=r.get(n))||i.push(l),e[n]=function(){for(var e,t=arguments.length,o=Array(t),l=0;l<t;l++)o[l]=arguments[l];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=l}),e),{})}}function eg(e,t){let[n,r]=e,o=!1,l=t.length;for(let e=0,i=l-1;e<l;i=e++){let[l,u]=t[e]||[0,0],[c,a]=t[i]||[0,0];u>=r!=a>=r&&n<=(c-l)*(r-u)/(a-u)+l&&(o=!o)}return o}e.s(["FloatingArrow",0,Z,"FloatingPortal",0,function(e){let{children:r,id:o,root:l,preserveTabOrder:i=!0}=e,u=function(e){void 0===e&&(e={});let{id:r,root:o}=e,l=Q(),i=t.useContext(es),[u,c]=t.useState(null),a=t.useRef(null);return D(()=>()=>{null==u||u.remove(),queueMicrotask(()=>{a.current=null})},[u]),D(()=>{if(!l||a.current)return;let e=r?document.getElementById(r):null;if(!e)return;let t=document.createElement("div");t.id=l,t.setAttribute(ef,""),e.appendChild(t),a.current=t,c(t)},[r,l]),D(()=>{if(null===o||!l||a.current)return;let e=o||(null==i?void 0:i.portalNode);e&&!(0,n.isNode)(e)&&(e=e.current),e=e||document.body;let t=null;r&&((t=document.createElement("div")).id=r,e.appendChild(t));let u=document.createElement("div");u.id=l,u.setAttribute(ef,""),(e=t||e).appendChild(u),a.current=u,c(u)},[r,o,l,i]),u}({id:o,root:l}),[c,a]=t.useState(null),s=t.useRef(null),f=t.useRef(null),d=t.useRef(null),v=t.useRef(null),m=null==c?void 0:c.modal,p=null==c?void 0:c.open,g=!!c&&!c.modal&&c.open&&i&&!!(l||u);return t.useEffect(()=>{if(u&&i&&!m)return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){u&&K(e)&&("focusin"===e.type?U:function(e){T(e,_()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(u)}},[u,i,m]),t.useEffect(()=>{!u||p||U(u)},[p,u]),(0,W.jsxs)(es.Provider,{value:t.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:v,portalNode:u,setFocusManagerState:a}),[i,u]),children:[g&&u&&(0,W.jsx)(ea,{"data-type":"outside",ref:s,onFocus:e=>{var t,n;if(K(e,u))null==(t=d.current)||t.focus();else{let e=F(M(n=c?c.domReference:null).body,-1)||n;null==e||e.focus()}}}),g&&u&&(0,W.jsx)("span",{"aria-owns":u.id,style:ec}),u&&X.createPortal(r,u),g&&u&&(0,W.jsx)(ea,{"data-type":"outside",ref:f,onFocus:e=>{var t,n;if(K(e,u))null==(t=v.current)||t.focus();else{let t=F(M(n=c?c.domReference:null).body,1)||n;null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})},"safePolygon",0,function(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=e,l={current:-1},i=!1,u=null,c=null,a="u">typeof performance?performance.now():0,s=e=>{let{x:r,y:s,placement:f,elements:d,onClose:v,nodeId:m,tree:p}=e;return function(e){function g(){er(l),v()}if(er(l),!d.domReference||!d.floating||null==f||null==r||null==s)return;let{clientX:h,clientY:E}=e,y=[h,E],b="composedPath"in e?e.composedPath()[0]:e.target,w="mouseleave"===e.type,R=eu(d.floating,b),x=eu(d.domReference,b),C=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),L=f.split("-")[0],T=r>S.right-S.width/2,k=s>S.bottom-S.height/2,A=y[0]>=C.x&&y[0]<=C.x+C.width&&y[1]>=C.y&&y[1]<=C.y+C.height,P=S.width>C.width,M=S.height>C.height,N=(P?C:S).left,I=(P?C:S).right,D=(M?C:S).top,O=(M?C:S).bottom;
2if(R&&(i=!0,!w))return;if(x&&(i=!1),x&&!w){i=!0;return}if(w&&(0,n.isElement)(e.relatedTarget)&&eu(d.floating,e.relatedTarget)||p&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(p.nodesRef.current,m).length)return;if("top"===L&&s>=C.bottom-1||"bottom"===L&&s<=C.top+1||"left"===L&&r>=C.right-1||"right"===L&&r<=C.left+1)return g();let B=[];switch(L){case"top":B=[[N,C.top+1],[N,S.bottom-1],[I,S.bottom-1],[I,C.top+1]];break;case"bottom":B=[[N,S.top+1],[N,C.bottom-1],[I,C.bottom-1],[I,S.top+1]];break;case"left":B=[[S.right-1,O],[S.right-1,D],[C.left+1,D],[C.left+1,O]];break;case"right":B=[[C.right-1,O],[C.right-1,D],[S.left+1,D],[S.left+1,O]]}if(!eg([h,E],B)){if(i&&!A)return g();if(!w&&o){let t=function(e,t){let n=performance.now(),r=n-a;if(null===u||null===c||0===r)return u=e,c=t,a=n,null;let o=e-u,l=t-c,i=Math.sqrt(o*o+l*l);return u=e,c=t,a=n,i/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}eg([h,E],function(e){let[n,r]=e;switch(L){case"top":{let e=[[S.left,T||P?S.bottom-t:S.top],[S.right,T?P?S.bottom-t:S.top:S.bottom-t]];return[[P?n+t/2:T?n+4*t:n-4*t,r+t+1],[P?n-t/2:T?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[S.left,T||P?S.top+t:S.bottom],[S.right,T?P?S.top+t:S.bottom:S.top+t]];return[[P?n+t/2:T?n+4*t:n-4*t,r-t],[P?n-t/2:T?n+4*t:n-4*t,r-t],...e]}case"left":return[[k||M?S.right-t:S.left,S.top],[k?M?S.right-t:S.left:S.right-t,S.bottom],[n+t+1,M?r+t/2:k?r+4*t:r-4*t],[n+t+1,M?r-t/2:k?r+4*t:r-4*t]];case"right":{let e=[[k||M?S.left+t:S.right,S.top],[k?M?S.left+t:S.right:S.left+t,S.bottom]];return[[n-t,M?r+t/2:k?r+4*t:r-4*t],[n-t,M?r-t/2:k?r+4*t:r-4*t],...e]}}}([r,s]))?!i&&o&&(l.current=window.setTimeout(g,40)):g()}}};return s.__options={blockPointerEvents:r},s},"useDismiss",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:l,elements:i,dataRef:u}=e,{enabled:c=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:f="pointerdown",referencePress:d=!1,referencePressEvent:v="pointerdown",ancestorScroll:m=!1,bubbles:p,capture:g}=r,h=t.useContext(ee),E=j("function"==typeof s?s:()=>!1),y="function"==typeof s?E:s,b=t.useRef(!1),{escapeKey:w,outsidePress:R}=em(p),{escapeKey:x,outsidePress:C}=em(g),S=t.useRef(!1),L=j(e=>{var t;if(!o||!c||!a||"Escape"!==e.key||S.current)return;let n=null==(t=u.current.floatingContext)?void 0:t.nodeId,r=h?N(h.nodesRef.current,n):[];if(!w&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}l(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),T=j(e=>{var t;let n=()=>{var t;L(e),null==(t=A(e))||t.removeEventListener("keydown",n)};null==(t=A(e))||t.addEventListener("keydown",n)}),I=j(e=>{var t;let r=u.current.insideReactTree;u.current.insideReactTree=!1;let o=b.current;if(b.current=!1,"click"===f&&o||r||"function"==typeof y&&!y(e))return;let c=A(e),a="["+en("inert")+"]",s=M(i.floating).querySelectorAll(a),d=(0,n.isElement)(c)?c:null;for(;d&&!(0,n.isLastTraversableNode)(d);){let e=(0,n.getParentNode)(d);if((0,n.isLastTraversableNode)(e)||!(0,n.isElement)(e))break;d=e}if(s.length&&(0,n.isElement)(c)&&!c.matches("html,body")&&!k(c,i.floating)&&Array.from(s).every(e=>!k(d,e)))return;if((0,n.isHTMLElement)(c)&&B){let t=(0,n.isLastTraversableNode)(c),r=(0,n.getComputedStyle)(c),o=/auto|scroll/,l=t||o.test(r.overflowX),i=t||o.test(r.overflowY),u=l&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,a=i&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,s="rtl"===r.direction,f=a&&(s?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),d=u&&e.offsetY>c.clientHeight;if(f||d)return}let v=null==(t=u.current.floatingContext)?void 0:t.nodeId,m=h&&N(h.nodesRef.current,v).some(t=>{var n;return P(e,null==(n=t.context)?void 0:n.elements.floating)});if(P(e,i.floating)||P(e,i.domReference)||m)return;let p=h?N(h.nodesRef.current,v):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}l(!1,e,"outside-press")}),D=j(e=>{var t;let n=()=>{var t;I(e),null==(t=A(e))||t.removeEventListener(f,n)};null==(t=A(e))||t.addEventListener(f,n)});t.useEffect(()=>{if(!o||!c)return;u.current.__escapeKeyBubbles=w,u.current.__outsidePressBubbles=R;let e=-1;function t(e){l(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),S.current=!0}function s(){e=window.setTimeout(()=>{S.current=!1},5*!!(0,n.isWebKit)())}let d=M(i.floating);a&&(d.addEventListener("keydown",x?T:L,x),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",s)),y&&d.addEventListener(f,C?D:I,C);let v=[];return m&&((0,n.isElement)(i.domReference)&&(v=(0,n.getOverflowAncestors)(i.domReference)),(0,n.isElement)(i.floating)&&(v=v.concat((0,n.getOverflowAncestors)(i.floating))),!(0,n.isElement)(i.reference)&&i.reference&&i.reference.contextElement&&(v=v.concat((0,n.getOverflowAncestors)(i.reference.contextElement)))),(v=v.filter(e=>{var t;
2return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",x?T:L,x),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",s)),y&&d.removeEventListener(f,C?D:I,C),v.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[u,i,a,y,f,o,l,m,c,w,R,L,x,T,I,C,D]),t.useEffect(()=>{u.current.insideReactTree=!1},[u,y,f]);let O=t.useMemo(()=>({onKeyDown:L,...d&&{[ed[v]]:e=>{l(!1,e.nativeEvent,"reference-press")},..."click"!==v&&{onClick(e){l(!1,e.nativeEvent,"reference-press")}}}}),[L,l,d,v]),B=t.useMemo(()=>({onKeyDown:L,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[ev[f]]:()=>{u.current.insideReactTree=!0}}),[L,f,u]);return t.useMemo(()=>c?{reference:O,floating:B}:{},[c,O,B])},"useFloating",0,function(e){void 0===e&&(e={});let{nodeId:r}=e,o=function(e){let{open:n=!1,onOpenChange:r,elements:o}=e,l=Q(),i=t.useRef({}),[u]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),c=null!=et(),[a,s]=t.useState(o.reference),f=j((e,t,n)=>{i.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),d=t.useMemo(()=>({setPositionReference:s}),[]),v=t.useMemo(()=>({reference:a||o.reference||null,floating:o.floating||null,domReference:o.reference}),[a,o.reference,o.floating]);return t.useMemo(()=>({dataRef:i,open:n,onOpenChange:f,elements:v,events:u,floatingId:l,refs:d}),[n,f,v,u,l,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||o,i=l.elements,[u,c]=t.useState(null),[a,s]=t.useState(null),f=(null==i?void 0:i.domReference)||u,d=t.useRef(null),v=t.useContext(ee);D(()=>{f&&(d.current=f)},[f]);let m=(0,H.useFloating)({...e,elements:{...i,...a&&{reference:a}}}),p=t.useCallback(e=>{let t=(0,n.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),m.refs.setReference(t)},[m.refs]),g=t.useCallback(e=>{((0,n.isElement)(e)||null===e)&&(d.current=e,c(e)),((0,n.isElement)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,n.isElement)(e))&&m.refs.setReference(e)},[m.refs]),h=t.useMemo(()=>({...m.refs,setReference:g,setPositionReference:p,domReference:d}),[m.refs,g,p]),E=t.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),y=t.useMemo(()=>({...m,...l,refs:h,elements:E,nodeId:r}),[m,h,E,r,l]);return D(()=>{l.dataRef.current.floatingContext=y;let e=null==v?void 0:v.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),t.useMemo(()=>({...m,context:y,refs:h,elements:E}),[m,h,E,y])},"useHover",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:l,dataRef:i,events:u,elements:c}=e,{enabled:a=!0,delay:s=0,handleClose:f=null,mouseOnly:d=!1,restMs:v=0,move:m=!0}=r,p=t.useContext(ee),g=et(),h=O(f),E=O(s),y=O(o),b=O(v),w=t.useRef(),R=t.useRef(-1),x=t.useRef(),C=t.useRef(-1),S=t.useRef(!0),L=t.useRef(!1),T=t.useRef(()=>{}),A=t.useRef(!1),P=j(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});t.useEffect(()=>{if(a)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{open:t}=e;t||(er(R),er(C),S.current=!0,A.current=!1)}},[a,u]),t.useEffect(()=>{if(!a||!h.current||!o)return;function e(e){P()&&l(!1,e,"hover")}let t=M(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,o,l,a,h,P]);let N=t.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=el(E.current,"close",w.current);r&&!x.current?(er(R),R.current=window.setTimeout(()=>l(!1,e,n),r)):t&&(er(R),l(!1,e,n))},[E,l]),B=j(()=>{T.current(),x.current=void 0}),_=j(()=>{if(L.current){let e=M(c.floating).body;e.style.pointerEvents="",e.removeAttribute(eo),L.current=!1}}),F=j(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));t.useEffect(()=>
2{if(a&&(0,n.isElement)(c.domReference)){let n=c.domReference,l=c.floating;return o&&n.addEventListener("mouseleave",r),m&&n.addEventListener("mousemove",e,{once:!0}),n.addEventListener("mouseenter",e),n.addEventListener("mouseleave",t),l&&(l.addEventListener("mouseleave",r),l.addEventListener("mouseenter",u),l.addEventListener("mouseleave",s)),()=>{o&&n.removeEventListener("mouseleave",r),m&&n.removeEventListener("mousemove",e),n.removeEventListener("mouseenter",e),n.removeEventListener("mouseleave",t),l&&(l.removeEventListener("mouseleave",r),l.removeEventListener("mouseenter",u),l.removeEventListener("mouseleave",s))}}function e(e){if(er(R),S.current=!1,d&&!I(w.current)||ei(b.current)>0&&!el(E.current,"open"))return;let t=el(E.current,"open",w.current);t?R.current=window.setTimeout(()=>{y.current||l(!0,e,"hover")},t):o||l(!0,e,"hover")}function t(e){if(F())return void _();T.current();let t=M(c.floating);if(er(C),A.current=!1,h.current&&i.current.floatingContext){o||er(R),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){_(),B(),F()||N(e,!0,"safe-polygon")}});let n=x.current;t.addEventListener("mousemove",n),T.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===w.current&&k(c.floating,e.relatedTarget)||N(e)}function r(e){F()||i.current.floatingContext&&(null==h.current||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){_(),B(),F()||N(e)}})(e))}function u(){er(R)}function s(e){F()||N(e,!1)}},[c,a,e,d,m,N,B,_,l,o,y,p,E,h,i,F,b]),D(()=>{var e,t;if(a&&o&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&P()){L.current=!0;let e=c.floating;if((0,n.isElement)(c.domReference)&&e){let n=M(c.floating).body;n.setAttribute(eo,"");let r=c.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,o,g,c,p,h,P]),D(()=>{o||(w.current=void 0,A.current=!1,B(),_())},[o,B,_]),t.useEffect(()=>()=>{B(),er(R),er(C),_()},[a,c.domReference,B,_]);let K=t.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function n(){S.current||y.current||l(!0,t,"hover")}d&&!I(w.current)||o||0===ei(b.current)||A.current&&e.movementX**2+e.movementY**2<2||(er(C),"touch"===w.current?n():(A.current=!0,C.current=window.setTimeout(n,ei(b.current))))}}},[d,l,o,y,b]);return t.useMemo(()=>a?{reference:K}:{},[a,K])},"useInteractions",0,function(e){void 0===e&&(e=[]);let n=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),l=t.useCallback(t=>ep(t,e,"reference"),n),i=t.useCallback(t=>ep(t,e,"floating"),r),u=t.useCallback(t=>ep(t,e,"item"),o);return t.useMemo(()=>({getReferenceProps:l,getFloatingProps:i,getItemProps:u}),[l,i,u])}],964930)}]);
3
4//# debugId=f45edb84-368f-cd26-e1ed-386febe8eabd
5//# sourceMappingURL=23cj1o7wc1n3r.js.map

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.