PageSourceSearch

https://tallo.com/talent/assets/floating-ui.dom.esm-JwXrVvhZ.js

js tallo.com collected 2026-09-24 09:56:03 UTC 10,121 bytes, 1 lines download raw bytes

1function S(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function N(t){return["top","bottom"].includes(S(t))?"x":"y"}function nt(t){return t==="y"?"height":"width"}function G(t){let{reference:e,floating:n,placement:o}=t;const i=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2;let c;switch(S(o)){case"top":c={x:i,y:e.y-n.height};break;case"bottom":c={x:i,y:e.y+e.height};break;case"right":c={x:e.x+e.width,y:s};break;case"left":c={x:e.x-n.width,y:s};break;default:c={x:e.x,y:e.y}}const r=N(o),l=nt(r);switch(et(o)){case"start":c[r]=c[r]-(e[l]/2-n[l]/2);break;case"end":c[r]=c[r]+(e[l]/2-n[l]/2);break}return c}const ut=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:c}=n;let r=await c.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:g}=G({...r,placement:o}),f=o,h={};for(let p=0;p<s.length;p++){const{name:d,fn:x}=s[p],{x:w,y:u,data:m,reset:a}=await x({x:l,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:h,rects:r,platform:c,elements:{reference:t,floating:e}});if(l=w??l,g=u??g,h={...h,[d]:m??{}},a){typeof a=="object"&&(a.placement&&(f=a.placement),a.rects&&(r=a.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:i}):a.rects),{x:l,y:g}=G({...r,placement:f})),p=-1;continue}}return{x:l,y:g,placement:f,strategy:i,middlewareData:h}};function mt(t){return{top:0,right:0,bottom:0,left:0,...t}}function gt(t){return typeof t!="number"?mt(t):{top:t,right:t,bottom:t,left:t}}function j(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function ot(t,e){e===void 0&&(e={});const{x:n,y:o,platform:i,rects:s,elements:c,strategy:r}=t,{boundary:l="clippingParents",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=e,d=gt(p),w=c[h?f==="floating"?"reference":"floating":f],u=await i.getClippingClientRect({element:await i.isElement(w)?w:w.contextElement||await i.getDocumentElement({element:c.floating}),boundary:l,rootBoundary:g}),m=j(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...s.floating,x:n,y:o}:s.reference,offsetParent:await i.getOffsetParent({element:c.floating}),strategy:r}));return{top:u.top-m.top+d.top,bottom:m.bottom-u.bottom+d.bottom,left:u.left-m.left+d.left,right:m.right-u.right+d.right}}const ht=Math.min,dt=Math.max;function J(t,e,n){return dt(t,ht(e,n))}const pt={left:"right",right:"left",bottom:"top",top:"bottom"};function L(t){return t.replace(/left|right|bottom|top/g,e=>pt[e])}function xt(t,e){const n=et(t)==="start",o=N(t),i=nt(o);let s=o==="x"?n?"right":"left":n?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=L(s)),{main:s,cross:L(s)}}const wt={start:"end",end:"start"};function K(t){return t.replace(/start|end/g,e=>wt[e])}function yt(t){const e=L(t);return[K(t),e,K(e)]}const Bt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:r}=e;if((n=s.flip)!=null&&n.skip)return{};const{mainAxis:l=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:p=!0,...d}=t,x=S(i),u=f||(x===r||!p?[L(r)]:yt(r)),m=[r,...u],a=await ot(e,d),v=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(l&&v.push(a[x]),g){const{main:A,cross:k}=xt(i,c);v.push(a[A],a[k])}if(T=[...T,{placement:i,overflows:v}],!v.every(A=>A<=0)){var I,_;const A=((I=(_=s.flip)==null?void 0:_.index)!=null?I:0)+1,k=m[A];if(k)return{data:{index:A,overflows:T},reset:{placement:k}};let F="bottom";switch(h){case"bestFit":{var q;const z=(q=T.slice().sort((ft,at)=>ft.overflows.filter(R=>R>0).reduce((R,X)=>R+X,0)-at.overflows.filter(R=>R>0).reduce((R,X)=>R+X,0))[0])==null?void 0:q.placement;z&&(F=z);break}case"initialPlacement":F=r;break}return{data:{skip:!0},reset:{placement:F}}}return{}}}};function bt(t){let{placement:e,rects:n,value:o}=t;const i=S(e),s=["left","top"].includes(i)?-1:1,c=typeof o=="function"?o({...n,placement:e}):o,{mainAxis:r,crossAxis:l}=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};return N(i)==="x"?{x:l,y:r*s}:{x:r*s,y:l}}const Ht=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:n,y:o,placement:i,rects:s}=e,c=bt({placement:i,rects:s,value:t});return{x:n+c.x,y:o+c.y,data:c}}}};function vt(t){return t==="x"?"y":"x"}const Mt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:r={fn:u=>{let{x:m,y:a}=u;return{x:m,y:a}}},...l}=t,g={x:n,y:o},f=await ot(e,l),h=N(S(i)),p=vt(h);let d=g[h],x=g[p];if(s){const u=h==="y"?"top":"left",m=h==="y"?"bottom":"right",a=d+f[u],v=d-f[m];d=J(a,d,v)}if(c){const u=p==="y"?"top":"left",m=p==="y"?"bottom":"right",a=x+f[u],v=x-f[m];x=J(a,x,v)}const w=r.fn({...e,[h]:d,[p]:x});return{...w,data:{x:w.x-n,y:w.y-o}}}}};function $(t){return(t==null?void 0:t.toString())==="[object Window]"}function C(t){if(t==null)return window;if(!$(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function B(t){return C(t).getComputedStyle(t)}function y(t){return $(t)?"":t?(t.nodeName||"").toLowerCase():""}function b(t){return t instanceof C(t).HTMLElement}function W(t){return t instanceof C(t).Element}function Ct(t){return t instanceof C(t).Node}function it(t){const e=C(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function H(t){const{overflow:e,overflowX:n,overflowY:o}=B(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function Pt(t){return["table","td","th"].includes(y(t))}function rt(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),n=B(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}const Q=Math.min,O=Math.max,D=Math.round;function E(t,e){e===void 0&&(e=!1);const n=t.getBoundingClientRect();let o=1,i=1;return e&&b(t)&&(o=t.offsetWidth>0&&D(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&D(n.height)/t.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function P(t){return((Ct(t)?t.ownerDocument:t.document)||window.document).documentElement}function M(t){return $(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ct(t){return E(P(t)).left+M(t).scrollLeft}function Rt(t){const e=E(t);return D(e.width)!==t.offsetWidth||D(e.height)!==t.offsetHeight}function At(t,e,n){const o=b(e),i=P(e),s=E(t,o&&Rt(e));let c={scrollLeft:0,scrollTop:0};const r={x:0,y:0};if(o||!o&&n!=="fixed")if((y(e)!=="body"||H(i))&&(c=M(e)),b(e)){const l=E(e,!0);r.x=l.x+e.clientLeft,r.y=l.y+e.clientTop}else i&&(r.x=ct(i));return{x:s.left+c.scrollLeft-r.x,y:s.top+c.scrollTop-r.y,width:s.width,height:s.height}}function V(t){return y(t)==="html"?t:t.assignedSlot||t.parentNode||(it(t)?t.host:null)||P(t)}function U(t){return!b(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function Et(t){let e=V(t);for(;b(e)&&!["html","body"].includes(y(e));){if(rt(e))return e;e=e.parentNode}return null}function Y(t){const e=C(t);let n=U(t);for(;n&&Pt(n)&&getComputedStyle(n).position==="static";)n=U(n);return n&&(y(n)==="html"||y(n)==="body"&&getComputedStyle(n).position==="static"&&!rt(n))?e:n||Et(t)||e}function Z(t){return{width:t.offsetWidth,height:t.offsetHeight}}function Ot(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=b(n),s=P(n);if(n===s)return e;let c={scrollLeft:0,scrollTop:0};const r={x:0,y:0};if((i||!i&&o!=="fixed")&&((y(n)!=="body"||H(s))&&(c=M(n)),b(n))){const l=E(n,!0);r.x=l.x+n.clientLeft,r.y=l.y+n.clientTop}return{...e,x:e.x-c.scrollLeft+r.x,y:e.y-c.scrollTop+r.y}}
1function St(t){const e=C(t),n=P(t),o=e.visualViewport;let i=n.clientWidth,s=n.clientHeight,c=0,r=0;return o&&(i=o.width,s=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(c=o.offsetLeft,r=o.offsetTop)),{width:i,height:s,x:c,y:r}}function Tt(t){var e;const n=P(t),o=M(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=O(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),c=O(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let r=-o.scrollLeft+ct(t);const l=-o.scrollTop;return B(i||n).direction==="rtl"&&(r+=O(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:c,x:r,y:l}}function st(t){return["html","body","#document"].includes(y(t))?t.ownerDocument.body:b(t)&&H(t)?t:st(V(t))}function lt(t,e){var n;e===void 0&&(e=[]);const o=st(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=C(o),c=i?[s].concat(s.visualViewport||[],H(o)?o:[]):o,r=e.concat(c);return i?r:r.concat(lt(V(c)))}function kt(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&it(n)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Lt(t){const e=E(t),n=e.top+t.clientTop,o=e.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function tt(t,e){return e==="viewport"?j(St(t)):W(e)?Lt(e):j(Tt(P(t)))}function Wt(t){const e=lt(V(t)),o=["absolute","fixed"].includes(B(t).position)&&b(t)?Y(t):t;return W(o)?e.filter(i=>W(i)&&kt(i,o)&&y(i)!=="body"):[]}function Dt(t){let{element:e,boundary:n,rootBoundary:o}=t;const s=[...n==="clippingParents"?Wt(e):[].concat(n),o],c=s[0],r=s.reduce((l,g)=>{const f=tt(e,g);return l.top=O(f.top,l.top),l.right=Q(f.right,l.right),l.bottom=Q(f.bottom,l.bottom),l.left=O(f.left,l.left),l},tt(e,c));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}const Nt={getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:At(e,Y(n),o),floating:{...Z(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>Ot(t),getOffsetParent:t=>{let{element:e}=t;return Y(e)},isElement:t=>W(t),getDocumentElement:t=>{let{element:e}=t;return P(e)},getClippingClientRect:t=>Dt(t),getDimensions:t=>{let{element:e}=t;return Z(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},Vt=(t,e,n)=>ut(t,e,{platform:Nt,...n});export{Vt as c,Bt as f,Ht as o,Mt as s};

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.