You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
20 KiB

4 months ago
var Popper=function(l){"use strict";var E="top",L="bottom",R="right",A="left",le="auto",Y=[E,L,R,A],z="start",J="end",qe="clippingParents",xe="viewport",K="popper",Ve="reference",$e=Y.reduce(function(t,e){return t.concat([e+"-"+z,e+"-"+J])},[]),je=[].concat(Y,[le]).reduce(function(t,e){return t.concat([e,e+"-"+z,e+"-"+J])},[]),Ne="beforeRead",_e="read",Ie="afterRead",ze="beforeMain",Fe="main",Ue="afterMain",Ge="beforeWrite",Xe="write",Ye="afterWrite",Je=[Ne,_e,Ie,ze,Fe,Ue,Ge,Xe,Ye];function q(t){return t?(t.nodeName||"").toLowerCase():null}function T(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=T(t).Element;return t instanceof e||t instanceof Element}function S(t){var e=T(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function De(t){if(typeof ShadowRoot=="undefined")return!1;var e=T(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Dt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!S(o)||!q(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var f=i[a];f===!1?o.removeAttribute(a):o.setAttribute(a,f===!0?"":f)}))})}function Pt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),f=a.reduce(function(s,c){return s[c]="",s},{});!S(i)||!q(i)||(Object.assign(i.style,f),Object.keys(o).forEach(function(s){i.removeAttribute(s)}))})}}var Pe={name:"applyStyles",enabled:!0,phase:"write",fn:Dt,effect:Pt,requires:["computeStyles"]};function V(t){return t.split("-")[0]}var F=Math.max,pe=Math.min,Z=Math.round;function ee(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(S(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Z(n.width)/a||1),o>0&&(i=Z(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Ee(t){var e=ee(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Ke(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&De(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(t){return T(t).getComputedStyle(t)}function Et(t){return["table","td","th"].indexOf(q(t))>=0}function I(t){return((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function de(t){return q(t)==="html"?t:t.assignedSlot||t.parentNode||(De(t)?t.host:null)||I(t)}function Qe(t){return!S(t)||N(t).position==="fixed"?null:t.offsetParent}function At(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&S(t)){var r=N(t);if(r.position==="fixed")return null}var i=de(t);for(De(i)&&(i=i.host);S(i)&&["html","body"].indexOf(q(i))<0;){var o=N(i);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 i;i=i.parentNode}return null}function ie(t){for(var e=T(t),n=Qe(t);n&&Et(n)&&N(n).position==="static";)n=Qe(n);return n&&(q(n)==="html"||q(n)==="body"&&N(n).position==="static")?e:n||At(t)||e}function Ae(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function oe(t,e,n){return F(t,pe(e,n))}function Mt(t,e,n){var r=oe(t,e,n);return r>n?n:r}function Ze(){return{top:0,right:0,bottom:0,left:0}}function et(t){return Object.assign({},Ze(),t)}function tt(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var kt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement