1var e=[`top`,`right`,`bottom`,`left`],t=Math.min,n=Math.max,r=Math.round,i=Math.floor,a=e=>({x:e,y:e}),o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function s(e,r,i){return n(e,t(r,i))}function c(e,t){return typeof e==`function`?e(t):e}function l(e){return e.split(`-`)[0]}function u(e){return e.split(`-`)[1]}function d(e){return e===`x`?`y`:`x`}function f(e){return e===`y`?`height`:`width`}function p(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function m(e){return d(p(e))}function h(e,t,n){n===void 0&&(n=!1);let r=u(e),i=m(e),a=f(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=w(o)),[o,w(o)]}function g(e){let t=w(e);return[_(e),t,_(t)]}function _(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var v=[`left`,`right`],y=[`right`,`left`],b=[`top`,`bottom`],x=[`bottom`,`top`];function S(e,t,n){switch(e){case`top`:case`bottom`:return n?t?y:v:t?v:y;case`left`:case`right`:return t?b:x;default:return[]}}function C(e,t,n,r){let i=u(e),a=S(l(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_)))),a}function w(e){let t=l(e);return o[t]+e.slice(t.length)}function T(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function E(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:T(e)}function D(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}export{t as _,u as a,e as b,f as c,C as d,w as f,n as g,p as h,i,g as l,l as m,a as n,m as o,E as p,c as r,h as s,s as t,d as u,D as v,r as y};
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.