????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/popper-578b62a7.js

var T="top",$="bottom",L="right",B="left",we="auto",ce=[T,$,L,B],_="start",fe="end",mt="clippingParents",tt="viewport",oe="popper",gt="reference",Xe=ce.reduce(function(t,e){return t.concat([e+"-"+_,e+"-"+fe])},[]),rt=[].concat(ce,[we]).reduce(function(t,e){return t.concat([e,e+"-"+_,e+"-"+fe])},[]),yt="beforeRead",bt="read",wt="afterRead",xt="beforeMain",Ot="main",Et="afterMain",At="beforeWrite",Pt="write",Rt="afterWrite",Re=[yt,bt,wt,xt,Ot,Et,At,Pt,Rt];function H(t){return t?(t.nodeName||"").toLowerCase():null}function M(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Q(t){var e=M(t).Element;return t instanceof e||t instanceof Element}function k(t){var e=M(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function je(t){if(typeof ShadowRoot>"u")return!1;var e=M(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function St(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},o=e.elements[r];!k(o)||!H(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(p){var s=a[p];s===!1?o.removeAttribute(p):o.setAttribute(p,s===!0?"":s)}))})}function Dt(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],o=e.attributes[n]||{},p=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=p.reduce(function(i,c){return i[c]="",i},{});!k(a)||!H(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(i){a.removeAttribute(i)}))})}}const jt={name:"applyStyles",enabled:!0,phase:"write",fn:St,effect:Dt,requires:["computeStyles"]};function W(t){return t.split("-")[0]}var K=Math.max,be=Math.min,ee=Math.round;function Se(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nt(){return!/^((?!chrome|android).)*safari/i.test(Se())}function te(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,o=1;e&&k(t)&&(a=t.offsetWidth>0&&ee(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&ee(n.height)/t.offsetHeight||1);var p=Q(t)?M(t):window,s=p.visualViewport,i=!nt()&&r,c=(n.left+(i&&s?s.offsetLeft:0))/a,f=(n.top+(i&&s?s.offsetTop:0))/o,h=n.width/a,b=n.height/o;return{width:h,height:b,top:f,right:c+h,bottom:f+b,left:c,x:c,y:f}}function Te(t){var e=te(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function at(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&je(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function q(t){return M(t).getComputedStyle(t)}function Tt(t){return["table","td","th"].indexOf(H(t))>=0}function F(t){return((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function xe(t){return H(t)==="html"?t:t.assignedSlot||t.parentNode||(je(t)?t.host:null)||F(t)}function Ye(t){return!k(t)||q(t).position==="fixed"?null:t.offsetParent}function Bt(t){var e=/firefox/i.test(Se()),r=/Trident/i.test(Se());if(r&&k(t)){var n=q(t);if(n.position==="fixed")return null}var a=xe(t);for(je(a)&&(a=a.host);k(a)&&["html","body"].indexOf(H(a))<0;){var o=q(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function le(t){for(var e=M(t),r=Ye(t);r&&Tt(r)&&q(r).position==="static";)r=Ye(r);return r&&(H(r)==="html"||H(r)==="body"&&q(r).position==="static")?e:r||Bt(t)||e}function Be(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ie(t,e,r){return K(t,be(e,r))}function Ct(t,e,r){var n=ie(t,e,r);return n>r?r:n}function ot(){return{top:0,right:0,bottom:0,left:0}}function it(t){return Object.assign({},ot(),t)}function st(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var kt=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,it(typeof e!="number"?e:st(e,ce))};function $t(t){var e,r=t.state,n=t.name,a=t.options,o=r.elements.arrow,p=r.modifiersData.popperOffsets,s=W(r.placement),i=Be(s),c=[B,L].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!p)){var h=kt(a.padding,r),b=Te(o),l=i==="y"?T:B,x=i==="y"?$:L,m=r.rects.reference[f]+r.rects.reference[i]-p[i]-r.rects.popper[f],d=p[i]-r.rects.reference[i],w=le(o),A=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,E=m/2-d/2,u=h[l],g=A-b[f]-h[x],v=A/2-b[f]/2+E,O=ie(u,v,g),P=i;r.modifiersData[n]=(e={},e[P]=O,e.centerOffset=O-v,e)}}function Lt(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;if(a!=null&&!(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a))){if(k(a)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!at(e.elements.popper,a)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=a}}const Mt={name:"arrow",enabled:!0,phase:"main",fn:$t,effect:Lt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(t){return t.split("-")[1]}var It={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wt(t){var e=t.x,r=t.y,n=window,a=n.devicePixelRatio||1;return{x:ee(e*a)/a||0,y:ee(r*a)/a||0}}function Ue(t){var e,r=t.popper,n=t.popperRect,a=t.placement,o=t.variation,p=t.offsets,s=t.position,i=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,h=t.isFixed,b=p.x,l=b===void 0?0:b,x=p.y,m=x===void 0?0:x,d=typeof f=="function"?f({x:l,y:m}):{x:l,y:m};l=d.x,m=d.y;var w=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),E=B,u=T,g=window;if(c){var v=le(r),O="clientHeight",P="clientWidth";if(v===M(r)&&(v=F(r),q(v).position!=="static"&&s==="absolute"&&(O="scrollHeight",P="scrollWidth")),v=v,a===T||(a===B||a===L)&&o===fe){u=$;var R=h&&v===g&&g.visualViewport?g.visualViewport.height:v[O];m-=R-n.height,m*=i?1:-1}if(a===B||(a===T||a===$)&&o===fe){E=L;var S=h&&v===g&&g.visualViewport?g.visualViewport.width:v[P];l-=S-n.width,l*=i?1:-1}}var y=Object.assign({position:s},c&&It),D=f===!0?Wt({x:l,y:m}):{x:l,y:m};if(l=D.x,m=D.y,i){var j;return Object.assign({},y,(j={},j[u]=A?"0":"",j[E]=w?"0":"",j.transform=(g.devicePixelRatio||1)<=1?"translate("+l+"px, "+m+"px)":"translate3d("+l+"px, "+m+"px, 0)",j))}return Object.assign({},y,(e={},e[u]=A?m+"px":"",e[E]=w?l+"px":"",e.transform="",e))}function qt(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,p=o===void 0?!0:o,s=r.roundOffsets,i=s===void 0?!0:s;{var c=q(e.elements.popper).transitionProperty||"";p&&["transform","top","right","bottom","left"].some(function(h){return c.indexOf(h)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`

`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`

`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:W(e.placement),variation:re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ue(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:p,roundOffsets:i})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ue(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qt,data:{}};var ge={passive:!0};function Nt(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,o=a===void 0?!0:a,p=n.resize,s=p===void 0?!0:p,i=M(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",r.update,ge)}),s&&i.addEventListener("resize",r.update,ge),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",r.update,ge)}),s&&i.removeEventListener("resize",r.update,ge)}}const Vt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nt,data:{}};var Ft={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(t){return t.replace(/left|right|bottom|top/g,function(e){return Ft[e]})}var Xt={start:"end",end:"start"};function ze(t){return t.replace(/start|end/g,function(e){return Xt[e]})}function Ce(t){var e=M(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ke(t){return te(F(t)).left+Ce(t).scrollLeft}function Yt(t,e){var r=M(t),n=F(t),a=r.visualViewport,o=n.clientWidth,p=n.clientHeight,s=0,i=0;if(a){o=a.width,p=a.height;var c=nt();(c||!c&&e==="fixed")&&(s=a.offsetLeft,i=a.offsetTop)}return{width:o,height:p,x:s+ke(t),y:i}}function Ut(t){var e,r=F(t),n=Ce(t),a=(e=t.ownerDocument)==null?void 0:e.body,o=K(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),p=K(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+ke(t),i=-n.scrollTop;return q(a||r).direction==="rtl"&&(s+=K(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:p,x:s,y:i}}function $e(t){var e=q(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ft(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:k(t)&&$e(t)?t:ft(xe(t))}function se(t,e){var r;e===void 0&&(e=[]);var n=ft(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),o=M(n),p=a?[o].concat(o.visualViewport||[],$e(n)?n:[]):n,s=e.concat(p);return a?s:s.concat(se(xe(p)))}function De(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function zt(t,e){var r=te(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ge(t,e,r){return e===tt?De(Yt(t,r)):Q(e)?zt(e,r):De(Ut(F(t)))}function Gt(t){var e=se(xe(t)),r=["absolute","fixed"].indexOf(q(t).position)>=0,n=r&&k(t)?le(t):t;return Q(n)?e.filter(function(a){return Q(a)&&at(a,n)&&H(a)!=="body"}):[]}function Jt(t,e,r,n){var a=e==="clippingParents"?Gt(t):[].concat(e),o=[].concat(a,[r]),p=o[0],s=o.reduce(function(i,c){var f=Ge(t,c,n);return i.top=K(f.top,i.top),i.right=be(f.right,i.right),i.bottom=be(f.bottom,i.bottom),i.left=K(f.left,i.left),i},Ge(t,p,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function pt(t){var e=t.reference,r=t.element,n=t.placement,a=n?W(n):null,o=n?re(n):null,p=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,i;switch(a){case T:i={x:p,y:e.y-r.height};break;case $:i={x:p,y:e.y+e.height};break;case L:i={x:e.x+e.width,y:s};break;case B:i={x:e.x-r.width,y:s};break;default:i={x:e.x,y:e.y}}var c=a?Be(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case _:i[c]=i[c]-(e[f]/2-r[f]/2);break;case fe:i[c]=i[c]+(e[f]/2-r[f]/2);break}}return i}function pe(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,o=r.strategy,p=o===void 0?t.strategy:o,s=r.boundary,i=s===void 0?mt:s,c=r.rootBoundary,f=c===void 0?tt:c,h=r.elementContext,b=h===void 0?oe:h,l=r.altBoundary,x=l===void 0?!1:l,m=r.padding,d=m===void 0?0:m,w=it(typeof d!="number"?d:st(d,ce)),A=b===oe?gt:oe,E=t.rects.popper,u=t.elements[x?A:b],g=Jt(Q(u)?u:u.contextElement||F(t.elements.popper),i,f,p),v=te(t.elements.reference),O=pt({reference:v,element:E,strategy:"absolute",placement:a}),P=De(Object.assign({},E,O)),R=b===oe?P:v,S={top:g.top-R.top+w.top,bottom:R.bottom-g.bottom+w.bottom,left:g.left-R.left+w.left,right:R.right-g.right+w.right},y=t.modifiersData.offset;if(b===oe&&y){var D=y[a];Object.keys(S).forEach(function(j){var X=[L,$].indexOf(j)>=0?1:-1,Y=[T,$].indexOf(j)>=0?"y":"x";S[j]+=D[Y]*X})}return S}function Kt(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,o=r.rootBoundary,p=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,c=i===void 0?rt:i,f=re(n),h=f?s?Xe:Xe.filter(function(x){return re(x)===f}):ce,b=h.filter(function(x){return c.indexOf(x)>=0});b.length===0&&(b=h,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var l=b.reduce(function(x,m){return x[m]=pe(t,{placement:m,boundary:a,rootBoundary:o,padding:p})[W(m)],x},{});return Object.keys(l).sort(function(x,m){return l[x]-l[m]})}function Qt(t){if(W(t)===we)return[];var e=ye(t);return[ze(t),e,ze(e)]}function Zt(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,p=r.altAxis,s=p===void 0?!0:p,i=r.fallbackPlacements,c=r.padding,f=r.boundary,h=r.rootBoundary,b=r.altBoundary,l=r.flipVariations,x=l===void 0?!0:l,m=r.allowedAutoPlacements,d=e.options.placement,w=W(d),A=w===d,E=i||(A||!x?[ye(d)]:Qt(d)),u=[d].concat(E).reduce(function(Z,N){return Z.concat(W(N)===we?Kt(e,{placement:N,boundary:f,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:m}):N)},[]),g=e.rects.reference,v=e.rects.popper,O=new Map,P=!0,R=u[0],S=0;S<u.length;S++){var y=u[S],D=W(y),j=re(y)===_,X=[T,$].indexOf(D)>=0,Y=X?"width":"height",C=pe(e,{placement:y,boundary:f,rootBoundary:h,altBoundary:b,padding:c}),I=X?j?L:B:j?$:T;g[Y]>v[Y]&&(I=ye(I));var ue=ye(I),U=[];if(o&&U.push(C[D]<=0),s&&U.push(C[I]<=0,C[ue]<=0),U.every(function(Z){return Z})){R=y,P=!1;break}O.set(y,U)}if(P)for(var ve=x?3:1,Oe=function(N){var ae=u.find(function(he){var z=O.get(he);if(z)return z.slice(0,N).every(function(Ee){return Ee})});if(ae)return R=ae,"break"},ne=ve;ne>0;ne--){var de=Oe(ne);if(de==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const _t={name:"flip",enabled:!0,phase:"main",fn:Zt,requiresIfExists:["offset"],data:{_skip:!1}};function Je(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ke(t){return[T,L,$,B].some(function(e){return t[e]>=0})}function er(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,o=e.modifiersData.preventOverflow,p=pe(e,{elementContext:"reference"}),s=pe(e,{altBoundary:!0}),i=Je(p,n),c=Je(s,a,o),f=Ke(i),h=Ke(c);e.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const tr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:er};function rr(t,e,r){var n=W(t),a=[B,T].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,p=o[0],s=o[1];return p=p||0,s=(s||0)*a,[B,L].indexOf(n)>=0?{x:s,y:p}:{x:p,y:s}}function nr(t){var e=t.state,r=t.options,n=t.name,a=r.offset,o=a===void 0?[0,0]:a,p=rt.reduce(function(f,h){return f[h]=rr(h,e.rects,o),f},{}),s=p[e.placement],i=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=p}const ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nr};function or(t){var e=t.state,r=t.name;e.modifiersData[r]=pt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ir={name:"popperOffsets",enabled:!0,phase:"read",fn:or,data:{}};function sr(t){return t==="x"?"y":"x"}function fr(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,o=a===void 0?!0:a,p=r.altAxis,s=p===void 0?!1:p,i=r.boundary,c=r.rootBoundary,f=r.altBoundary,h=r.padding,b=r.tether,l=b===void 0?!0:b,x=r.tetherOffset,m=x===void 0?0:x,d=pe(e,{boundary:i,rootBoundary:c,padding:h,altBoundary:f}),w=W(e.placement),A=re(e.placement),E=!A,u=Be(w),g=sr(u),v=e.modifiersData.popperOffsets,O=e.rects.reference,P=e.rects.popper,R=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,S=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(v){if(o){var j,X=u==="y"?T:B,Y=u==="y"?$:L,C=u==="y"?"height":"width",I=v[u],ue=I+d[X],U=I-d[Y],ve=l?-P[C]/2:0,Oe=A===_?O[C]:P[C],ne=A===_?-P[C]:-O[C],de=e.elements.arrow,Z=l&&de?Te(de):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ot(),ae=N[X],he=N[Y],z=ie(0,O[C],Z[C]),Ee=E?O[C]/2-ve-z-ae-S.mainAxis:Oe-z-ae-S.mainAxis,ct=E?-O[C]/2+ve+z+he+S.mainAxis:ne+z+he+S.mainAxis,Ae=e.elements.arrow&&le(e.elements.arrow),lt=Ae?u==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Le=(j=y==null?void 0:y[u])!=null?j:0,ut=I+Ee-Le-lt,vt=I+ct-Le,Me=ie(l?be(ue,ut):ue,I,l?K(U,vt):U);v[u]=Me,D[u]=Me-I}if(s){var Ie,dt=u==="x"?T:B,ht=u==="x"?$:L,G=v[g],me=g==="y"?"height":"width",We=G+d[dt],qe=G-d[ht],Pe=[T,B].indexOf(w)!==-1,He=(Ie=y==null?void 0:y[g])!=null?Ie:0,Ne=Pe?We:G-O[me]-P[me]-He+S.altAxis,Ve=Pe?G+O[me]+P[me]-He-S.altAxis:qe,Fe=l&&Pe?Ct(Ne,G,Ve):ie(l?Ne:We,G,l?Ve:qe);v[g]=Fe,D[g]=Fe-G}e.modifiersData[n]=D}}const pr={name:"preventOverflow",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"]};function cr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function lr(t){return t===M(t)||!k(t)?Ce(t):cr(t)}function ur(t){var e=t.getBoundingClientRect(),r=ee(e.width)/t.offsetWidth||1,n=ee(e.height)/t.offsetHeight||1;return r!==1||n!==1}function vr(t,e,r){r===void 0&&(r=!1);var n=k(e),a=k(e)&&ur(e),o=F(e),p=te(t,a,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(n||!n&&!r)&&((H(e)!=="body"||$e(o))&&(s=lr(e)),k(e)?(i=te(e,!0),i.x+=e.clientLeft,i.y+=e.clientTop):o&&(i.x=ke(o))),{x:p.left+s.scrollLeft-i.x,y:p.top+s.scrollTop-i.y,width:p.width,height:p.height}}function dr(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function a(o){r.add(o.name);var p=[].concat(o.requires||[],o.requiresIfExists||[]);p.forEach(function(s){if(!r.has(s)){var i=e.get(s);i&&a(i)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||a(o)}),n}function hr(t){var e=dr(t);return Re.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function mr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function V(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(a,o){return a.replace(/%s/,o)},t)}var J='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',gr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Qe=["name","enabled","phase","fn","effect","requires","options"];function yr(t){t.forEach(function(e){[].concat(Object.keys(e),Qe).filter(function(r,n,a){return a.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(V(J,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(V(J,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Re.indexOf(e.phase)<0&&console.error(V(J,e.name,'"phase"',"either "+Re.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(V(J,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(V(J,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(V(J,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(V(J,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Qe.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(a){return a.name===n})==null&&console.error(V(gr,String(e.name),n,n))})})})}function br(t,e){var r=new Set;return t.filter(function(n){var a=e(n);if(!r.has(a))return r.add(a),!0})}function wr(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Ze="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",xr="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",_e={placement:"bottom",modifiers:[],strategy:"absolute"};function et(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Or(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,a=e.defaultOptions,o=a===void 0?_e:a;return function(s,i,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_e,o),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},h=[],b=!1,l={state:f,setOptions:function(w){var A=typeof w=="function"?w(f.options):w;m(),f.options=Object.assign({},o,f.options,A),f.scrollParents={reference:Q(s)?se(s):s.contextElement?se(s.contextElement):[],popper:se(i)};var E=hr(wr([].concat(n,f.options.modifiers)));f.orderedModifiers=E.filter(function(y){return y.enabled});{var u=br([].concat(E,f.options.modifiers),function(y){var D=y.name;return D});if(yr(u),W(f.options.placement)===we){var g=f.orderedModifiers.find(function(y){var D=y.name;return D==="flip"});g||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var v=q(i),O=v.marginTop,P=v.marginRight,R=v.marginBottom,S=v.marginLeft;[O,P,R,S].some(function(y){return parseFloat(y)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return x(),l.update()},forceUpdate:function(){if(!b){var w=f.elements,A=w.reference,E=w.popper;if(!et(A,E)){console.error(Ze);return}f.rects={reference:vr(A,le(E),f.options.strategy==="fixed"),popper:Te(E)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,g=0;g<f.orderedModifiers.length;g++){if(u+=1,u>100){console.error(xr);break}if(f.reset===!0){f.reset=!1,g=-1;continue}var v=f.orderedModifiers[g],O=v.fn,P=v.options,R=P===void 0?{}:P,S=v.name;typeof O=="function"&&(f=O({state:f,options:R,name:S,instance:l})||f)}}},update:mr(function(){return new Promise(function(d){l.forceUpdate(),d(f)})}),destroy:function(){m(),b=!0}};if(!et(s,i))return console.error(Ze),l;l.setOptions(c).then(function(d){!b&&c.onFirstUpdate&&c.onFirstUpdate(d)});function x(){f.orderedModifiers.forEach(function(d){var w=d.name,A=d.options,E=A===void 0?{}:A,u=d.effect;if(typeof u=="function"){var g=u({state:f,name:w,instance:l,options:E}),v=function(){};h.push(g||v)}})}function m(){h.forEach(function(d){return d()}),h=[]}return l}}var Er=[Vt,ir,Ht,jt,ar,_t,pr,Mt,tr],Ar=Or({defaultModifiers:Er});export{Ar as c};