/** * @popperjs/core v2.11.5 - mit license */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalthis?globalthis:e||self).popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object window]"!==e.tostring()){var t=e.ownerdocument;return t&&t.defaultview||window}return e}function n(e){return e instanceof t(e).element||e instanceof element}function r(e){return e instanceof t(e).htmlelement||e instanceof htmlelement}function o(e){return"undefined"!=typeof shadowroot&&(e instanceof t(e).shadowroot||e instanceof shadowroot)}var i=math.max,a=math.min,s=math.round;function f(e,t){void 0===t&&(t=!1);var n=e.getboundingclientrect(),o=1,i=1;if(r(e)&&t){var a=e.offsetheight,f=e.offsetwidth;f>0&&(o=s(n.width)/f||1),a>0&&(i=s(n.height)/a||1)}return{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 c(e){var n=t(e);return{scrollleft:n.pagexoffset,scrolltop:n.pageyoffset}}function p(e){return e?(e.nodename||"").tolowercase():null}function u(e){return((n(e)?e.ownerdocument:e.document)||window.document).documentelement}function l(e){return f(u(e)).left+c(e).scrollleft}function d(e){return t(e).getcomputedstyle(e)}function h(e){var t=d(e),n=t.overflow,r=t.overflowx,o=t.overflowy;return/auto|scroll|overlay|hidden/.test(n+o+r)}function m(e,n,o){void 0===o&&(o=!1);var i,a,d=r(n),m=r(n)&&function(e){var t=e.getboundingclientrect(),n=s(t.width)/e.offsetwidth||1,r=s(t.height)/e.offsetheight||1;return 1!==n||1!==r}(n),v=u(n),g=f(e,m),y={scrollleft:0,scrolltop:0},b={x:0,y:0};return(d||!d&&!o)&&(("body"!==p(n)||h(v))&&(y=(i=n)!==t(i)&&r(i)?{scrollleft:(a=i).scrollleft,scrolltop:a.scrolltop}:c(i)),r(n)?((b=f(n,!0)).x+=n.clientleft,b.y+=n.clienttop):v&&(b.x=l(v))),{x:g.left+y.scrollleft-b.x,y:g.top+y.scrolltop-b.y,width:g.width,height:g.height}}function v(e){var t=f(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 g(e){return"html"===p(e)?e:e.assignedslot||e.parentnode||(o(e)?e.host:null)||u(e)}function y(e){return["html","body","#document"].indexof(p(e))>=0?e.ownerdocument.body:r(e)&&h(e)?e:y(g(e))}function b(e,n){var r;void 0===n&&(n=[]);var o=y(e),i=o===(null==(r=e.ownerdocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualviewport||[],h(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(b(g(s)))}function x(e){return["table","td","th"].indexof(p(e))>=0}function w(e){return r(e)&&"fixed"!==d(e).position?e.offsetparent:null}function o(e){for(var n=t(e),i=w(e);i&&x(i)&&"static"===d(i).position;)i=w(i);return i&&("html"===p(i)||"body"===p(i)&&"static"===d(i).position)?n:i||function(e){var t=-1!==navigator.useragent.tolowercase().indexof("firefox");if(-1!==navigator.useragent.indexof("trident")&&r(e)&&"fixed"===d(e).position)return null;var n=g(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexof(p(n))<0;){var i=d(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexof(i.willchange)||t&&"filter"===i.willchange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentnode}return null}(e)||n}var j="top",e="bottom",d="right",a="left",l="auto",p=[j,e,d,a],m="start",k="end",w="viewport",b="popper",h=p.reduce((function(e,t){return e.concat([t+"-"+m,t+"-"+k])}),[]),t=[].concat(p,[l]).reduce((function(e,t){return e.concat([t,t+"-"+m,t+"-"+k])}),[]),r=["beforeread","read","afterread","beforemain","main","aftermain","beforewrite","write","afterwrite"];function s(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 c(e){return e.split("-")[0]}function q(e,t){var n=t.getrootnode&&t.getrootnode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.issamenode(r))return!0;r=r.parentnode||r.host}while(r)}return!1}function v(e){return object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n(e,r){return r===w?v(function(e){var n=t(e),r=u(e),o=n.visualviewport,i=r.clientwidth,a=r.clientheight,s=0,f=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.useragent)||(s=o.offsetleft,f=o.offsettop)),{width:i,height:a,x:s+l(e),y:f}}(e)):n(r)?function(e){var t=f(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}(r):v(function(e){var t,n=u(e),r=c(e),o=null==(t=e.ownerdocument)?void 0:t.body,a=i(n.scrollwidth,n.clientwidth,o?o.scrollwidth:0,o?o.clientwidth:0),s=i(n.scrollheight,n.clientheight,o?o.scrollheight:0,o?o.clientheight:0),f=-r.scrollleft+l(e),p=-r.scrolltop;return"rtl"===d(o||n).direction&&(f+=i(n.clientwidth,o?o.clientwidth:0)-a),{width:a,height:s,x:f,y:p}}(u(e)))}function i(e,t,o){var s="clippingparents"===t?function(e){var t=b(g(e)),o=["absolute","fixed"].indexof(d(e).position)>=0&&r(e)?o(e):e;return n(o)?t.filter((function(e){return n(e)&&q(e,o)&&"body"!==p(e)})):[]}(e):[].concat(t),f=[].concat(s,[o]),c=f[0],u=f.reduce((function(t,n){var r=n(e,n);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),n(e,c));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function _(e){return e.split("-")[1]}function f(e){return["top","bottom"].indexof(e)>=0?"x":"y"}function u(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?c(o):null,a=o?_(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case e:t={x:s,y:n.y+n.height};break;case d:t={x:n.x+n.width,y:f};break;case a:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?f(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case m:t[c]=t[c]-(n[p]/2-r[p]/2);break;case k:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function z(e){return object.assign({},{top:0,right:0,bottom:0,left:0},e)}function x(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function y(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.boundary,s=void 0===a?"clippingparents":a,c=r.rootboundary,p=void 0===c?w:c,l=r.elementcontext,d=void 0===l?b:l,h=r.altboundary,m=void 0!==h&&h,v=r.padding,g=void 0===v?0:v,y=z("number"!=typeof g?g:x(g,p)),b=d===b?"reference":b,x=e.rects.popper,w=e.elements[m?b:d],o=i(n(w)?w:w.contextelement||u(e.elements.popper),s,p),a=f(e.elements.reference),l=u({reference:a,element:x,strategy:"absolute",placement:i}),m=v(object.assign({},x,l)),k=d===b?m:a,h={top:o.top-k.top+y.top,bottom:k.bottom-o.bottom+y.bottom,left:o.left-k.left+y.left,right:k.right-o.right+y.right},t=e.modifiersdata.offset;if(d===b&&t){var r=t[i];object.keys(h).foreach((function(e){var t=[d,e].indexof(e)>=0?1:-1,n=[j,e].indexof(e)>=0?"y":"x";h[e]+=r[n]*t}))}return h}var g={placement:"bottom",modifiers:[],strategy:"absolute"};function j(){for(var e=arguments.length,t=new array(e),n=0;n=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,[a,d].indexof(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersdata.popperoffsets&&(t.modifiersdata.popperoffsets.x+=f,t.modifiersdata.popperoffsets.y+=c),t.modifiersdata[r]=a}},ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ce(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,c=void 0===f?t:f,p=_(r),u=p?s?h:h.filter((function(e){return _(e)===p})):p,l=u.filter((function(e){return c.indexof(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=y(e,{placement:n,boundary:o,rootboundary:i,padding:a})[c(n)],t}),{});return object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(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,c=n.padding,p=n.boundary,u=n.rootboundary,l=n.altboundary,d=n.flipvariations,h=void 0===d||d,m=n.allowedautoplacements,v=t.options.placement,g=c(v),y=f||(g===v||!h?[ae(v)]:function(e){if(c(e)===l)return[];var t=ae(e);return[fe(e),t,fe(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(c(n)===l?ce(t,{placement:n,boundary:p,rootboundary:u,padding:c,flipvariations:h,allowedautoplacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,o=new map,p=!0,k=b[0],w=0;w=0,s=r?"width":"height",q=y(t,{placement:b,boundary:p,rootboundary:u,altboundary:l,padding:c}),v=r?t?d:a:t?e:j;x[s]>w[s]&&(v=ae(v));var n=ae(v),i=[];if(i&&i.push(q[h]<=0),s&&i.push(q[v]<=0,q[n]<=0),i.every((function(e){return e}))){k=b,p=!1;break}o.set(b,i)}if(p)for(var f=function(e){var t=b.find((function(t){var n=o.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},u=h?3:1;u>0;u--){if("break"===f(u))break}t.placement!==k&&(t.modifiersdata[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresifexists:["offset"],data:{_skip:!1}};function ue(e,t,n){return i(e,a(t,n))}var le={name:"preventoverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainaxis,s=void 0===o||o,f=n.altaxis,c=void 0!==f&&f,p=n.boundary,u=n.rootboundary,l=n.altboundary,d=n.padding,h=n.tether,m=void 0===h||h,g=n.tetheroffset,y=void 0===g?0:g,b=y(t,{boundary:p,rootboundary:u,padding:d,altboundary:l}),x=c(t.placement),w=_(t.placement),l=!w,p=f(x),k="x"===p?"y":"x",w=t.modifiersdata.popperoffsets,b=t.rects.reference,h=t.rects.popper,t="function"==typeof y?y(object.assign({},t.rects,{placement:t.placement})):y,r="number"==typeof t?{mainaxis:t,altaxis:t}:object.assign({mainaxis:0,altaxis:0},t),s=t.modifiersdata.offset?t.modifiersdata.offset[t.placement]:null,q={x:0,y:0};if(w){if(s){var v,n="y"===p?j:a,i="y"===p?e:d,u="y"===p?"height":"width",z=w[p],x=z+b[n],g=z-b[i],j=m?-h[u]/2:0,k=w===m?b[u]:h[u],q=w===m?-h[u]:-b[u],z=t.elements.arrow,$=m&&z?v(z):{width:0,height:0},ee=t.modifiersdata["arrow#persistent"]?t.modifiersdata["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[n],ne=ee[i],re=ue(0,b[u],$[u]),oe=l?b[u]/2-j-re-te-r.mainaxis:k-re-te-r.mainaxis,ie=l?-b[u]/2+j+re+ne+r.mainaxis:q+re+ne+r.mainaxis,ae=t.elements.arrow&&o(t.elements.arrow),se=ae?"y"===p?ae.clienttop||0:ae.clientleft||0:0,fe=null!=(v=null==s?void 0:s[p])?v:0,ce=z+ie-fe,pe=ue(m?a(x,z+oe-fe-se):x,z,m?i(g,ce):g);w[p]=pe,q[p]=pe-z}if(c){var le,de="x"===p?j:a,he="x"===p?e:d,me=w[k],ve="y"===k?"height":"width",ge=me+b[de],ye=me-b[he],be=-1!==[j,a].indexof(x),xe=null!=(le=null==s?void 0:s[k])?le:0,we=be?ge:me-b[ve]-h[ve]-xe+r.altaxis,oe=be?me+b[ve]+h[ve]-xe-r.altaxis:ye,je=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(we,me,oe):ue(m?we:ge,me,m?oe:ye);w[k]=je,q[k]=je-me}t.modifiersdata[r]=q}},requiresifexists:["offset"]};var de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersdata.popperoffsets,s=c(n.placement),f=f(s),c=[a,d].indexof(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return z("number"!=typeof(e="function"==typeof e?e(object.assign({},t.rects,{placement:t.placement})):e)?e:x(e,p))}(o.padding,n),u=v(i),l="y"===f?j:a,d="y"===f?e:d,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],g=o(i),y=g?"y"===f?g.clientheight||0:g.clientwidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],l=y/2-u[c]/2+b,m=ue(x,l,w),k=f;n.modifiersdata[r]=((t={})[k]=m,t.centeroffset=m-l,t)}},effect:function(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)))&&q(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperoffsets"],requiresifexists:["preventoverflow"]};function he(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 me(e){return[j,d,e,a].some((function(t){return e[t]>=0}))}var ve={name:"hide",enabled:!0,phase:"main",requiresifexists:["preventoverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersdata.preventoverflow,a=y(t,{elementcontext:"reference"}),s=y(t,{altboundary:!0}),f=he(a,r),c=he(s,o,i),p=me(f),u=me(c);t.modifiersdata[n]={referenceclippingoffsets:f,popperescapeoffsets:c,isreferencehidden:p,haspopperescaped:u},t.attributes.popper=object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}},ge=k({defaultmodifiers:[z,$,ne,re]}),ye=[z,$,ne,re,oe,pe,le,de,ve],be=k({defaultmodifiers:ye});e.applystyles=re,e.arrow=de,e.computestyles=ne,e.createpopper=be,e.createpopperlite=ge,e.defaultmodifiers=ye,e.detectoverflow=y,e.eventlisteners=z,e.flip=pe,e.hide=ve,e.offset=oe,e.poppergenerator=k,e.popperoffsets=$,e.preventoverflow=le,object.defineproperty(e,"__esmodule",{value:!0})})); //# sourcemappingurl=popper.min.js.map