[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/vendor/bootstrap/js/ -> popper.min.js (source)

   1  var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getBoundingClientRect(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(isHTMLElement(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=round(n.width)/a||1),i>0&&(o=round(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position)?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var r=within(e,t,n);return r>n?n:r}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var toPaddingObject=function(e,t){return mergePaddingObject("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,basePlacements))};function arrow(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement(n.placement),f=getMainAxisFromPlacement(s),l=[left,right].indexOf(s)>=0?"height":"width";if(i&&a){var p=toPaddingObject(o.padding,n),c=getLayoutRect(i),d="y"===f?top:left,u="y"===f?bottom:right,m=n.rects.reference[l]+n.rects.reference[f]-a[f]-n.rects.popper[l],g=a[f]-n.rects.reference[f],h=getOffsetParent(i),v=h?"y"===f?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,b=p[d],w=v-c[l]-p[u],O=v/2-c[l]/2+y,x=within(b,O,w),P=f;n.modifiersData[r]=((t={})[P]=x,t.centerOffset=x-O,t)}}function effect$1(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:round(t*r)/r||0,y:round(n*r)/r||0}}function mapToStyles(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets,c=e.isFixed,d=!0===p?roundOffsetsByDPR(a):"function"==typeof p?p(a):a,u=d.x,m=void 0===u?0:u,g=d.y,h=void 0===g?0:g,v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=left,w=top,O=window;if(l){var x=getOffsetParent(n),P="clientHeight",S="clientWidth";if(x===getWindow(n)&&"static"!==getComputedStyle(x=getDocumentElement(n)).position&&"absolute"===s&&(P="scrollHeight",S="scrollWidth"),x=x,o===top||(o===left||o===right)&&i===end)w=bottom,h-=(c&&O.visualViewport?O.visualViewport.height:x[P])-r.height,h*=f?1:-1;if(o===left||(o===top||o===bottom)&&i===end)b=right,m-=(c&&O.visualViewport?O.visualViewport.width:x[S])-r.width,m*=f?1:-1}var E,M=Object.assign({position:s},l&&unsetSides);return f?Object.assign({},M,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",E)):Object.assign({},M,((t={})[w]=y?h+"px":"",t[b]=v?m+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=getWindow(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,passive)})),s&&f.addEventListener("resize",n.update,passive),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,passive)})),s&&f.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=max(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=max(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+getWindowScrollBarX(e),f=-r.scrollTop;return"rtl"===getComputedStyle(o||n).direction&&(s+=max(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=getWindow(r),a=o?[i].concat(i.visualViewport||[],isScrollParent(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0,r=n&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(r)?t.filter((function(e){return isElement(e)&&contains(e,r)&&"body"!==getNodeName(e)&&(!n||"static"!==getComputedStyle(e).position)})):[]}function getClippingRect(e,t,n){var r="clippingParents"===t?getClippingParents(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=max(r.top,t.top),t.right=min(r.right,t.right),t.bottom=min(r.bottom,t.bottom),t.left=max(r.left,t.left),t}),getClientRectFromMixedType(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?getBasePlacement(o):null,a=o?getVariation(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case top:t={x:s,y:n.y-r.height};break;case bottom:t={x:s,y:n.y+n.height};break;case right:t={x:n.x+n.width,y:f};break;case left:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var l=i?getMainAxisFromPlacement(i):null;if(null!=l){var p="y"===l?"height":"width";switch(a){case start:t[l]=t[l]-(n[p]/2-r[p]/2);break;case end:t[l]=t[l]+(n[p]/2-r[p]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?clippingParents:i,s=n.rootBoundary,f=void 0===s?viewport:s,l=n.elementContext,p=void 0===l?popper:l,c=n.altBoundary,d=void 0!==c&&c,u=n.padding,m=void 0===u?0:u,g=mergePaddingObject("number"!=typeof m?m:expandToHashMap(m,basePlacements)),h=p===popper?reference:popper,v=e.rects.popper,y=e.elements[d?h:p],b=getClippingRect(isElement(y)?y:y.contextElement||getDocumentElement(e.elements.popper),a,f),w=getBoundingClientRect(e.elements.reference),O=computeOffsets({reference:w,element:v,strategy:"absolute",placement:o}),x=rectToClientRect(Object.assign({},v,O)),P=p===popper?x:w,S={top:b.top-P.top+g.top,bottom:P.bottom-b.bottom+g.bottom,left:b.left-P.left+g.left,right:P.right-b.right+g.right},E=e.modifiersData.offset;if(p===popper&&E){var M=E[o];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1,n=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[n]*t}))}return S}function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,l=void 0===f?placements:f,p=getVariation(r),c=p?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===p})):basePlacements,d=c.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=c);var u=d.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[getBasePlacement(n)],t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,l=n.padding,p=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.flipVariations,m=void 0===u||u,g=n.allowedAutoPlacements,h=t.options.placement,v=getBasePlacement(h),y=f||(v===h||!m?[getOppositePlacement(h)]:getExpandedFallbackPlacements(h)),b=[h].concat(y).reduce((function(e,n){return e.concat(getBasePlacement(n)===auto?computeAutoPlacement(t,{placement:n,boundary:p,rootBoundary:c,padding:l,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,P=!0,S=b[0],E=0;E<b.length;E++){var M=b[E],R=getBasePlacement(M),T=getVariation(M)===start,C=[top,bottom].indexOf(R)>=0,L=C?"width":"height",B=detectOverflow(t,{placement:M,boundary:p,rootBoundary:c,altBoundary:d,padding:l}),W=C?T?right:left:T?bottom:top;w[L]>O[L]&&(W=getOppositePlacement(W));var A=getOppositePlacement(W),D=[];if(i&&D.push(B[R]<=0),s&&D.push(B[W]<=0,B[A]<=0),D.every((function(e){return e}))){S=M,P=!1;break}x.set(M,D)}if(P)for(var j=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=m?3:1;N>0;N--){if("break"===j(N))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),f=getSideOffsets(a,r),l=getSideOffsets(s,o,i),p=isAnySideFullyClipped(f),c=isAnySideFullyClipped(l);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":c})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),o=[left,top].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[left,right].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function offset(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=placements.reduce((function(e,n){return e[n]=distanceAndSkiddingToXY(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return"x"===e?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,l=n.rootBoundary,p=n.altBoundary,c=n.padding,d=n.tether,u=void 0===d||d,m=n.tetherOffset,g=void 0===m?0:m,h=detectOverflow(t,{boundary:f,rootBoundary:l,padding:c,altBoundary:p}),v=getBasePlacement(t.placement),y=getVariation(t.placement),b=!y,w=getMainAxisFromPlacement(v),O=getAltAxis(w),x=t.modifiersData.popperOffsets,P=t.rects.reference,S=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,M="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(i){var C,L="y"===w?top:left,B="y"===w?bottom:right,W="y"===w?"height":"width",A=x[w],D=A+h[L],j=A-h[B],N=u?-S[W]/2:0,$=y===start?P[W]:S[W],H=y===start?-S[W]:-P[W],k=t.elements.arrow,V=u&&k?getLayoutRect(k):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),q=F[L],I=F[B],_=within(0,P[W],V[W]),X=b?P[W]/2-N-_-q-M.mainAxis:$-_-q-M.mainAxis,U=b?-P[W]/2+N+_+I+M.mainAxis:H+_+I+M.mainAxis,G=t.elements.arrow&&getOffsetParent(t.elements.arrow),z=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(C=null==R?void 0:R[w])?C:0,J=A+U-Y,K=within(u?min(D,A+X-Y-z):D,A,u?max(j,J):j);x[w]=K,T[w]=K-A}if(s){var Q,Z="x"===w?top:left,ee="x"===w?bottom:right,te=x[O],ne="y"===O?"height":"width",re=te+h[Z],oe=te-h[ee],ie=-1!==[top,left].indexOf(v),ae=null!=(Q=null==R?void 0:R[O])?Q:0,se=ie?re:te-P[ne]-S[ne]-ae+M.altAxis,fe=ie?te+P[ne]+S[ne]-ae-M.altAxis:oe,le=u&&ie?withinMaxClamp(se,te,fe):within(u?se:re,te,u?fe:oe);x[O]=le,T[O]=le-te}t.modifiersData[r]=T}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?getHTMLElementScroll(e):getWindowScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round(t.width)/e.offsetWidth||1,r=round(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=isHTMLElement(t),o=isHTMLElement(t)&&isElementScaled(t),i=getDocumentElement(t),a=getBoundingClientRect(e,o),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&(("body"!==getNodeName(t)||isScrollParent(i))&&(s=getNodeScroll(t)),isHTMLElement(t)?((f=getBoundingClientRect(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=getWindowScrollBarX(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function debounce(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function mergeByName(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?DEFAULT_OPTIONS:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,f={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;l(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var p=orderModifiers(mergeByName([].concat(r,o.options.modifiers)));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:f,options:r}),l=function(){};a.push(s||l)}})),f.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){o.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===o.options.strategy),popper:getLayoutRect(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,p=void 0===l?{}:l,c=i.name;"function"==typeof a&&(o=a({state:o,options:p,name:c,instance:f})||o)}else o.reset=!1,r=-1}}},update:debounce((function(){return new Promise((function(e){f.forceUpdate(),e(o)}))})),destroy:function(){l(),s=!0}};if(!areValidElements(e,t))return f;function l(){a.forEach((function(e){return e()})),a=[]}return f.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers:defaultModifiers}),Popper=Object.freeze({__proto__:null,popperGenerator:popperGenerator,detectOverflow:detectOverflow,createPopperBase:createPopper$2,createPopper:createPopper,createPopperLite:createPopper$1,top:top,bottom:bottom,right:right,left:left,auto:auto,basePlacements:basePlacements,start:start,end:end,clippingParents:clippingParents,viewport:viewport,popper:popper,reference:reference,variationPlacements:variationPlacements,placements:placements,beforeRead:beforeRead,read:read,afterRead:afterRead,beforeMain:beforeMain,main:main,afterMain:afterMain,beforeWrite:beforeWrite,write:write,afterWrite:afterWrite,modifierPhases:modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners:eventListeners,flip:flip$1,hide:hide$1,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1});export{Popper as P,createPopper as c};


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer