PageSourceSearch

https://funwoo.com.tw/_next/static/chunks/5c0b189e.ef328565516f1bc0.js

js funwoo.com.tw collected 2026-10-07 07:24:26 UTC 8,666 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6342],{93075:function(e,n,t){var r;t.d(n,{NI:function(){return W},YF:function(){return S},bQ:function(){return A}});var o=t(67294),s=t(97145),c=(t(85893),t(37317)),u=(t(73935),t(1371));const l={...r||(r=t.t(o,2))},i=l.useInsertionEffect||(e=>e());function f(e){const n=o.useRef((()=>{0}));return i((()=>{n.current=e})),o.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const a="ArrowUp",d="ArrowDown",v="ArrowLeft",p="ArrowRight";var m="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;const g=[v,p],w=[a,d];let E=!1,k=0;const h=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+k++;const y=l.useId||function(){const[e,n]=o.useState((()=>E?h():void 0));return m((()=>{null==e&&n(h())}),[]),o.useEffect((()=>{E=!0}),[]),e};function R(){const e=new Map;return{emit(n,t){var r;null==(r=e.get(n))||r.forEach((e=>e(t)))},on(n,t){e.set(n,[...e.get(n)||[],t])},off(n,t){var r;e.set(n,(null==(r=e.get(n))?void 0:r.filter((e=>e!==t)))||[])}}}const b=o.createContext(null),x=o.createContext(null),C=()=>{var e;return(null==(e=o.useContext(b))?void 0:e.id)||null},P=()=>o.useContext(x);function K(e){return"data-floating-ui-"+e}function M(e,n){let t=e.filter((e=>{var t;return e.parentId===n&&(null==(t=e.context)?void 0:t.open)})),r=t;for(;r.length;)r=e.filter((e=>{var n;return null==(n=r)?void 0:n.some((n=>{var t;return e.parentId===n.id&&(null==(t=e.context)?void 0:t.open)}))})),t=t.concat(r);return t}const L="data-floating-ui-focusable";const I={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},_={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},D=e=>{var n,t;return{escapeKey:"boolean"===typeof e?e:null!=(n=null==e?void 0:e.escapeKey)&&n,outsidePress:"boolean"===typeof e?e:null==(t=null==e?void 0:e.outsidePress)||t}};function A(e,n){void 0===n&&(n={});const{open:t,onOpenChange:r,elements:u,dataRef:l}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:d=!0,outsidePressEvent:v="pointerdown",referencePress:p=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:w,capture:E}=n,k=P(),h=f("function"===typeof d?d:()=>!1),y="function"===typeof d?h:d,R=o.useRef(!1),b=o.useRef(!1),{escapeKey:x,outsidePress:C}=D(w),{escapeKey:L,outsidePress:A}=D(E),S=o.useRef(!1),U=f((e=>{var n;if(!t||!i||!a||"Escape"!==e.key)return;if(S.current)return;const o=null==(n=l.current.floatingContext)?void 0:n.nodeId,c=k?M(k.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),c.length>0)){let e=!0;if(c.forEach((n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,(0,s.MM)(e)?e.nativeEvent:e,"escape-key")})),B=f((e=>{var n;const t=()=>{var n;U(e),null==(n=(0,s.U9)(e))||n.removeEventListener("keydown",t)};null==(n=(0,s.U9)(e))||n.addEventListener("keydown",t)})),O=f((e=>{var n;const t=R.current;R.current=!1;const o=b.current;if(b.current=!1,"click"===v&&o)return;if(t)return;if("function"===typeof y&&!y(e))return;const i=(0,s.U9)(e),f="["+K("inert")+"]",a=(0,s.Me)(u.floating).querySelectorAll(f);let d=(0,c.kK)(i)?i:null;for(;d&&!(0,c.Py)(d);){const e=(0,c.Ow)(d);if((0,c.Py)(e)||!(0,c.kK)(e))break;d=e}if(a.length&&(0,c.kK)(i)&&!(0,s.ex)(i)&&!(0,s.r3)(i,u.floating)&&Array.from(a).every((e=>!(0,s.r3)(d,e))))return;if((0,c.Re)(i)&&Y){const n=(0,c.Py)(i),t=(0,c.Dx)(i),r=/auto|scroll/,o=n||r.test(t.overflowX),s=n||r.test(t.overflowY),u=o&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,l=s&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,f="rtl"===t.direction,a=l&&(f?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),d=u&&e.offsetY>i.clientHeight;if(a||d)return}const p=null==(n=l.current.floatingContext)?void 0:n.nodeId,m=k&&M(k.nodesRef.current,p).some((n=>{var t;return(0,s.Pe)(e,null==(t=n.context)?void 0:t.elements.floating)}));if((0,s.Pe)(e,u.floating)||(0,s.Pe)(e,u.domReference)||m)return;const g=k?M(k.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach((n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),W=f((e=>{var n;const t=()=>{var n;O(e),null==(n=(0,s.U9)(e))||n.removeEventListener(v,t)};null==(n=(0,s.U9)(e))||n.addEventListener(v,t)}));o.useEffect((()=>
1{if(!t||!i)return;l.current.__escapeKeyBubbles=x,l.current.__outsidePressBubbles=C;let e=-1;function n(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),S.current=!0}function f(){e=window.setTimeout((()=>{S.current=!1}),(0,c.Pf)()?5:0)}const d=(0,s.Me)(u.floating);a&&(d.addEventListener("keydown",L?B:U,L),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",f)),y&&d.addEventListener(v,A?W:O,A);let p=[];return g&&((0,c.kK)(u.domReference)&&(p=(0,c.Kx)(u.domReference)),(0,c.kK)(u.floating)&&(p=p.concat((0,c.Kx)(u.floating))),!(0,c.kK)(u.reference)&&u.reference&&u.reference.contextElement&&(p=p.concat((0,c.Kx)(u.reference.contextElement)))),p=p.filter((e=>{var n;return e!==(null==(n=d.defaultView)?void 0:n.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",n,{passive:!0})})),()=>{a&&(d.removeEventListener("keydown",L?B:U,L),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",f)),y&&d.removeEventListener(v,A?W:O,A),p.forEach((e=>{e.removeEventListener("scroll",n)})),window.clearTimeout(e)}}),[l,u,a,y,v,t,r,g,i,x,C,U,L,B,O,A,W]),o.useEffect((()=>{R.current=!1}),[y,v]);const H=o.useMemo((()=>({onKeyDown:U,...p&&{[I[m]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==m&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[U,r,p,m]),Y=o.useMemo((()=>({onKeyDown:U,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[_[v]]:()=>{R.current=!0}})),[U,v]);return o.useMemo((()=>i?{reference:H,floating:Y}:{}),[i,H,Y])}function S(e){void 0===e&&(e={});const{nodeId:n}=e,t=function(e){const{open:n=!1,onOpenChange:t,elements:r}=e,s=y(),c=o.useRef({}),[u]=o.useState((()=>R())),l=null!=C(),[i,a]=o.useState(r.reference),d=f(((e,n,r)=>{c.current.openEvent=e?n:void 0,u.emit("openchange",{open:e,event:n,reason:r,nested:l}),null==t||t(e,n,r)})),v=o.useMemo((()=>({setPositionReference:a})),[]),p=o.useMemo((()=>({reference:i||r.reference||null,floating:r.floating||null,domReference:r.reference})),[i,r.reference,r.floating]);return o.useMemo((()=>({dataRef:c,open:n,onOpenChange:d,elements:p,events:u,floatingId:s,refs:v})),[n,d,p,u,s,v])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,s=r.elements,[l,i]=o.useState(null),[a,d]=o.useState(null),v=(null==s?void 0:s.domReference)||l,p=o.useRef(null),g=P();m((()=>{v&&(p.current=v)}),[v]);const w=(0,u.YF)({...e,elements:{...s,...a&&{reference:a}}}),E=o.useCallback((e=>{const n=(0,c.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(n),w.refs.setReference(n)}),[w.refs]),k=o.useCallback((e=>{((0,c.kK)(e)||null===e)&&(p.current=e,i(e)),((0,c.kK)(w.refs.reference.current)||null===w.refs.reference.current||null!==e&&!(0,c.kK)(e))&&w.refs.setReference(e)}),[w.refs]),h=o.useMemo((()=>({...w.refs,setReference:k,setPositionReference:E,domReference:p})),[w.refs,k,E]),b=o.useMemo((()=>({...w.elements,domReference:v})),[w.elements,v]),x=o.useMemo((()=>({...w,...r,refs:h,elements:b,nodeId:n})),[w,h,b,n,r]);return m((()=>{r.dataRef.current.floatingContext=x;const e=null==g?void 0:g.nodesRef.current.find((e=>e.id===n));e&&(e.context=x)})),o.useMemo((()=>({...w,context:x,refs:h,elements:b})),[w,h,b,x])}const U="active",B="selected";function O(e,n,t){const r=new Map,o="item"===t;let s=e;if(o&&e){const{[U]:n,[B]:t,...r}=e;s=r}return{..."floating"===t&&{tabIndex:-1,[L]:""},...s,...n.map((n=>{const r=n?n[t]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,n)=>n?(Object.entries(n).forEach((n=>{let[t,s]=n;var c;o&&[U,B].includes(t)||(0===t.indexOf("on")?(r.has(t)||r.set(t,[]),"function"===typeof s&&(null==(c=r.get(t))||c.push(s),e[t]=function(){for(var e,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return null==(e=r.get(t))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[t]=s)})),e):e),{})}}function W(e){void 0===e&&(e=[]);const n=e.map((e=>null==e?void 0:e.reference)),t=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),s=o.useCallback((n=>O(n,e,"reference")),n),c=o.useCallback((n=>O(n,e,"floating")),t),u=o.useCallback((n=>O(n,e,"item")),r);return o.useMemo((()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:u})),[s,c,u])}}}]);
2//# sourceMappingURL=5c0b189e.ef328565516f1bc0.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.