PageSourceSearch

https://faector.nl/build/node_modules/flexibility/flexibility-4FiGG0E2.js

js faector.nl collected 2026-10-03 21:42:20 UTC 16,120 bytes, 1 lines download raw bytes

1import{getDefaultExportFromCjs as w}from"../../_virtual/_commonjsHelpers-B57D3uns.js";import{commonjsRequire as A}from"../../_virtual/_commonjs-dynamic-modules-DU1V7vIJ.js";import{__module as O}from"../../_virtual/flexibility-CanrLTR5.js";function L(h,v){for(var c=0;c<v.length;c++){const i=v[c];if(typeof i!="string"&&!Array.isArray(i)){for(const x in i)if(x!=="default"&&!(x in h)){const e=Object.getOwnPropertyDescriptor(i,x);e&&Object.defineProperty(h,x,e.get?e:{enumerable:!0,get:()=>i[x]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}(function(h,v){(function(c){h.exports=c()})(function(){return function c(i,x,e){function t(l,y){if(!x[l]){if(!i[l]){var o=typeof A=="function"&&A;if(!y&&o)return o(l,!0);if(n)return n(l,!0);var s=new Error("Cannot find module '"+l+"'");throw s.code="MODULE_NOT_FOUND",s}var f=x[l]={exports:{}};i[l][0].call(f.exports,function(a){var S=i[l][1][a];return t(S||a)},f,f.exports,c,i,x,e)}return x[l].exports}for(var n=typeof A=="function"&&A,r=0;r<e.length;r++)t(e[r]);return t}({1:[function(c,i,x){i.exports=function(e){var t,n,r,l=-1;if(e.lines.length>1&&e.style.alignContent==="flex-start")for(t=0;r=e.lines[++l];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&e.style.alignContent==="flex-end")for(t=e.flexStyle.crossSpace;r=e.lines[++l];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&e.style.alignContent==="center")for(t=e.flexStyle.crossSpace/2;r=e.lines[++l];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&e.style.alignContent==="space-between")for(n=e.flexStyle.crossSpace/(e.lines.length-1),t=0;r=e.lines[++l];)r.crossStart=t,t+=r.cross+n;else if(e.lines.length>1&&e.style.alignContent==="space-around")for(n=2*e.flexStyle.crossSpace/(2*e.lines.length),t=n/2;r=e.lines[++l];)r.crossStart=t,t+=r.cross+n;else for(n=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;r=e.lines[++l];)r.crossStart=t,r.cross+=n,t+=r.cross}},{}],2:[function(c,i,x){i.exports=function(e){for(var t,n=-1;line=e.lines[++n];)for(t=-1;child=line.children[++t];){var r=child.style.alignSelf;r==="auto"&&(r=e.style.alignItems),r==="flex-start"?child.flexStyle.crossStart=line.crossStart:r==="flex-end"?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:r==="center"?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(c,i,x){i.exports=function(e,t){var n=t==="row"||t==="row-reverse",r=e.mainAxis;if(r){var l=n&&r==="inline"||!n&&r==="block";l||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter})}else n?e.flexStyle={main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:e.flexStyle={main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},e.style.boxSizing==="content-box"&&(typeof e.flexStyle.main=="number"&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),typeof e.flexStyle.cross=="number"&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter));
1e.mainAxis=n?"inline":"block",e.crossAxis=n?"block":"inline",typeof e.style.flexBasis=="number"&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,e.flexStyle.mainOuter==="auto"&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),e.flexStyle.crossOuter==="auto"&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),typeof e.flexStyle.mainBefore=="number"&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),typeof e.flexStyle.mainAfter=="number"&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),typeof e.flexStyle.crossBefore=="number"&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),typeof e.flexStyle.crossAfter=="number"&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(c,i,x){var e=c("../reduce");i.exports=function(t){if(t.mainSpace>0){var n=e(t.children,function(r,l){return r+parseFloat(l.style.flexGrow)},0);n>0&&(t.main=e(t.children,function(r,l){return l.flexStyle.main==="auto"?l.flexStyle.main=l.flexStyle.mainOffset+parseFloat(l.style.flexGrow)/n*t.mainSpace:l.flexStyle.main+=parseFloat(l.style.flexGrow)/n*t.mainSpace,l.flexStyle.mainOuter=l.flexStyle.main+l.flexStyle.mainBefore+l.flexStyle.mainAfter,r+l.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(c,i,x){var e=c("../reduce");i.exports=function(t){if(t.mainSpace<0){var n=e(t.children,function(r,l){return r+parseFloat(l.style.flexShrink)},0);n>0&&(t.main=e(t.children,function(r,l){return l.flexStyle.main+=parseFloat(l.style.flexShrink)/n*t.mainSpace,l.flexStyle.mainOuter=l.flexStyle.main+l.flexStyle.mainBefore+l.flexStyle.mainAfter,r+l.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(c,i,x){var e=c("../reduce");i.exports=function(t){var n;t.lines=[n={main:0,cross:0,children:[]}];for(var r,l=-1;r=t.children[++l];)t.style.flexWrap==="nowrap"||n.children.length===0||t.flexStyle.main==="auto"||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=n.main+r.flexStyle.mainOuter?(n.main+=r.flexStyle.mainOuter,n.cross=Math.max(n.cross,r.flexStyle.crossOuter)):t.lines.push(n={main:r.flexStyle.mainOuter,cross:r.flexStyle.crossOuter,children:[]}),n.children.push(r);t.flexStyle.mainLines=e(t.lines,function(y,o){return Math.max(y,o.main)},0),t.flexStyle.crossLines=e(t.lines,function(y,o){return y+o.cross},0),t.flexStyle.main==="auto"&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),t.flexStyle.cross==="auto"&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(c,i,x){function e(t){for(var n,r=-1;n=t.children[++r];)c("./flex-direction")(n,t.style.flexDirection);c("./flex-direction")(t,t.style.flexDirection),c("./order")(t),c("./flexbox-lines")(t),c("./align-content")(t),r=-1;for(var l;l=t.lines[++r];)l.mainSpace=t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter-l.main,c("./flex-grow")(l),c("./flex-shrink")(l),c("./margin-main")(l),c("./margin-cross")(l),c("./justify-content")(l,t.style.justifyContent,t);c("./align-items")(t)}i.exports=e},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(c,i,x){i.exports=function(e,t,n){var r,l,y,o=n.flexStyle.mainInnerBefore,s=-1;if(t==="flex-end")for(r=e.mainSpace,r+=o;y=e.children[++s];)y.flexStyle.mainStart=r,r+=y.flexStyle.mainOuter;else if(t==="center")for(r=e.mainSpace/2,r+=o;y=e.children[++s];)y.flexStyle.mainStart=r,r+=y.flexStyle.mainOuter;else if(t==="space-between")for(l=e.mainSpace/(e.children.length-1),r=0,r+=o;y=e.children[++s];)y.flexStyle.mainStart=r,r+=y.flexStyle.mainOuter+l;else if(t==="space-around")for(l=2*e.mainSpace/(2*e.children.length),r=l/2,r+=o;y=e.children[++s];)y.flexStyle.mainStart=r,r+=y.flexStyle.mainOuter+l;else for(r=0,r+=o;y=e.children[++s];)y.flexStyle.mainStart=r,r+=y.flexStyle.mainOuter}},{}],9:[function(c,i,x){i.exports=function(e){for(var t,n=-1;t=e.children[++n];){var r=0;t.flexStyle.crossBefore==="auto"&&++r,t.flexStyle.crossAfter==="auto"&&++r;var l=e.cross-t.flexStyle.crossOuter;t.flexStyle.crossBefore==="auto"&&(t.flexStyle.crossBefore=l/r),t.flexStyle.crossAfter==="auto"&&(t.flexStyle.crossAfter=l/r),t.flexStyle.cross==="auto"?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(c,i,x){i.exports=function(e){for(var t,n=0,r=-1;t=e.children[++r];)t.flexStyle.mainBefore==="auto"&&++n,t.flexStyle.mainAfter==="auto"&&++n;if(n>0){for(r=-1;t=e.children[++r];)t.flexStyle.mainBefore==="auto"&&(t.flexStyle.mainBefore=e.mainSpace/n),t.flexStyle.mainAfter==="auto"&&(t.flexStyle.mainAfter=e.mainSpace/n),t.flexStyle.main==="auto"?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(c,i,x){var e=/^(column|row)-reverse$/;i.exports=function(t){t.children.sort(function(n,r){return n.style.order-r.style.order||n.index-r.index}),e.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(c,i,x){function e(t,n,r){for(var l=t.length,y=-1;++y<l;)y in t&&(r=n(r,t[y],y));return r}i.exports=e},{}],13:[function(c,i,x){function e(y){l(r(y))}var t=c("./read"),n=c("./write"),r=c("./readAll"),l=c("./writeAll");i.exports=e,i.exports.read=t,i.exports.write=n,i.exports.readAll=r,i.exports.writeAll=l},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(c,i,x){function e(o,s,f){var a=o[s],S=String(a).match(n);if(!S){var d=s.match(y);if(d){var p=o["border"+d[1]+"Style"];return p==="none"?0:l[a]||0}return a}var m=S[1],u=S[2];return u==="px"?1*m:u==="cm"?.3937*m*96:u==="in"?96*m:u==="mm"?.3937*m*96/10:u==="pc"?12*m*96/72:u==="pt"?96*m/72:u==="rem"?16*m:t(a,f)}function t(o,s){r.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;
1width:"+o+"!important",s.parentNode.insertBefore(r,s.nextSibling);var f=r.offsetWidth;return s.parentNode.removeChild(r),f}i.exports=e;var n=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,r=document.createElement("div"),l={medium:4,none:0,thick:6,thin:2},y=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(c,i,x){function e(s){var f={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"},a=s instanceof Element;if(a){var S=s.hasAttribute("data-style"),d=S?s.getAttribute("data-style"):s.getAttribute("style")||"";S||s.setAttribute("data-style",d);var p=window.getComputedStyle&&getComputedStyle(s)||{};r(f,p);var m=s.currentStyle||{};t(f,m),n(f,d);for(var u in f)f[u]=o(f,u,s);var B=s.getBoundingClientRect();f.offsetHeight=B.height||s.offsetHeight,f.offsetWidth=B.width||s.offsetWidth}var g={element:s,style:f};return g}function t(s,f){for(var a in s){var S=a in f;if(S)s[a]=f[a];else{var d=a.replace(/[A-Z]/g,"-$&").toLowerCase(),p=d in f;p&&(s[a]=f[d])}}var m="-js-display"in f;m&&(s.display=f["-js-display"])}function n(s,f){for(var a;a=l.exec(f);){var S=a[1].toLowerCase().replace(/-[a-z]/g,function(d){return d.slice(1).toUpperCase()});s[S]=a[2]}}function r(s,f){for(var a in s){var S=a in f;S&&!y.test(a)&&(s[a]=f[a])}}i.exports=e;var l=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,y=/^(alignSelf|height|width)$/,o=c("./getComputedLength")},{"./getComputedLength":14}],16:[function(c,i,x){function e(o){var s=[];return t(o,s),s}function t(o,s){for(var f,a=n(o),S=[],d=-1;f=o.childNodes[++d];){var p=f.nodeType===3&&!/^\s*$/.test(f.nodeValue);if(a&&p){var m=f;f=o.insertBefore(document.createElement("flex-item"),m),f.appendChild(m)}var u=f instanceof Element;if(u){var B=t(f,s);if(a){var g=f.style;g.display="inline-block",g.position="absolute",B.style=r(f).style,S.push(B)}}}var b={element:o,children:S};return a&&(b.style=r(o).style,s.push(b)),b}function n(o){var s=o instanceof Element,f=s&&o.getAttribute("data-style"),a=s&&o.currentStyle&&o.currentStyle["-js-display"],S=l.test(f)||y.test(a);return S}i.exports=e;var r=c("../read"),l=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,y=/^(inline-)?flex$/i},{"../read":15}],17:[function(c,i,x){function e(r){n(r);var l=r.element.style,y=r.mainAxis==="inline"?["main","cross"]:["cross","main"];l.boxSizing="content-box",l.display="block",l.position="relative",l.width=t(r.flexStyle[y[0]]-r.flexStyle[y[0]+"InnerBefore"]-r.flexStyle[y[0]+"InnerAfter"]-r.flexStyle[y[0]+"BorderBefore"]-r.flexStyle[y[0]+"BorderAfter"]),l.height=t(r.flexStyle[y[1]]-r.flexStyle[y[1]+"InnerBefore"]-r.flexStyle[y[1]+"InnerAfter"]-r.flexStyle[y[1]+"BorderBefore"]-r.flexStyle[y[1]+"BorderAfter"]);for(var o,s=-1;o=r.children[++s];){var f=o.element.style,a=o.mainAxis==="inline"?["main","cross"]:["cross","main"];f.boxSizing="content-box",f.display="block",f.position="absolute",o.flexStyle[a[0]]!=="auto"&&(f.width=t(o.flexStyle[a[0]]-o.flexStyle[a[0]+"InnerBefore"]-o.flexStyle[a[0]+"InnerAfter"]-o.flexStyle[a[0]+"BorderBefore"]-o.flexStyle[a[0]+"BorderAfter"])),o.flexStyle[a[1]]!=="auto"&&(f.height=t(o.flexStyle[a[1]]-o.flexStyle[a[1]+"InnerBefore"]-o.flexStyle[a[1]+"InnerAfter"]-o.flexStyle[a[1]+"BorderBefore"]-o.flexStyle[a[1]+"BorderAfter"])),f.top=t(o.flexStyle[a[1]+"Start"]),f.left=t(o.flexStyle[a[0]+"Start"]),f.marginTop=t(o.flexStyle[a[1]+"Before"]),f.marginRight=t(o.flexStyle[a[0]+"After"]),f.marginBottom=t(o.flexStyle[a[1]+"After"]),f.marginLeft=t(o.flexStyle[a[0]+"Before"])}}function t(r){return typeof r=="string"?r:Math.max(r,0)+"px"}i.exports=e;var n=c("../flexbox")},{"../flexbox":7}],18:[function(c,i,x){function e(n){for(var r,l=-1;r=n[++l];)t(r)}i.exports=e;var t=c("../write")},{"../write":17}]},{},[13])(13)})})(O);var I=O.exports;const W=w(I),R=L({__proto__:null,default:W},[I]);export{W as default,R as f};

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.