PageSourceSearch

https://www.ulifestyle.com.hk/community/_next/static/chunks/2513-85176fc41a08819f.js

js ulifestyle.com.hk collected 2026-09-24 08:39:53 UTC 28,492 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2513],{52513:function(e,t,n){let r;n.d(t,{ee:function(){return e5},VY:function(){return e3},h_:function(){return e7},fC:function(){return e1},xz:function(){return e2}});var o,i=n(2265),a=n.t(i,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function s(...e){return i.useCallback(u(...e),e)}var c=n(57437);function d(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;function l(t){let{scope:n,children:r,...l}=t,u=n?.[e][a]||o,s=i.useMemo(()=>l,Object.values(l));return(0,c.jsx)(u.Provider,{value:s,children:r})}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){let u=l?.[e][a]||o,s=i.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var f=n(54887),p=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(h);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,c.jsx)(v,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,c.jsx)(v,{...r,ref:t,children:n})});p.displayName="Slot";var v=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return i.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?u(t,a):a})}return i.Children.count(n)>1?i.Children.only(null):null});v.displayName="SlotClone";var m=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});function h(e){return i.isValidElement(e)&&e.type===m}var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?p:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function y(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var b="dismissableLayer.update",E=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,...m}=e,h=i.useContext(E),[w,N]=i.useState(null),R=null!==(r=null==w?void 0:w.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,P]=i.useState({}),S=s(t,e=>N(e)),O=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),L=O.indexOf(A),T=w?O.indexOf(w):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,k=T>=L,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=y(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){C("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!k||n||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==v||v())},R),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=y(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>
1{e.target&&!o.current&&C("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==v||v())},R);return!function(e,t=globalThis?.document){let n=y(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==h.layers.size-1||(null==u||u(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},R),i.useEffect(()=>{if(w)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(o=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(w)),h.layers.add(w),x(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=o)}},[w,R,a,h]),i.useEffect(()=>()=>{w&&(h.layers.delete(w),h.layersWithOutsidePointerEventsDisabled.delete(w),x())},[w,h]),i.useEffect(()=>{let e=()=>P({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,c.jsx)(g.div,{...m,ref:S,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,M.onFocusCapture),onBlurCapture:l(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,D.onPointerDownCapture)})});function x(){let e=new CustomEvent(b);document.dispatchEvent(e)}function C(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&f.flushSync(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}w.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(E),r=i.useRef(null),o=s(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(g.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var N=0;function R(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var P="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},A=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[u,d]=i.useState(null),f=y(o),p=y(a),v=i.useRef(null),m=s(t,e=>d(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:j(v.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||j(v.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,h.paused]),i.useEffect(()=>{if(u){k.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(P,O);u.addEventListener(P,f),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(L(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(u))}return()=>{u.removeEventListener(P,f),setTimeout(()=>{let t=new CustomEvent(S,O);u.addEventListener(S,p),u.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),u.removeEventListener(S,p),k.remove(h)},0)}}},[u,f,p,h]);let b=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=L(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&j(i,{select:!0})):(e.preventDefault(),n&&j(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,c.jsx)(g.div,{tabIndex:-1,...l,ref:m,onKeyDown:b})});function L(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}
1A.displayName="FocusScope";var k=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=D(r,e)).unshift(e)},remove(e){var t;null===(t=(r=D(r,e))[0])||void 0===t||t.resume()}});function D(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var M=globalThis?.document?i.useLayoutEffect:()=>{},F=a["useId".toString()]||(()=>void 0),I=0,_=n(97859),W=n(50032),B=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(g.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});B.displayName="Arrow";var z="Popper",[U,Y]=d(z),[H,X]=U(z),K=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,c.jsx)(H,{scope:t,anchor:r,onAnchorChange:o,children:n})};K.displayName=z;var $="PopperAnchor",Z=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=X($,n),l=i.useRef(null),u=s(t,l);return i.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,c.jsx)(g.div,{...o,ref:u})});Z.displayName=$;var V="PopperContent",[q,G]=U(V),J=i.forwardRef((e,t)=>{var n,r,o,a,l,u,d,f;let{__scopePopper:p,side:v="bottom",sideOffset:m=0,align:h="center",alignOffset:b=0,arrowPadding:E=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:N="partial",hideWhenDetached:R=!1,updatePositionStrategy:P="optimized",onPlaced:S,...O}=e,A=X(V,p),[L,T]=i.useState(null),j=s(t,e=>T(e)),[k,D]=i.useState(null),F=function(e){let[t,n]=i.useState(void 0);return M(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(k),I=null!==(d=null==F?void 0:F.width)&&void 0!==d?d:0,B=null!==(f=null==F?void 0:F.height)&&void 0!==f?f:0,z="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},U=Array.isArray(x)?x:[x],Y=U.length>0,H={padding:z,boundary:U.filter(en),altBoundary:Y},{refs:K,floatingStyles:$,placement:Z,isPositioned:G,middlewareData:J}=(0,_.YF)({strategy:"fixed",placement:v+("center"!==h?"-"+h:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,W.Me)(...t,{animationFrame:"always"===P})},elements:{reference:A.anchor},middleware:[(0,_.cv)({mainAxis:m+B,alignmentAxis:b}),w&&(0,_.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?(0,_.dr)():void 0,...H}),w&&(0,_.RR)({...H}),(0,_.dp)({...H,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),k&&(0,_.x7)({element:k,padding:E}),er({arrowWidth:I,arrowHeight:B}),R&&(0,_.Cp)({strategy:"referenceHidden",...H})]}),[Q,ee]=eo(Z),et=y(S);M(()=>{G&&(null==et||et())},[G,et]);let ei=null===(n=J.arrow)||void 0===n?void 0:n.x,ea=null===(r=J.arrow)||void 0===r?void 0:r.y,el=(null===(o=J.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eu,es]=i.useState();return M(()=>{L&&es(window.getComputedStyle(L).zIndex)},[L]),(0,c.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:G?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(a=J.transformOrigin)||void 0===a?void 0:a.x,null===(l=J.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=J.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(q,{scope:p,placedSide:Q,onArrowChange:D,arrowX:ei,arrowY:ea,shouldHideArrow:el,children:(0,c.jsx)(g.div,{"data-side":Q,"data-align":ee,...O,ref:j,style:{...O.style,animation:G?void 0:"none"}})})})});J.displayName=V;var Q="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},et=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=G(Q,n),i=ee[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(B,{...r,ref:t,style:{...r.style,display:"block"}})})});function en(e){return null!==e}et.displayName=Q;var er=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=eo(l),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===p?(y=c?m:"".concat(h,"px"),b="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(h,"px"),b="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eo(e){let[t,n="center"]=e.split("-");return[t,n]}var ei=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[l,u]=i.useState(!1);M(()=>u(!0),[]);let s=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?f.createPortal((0,c.jsx)(g.div,{...a,ref:t}),s):null});ei.displayName="Portal";var ea=e=>{var t,n;let r,o;let{present:a,children:l}=e,u=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef({}),l=i.useRef(e),u=i.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=el(a.current);u.current="mounted"===s?e:"none"},[s]),M(()=>{let t=a.current,n=l.current;if(n!==e){let r=u.current,o=el(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),M(()=>{if(r){let e=e=>{let t=el(a.current).includes(e.animationName);e.target===r&&t&&f.flushSync(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(u.current=el(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(a),c="function"==typeof l?l({present:u.isPresent}):i.Children.only(l),d=s(u.ref,(r=null===(t=Object.getOwnPropertyDescriptor(c.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?c.ref:(r=null===(n=Object.getOwnPropertyDescriptor(c,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof l||u.isPresent?i.cloneElement(c,{ref:d}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}ea.displayName="Presence";var eu=n(5478),es=n(5853),ec=n(85770),ed=n(17325),ef=(0,n(31412)._)(),ep=function(){},ev=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ep,onWheelCapture:ep,onTouchMoveCapture:ep}),o=r[0],a=r[1],l=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,es._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(0,ed.q)([n,t]),w=(0,es.pi)((0,es.pi)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:ef,removeScrollBar:c,shards:f,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:y}),l?i.cloneElement(i.Children.only(u),(0,es.pi)((0,es.pi)({},w),{ref:E}
1)):i.createElement(void 0===g?"div":g,(0,es.pi)({},w,{className:s,ref:E}),u))});ev.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ev.classNames={fullWidth:ec.zi,zeroRight:ec.pF};var em=n(49085),eh=n(5517),eg=n(18704),ey=!1;if("undefined"!=typeof window)try{var eb=Object.defineProperty({},"passive",{get:function(){return ey=!0,!0}});window.addEventListener("test",eb,eb),window.removeEventListener("test",eb,eb)}catch(e){ey=!1}var eE=!!ey&&{passive:!1},ew=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ex=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eC(e,r)){var o=eN(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eC=function(e,t){return"v"===e?ew(t,"overflowY"):ew(t,"overflowX")},eN=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eR=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,s=t.contains(u),c=!1,d=l>0,f=0,p=0;do{var v=eN(e,u),m=v[0],h=v[1]-v[2]-a*m;(m||h)&&eC(e,u)&&(f+=h,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},eP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eS=function(e){return[e.deltaX,e.deltaY]},eO=function(e){return e&&"current"in e?e.current:e},eA=0,eL=[],eT=(0,em.L)(ef,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eA++)[0],a=i.useState(eg.Ws)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,es.ev)([e.lockRef.current],(e.shards||[]).map(eO),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=eP(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ex(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ex(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return eR(p,t,e,"h"===p?u:s,!0)},[]),s=i.useCallback(function(e){if(eL.length&&eL[eL.length-1]===a){var n="deltaY"in e?eS(e):eP(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(l.current.shards||[]).map(eO).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eP(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eS(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,eP(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return eL.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,eE),document.addEventListener("touchmove",s,eE),document.addEventListener("touchstart",d,eE),function(){eL=eL.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,eE),document.removeEventListener("touchmove",s,eE),document.removeEventListener("touchstart",d,eE)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(eh.jp,{gapMode:e.gapMode}):null)}),ej=i.forwardRef(function(e,t){return i.createElement(ev,(0,es.pi)({},e,{ref:t,sideCar:eT}))});ej.classNames=ev.classNames;var ek="Popover",[eD,eM]=d(ek,[Y]),eF=Y(),[eI,e_]=eD(ek),eW=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,u=eF(t),s=i.useRef(null),[d,f]=i.useState(!1),[p=!1,v]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=i.useState(e),[r]=n,o=i.useRef(r),a=y(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:r,u=y(n);return[l,i.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[a,e,o,u])]}({prop:r,defaultProp:o,onChange:a});return(0,c.jsx)(K,{...u,children:(0,c.jsx)(eI,{scope:t,contentId:function(e){let[t,n]=i.useState(F());return M(()=>{n(e=>e??String(I++))},[void 0]),t?`radix-${t}`:""}(),triggerRef:s,open:p,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:l,children:n})})};eW.displayName=ek;var eB="PopoverAnchor",ez=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e_(eB,n),a=eF(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=o;return i.useEffect(()=>(l(),()=>u()),[l,u]),(0,c.jsx)(Z,{...a,...r,ref:t})});ez.displayName=eB;var eU="PopoverTrigger",eY=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e_(eU,n),i=eF(n),a=s(t,o.triggerRef),u=(0,c.jsx)(g.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e0(o.open),...r,ref:a,onClick:l(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,c.jsx)(Z,{asChild:!0,...i,children:u})});eY.displayName=eU;var eH="PopoverPortal",[eX,eK]=eD(eH,{forceMount:void 0}),e$=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=e_(eH,t);return(0,c.jsx)(eX,{scope:t,forceMount:n,children:(0,c.jsx)(ea,{present:n||i.open,children:(0,c.jsx)(ei,{asChild:!0,container:o,children:r})})})};e$.displayName=eH;var eZ="PopoverContent",eV=i.forwardRef((e,t)=>{let n=eK(eZ,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=e_(eZ,e.__scopePopover);return(0,c.jsx)(ea,{present:r||i.open,children:i.modal?(0,c.jsx)(eq,{...o,ref:t}):(0,c.jsx)(eG,{...o,ref:t})})});eV.displayName=eZ;var eq=i.forwardRef((e,t)=>{let n=e_(eZ,e.__scopePopover),r=i.useRef(null),o=s(t,r),a=i.useRef(!1);return i.useEffect(()=>{let e=r.current;if(e)return(0,eu.Ry)(e)},[]),(0,c.jsx)(ej,{as:p,allowPinchZoom:!0,children:(0,c.jsx)(eJ,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eG=i.forwardRef((e,t)=>
1{let n=e_(eZ,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return(0,c.jsx)(eJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eJ=i.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,...p}=e,v=e_(eZ,n),m=eF(n);return i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:R()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:R()),N++,()=>{1===N&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),N--}},[]),(0,c.jsx)(A,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,c.jsx)(w,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:(0,c.jsx)(J,{"data-state":e0(v.open),role:"dialog",id:v.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eQ="PopoverClose";function e0(e){return e?"open":"closed"}i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=e_(eQ,n);return(0,c.jsx)(g.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eQ,i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eF(n);return(0,c.jsx)(et,{...o,...r,ref:t})}).displayName="PopoverArrow";var e1=eW,e5=ez,e2=eY,e7=e$,e3=eV}}]);

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.