text: function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e,t){"object"===("undefined"==typeof exports?"undefined":_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.round;function a(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(r(e)&&t){var s=e.offsetHeight,f=e.offsetWidth;f>0&&(o=n.width/f||1),s>0&&(a=n.height/s||1)}return{width:i(n.width/o),height:i(n.height/a),top:i(n.top/a),right:i(n.right/o),bottom:i(n.bottom/a),left:i(n.left/o),x:i(n.left/o),y:i(n.top/a)}}function s(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function c(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return a(c(e)).left+s(e).scrollLeft}function l(e){return t(e).getComputedStyle(e)}function u(e){var t=l(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d(e,n,o){void 0===o&&(o=!1);var i,l,d=r(n),m=r(n)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(n),h=c(n),v=a(e,m),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(d||!d&&!o)&&(("body"!==f(n)||u(h))&&(y=(i=n)!==t(i)&&r(i)?{scrollLeft:(l=i).scrollLeft,scrollTop:l.scrollTop}:s(i)),r(n)?((b=a(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):h&&(b.x=p(h))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}function m(e){var t=a(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 h(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||c(e)}function v(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:r(e)&&u(e)?e:v(h(e))}function y(e,n){var r;void 0===n&&(n=[]);var o=v(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],u(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(y(h(s)))}function b(e){return["table","td","th"].indexOf(f(e))>=0}function g(e){return r(e)&&"fixed"!==l(e).position?e.offsetParent:null}function w(e){for(var n=t(e),o=g(e);o&&b(o)&&"static"===l(o).position;)o=g(o);return o&&("html"===f(o)||"body"===f(o)&&"static"===l(o).position)?n:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&r(e)&&"fixed"===l(e).position)return null;for(var n=h(e);r(n)&&["html","body"].indexOf(f(n))<0;){var o=l(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||n}var x="top",O="bottom",j="right",E="left",S="auto",P=[x,O,j,E],k="start",D="end",M="viewport",L="popper",q=P.reduce((function(e,t){return e.concat([t+"-"+k,t+"-"+D])}),[]),A=[].concat(P,[S]).reduce((function(e,t){return e.concat([t,t+"-"+k,t+"-"+D])}),[]),T=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function W(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 B(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var H='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',C=["name","enabled","phase","fn","effect","requires","options"];function R(e){return e.split("-")[0]}var I=Math.max,_=Math.min,V=Math.round;function N(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 U(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F(e,n){return n===M?U(function(e){var n=t(e),r=c(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+p(e),y:f}}(e)):r(n)?function(e){var t=a(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}(n):U(function(e){var t,n=c(e),r=s(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=I(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=I(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+p(e),u=-r.scrollTop;return"rtl"===l(o||n).direction&&(f+=I(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:f,y:u}}(c(e)))}function z(e,t,o){var i="clippingParents"===t?function(e){var t=y(h(e)),o=["absolute","fixed"].indexOf(l(e).position)>=0&&r(e)?w(e):e;return n(o)?t.filter((function(e){return n(e)&&N(e,o)&&"body"!==f(e)})):[]}(e):[].concat(t),a=[].concat(i,[o]),s=a[0],c=a.reduce((function(t,n){var r=F(e,n);return t.top=I(r.top,t.top),t.right=_(r.right,t.right),t.bottom=_(r.bottom,t.bottom),t.left=I(r.left,t.left),t}),F(e,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function G(e){return e.split("-")[1]}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?R(o):null,a=o?G(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case x:t={x:s,y:n.y-r.height};break;case O:t={x:s,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:f};break;case E:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?X(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case k:t[c]=t[c]-(n[p]/2-r[p]/2);break;case D:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function J(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function K(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Q(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,s=r.boundary,f=void 0===s?"clippingParents":s,p=r.rootBoundary,l=void 0===p?M:p,u=r.elementContext,d=void 0===u?L:u,m=r.altBoundary,h=void 0!==m&&m,v=r.padding,y=void 0===v?0:v,b=J("number"!=typeof y?y:K(y,P)),g=d===L?"reference":L,w=e.rects.popper,E=e.elements[h?g:d],S=z(n(E)?E:E.contextElement||c(e.elements.popper),f,l),k=a(e.elements.reference),D=Y({reference:k,element:w,strategy:"absolute",placement:i}),q=U(Object.assign({},w,D)),A=d===L?q:k,T={top:S.top-A.top+b.top,bottom:A.bottom-S.bottom+b.bottom,left:S.left-A.left+b.left,right:A.right-S.right+b.right},W=e.modifiersData.offset;if(d===L&&W){var B=W[i];Object.keys(T).forEach((function(e){var t=[j,O].indexOf(e)>=0?1:-1,n=[x,O].indexOf(e)>=0?"y":"x";T[e]+=B[n]*t}))}return T}var Z="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",$={placement:"bottom",modifiers:[],strategy:"absolute"};function ee(){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 te(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?$:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;h(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?y(e):e.contextElement?y(e.contextElement):[],popper:y(t)};var s=function(e){var t=W(e);return T.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(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]}))}([].concat(o,f.options.modifiers)));(f.orderedModifiers=s.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),C).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(B(H,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(B(H,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":T.indexOf(t.phase)<0&&console.error(B(H,t.name,'"phase"',"either "+T.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(B(H,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(B(H,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(B(H,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(B(H,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+C.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(B('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((p=[].concat(s,f.options.modifiers),d=function(e){return e.name},m=new Set,p.filter((function(e){var t=d(e);if(!m.has(t))return m.add(t),!0})))),R(f.options.placement)===S)&&(f.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var p,d,m,v=l(t);return[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some((function(e){return parseFloat(e)}))&&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(" ")),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(ee(t,n)){f.rects={reference:d(t,w(n),"fixed"===f.options.strategy),popper:m(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<f.orderedModifiers.length;o++){if((r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==f.reset){var i=f.orderedModifiers[o],a=i.fn,s=i.options,c=void 0===s?{}:s,l=i.name;"function"==typeof a&&(f=a({state:f,options:c,name:l,instance:u})||f)}else f.reset=!1,o=-1}}else console.error(Z)}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){h(),p=!0}};if(!ee(e,t))return console.error(Z),u;function h(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var ne={passive:!0};var re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,ne)})),f&&c.addEventListener("resize",r.update,ne),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,ne)})),f&&c.removeEventListener("resize",r.update,ne)}},data:{}};var oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ae(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,f=e.position,p=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:V(V(t*r)/r)||0,y:V(V(n*r)/r)||0}}(s):"function"==typeof d?d(s):s,h=m.x,v=void 0===h?0:h,y=m.y,b=void 0===y?0:y,g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),P=E,k=x,M=window;if(u){var L=w(r),q="clientHeight",A="clientWidth";L===t(r)&&"static"!==l(L=c(r)).position&&"absolute"===f&&(q="scrollHeight",A="scrollWidth"),L=L,i!==x&&(i!==E&&i!==j||a!==D)||(k=O,b-=L[q]-o.height,b*=p?1:-1),i!==E&&(i!==x&&i!==O||a!==D)||(P=j,v-=L[A]-o.width,v*=p?1:-1)}var T,W=Object.assign({position:f},u&&ie);return p?Object.assign({},W,((T={})[k]=S?"0":"",T[P]=g?"0":"",T.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",T)):Object.assign({},W,((n={})[k]=S?b+"px":"",n[P]=g?v+"px":"",n.transform="",n))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(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,c=l(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'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.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var p={placement:R(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ae(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ae(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&f(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(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 o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&f(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=A.reduce((function(e,n){return e[n]=function(e,t,n){var r=R(e),o=[E,x].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,[E,j].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}},pe={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return pe[e]}))}var ue={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function me(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?A:f,p=G(r),l=p?s?q:q.filter((function(e){return G(e)===p})):P,u=l.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=l,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 d=u.reduce((function(t,n){return t[n]=Q(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[R(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var he={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,l=n.rootBoundary,u=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,y=R(v),b=f||(y===v||!m?[le(v)]:function(e){if(R(e)===S)return[];var t=le(e);return[de(e),t,de(t)]}(v)),g=[v].concat(b).reduce((function(e,n){return e.concat(R(n)===S?me(t,{placement:n,boundary:p,rootBoundary:l,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,P=t.rects.popper,D=new Map,M=!0,L=g[0],q=0;q<g.length;q++){var A=g[q],T=R(A),W=G(A)===k,B=[x,O].indexOf(T)>=0,H=B?"width":"height",C=Q(t,{placement:A,boundary:p,rootBoundary:l,altBoundary:u,padding:c}),I=B?W?j:E:W?O:x;w[H]>P[H]&&(I=le(I));var _=le(I),V=[];if(i&&V.push(C[T]<=0),s&&V.push(C[I]<=0,C[_]<=0),V.every((function(e){return e}))){L=A,M=!1;break}D.set(A,V)}if(M)for(var N=function(e){var t=g.find((function(t){var n=D.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},U=m?3:1;U>0;U--){if("break"===N(U))break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ve(e,t,n){return I(e,_(t,n))}var ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(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,c=n.rootBoundary,p=n.altBoundary,l=n.padding,u=n.tether,d=void 0===u||u,h=n.tetherOffset,v=void 0===h?0:h,y=Q(t,{boundary:f,rootBoundary:c,padding:l,altBoundary:p}),b=R(t.placement),g=G(t.placement),S=!g,P=X(b),D="x"===P?"y":"x",M=t.modifiersData.popperOffsets,L=t.rects.reference,q=t.rects.popper,A="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T={x:0,y:0};if(M){if(i||s){var W="y"===P?x:E,B="y"===P?O:j,H="y"===P?"height":"width",C=M[P],V=M[P]+y[W],N=M[P]-y[B],U=d?-q[H]/2:0,F=g===k?L[H]:q[H],z=g===k?-q[H]:-L[H],Y=t.elements.arrow,J=d&&Y?m(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=K[W],$=K[B],ee=ve(0,L[H],J[H]),te=S?L[H]/2-U-ee-Z-A:F-ee-Z-A,ne=S?-L[H]/2+U+ee+$+A:z+ee+$+A,re=t.elements.arrow&&w(t.elements.arrow),oe=re?"y"===P?re.clientTop||0:re.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][P]:0,ae=M[P]+te-ie-oe,se=M[P]+ne-ie;if(i){var fe=ve(d?_(V,ae):V,C,d?I(N,se):N);M[P]=fe,T[P]=fe-C}if(s){var ce="x"===P?x:E,pe="x"===P?O:j,le=M[D],ue=le+y[ce],de=le-y[pe],me=ve(d?_(ue,ae):ue,le,d?I(de,se):de);M[D]=me,T[D]=me-le}}t.modifiersData[r]=T}},requiresIfExists:["offset"]};var be={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=R(n.placement),f=X(s),c=[E,j].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return J("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:K(e,P))}(o.padding,n),l=m(i),u="y"===f?x:E,d="y"===f?O:j,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],v=a[f]-n.rects.reference[f],y=w(i),b=y?"y"===f?y.clientHeight||0:y.clientWidth||0:0,g=h/2-v/2,S=p[u],k=b-l[c]-p[d],D=b/2-l[c]/2+g,M=ve(S,D,k),L=f;n.modifiersData[r]=((t={})[L]=M,t.centerOffset=M-D,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(r(o)||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(" ")),N(t.elements.popper,o)?t.elements.arrow=o:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(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 we(e){return[x,j,O,E].some((function(t){return e[t]>=0}))}var xe={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=Q(t,{elementContext:"reference"}),s=Q(t,{altBoundary:!0}),f=ge(a,r),c=ge(s,o,i),p=we(f),l=we(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":l})}},Oe=te({defaultModifiers:[re,oe,se,fe]}),je=[re,oe,se,fe,ce,he,ye,be,xe],Ee=te({defaultModifiers:je});e.applyStyles=fe,e.arrow=be,e.computeStyles=se,e.createPopper=Ee,e.createPopperLite=Oe,e.defaultModifiers=je,e.detectOverflow=Q,e.eventListeners=re,e.flip=he,e.hide=xe,e.offset=ce,e.popperGenerator=te,e.popperOffsets=oe,e.preventOverflow=ye,Object.defineProperty(e,"__esModule",{value:!0})}));
  