1"use strict";(self.webpackChunkcheri=self.webpackChunkcheri||[]).push([[348],{8689:function(e,t,n){var r;n.d(t,{ie:function(){return w},we:function(){return O}});var o=n(6540),l=n(6984),s=n(4848),u=n(6635),i=(n(961),n(4743));const c="ArrowLeft",f="ArrowRight",a="ArrowUp",d="ArrowDown";const g=[c,f],h=[a,d],m={...r||(r=n.t(o,2))};let p=!1,v=0;const x=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+v++;const R=m.useId||function(){const[e,t]=o.useState((()=>p?x():void 0));return(0,l.OS)((()=>{null==e&&t(x())}),[]),o.useEffect((()=>{p=!0}),[]),e};const w=o.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:c}},width:f=14,height:a=7,tipRadius:d=0,strokeWidth:g=0,staticOffset:h,stroke:m,d:p,style:{transform:v,...x}={},...w}=e;const C=R(),[S,k]=o.useState(!1);if((0,l.OS)((()=>{if(!r)return;"rtl"===(0,u.L9)(r).direction&&k(!0)}),[r]),!r)return null;const[M,b]=n.split("-"),O="top"===M||"bottom"===M;let j=h;(O&&null!=c&&c.x||!O&&null!=c&&c.y)&&(j=null);const y=2*g,E=y/2,q=f/2*(d/-8+1),A=a/2*d/4,I=!!p,P=j&&"end"===b?"bottom":"top";let B=j&&"end"===b?"right":"left";j&&S&&(B="end"===b?"left":"right");const L=null!=(null==i?void 0:i.x)?j||i.x:"",D=null!=(null==i?void 0:i.y)?j||i.y:"",W=p||"M0,0 H"+f+" L"+(f-q)+","+(a-A)+" Q"+f/2+","+a+" "+q+","+(a-A)+" Z",H={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[M];return(0,s.jsxs)("svg",{...w,"aria-hidden":!0,ref:t,width:I?f:f+y,height:f,viewBox:"0 0 "+f+" "+(a>f?a:f),style:{position:"absolute",pointerEvents:"none",[B]:L,[P]:D,[M]:O||I?"100%":"calc(100% - "+y/2+"px)",transform:[H,v].filter((e=>!!e)).join(" "),...x},children:[y>0&&(0,s.jsx)("path",{clipPath:"url(#"+C+")",fill:"none",stroke:m,strokeWidth:y+(p?0:1),d:W}),(0,s.jsx)("path",{stroke:y&&!p?w.fill:"none",d:W}),(0,s.jsx)("clipPath",{id:C,children:(0,s.jsx)("rect",{x:-E,y:E*(I?-1:1),width:f+y,height:f})})]})}));function C(){const e=new Map;return{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)}}}const S=o.createContext(null),k=o.createContext(null),M=()=>{var e;return(null==(e=o.useContext(S))?void 0:e.id)||null},b=()=>o.useContext(k);function O(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=R(),u=o.useRef({}),[i]=o.useState((()=>C())),c=null!=M(),[f,a]=o.useState(r.reference),d=(0,l.Jt)(((e,t,r)=>{u.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),g=o.useMemo((()=>({setPositionReference:a})),[]),h=o.useMemo((()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference})),[f,r.reference,r.floating]);return o.useMemo((()=>({dataRef:u,open:t,onOpenChange:d,elements:h,events:i,floatingId:s,refs:g})),[t,d,h,i,s,g])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[c,f]=o.useState(null),[a,d]=o.useState(null),g=(null==s?void 0:s.domReference)||c,h=o.useRef(null),m=b();(0,l.OS)((()=>{g&&(h.current=g)}),[g]);const p=(0,i.we)({...e,elements:{...s,...a&&{reference:a}}}),v=o.useCallback((e=>{const t=(0,u.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),p.refs.setReference(t)}),[p.refs]),x=o.useCallback((e=>{((0,u.vq)(e)||null===e)&&(h.current=e,f(e)),((0,u.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,u.vq)(e))&&p.refs.setReference(e)}),[p.refs]),w=o.useMemo((()=>({...p.refs,setReference:x,setPositionReference:v,domReference:h})),[p.refs,x,v]),S=o.useMemo((()=>({...p.elements,domReference:g})),[p.elements,g]),k=o.useMemo((()=>({...p,...r,refs:w,elements:S,nodeId:t})),[p,w,S,t,r]);return(0,l.OS)((()=>{r.dataRef.current.floatingContext=k;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=k)})),o.useMemo((()=>({...p,context:k,refs:w,elements:S})),[p,w,S,k])}}}]); 2//# sourceMappingURL=5c0b189e-511f664d30dedfda1ab3.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.