@qubit-ltd/json 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json.cjs +188 -20
- package/dist/json.cjs.map +1 -1
- package/dist/json.min.cjs +1 -1
- package/dist/json.min.cjs.map +1 -1
- package/dist/json.min.mjs +1 -1
- package/dist/json.min.mjs.map +1 -1
- package/dist/json.mjs +188 -20
- package/dist/json.mjs.map +1 -1
- package/doc/api/Json.html +42 -0
- package/doc/api/LosslessNumber.html +3 -3
- package/doc/api/data/search.json +1 -1
- package/doc/api/global.html +3 -3
- package/doc/api/index.html +4 -4
- package/doc/api/scripts/core.js +719 -726
- package/doc/api/scripts/core.min.js +23 -23
- package/doc/api/scripts/resize.js +90 -90
- package/doc/api/scripts/search.js +267 -265
- package/doc/api/scripts/search.min.js +5 -5
- package/doc/api/scripts/third-party/Apache-License-2.0.txt +202 -202
- package/doc/api/scripts/third-party/fuse.js +1749 -9
- package/doc/api/scripts/third-party/hljs-line-num-original.js +367 -369
- package/doc/api/scripts/third-party/hljs-line-num.js +1 -1
- package/doc/api/scripts/third-party/hljs-original.js +5260 -5171
- package/doc/api/scripts/third-party/hljs.js +1 -1
- package/doc/api/scripts/third-party/popper.js +1287 -5
- package/doc/api/scripts/third-party/tippy.js +1499 -1
- package/doc/api/scripts/third-party/tocbot.js +757 -672
- package/doc/api/scripts/third-party/tocbot.min.js +1 -1
- package/doc/api/styles/clean-jsdoc-theme-base.css +1257 -1159
- package/doc/api/styles/clean-jsdoc-theme-dark.css +412 -412
- package/doc/api/styles/clean-jsdoc-theme-light.css +482 -482
- package/doc/api/styles/clean-jsdoc-theme-scrollbar.css +29 -29
- package/doc/api/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -1
- package/doc/api/styles/clean-jsdoc-theme.min.css +1 -1
- package/doc/json.min.visualization.html +15 -15
- package/doc/json.visualization.html +15 -15
- package/package.json +25 -24
|
@@ -1,5 +1,1287 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @popperjs/core v2.11.5 - MIT License
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
!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<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function K(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?G:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,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;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?b(e):e.contextElement?b(e.contextElement):[],popper:b(t)};var s,p,d=function(e){var t=S(e);return R.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,f.options.modifiers),p=s.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}),{}),Object.keys(p).map((function(e){return p[e]}))));return f.orderedModifiers=d.filter((function(e){return e.enabled})),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(J(t,n)){f.rects={reference:m(t,O(n),"fixed"===f.options.strategy),popper:v(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;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},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(){l(),p=!0}};if(!J(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var Q={passive:!0};var Z={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,Q)})),f&&c.addEventListener("resize",r.update,Q),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,Q)})),f&&c.removeEventListener("resize",r.update,Q)}},data:{}};var $={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,l=e.adaptive,h=e.roundOffsets,m=e.isFixed,v=f.x,g=void 0===v?0:v,y=f.y,b=void 0===y?0:y,x="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=x.x,b=x.y;var w=f.hasOwnProperty("x"),L=f.hasOwnProperty("y"),P=A,M=j,W=window;if(l){var B=O(r),H="clientHeight",T="clientWidth";if(B===t(r)&&"static"!==d(B=u(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),B=B,i===j||(i===A||i===D)&&a===k)M=E,b-=(m&&B===W&&W.visualViewport?W.visualViewport.height:B[H])-o.height,b*=p?1:-1;if(i===A||(i===j||i===E)&&a===k)P=D,g-=(m&&B===W&&W.visualViewport?W.visualViewport.width:B[T])-o.width,g*=p?1:-1}var R,S=Object.assign({position:c},l&&ee),C=!0===h?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:s(t*r)/r||0,y:s(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=C.x,b=C.y,p?Object.assign({},S,((R={})[M]=L?"0":"",R[P]=w?"0":"",R.transform=(W.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=L?b+"px":"",n[P]=w?g+"px":"",n.transform="",n))}var ne={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={placement:C(t.placement),variation:_(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,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{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 re={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)&&p(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)&&p(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var oe={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=T.reduce((function(e,n){return e[n]=function(e,t,n){var r=C(e),o=[A,j].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,[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<b.length;W++){var B=b[W],H=C(B),T=_(B)===M,R=[j,E].indexOf(H)>=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})}));
|
|
1
|
+
/**
|
|
2
|
+
* @popperjs/core v2.11.5 - MIT License
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
!(function (e, t) {
|
|
6
|
+
typeof exports == "object" && typeof module != "undefined"
|
|
7
|
+
? t(exports)
|
|
8
|
+
: typeof define == "function" && define.amd
|
|
9
|
+
? define(["exports"], t)
|
|
10
|
+
: t(
|
|
11
|
+
((e =
|
|
12
|
+
typeof globalThis != "undefined" ? globalThis : e || self).Popper =
|
|
13
|
+
{})
|
|
14
|
+
);
|
|
15
|
+
})(this, function (e) {
|
|
16
|
+
function t(e) {
|
|
17
|
+
if (e == null) return window;
|
|
18
|
+
if (e.toString() !== "[object Window]") {
|
|
19
|
+
var t = e.ownerDocument;
|
|
20
|
+
return (t && t.defaultView) || window;
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function n(e) {
|
|
25
|
+
return e instanceof t(e).Element || e instanceof Element;
|
|
26
|
+
}
|
|
27
|
+
function r(e) {
|
|
28
|
+
return e instanceof t(e).HTMLElement || e instanceof HTMLElement;
|
|
29
|
+
}
|
|
30
|
+
function o(e) {
|
|
31
|
+
return (
|
|
32
|
+
typeof ShadowRoot != "undefined" &&
|
|
33
|
+
(e instanceof t(e).ShadowRoot || e instanceof ShadowRoot)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
var i = Math.max,
|
|
37
|
+
a = Math.min,
|
|
38
|
+
s = Math.round;
|
|
39
|
+
function f(e, t) {
|
|
40
|
+
void 0 === t && (t = !1);
|
|
41
|
+
var n = e.getBoundingClientRect(),
|
|
42
|
+
o = 1,
|
|
43
|
+
i = 1;
|
|
44
|
+
if (r(e) && t) {
|
|
45
|
+
var a = e.offsetHeight,
|
|
46
|
+
f = e.offsetWidth;
|
|
47
|
+
f > 0 && (o = s(n.width) / f || 1), a > 0 && (i = s(n.height) / a || 1);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
width: n.width / o,
|
|
51
|
+
height: n.height / i,
|
|
52
|
+
top: n.top / i,
|
|
53
|
+
right: n.right / o,
|
|
54
|
+
bottom: n.bottom / i,
|
|
55
|
+
left: n.left / o,
|
|
56
|
+
x: n.left / o,
|
|
57
|
+
y: n.top / i,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function c(e) {
|
|
61
|
+
var n = t(e);
|
|
62
|
+
return { scrollLeft: n.pageXOffset, scrollTop: n.pageYOffset };
|
|
63
|
+
}
|
|
64
|
+
function p(e) {
|
|
65
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
66
|
+
}
|
|
67
|
+
function u(e) {
|
|
68
|
+
return (
|
|
69
|
+
(n(e) ? e.ownerDocument : e.document) || window.document
|
|
70
|
+
).documentElement;
|
|
71
|
+
}
|
|
72
|
+
function l(e) {
|
|
73
|
+
return f(u(e)).left + c(e).scrollLeft;
|
|
74
|
+
}
|
|
75
|
+
function d(e) {
|
|
76
|
+
return t(e).getComputedStyle(e);
|
|
77
|
+
}
|
|
78
|
+
function h(e) {
|
|
79
|
+
var t = d(e),
|
|
80
|
+
n = t.overflow,
|
|
81
|
+
r = t.overflowX,
|
|
82
|
+
o = t.overflowY;
|
|
83
|
+
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
84
|
+
}
|
|
85
|
+
function m(e, n, o) {
|
|
86
|
+
void 0 === o && (o = !1);
|
|
87
|
+
var i,
|
|
88
|
+
a,
|
|
89
|
+
d = r(n),
|
|
90
|
+
m =
|
|
91
|
+
r(n) &&
|
|
92
|
+
(function (e) {
|
|
93
|
+
var t = e.getBoundingClientRect(),
|
|
94
|
+
n = s(t.width) / e.offsetWidth || 1,
|
|
95
|
+
r = s(t.height) / e.offsetHeight || 1;
|
|
96
|
+
return n !== 1 || r !== 1;
|
|
97
|
+
})(n),
|
|
98
|
+
v = u(n),
|
|
99
|
+
g = f(e, m),
|
|
100
|
+
y = { scrollLeft: 0, scrollTop: 0 },
|
|
101
|
+
b = { x: 0, y: 0 };
|
|
102
|
+
return (
|
|
103
|
+
(d || (!d && !o)) &&
|
|
104
|
+
((p(n) !== "body" || h(v)) &&
|
|
105
|
+
(y =
|
|
106
|
+
(i = n) !== t(i) && r(i)
|
|
107
|
+
? { scrollLeft: (a = i).scrollLeft, scrollTop: a.scrollTop }
|
|
108
|
+
: c(i)),
|
|
109
|
+
r(n)
|
|
110
|
+
? (((b = f(n, !0)).x += n.clientLeft), (b.y += n.clientTop))
|
|
111
|
+
: v && (b.x = l(v))),
|
|
112
|
+
{
|
|
113
|
+
x: g.left + y.scrollLeft - b.x,
|
|
114
|
+
y: g.top + y.scrollTop - b.y,
|
|
115
|
+
width: g.width,
|
|
116
|
+
height: g.height,
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function v(e) {
|
|
121
|
+
var t = f(e),
|
|
122
|
+
n = e.offsetWidth,
|
|
123
|
+
r = e.offsetHeight;
|
|
124
|
+
return (
|
|
125
|
+
Math.abs(t.width - n) <= 1 && (n = t.width),
|
|
126
|
+
Math.abs(t.height - r) <= 1 && (r = t.height),
|
|
127
|
+
{ x: e.offsetLeft, y: e.offsetTop, width: n, height: r }
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
function g(e) {
|
|
131
|
+
return p(e) === "html"
|
|
132
|
+
? e
|
|
133
|
+
: e.assignedSlot || e.parentNode || (o(e) ? e.host : null) || u(e);
|
|
134
|
+
}
|
|
135
|
+
function y(e) {
|
|
136
|
+
return ["html", "body", "#document"].indexOf(p(e)) >= 0
|
|
137
|
+
? e.ownerDocument.body
|
|
138
|
+
: r(e) && h(e)
|
|
139
|
+
? e
|
|
140
|
+
: y(g(e));
|
|
141
|
+
}
|
|
142
|
+
function b(e, n) {
|
|
143
|
+
var r;
|
|
144
|
+
void 0 === n && (n = []);
|
|
145
|
+
var o = y(e),
|
|
146
|
+
i = o === ((r = e.ownerDocument) == null ? void 0 : r.body),
|
|
147
|
+
a = t(o),
|
|
148
|
+
s = i ? [a].concat(a.visualViewport || [], h(o) ? o : []) : o,
|
|
149
|
+
f = n.concat(s);
|
|
150
|
+
return i ? f : f.concat(b(g(s)));
|
|
151
|
+
}
|
|
152
|
+
function x(e) {
|
|
153
|
+
return ["table", "td", "th"].indexOf(p(e)) >= 0;
|
|
154
|
+
}
|
|
155
|
+
function w(e) {
|
|
156
|
+
return r(e) && d(e).position !== "fixed" ? e.offsetParent : null;
|
|
157
|
+
}
|
|
158
|
+
function O(e) {
|
|
159
|
+
for (var n = t(e), i = w(e); i && x(i) && d(i).position === "static"; )
|
|
160
|
+
i = w(i);
|
|
161
|
+
return i &&
|
|
162
|
+
(p(i) === "html" || (p(i) === "body" && d(i).position === "static"))
|
|
163
|
+
? n
|
|
164
|
+
: i ||
|
|
165
|
+
(function (e) {
|
|
166
|
+
var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
|
|
167
|
+
if (
|
|
168
|
+
navigator.userAgent.indexOf("Trident") !== -1 &&
|
|
169
|
+
r(e) &&
|
|
170
|
+
d(e).position === "fixed"
|
|
171
|
+
)
|
|
172
|
+
return null;
|
|
173
|
+
var n = g(e);
|
|
174
|
+
for (
|
|
175
|
+
o(n) && (n = n.host);
|
|
176
|
+
r(n) && ["html", "body"].indexOf(p(n)) < 0;
|
|
177
|
+
|
|
178
|
+
) {
|
|
179
|
+
var i = d(n);
|
|
180
|
+
if (
|
|
181
|
+
i.transform !== "none" ||
|
|
182
|
+
i.perspective !== "none" ||
|
|
183
|
+
i.contain === "paint" ||
|
|
184
|
+
["transform", "perspective"].indexOf(i.willChange) !== -1 ||
|
|
185
|
+
(t && i.willChange === "filter") ||
|
|
186
|
+
(t && i.filter && i.filter !== "none")
|
|
187
|
+
)
|
|
188
|
+
return n;
|
|
189
|
+
n = n.parentNode;
|
|
190
|
+
}
|
|
191
|
+
return null;
|
|
192
|
+
})(e) ||
|
|
193
|
+
n;
|
|
194
|
+
}
|
|
195
|
+
var j = "top",
|
|
196
|
+
E = "bottom",
|
|
197
|
+
D = "right",
|
|
198
|
+
A = "left",
|
|
199
|
+
L = "auto",
|
|
200
|
+
P = [j, E, D, A],
|
|
201
|
+
M = "start",
|
|
202
|
+
k = "end",
|
|
203
|
+
W = "viewport",
|
|
204
|
+
B = "popper",
|
|
205
|
+
H = P.reduce(function (e, t) {
|
|
206
|
+
return e.concat([t + "-" + M, t + "-" + k]);
|
|
207
|
+
}, []),
|
|
208
|
+
T = [].concat(P, [L]).reduce(function (e, t) {
|
|
209
|
+
return e.concat([t, t + "-" + M, t + "-" + k]);
|
|
210
|
+
}, []),
|
|
211
|
+
R = [
|
|
212
|
+
"beforeRead",
|
|
213
|
+
"read",
|
|
214
|
+
"afterRead",
|
|
215
|
+
"beforeMain",
|
|
216
|
+
"main",
|
|
217
|
+
"afterMain",
|
|
218
|
+
"beforeWrite",
|
|
219
|
+
"write",
|
|
220
|
+
"afterWrite",
|
|
221
|
+
];
|
|
222
|
+
function S(e) {
|
|
223
|
+
var t = new Map(),
|
|
224
|
+
n = new Set(),
|
|
225
|
+
r = [];
|
|
226
|
+
function o(e) {
|
|
227
|
+
n.add(e.name),
|
|
228
|
+
[]
|
|
229
|
+
.concat(e.requires || [], e.requiresIfExists || [])
|
|
230
|
+
.forEach(function (e) {
|
|
231
|
+
if (!n.has(e)) {
|
|
232
|
+
var r = t.get(e);
|
|
233
|
+
r && o(r);
|
|
234
|
+
}
|
|
235
|
+
}),
|
|
236
|
+
r.push(e);
|
|
237
|
+
}
|
|
238
|
+
return (
|
|
239
|
+
e.forEach(function (e) {
|
|
240
|
+
t.set(e.name, e);
|
|
241
|
+
}),
|
|
242
|
+
e.forEach(function (e) {
|
|
243
|
+
n.has(e.name) || o(e);
|
|
244
|
+
}),
|
|
245
|
+
r
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
function C(e) {
|
|
249
|
+
return e.split("-")[0];
|
|
250
|
+
}
|
|
251
|
+
function q(e, t) {
|
|
252
|
+
var n = t.getRootNode && t.getRootNode();
|
|
253
|
+
if (e.contains(t)) return !0;
|
|
254
|
+
if (n && o(n)) {
|
|
255
|
+
var r = t;
|
|
256
|
+
do {
|
|
257
|
+
if (r && e.isSameNode(r)) return !0;
|
|
258
|
+
r = r.parentNode || r.host;
|
|
259
|
+
} while (r);
|
|
260
|
+
}
|
|
261
|
+
return !1;
|
|
262
|
+
}
|
|
263
|
+
function V(e) {
|
|
264
|
+
return Object.assign({}, e, {
|
|
265
|
+
left: e.x,
|
|
266
|
+
top: e.y,
|
|
267
|
+
right: e.x + e.width,
|
|
268
|
+
bottom: e.y + e.height,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function N(e, r) {
|
|
272
|
+
return r === W
|
|
273
|
+
? V(
|
|
274
|
+
(function (e) {
|
|
275
|
+
var n = t(e),
|
|
276
|
+
r = u(e),
|
|
277
|
+
o = n.visualViewport,
|
|
278
|
+
i = r.clientWidth,
|
|
279
|
+
a = r.clientHeight,
|
|
280
|
+
s = 0,
|
|
281
|
+
f = 0;
|
|
282
|
+
return (
|
|
283
|
+
o &&
|
|
284
|
+
((i = o.width),
|
|
285
|
+
(a = o.height),
|
|
286
|
+
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ||
|
|
287
|
+
((s = o.offsetLeft), (f = o.offsetTop))),
|
|
288
|
+
{ width: i, height: a, x: s + l(e), y: f }
|
|
289
|
+
);
|
|
290
|
+
})(e)
|
|
291
|
+
)
|
|
292
|
+
: n(r)
|
|
293
|
+
? (function (e) {
|
|
294
|
+
var t = f(e);
|
|
295
|
+
return (
|
|
296
|
+
(t.top = t.top + e.clientTop),
|
|
297
|
+
(t.left = t.left + e.clientLeft),
|
|
298
|
+
(t.bottom = t.top + e.clientHeight),
|
|
299
|
+
(t.right = t.left + e.clientWidth),
|
|
300
|
+
(t.width = e.clientWidth),
|
|
301
|
+
(t.height = e.clientHeight),
|
|
302
|
+
(t.x = t.left),
|
|
303
|
+
(t.y = t.top),
|
|
304
|
+
t
|
|
305
|
+
);
|
|
306
|
+
})(r)
|
|
307
|
+
: V(
|
|
308
|
+
(function (e) {
|
|
309
|
+
var t,
|
|
310
|
+
n = u(e),
|
|
311
|
+
r = c(e),
|
|
312
|
+
o = (t = e.ownerDocument) == null ? void 0 : t.body,
|
|
313
|
+
a = i(
|
|
314
|
+
n.scrollWidth,
|
|
315
|
+
n.clientWidth,
|
|
316
|
+
o ? o.scrollWidth : 0,
|
|
317
|
+
o ? o.clientWidth : 0
|
|
318
|
+
),
|
|
319
|
+
s = i(
|
|
320
|
+
n.scrollHeight,
|
|
321
|
+
n.clientHeight,
|
|
322
|
+
o ? o.scrollHeight : 0,
|
|
323
|
+
o ? o.clientHeight : 0
|
|
324
|
+
),
|
|
325
|
+
f = -r.scrollLeft + l(e),
|
|
326
|
+
p = -r.scrollTop;
|
|
327
|
+
return (
|
|
328
|
+
d(o || n).direction === "rtl" &&
|
|
329
|
+
(f += i(n.clientWidth, o ? o.clientWidth : 0) - a),
|
|
330
|
+
{ width: a, height: s, x: f, y: p }
|
|
331
|
+
);
|
|
332
|
+
})(u(e))
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
function I(e, t, o) {
|
|
336
|
+
var s =
|
|
337
|
+
t === "clippingParents"
|
|
338
|
+
? (function (e) {
|
|
339
|
+
var t = b(g(e)),
|
|
340
|
+
o =
|
|
341
|
+
["absolute", "fixed"].indexOf(d(e).position) >= 0 && r(e)
|
|
342
|
+
? O(e)
|
|
343
|
+
: e;
|
|
344
|
+
return n(o)
|
|
345
|
+
? t.filter(function (e) {
|
|
346
|
+
return n(e) && q(e, o) && p(e) !== "body";
|
|
347
|
+
})
|
|
348
|
+
: [];
|
|
349
|
+
})(e)
|
|
350
|
+
: [].concat(t),
|
|
351
|
+
f = [].concat(s, [o]),
|
|
352
|
+
c = f[0],
|
|
353
|
+
u = f.reduce(function (t, n) {
|
|
354
|
+
var r = N(e, n);
|
|
355
|
+
return (
|
|
356
|
+
(t.top = i(r.top, t.top)),
|
|
357
|
+
(t.right = a(r.right, t.right)),
|
|
358
|
+
(t.bottom = a(r.bottom, t.bottom)),
|
|
359
|
+
(t.left = i(r.left, t.left)),
|
|
360
|
+
t
|
|
361
|
+
);
|
|
362
|
+
}, N(e, c));
|
|
363
|
+
return (
|
|
364
|
+
(u.width = u.right - u.left),
|
|
365
|
+
(u.height = u.bottom - u.top),
|
|
366
|
+
(u.x = u.left),
|
|
367
|
+
(u.y = u.top),
|
|
368
|
+
u
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
function _(e) {
|
|
372
|
+
return e.split("-")[1];
|
|
373
|
+
}
|
|
374
|
+
function F(e) {
|
|
375
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
376
|
+
}
|
|
377
|
+
function U(e) {
|
|
378
|
+
var t,
|
|
379
|
+
n = e.reference,
|
|
380
|
+
r = e.element,
|
|
381
|
+
o = e.placement,
|
|
382
|
+
i = o ? C(o) : null,
|
|
383
|
+
a = o ? _(o) : null,
|
|
384
|
+
s = n.x + n.width / 2 - r.width / 2,
|
|
385
|
+
f = n.y + n.height / 2 - r.height / 2;
|
|
386
|
+
switch (i) {
|
|
387
|
+
case j:
|
|
388
|
+
t = { x: s, y: n.y - r.height };
|
|
389
|
+
break;
|
|
390
|
+
case E:
|
|
391
|
+
t = { x: s, y: n.y + n.height };
|
|
392
|
+
break;
|
|
393
|
+
case D:
|
|
394
|
+
t = { x: n.x + n.width, y: f };
|
|
395
|
+
break;
|
|
396
|
+
case A:
|
|
397
|
+
t = { x: n.x - r.width, y: f };
|
|
398
|
+
break;
|
|
399
|
+
default:
|
|
400
|
+
t = { x: n.x, y: n.y };
|
|
401
|
+
}
|
|
402
|
+
var c = i ? F(i) : null;
|
|
403
|
+
if (c != null) {
|
|
404
|
+
var p = c === "y" ? "height" : "width";
|
|
405
|
+
switch (a) {
|
|
406
|
+
case M:
|
|
407
|
+
t[c] = t[c] - (n[p] / 2 - r[p] / 2);
|
|
408
|
+
break;
|
|
409
|
+
case k:
|
|
410
|
+
t[c] = t[c] + (n[p] / 2 - r[p] / 2);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return t;
|
|
414
|
+
}
|
|
415
|
+
function z(e) {
|
|
416
|
+
return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e);
|
|
417
|
+
}
|
|
418
|
+
function X(e, t) {
|
|
419
|
+
return t.reduce(function (t, n) {
|
|
420
|
+
return (t[n] = e), t;
|
|
421
|
+
}, {});
|
|
422
|
+
}
|
|
423
|
+
function Y(e, t) {
|
|
424
|
+
void 0 === t && (t = {});
|
|
425
|
+
var r = t,
|
|
426
|
+
o = r.placement,
|
|
427
|
+
i = void 0 === o ? e.placement : o,
|
|
428
|
+
a = r.boundary,
|
|
429
|
+
s = void 0 === a ? "clippingParents" : a,
|
|
430
|
+
c = r.rootBoundary,
|
|
431
|
+
p = void 0 === c ? W : c,
|
|
432
|
+
l = r.elementContext,
|
|
433
|
+
d = void 0 === l ? B : l,
|
|
434
|
+
h = r.altBoundary,
|
|
435
|
+
m = void 0 !== h && h,
|
|
436
|
+
v = r.padding,
|
|
437
|
+
g = void 0 === v ? 0 : v,
|
|
438
|
+
y = z(typeof g != "number" ? g : X(g, P)),
|
|
439
|
+
b = d === B ? "reference" : B,
|
|
440
|
+
x = e.rects.popper,
|
|
441
|
+
w = e.elements[m ? b : d],
|
|
442
|
+
O = I(n(w) ? w : w.contextElement || u(e.elements.popper), s, p),
|
|
443
|
+
A = f(e.elements.reference),
|
|
444
|
+
L = U({ reference: A, element: x, strategy: "absolute", placement: i }),
|
|
445
|
+
M = V(Object.assign({}, x, L)),
|
|
446
|
+
k = d === B ? M : A,
|
|
447
|
+
H = {
|
|
448
|
+
top: O.top - k.top + y.top,
|
|
449
|
+
bottom: k.bottom - O.bottom + y.bottom,
|
|
450
|
+
left: O.left - k.left + y.left,
|
|
451
|
+
right: k.right - O.right + y.right,
|
|
452
|
+
},
|
|
453
|
+
T = e.modifiersData.offset;
|
|
454
|
+
if (d === B && T) {
|
|
455
|
+
var R = T[i];
|
|
456
|
+
Object.keys(H).forEach(function (e) {
|
|
457
|
+
var t = [D, E].indexOf(e) >= 0 ? 1 : -1,
|
|
458
|
+
n = [j, E].indexOf(e) >= 0 ? "y" : "x";
|
|
459
|
+
H[e] += R[n] * t;
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
return H;
|
|
463
|
+
}
|
|
464
|
+
var G = { placement: "bottom", modifiers: [], strategy: "absolute" };
|
|
465
|
+
function J() {
|
|
466
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
467
|
+
t[n] = arguments[n];
|
|
468
|
+
return !t.some(function (e) {
|
|
469
|
+
return !(e && typeof e.getBoundingClientRect == "function");
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
function K(e) {
|
|
473
|
+
void 0 === e && (e = {});
|
|
474
|
+
var t = e,
|
|
475
|
+
r = t.defaultModifiers,
|
|
476
|
+
o = void 0 === r ? [] : r,
|
|
477
|
+
i = t.defaultOptions,
|
|
478
|
+
a = void 0 === i ? G : i;
|
|
479
|
+
return function (e, t, r) {
|
|
480
|
+
void 0 === r && (r = a);
|
|
481
|
+
var i,
|
|
482
|
+
s,
|
|
483
|
+
f = {
|
|
484
|
+
placement: "bottom",
|
|
485
|
+
orderedModifiers: [],
|
|
486
|
+
options: Object.assign({}, G, a),
|
|
487
|
+
modifiersData: {},
|
|
488
|
+
elements: { reference: e, popper: t },
|
|
489
|
+
attributes: {},
|
|
490
|
+
styles: {},
|
|
491
|
+
},
|
|
492
|
+
c = [],
|
|
493
|
+
p = !1,
|
|
494
|
+
u = {
|
|
495
|
+
state: f,
|
|
496
|
+
setOptions: function (r) {
|
|
497
|
+
var i = typeof r == "function" ? r(f.options) : r;
|
|
498
|
+
l(),
|
|
499
|
+
(f.options = Object.assign({}, a, f.options, i)),
|
|
500
|
+
(f.scrollParents = {
|
|
501
|
+
reference: n(e)
|
|
502
|
+
? b(e)
|
|
503
|
+
: e.contextElement
|
|
504
|
+
? b(e.contextElement)
|
|
505
|
+
: [],
|
|
506
|
+
popper: b(t),
|
|
507
|
+
});
|
|
508
|
+
var s,
|
|
509
|
+
p,
|
|
510
|
+
d = (function (e) {
|
|
511
|
+
var t = S(e);
|
|
512
|
+
return R.reduce(function (e, n) {
|
|
513
|
+
return e.concat(
|
|
514
|
+
t.filter(function (e) {
|
|
515
|
+
return e.phase === n;
|
|
516
|
+
})
|
|
517
|
+
);
|
|
518
|
+
}, []);
|
|
519
|
+
})(
|
|
520
|
+
((s = [].concat(o, f.options.modifiers)),
|
|
521
|
+
(p = s.reduce(function (e, t) {
|
|
522
|
+
var n = e[t.name];
|
|
523
|
+
return (
|
|
524
|
+
(e[t.name] = n
|
|
525
|
+
? Object.assign({}, n, t, {
|
|
526
|
+
options: Object.assign({}, n.options, t.options),
|
|
527
|
+
data: Object.assign({}, n.data, t.data),
|
|
528
|
+
})
|
|
529
|
+
: t),
|
|
530
|
+
e
|
|
531
|
+
);
|
|
532
|
+
}, {})),
|
|
533
|
+
Object.keys(p).map(function (e) {
|
|
534
|
+
return p[e];
|
|
535
|
+
}))
|
|
536
|
+
);
|
|
537
|
+
return (
|
|
538
|
+
(f.orderedModifiers = d.filter(function (e) {
|
|
539
|
+
return e.enabled;
|
|
540
|
+
})),
|
|
541
|
+
f.orderedModifiers.forEach(function (e) {
|
|
542
|
+
var t = e.name,
|
|
543
|
+
n = e.options,
|
|
544
|
+
r = void 0 === n ? {} : n,
|
|
545
|
+
o = e.effect;
|
|
546
|
+
if (typeof o == "function") {
|
|
547
|
+
var i = o({ state: f, name: t, instance: u, options: r }),
|
|
548
|
+
a = function () {};
|
|
549
|
+
c.push(i || a);
|
|
550
|
+
}
|
|
551
|
+
}),
|
|
552
|
+
u.update()
|
|
553
|
+
);
|
|
554
|
+
},
|
|
555
|
+
forceUpdate: function () {
|
|
556
|
+
if (!p) {
|
|
557
|
+
var e = f.elements,
|
|
558
|
+
t = e.reference,
|
|
559
|
+
n = e.popper;
|
|
560
|
+
if (J(t, n)) {
|
|
561
|
+
(f.rects = {
|
|
562
|
+
reference: m(t, O(n), f.options.strategy === "fixed"),
|
|
563
|
+
popper: v(n),
|
|
564
|
+
}),
|
|
565
|
+
(f.reset = !1),
|
|
566
|
+
(f.placement = f.options.placement),
|
|
567
|
+
f.orderedModifiers.forEach(function (e) {
|
|
568
|
+
return (f.modifiersData[e.name] = Object.assign(
|
|
569
|
+
{},
|
|
570
|
+
e.data
|
|
571
|
+
));
|
|
572
|
+
});
|
|
573
|
+
for (var r = 0; r < f.orderedModifiers.length; r++)
|
|
574
|
+
if (!0 !== f.reset) {
|
|
575
|
+
var o = f.orderedModifiers[r],
|
|
576
|
+
i = o.fn,
|
|
577
|
+
a = o.options,
|
|
578
|
+
s = void 0 === a ? {} : a,
|
|
579
|
+
c = o.name;
|
|
580
|
+
typeof i == "function" &&
|
|
581
|
+
(f =
|
|
582
|
+
i({ state: f, options: s, name: c, instance: u }) || f);
|
|
583
|
+
} else (f.reset = !1), (r = -1);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
update:
|
|
588
|
+
((i = function () {
|
|
589
|
+
return new Promise(function (e) {
|
|
590
|
+
u.forceUpdate(), e(f);
|
|
591
|
+
});
|
|
592
|
+
}),
|
|
593
|
+
function () {
|
|
594
|
+
return (
|
|
595
|
+
s ||
|
|
596
|
+
(s = new Promise(function (e) {
|
|
597
|
+
Promise.resolve().then(function () {
|
|
598
|
+
(s = void 0), e(i());
|
|
599
|
+
});
|
|
600
|
+
})),
|
|
601
|
+
s
|
|
602
|
+
);
|
|
603
|
+
}),
|
|
604
|
+
destroy: function () {
|
|
605
|
+
l(), (p = !0);
|
|
606
|
+
},
|
|
607
|
+
};
|
|
608
|
+
if (!J(e, t)) return u;
|
|
609
|
+
function l() {
|
|
610
|
+
c.forEach(function (e) {
|
|
611
|
+
return e();
|
|
612
|
+
}),
|
|
613
|
+
(c = []);
|
|
614
|
+
}
|
|
615
|
+
return (
|
|
616
|
+
u.setOptions(r).then(function (e) {
|
|
617
|
+
!p && r.onFirstUpdate && r.onFirstUpdate(e);
|
|
618
|
+
}),
|
|
619
|
+
u
|
|
620
|
+
);
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
var Q = { passive: !0 };
|
|
624
|
+
var Z = {
|
|
625
|
+
name: "eventListeners",
|
|
626
|
+
enabled: !0,
|
|
627
|
+
phase: "write",
|
|
628
|
+
fn: function () {},
|
|
629
|
+
effect: function (e) {
|
|
630
|
+
var n = e.state,
|
|
631
|
+
r = e.instance,
|
|
632
|
+
o = e.options,
|
|
633
|
+
i = o.scroll,
|
|
634
|
+
a = void 0 === i || i,
|
|
635
|
+
s = o.resize,
|
|
636
|
+
f = void 0 === s || s,
|
|
637
|
+
c = t(n.elements.popper),
|
|
638
|
+
p = [].concat(n.scrollParents.reference, n.scrollParents.popper);
|
|
639
|
+
return (
|
|
640
|
+
a &&
|
|
641
|
+
p.forEach(function (e) {
|
|
642
|
+
e.addEventListener("scroll", r.update, Q);
|
|
643
|
+
}),
|
|
644
|
+
f && c.addEventListener("resize", r.update, Q),
|
|
645
|
+
function () {
|
|
646
|
+
a &&
|
|
647
|
+
p.forEach(function (e) {
|
|
648
|
+
e.removeEventListener("scroll", r.update, Q);
|
|
649
|
+
}),
|
|
650
|
+
f && c.removeEventListener("resize", r.update, Q);
|
|
651
|
+
}
|
|
652
|
+
);
|
|
653
|
+
},
|
|
654
|
+
data: {},
|
|
655
|
+
};
|
|
656
|
+
var $ = {
|
|
657
|
+
name: "popperOffsets",
|
|
658
|
+
enabled: !0,
|
|
659
|
+
phase: "read",
|
|
660
|
+
fn: function (e) {
|
|
661
|
+
var t = e.state,
|
|
662
|
+
n = e.name;
|
|
663
|
+
t.modifiersData[n] = U({
|
|
664
|
+
reference: t.rects.reference,
|
|
665
|
+
element: t.rects.popper,
|
|
666
|
+
strategy: "absolute",
|
|
667
|
+
placement: t.placement,
|
|
668
|
+
});
|
|
669
|
+
},
|
|
670
|
+
data: {},
|
|
671
|
+
},
|
|
672
|
+
ee = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
673
|
+
function te(e) {
|
|
674
|
+
var n,
|
|
675
|
+
r = e.popper,
|
|
676
|
+
o = e.popperRect,
|
|
677
|
+
i = e.placement,
|
|
678
|
+
a = e.variation,
|
|
679
|
+
f = e.offsets,
|
|
680
|
+
c = e.position,
|
|
681
|
+
p = e.gpuAcceleration,
|
|
682
|
+
l = e.adaptive,
|
|
683
|
+
h = e.roundOffsets,
|
|
684
|
+
m = e.isFixed,
|
|
685
|
+
v = f.x,
|
|
686
|
+
g = void 0 === v ? 0 : v,
|
|
687
|
+
y = f.y,
|
|
688
|
+
b = void 0 === y ? 0 : y,
|
|
689
|
+
x = typeof h == "function" ? h({ x: g, y: b }) : { x: g, y: b };
|
|
690
|
+
(g = x.x), (b = x.y);
|
|
691
|
+
var w = f.hasOwnProperty("x"),
|
|
692
|
+
L = f.hasOwnProperty("y"),
|
|
693
|
+
P = A,
|
|
694
|
+
M = j,
|
|
695
|
+
W = window;
|
|
696
|
+
if (l) {
|
|
697
|
+
var B = O(r),
|
|
698
|
+
H = "clientHeight",
|
|
699
|
+
T = "clientWidth";
|
|
700
|
+
if (
|
|
701
|
+
(B === t(r) &&
|
|
702
|
+
d((B = u(r))).position !== "static" &&
|
|
703
|
+
c === "absolute" &&
|
|
704
|
+
((H = "scrollHeight"), (T = "scrollWidth")),
|
|
705
|
+
(B = B),
|
|
706
|
+
i === j || ((i === A || i === D) && a === k))
|
|
707
|
+
)
|
|
708
|
+
(M = E),
|
|
709
|
+
(b -=
|
|
710
|
+
(m && B === W && W.visualViewport
|
|
711
|
+
? W.visualViewport.height
|
|
712
|
+
: B[H]) - o.height),
|
|
713
|
+
(b *= p ? 1 : -1);
|
|
714
|
+
if (i === A || ((i === j || i === E) && a === k))
|
|
715
|
+
(P = D),
|
|
716
|
+
(g -=
|
|
717
|
+
(m && B === W && W.visualViewport ? W.visualViewport.width : B[T]) -
|
|
718
|
+
o.width),
|
|
719
|
+
(g *= p ? 1 : -1);
|
|
720
|
+
}
|
|
721
|
+
var R,
|
|
722
|
+
S = Object.assign({ position: c }, l && ee),
|
|
723
|
+
C =
|
|
724
|
+
!0 === h
|
|
725
|
+
? (function (e) {
|
|
726
|
+
var t = e.x,
|
|
727
|
+
n = e.y,
|
|
728
|
+
r = window.devicePixelRatio || 1;
|
|
729
|
+
return { x: s(t * r) / r || 0, y: s(n * r) / r || 0 };
|
|
730
|
+
})({ x: g, y: b })
|
|
731
|
+
: { x: g, y: b };
|
|
732
|
+
return (
|
|
733
|
+
(g = C.x),
|
|
734
|
+
(b = C.y),
|
|
735
|
+
p
|
|
736
|
+
? Object.assign(
|
|
737
|
+
{},
|
|
738
|
+
S,
|
|
739
|
+
(((R = {})[M] = L ? "0" : ""),
|
|
740
|
+
(R[P] = w ? "0" : ""),
|
|
741
|
+
(R.transform =
|
|
742
|
+
(W.devicePixelRatio || 1) <= 1
|
|
743
|
+
? "translate(" + g + "px, " + b + "px)"
|
|
744
|
+
: "translate3d(" + g + "px, " + b + "px, 0)"),
|
|
745
|
+
R)
|
|
746
|
+
)
|
|
747
|
+
: Object.assign(
|
|
748
|
+
{},
|
|
749
|
+
S,
|
|
750
|
+
(((n = {})[M] = L ? b + "px" : ""),
|
|
751
|
+
(n[P] = w ? g + "px" : ""),
|
|
752
|
+
(n.transform = ""),
|
|
753
|
+
n)
|
|
754
|
+
)
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
var ne = {
|
|
758
|
+
name: "computeStyles",
|
|
759
|
+
enabled: !0,
|
|
760
|
+
phase: "beforeWrite",
|
|
761
|
+
fn: function (e) {
|
|
762
|
+
var t = e.state,
|
|
763
|
+
n = e.options,
|
|
764
|
+
r = n.gpuAcceleration,
|
|
765
|
+
o = void 0 === r || r,
|
|
766
|
+
i = n.adaptive,
|
|
767
|
+
a = void 0 === i || i,
|
|
768
|
+
s = n.roundOffsets,
|
|
769
|
+
f = void 0 === s || s,
|
|
770
|
+
c = {
|
|
771
|
+
placement: C(t.placement),
|
|
772
|
+
variation: _(t.placement),
|
|
773
|
+
popper: t.elements.popper,
|
|
774
|
+
popperRect: t.rects.popper,
|
|
775
|
+
gpuAcceleration: o,
|
|
776
|
+
isFixed: t.options.strategy === "fixed",
|
|
777
|
+
};
|
|
778
|
+
t.modifiersData.popperOffsets != null &&
|
|
779
|
+
(t.styles.popper = Object.assign(
|
|
780
|
+
{},
|
|
781
|
+
t.styles.popper,
|
|
782
|
+
te(
|
|
783
|
+
Object.assign({}, c, {
|
|
784
|
+
offsets: t.modifiersData.popperOffsets,
|
|
785
|
+
position: t.options.strategy,
|
|
786
|
+
adaptive: a,
|
|
787
|
+
roundOffsets: f,
|
|
788
|
+
})
|
|
789
|
+
)
|
|
790
|
+
)),
|
|
791
|
+
t.modifiersData.arrow != null &&
|
|
792
|
+
(t.styles.arrow = Object.assign(
|
|
793
|
+
{},
|
|
794
|
+
t.styles.arrow,
|
|
795
|
+
te(
|
|
796
|
+
Object.assign({}, c, {
|
|
797
|
+
offsets: t.modifiersData.arrow,
|
|
798
|
+
position: "absolute",
|
|
799
|
+
adaptive: !1,
|
|
800
|
+
roundOffsets: f,
|
|
801
|
+
})
|
|
802
|
+
)
|
|
803
|
+
)),
|
|
804
|
+
(t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
805
|
+
"data-popper-placement": t.placement,
|
|
806
|
+
}));
|
|
807
|
+
},
|
|
808
|
+
data: {},
|
|
809
|
+
};
|
|
810
|
+
var re = {
|
|
811
|
+
name: "applyStyles",
|
|
812
|
+
enabled: !0,
|
|
813
|
+
phase: "write",
|
|
814
|
+
fn: function (e) {
|
|
815
|
+
var t = e.state;
|
|
816
|
+
Object.keys(t.elements).forEach(function (e) {
|
|
817
|
+
var n = t.styles[e] || {},
|
|
818
|
+
o = t.attributes[e] || {},
|
|
819
|
+
i = t.elements[e];
|
|
820
|
+
r(i) &&
|
|
821
|
+
p(i) &&
|
|
822
|
+
(Object.assign(i.style, n),
|
|
823
|
+
Object.keys(o).forEach(function (e) {
|
|
824
|
+
var t = o[e];
|
|
825
|
+
!1 === t
|
|
826
|
+
? i.removeAttribute(e)
|
|
827
|
+
: i.setAttribute(e, !0 === t ? "" : t);
|
|
828
|
+
}));
|
|
829
|
+
});
|
|
830
|
+
},
|
|
831
|
+
effect: function (e) {
|
|
832
|
+
var t = e.state,
|
|
833
|
+
n = {
|
|
834
|
+
popper: {
|
|
835
|
+
position: t.options.strategy,
|
|
836
|
+
left: "0",
|
|
837
|
+
top: "0",
|
|
838
|
+
margin: "0",
|
|
839
|
+
},
|
|
840
|
+
arrow: { position: "absolute" },
|
|
841
|
+
reference: {},
|
|
842
|
+
};
|
|
843
|
+
return (
|
|
844
|
+
Object.assign(t.elements.popper.style, n.popper),
|
|
845
|
+
(t.styles = n),
|
|
846
|
+
t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow),
|
|
847
|
+
function () {
|
|
848
|
+
Object.keys(t.elements).forEach(function (e) {
|
|
849
|
+
var o = t.elements[e],
|
|
850
|
+
i = t.attributes[e] || {},
|
|
851
|
+
a = Object.keys(
|
|
852
|
+
t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]
|
|
853
|
+
).reduce(function (e, t) {
|
|
854
|
+
return (e[t] = ""), e;
|
|
855
|
+
}, {});
|
|
856
|
+
r(o) &&
|
|
857
|
+
p(o) &&
|
|
858
|
+
(Object.assign(o.style, a),
|
|
859
|
+
Object.keys(i).forEach(function (e) {
|
|
860
|
+
o.removeAttribute(e);
|
|
861
|
+
}));
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
);
|
|
865
|
+
},
|
|
866
|
+
requires: ["computeStyles"],
|
|
867
|
+
};
|
|
868
|
+
var oe = {
|
|
869
|
+
name: "offset",
|
|
870
|
+
enabled: !0,
|
|
871
|
+
phase: "main",
|
|
872
|
+
requires: ["popperOffsets"],
|
|
873
|
+
fn: function (e) {
|
|
874
|
+
var t = e.state,
|
|
875
|
+
n = e.options,
|
|
876
|
+
r = e.name,
|
|
877
|
+
o = n.offset,
|
|
878
|
+
i = void 0 === o ? [0, 0] : o,
|
|
879
|
+
a = T.reduce(function (e, n) {
|
|
880
|
+
return (
|
|
881
|
+
(e[n] = (function (e, t, n) {
|
|
882
|
+
var r = C(e),
|
|
883
|
+
o = [A, j].indexOf(r) >= 0 ? -1 : 1,
|
|
884
|
+
i =
|
|
885
|
+
typeof n == "function"
|
|
886
|
+
? n(Object.assign({}, t, { placement: e }))
|
|
887
|
+
: n,
|
|
888
|
+
a = i[0],
|
|
889
|
+
s = i[1];
|
|
890
|
+
return (
|
|
891
|
+
(a = a || 0),
|
|
892
|
+
(s = (s || 0) * o),
|
|
893
|
+
[A, D].indexOf(r) >= 0 ? { x: s, y: a } : { x: a, y: s }
|
|
894
|
+
);
|
|
895
|
+
})(n, t.rects, i)),
|
|
896
|
+
e
|
|
897
|
+
);
|
|
898
|
+
}, {}),
|
|
899
|
+
s = a[t.placement],
|
|
900
|
+
f = s.x,
|
|
901
|
+
c = s.y;
|
|
902
|
+
t.modifiersData.popperOffsets != null &&
|
|
903
|
+
((t.modifiersData.popperOffsets.x += f),
|
|
904
|
+
(t.modifiersData.popperOffsets.y += c)),
|
|
905
|
+
(t.modifiersData[r] = a);
|
|
906
|
+
},
|
|
907
|
+
},
|
|
908
|
+
ie = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
909
|
+
function ae(e) {
|
|
910
|
+
return e.replace(/left|right|bottom|top/g, function (e) {
|
|
911
|
+
return ie[e];
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
var se = { start: "end", end: "start" };
|
|
915
|
+
function fe(e) {
|
|
916
|
+
return e.replace(/start|end/g, function (e) {
|
|
917
|
+
return se[e];
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
function ce(e, t) {
|
|
921
|
+
void 0 === t && (t = {});
|
|
922
|
+
var n = t,
|
|
923
|
+
r = n.placement,
|
|
924
|
+
o = n.boundary,
|
|
925
|
+
i = n.rootBoundary,
|
|
926
|
+
a = n.padding,
|
|
927
|
+
s = n.flipVariations,
|
|
928
|
+
f = n.allowedAutoPlacements,
|
|
929
|
+
c = void 0 === f ? T : f,
|
|
930
|
+
p = _(r),
|
|
931
|
+
u = p
|
|
932
|
+
? s
|
|
933
|
+
? H
|
|
934
|
+
: H.filter(function (e) {
|
|
935
|
+
return _(e) === p;
|
|
936
|
+
})
|
|
937
|
+
: P,
|
|
938
|
+
l = u.filter(function (e) {
|
|
939
|
+
return c.indexOf(e) >= 0;
|
|
940
|
+
});
|
|
941
|
+
l.length === 0 && (l = u);
|
|
942
|
+
var d = l.reduce(function (t, n) {
|
|
943
|
+
return (
|
|
944
|
+
(t[n] = Y(e, {
|
|
945
|
+
placement: n,
|
|
946
|
+
boundary: o,
|
|
947
|
+
rootBoundary: i,
|
|
948
|
+
padding: a,
|
|
949
|
+
})[C(n)]),
|
|
950
|
+
t
|
|
951
|
+
);
|
|
952
|
+
}, {});
|
|
953
|
+
return Object.keys(d).sort(function (e, t) {
|
|
954
|
+
return d[e] - d[t];
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
var pe = {
|
|
958
|
+
name: "flip",
|
|
959
|
+
enabled: !0,
|
|
960
|
+
phase: "main",
|
|
961
|
+
fn: function (e) {
|
|
962
|
+
var t = e.state,
|
|
963
|
+
n = e.options,
|
|
964
|
+
r = e.name;
|
|
965
|
+
if (!t.modifiersData[r]._skip) {
|
|
966
|
+
for (
|
|
967
|
+
var o = n.mainAxis,
|
|
968
|
+
i = void 0 === o || o,
|
|
969
|
+
a = n.altAxis,
|
|
970
|
+
s = void 0 === a || a,
|
|
971
|
+
f = n.fallbackPlacements,
|
|
972
|
+
c = n.padding,
|
|
973
|
+
p = n.boundary,
|
|
974
|
+
u = n.rootBoundary,
|
|
975
|
+
l = n.altBoundary,
|
|
976
|
+
d = n.flipVariations,
|
|
977
|
+
h = void 0 === d || d,
|
|
978
|
+
m = n.allowedAutoPlacements,
|
|
979
|
+
v = t.options.placement,
|
|
980
|
+
g = C(v),
|
|
981
|
+
y =
|
|
982
|
+
f ||
|
|
983
|
+
(g === v || !h
|
|
984
|
+
? [ae(v)]
|
|
985
|
+
: (function (e) {
|
|
986
|
+
if (C(e) === L) return [];
|
|
987
|
+
var t = ae(e);
|
|
988
|
+
return [fe(e), t, fe(t)];
|
|
989
|
+
})(v)),
|
|
990
|
+
b = [v].concat(y).reduce(function (e, n) {
|
|
991
|
+
return e.concat(
|
|
992
|
+
C(n) === L
|
|
993
|
+
? ce(t, {
|
|
994
|
+
placement: n,
|
|
995
|
+
boundary: p,
|
|
996
|
+
rootBoundary: u,
|
|
997
|
+
padding: c,
|
|
998
|
+
flipVariations: h,
|
|
999
|
+
allowedAutoPlacements: m,
|
|
1000
|
+
})
|
|
1001
|
+
: n
|
|
1002
|
+
);
|
|
1003
|
+
}, []),
|
|
1004
|
+
x = t.rects.reference,
|
|
1005
|
+
w = t.rects.popper,
|
|
1006
|
+
O = new Map(),
|
|
1007
|
+
P = !0,
|
|
1008
|
+
k = b[0],
|
|
1009
|
+
W = 0;
|
|
1010
|
+
W < b.length;
|
|
1011
|
+
W++
|
|
1012
|
+
) {
|
|
1013
|
+
var B = b[W],
|
|
1014
|
+
H = C(B),
|
|
1015
|
+
T = _(B) === M,
|
|
1016
|
+
R = [j, E].indexOf(H) >= 0,
|
|
1017
|
+
S = R ? "width" : "height",
|
|
1018
|
+
q = Y(t, {
|
|
1019
|
+
placement: B,
|
|
1020
|
+
boundary: p,
|
|
1021
|
+
rootBoundary: u,
|
|
1022
|
+
altBoundary: l,
|
|
1023
|
+
padding: c,
|
|
1024
|
+
}),
|
|
1025
|
+
V = R ? (T ? D : A) : T ? E : j;
|
|
1026
|
+
x[S] > w[S] && (V = ae(V));
|
|
1027
|
+
var N = ae(V),
|
|
1028
|
+
I = [];
|
|
1029
|
+
if (
|
|
1030
|
+
(i && I.push(q[H] <= 0),
|
|
1031
|
+
s && I.push(q[V] <= 0, q[N] <= 0),
|
|
1032
|
+
I.every(function (e) {
|
|
1033
|
+
return e;
|
|
1034
|
+
}))
|
|
1035
|
+
) {
|
|
1036
|
+
(k = B), (P = !1);
|
|
1037
|
+
break;
|
|
1038
|
+
}
|
|
1039
|
+
O.set(B, I);
|
|
1040
|
+
}
|
|
1041
|
+
if (P)
|
|
1042
|
+
for (
|
|
1043
|
+
var F = function (e) {
|
|
1044
|
+
var t = b.find(function (t) {
|
|
1045
|
+
var n = O.get(t);
|
|
1046
|
+
if (n)
|
|
1047
|
+
return n.slice(0, e).every(function (e) {
|
|
1048
|
+
return e;
|
|
1049
|
+
});
|
|
1050
|
+
});
|
|
1051
|
+
if (t) return (k = t), "break";
|
|
1052
|
+
},
|
|
1053
|
+
U = h ? 3 : 1;
|
|
1054
|
+
U > 0;
|
|
1055
|
+
U--
|
|
1056
|
+
) {
|
|
1057
|
+
if (F(U) === "break") break;
|
|
1058
|
+
}
|
|
1059
|
+
t.placement !== k &&
|
|
1060
|
+
((t.modifiersData[r]._skip = !0), (t.placement = k), (t.reset = !0));
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
requiresIfExists: ["offset"],
|
|
1064
|
+
data: { _skip: !1 },
|
|
1065
|
+
};
|
|
1066
|
+
function ue(e, t, n) {
|
|
1067
|
+
return i(e, a(t, n));
|
|
1068
|
+
}
|
|
1069
|
+
var le = {
|
|
1070
|
+
name: "preventOverflow",
|
|
1071
|
+
enabled: !0,
|
|
1072
|
+
phase: "main",
|
|
1073
|
+
fn: function (e) {
|
|
1074
|
+
var t = e.state,
|
|
1075
|
+
n = e.options,
|
|
1076
|
+
r = e.name,
|
|
1077
|
+
o = n.mainAxis,
|
|
1078
|
+
s = void 0 === o || o,
|
|
1079
|
+
f = n.altAxis,
|
|
1080
|
+
c = void 0 !== f && f,
|
|
1081
|
+
p = n.boundary,
|
|
1082
|
+
u = n.rootBoundary,
|
|
1083
|
+
l = n.altBoundary,
|
|
1084
|
+
d = n.padding,
|
|
1085
|
+
h = n.tether,
|
|
1086
|
+
m = void 0 === h || h,
|
|
1087
|
+
g = n.tetherOffset,
|
|
1088
|
+
y = void 0 === g ? 0 : g,
|
|
1089
|
+
b = Y(t, { boundary: p, rootBoundary: u, padding: d, altBoundary: l }),
|
|
1090
|
+
x = C(t.placement),
|
|
1091
|
+
w = _(t.placement),
|
|
1092
|
+
L = !w,
|
|
1093
|
+
P = F(x),
|
|
1094
|
+
k = P === "x" ? "y" : "x",
|
|
1095
|
+
W = t.modifiersData.popperOffsets,
|
|
1096
|
+
B = t.rects.reference,
|
|
1097
|
+
H = t.rects.popper,
|
|
1098
|
+
T =
|
|
1099
|
+
typeof y == "function"
|
|
1100
|
+
? y(Object.assign({}, t.rects, { placement: t.placement }))
|
|
1101
|
+
: y,
|
|
1102
|
+
R =
|
|
1103
|
+
typeof T == "number"
|
|
1104
|
+
? { mainAxis: T, altAxis: T }
|
|
1105
|
+
: Object.assign({ mainAxis: 0, altAxis: 0 }, T),
|
|
1106
|
+
S = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
|
|
1107
|
+
q = { x: 0, y: 0 };
|
|
1108
|
+
if (W) {
|
|
1109
|
+
if (s) {
|
|
1110
|
+
var V,
|
|
1111
|
+
N = P === "y" ? j : A,
|
|
1112
|
+
I = P === "y" ? E : D,
|
|
1113
|
+
U = P === "y" ? "height" : "width",
|
|
1114
|
+
z = W[P],
|
|
1115
|
+
X = z + b[N],
|
|
1116
|
+
G = z - b[I],
|
|
1117
|
+
J = m ? -H[U] / 2 : 0,
|
|
1118
|
+
K = w === M ? B[U] : H[U],
|
|
1119
|
+
Q = w === M ? -H[U] : -B[U],
|
|
1120
|
+
Z = t.elements.arrow,
|
|
1121
|
+
$ = m && Z ? v(Z) : { width: 0, height: 0 },
|
|
1122
|
+
ee = t.modifiersData["arrow#persistent"]
|
|
1123
|
+
? t.modifiersData["arrow#persistent"].padding
|
|
1124
|
+
: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
1125
|
+
te = ee[N],
|
|
1126
|
+
ne = ee[I],
|
|
1127
|
+
re = ue(0, B[U], $[U]),
|
|
1128
|
+
oe = L
|
|
1129
|
+
? B[U] / 2 - J - re - te - R.mainAxis
|
|
1130
|
+
: K - re - te - R.mainAxis,
|
|
1131
|
+
ie = L
|
|
1132
|
+
? -B[U] / 2 + J + re + ne + R.mainAxis
|
|
1133
|
+
: Q + re + ne + R.mainAxis,
|
|
1134
|
+
ae = t.elements.arrow && O(t.elements.arrow),
|
|
1135
|
+
se = ae ? (P === "y" ? ae.clientTop || 0 : ae.clientLeft || 0) : 0,
|
|
1136
|
+
fe = (V = S == null ? void 0 : S[P]) != null ? V : 0,
|
|
1137
|
+
ce = z + ie - fe,
|
|
1138
|
+
pe = ue(m ? a(X, z + oe - fe - se) : X, z, m ? i(G, ce) : G);
|
|
1139
|
+
(W[P] = pe), (q[P] = pe - z);
|
|
1140
|
+
}
|
|
1141
|
+
if (c) {
|
|
1142
|
+
var le,
|
|
1143
|
+
de = P === "x" ? j : A,
|
|
1144
|
+
he = P === "x" ? E : D,
|
|
1145
|
+
me = W[k],
|
|
1146
|
+
ve = k === "y" ? "height" : "width",
|
|
1147
|
+
ge = me + b[de],
|
|
1148
|
+
ye = me - b[he],
|
|
1149
|
+
be = [j, A].indexOf(x) !== -1,
|
|
1150
|
+
xe = (le = S == null ? void 0 : S[k]) != null ? le : 0,
|
|
1151
|
+
we = be ? ge : me - B[ve] - H[ve] - xe + R.altAxis,
|
|
1152
|
+
Oe = be ? me + B[ve] + H[ve] - xe - R.altAxis : ye,
|
|
1153
|
+
je =
|
|
1154
|
+
m && be
|
|
1155
|
+
? (function (e, t, n) {
|
|
1156
|
+
var r = ue(e, t, n);
|
|
1157
|
+
return r > n ? n : r;
|
|
1158
|
+
})(we, me, Oe)
|
|
1159
|
+
: ue(m ? we : ge, me, m ? Oe : ye);
|
|
1160
|
+
(W[k] = je), (q[k] = je - me);
|
|
1161
|
+
}
|
|
1162
|
+
t.modifiersData[r] = q;
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
requiresIfExists: ["offset"],
|
|
1166
|
+
};
|
|
1167
|
+
var de = {
|
|
1168
|
+
name: "arrow",
|
|
1169
|
+
enabled: !0,
|
|
1170
|
+
phase: "main",
|
|
1171
|
+
fn: function (e) {
|
|
1172
|
+
var t,
|
|
1173
|
+
n = e.state,
|
|
1174
|
+
r = e.name,
|
|
1175
|
+
o = e.options,
|
|
1176
|
+
i = n.elements.arrow,
|
|
1177
|
+
a = n.modifiersData.popperOffsets,
|
|
1178
|
+
s = C(n.placement),
|
|
1179
|
+
f = F(s),
|
|
1180
|
+
c = [A, D].indexOf(s) >= 0 ? "height" : "width";
|
|
1181
|
+
if (i && a) {
|
|
1182
|
+
var p = (function (e, t) {
|
|
1183
|
+
return z(
|
|
1184
|
+
typeof (e =
|
|
1185
|
+
typeof e == "function"
|
|
1186
|
+
? e(Object.assign({}, t.rects, { placement: t.placement }))
|
|
1187
|
+
: e) != "number"
|
|
1188
|
+
? e
|
|
1189
|
+
: X(e, P)
|
|
1190
|
+
);
|
|
1191
|
+
})(o.padding, n),
|
|
1192
|
+
u = v(i),
|
|
1193
|
+
l = f === "y" ? j : A,
|
|
1194
|
+
d = f === "y" ? E : D,
|
|
1195
|
+
h =
|
|
1196
|
+
n.rects.reference[c] +
|
|
1197
|
+
n.rects.reference[f] -
|
|
1198
|
+
a[f] -
|
|
1199
|
+
n.rects.popper[c],
|
|
1200
|
+
m = a[f] - n.rects.reference[f],
|
|
1201
|
+
g = O(i),
|
|
1202
|
+
y = g ? (f === "y" ? g.clientHeight || 0 : g.clientWidth || 0) : 0,
|
|
1203
|
+
b = h / 2 - m / 2,
|
|
1204
|
+
x = p[l],
|
|
1205
|
+
w = y - u[c] - p[d],
|
|
1206
|
+
L = y / 2 - u[c] / 2 + b,
|
|
1207
|
+
M = ue(x, L, w),
|
|
1208
|
+
k = f;
|
|
1209
|
+
n.modifiersData[r] = (((t = {})[k] = M), (t.centerOffset = M - L), t);
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
effect: function (e) {
|
|
1213
|
+
var t = e.state,
|
|
1214
|
+
n = e.options.element,
|
|
1215
|
+
r = void 0 === n ? "[data-popper-arrow]" : n;
|
|
1216
|
+
r != null &&
|
|
1217
|
+
(typeof r != "string" || (r = t.elements.popper.querySelector(r))) &&
|
|
1218
|
+
q(t.elements.popper, r) &&
|
|
1219
|
+
(t.elements.arrow = r);
|
|
1220
|
+
},
|
|
1221
|
+
requires: ["popperOffsets"],
|
|
1222
|
+
requiresIfExists: ["preventOverflow"],
|
|
1223
|
+
};
|
|
1224
|
+
function he(e, t, n) {
|
|
1225
|
+
return (
|
|
1226
|
+
void 0 === n && (n = { x: 0, y: 0 }),
|
|
1227
|
+
{
|
|
1228
|
+
top: e.top - t.height - n.y,
|
|
1229
|
+
right: e.right - t.width + n.x,
|
|
1230
|
+
bottom: e.bottom - t.height + n.y,
|
|
1231
|
+
left: e.left - t.width - n.x,
|
|
1232
|
+
}
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
function me(e) {
|
|
1236
|
+
return [j, D, E, A].some(function (t) {
|
|
1237
|
+
return e[t] >= 0;
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
var ve = {
|
|
1241
|
+
name: "hide",
|
|
1242
|
+
enabled: !0,
|
|
1243
|
+
phase: "main",
|
|
1244
|
+
requiresIfExists: ["preventOverflow"],
|
|
1245
|
+
fn: function (e) {
|
|
1246
|
+
var t = e.state,
|
|
1247
|
+
n = e.name,
|
|
1248
|
+
r = t.rects.reference,
|
|
1249
|
+
o = t.rects.popper,
|
|
1250
|
+
i = t.modifiersData.preventOverflow,
|
|
1251
|
+
a = Y(t, { elementContext: "reference" }),
|
|
1252
|
+
s = Y(t, { altBoundary: !0 }),
|
|
1253
|
+
f = he(a, r),
|
|
1254
|
+
c = he(s, o, i),
|
|
1255
|
+
p = me(f),
|
|
1256
|
+
u = me(c);
|
|
1257
|
+
(t.modifiersData[n] = {
|
|
1258
|
+
referenceClippingOffsets: f,
|
|
1259
|
+
popperEscapeOffsets: c,
|
|
1260
|
+
isReferenceHidden: p,
|
|
1261
|
+
hasPopperEscaped: u,
|
|
1262
|
+
}),
|
|
1263
|
+
(t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1264
|
+
"data-popper-reference-hidden": p,
|
|
1265
|
+
"data-popper-escaped": u,
|
|
1266
|
+
}));
|
|
1267
|
+
},
|
|
1268
|
+
},
|
|
1269
|
+
ge = K({ defaultModifiers: [Z, $, ne, re] }),
|
|
1270
|
+
ye = [Z, $, ne, re, oe, pe, le, de, ve],
|
|
1271
|
+
be = K({ defaultModifiers: ye });
|
|
1272
|
+
(e.applyStyles = re),
|
|
1273
|
+
(e.arrow = de),
|
|
1274
|
+
(e.computeStyles = ne),
|
|
1275
|
+
(e.createPopper = be),
|
|
1276
|
+
(e.createPopperLite = ge),
|
|
1277
|
+
(e.defaultModifiers = ye),
|
|
1278
|
+
(e.detectOverflow = Y),
|
|
1279
|
+
(e.eventListeners = Z),
|
|
1280
|
+
(e.flip = pe),
|
|
1281
|
+
(e.hide = ve),
|
|
1282
|
+
(e.offset = oe),
|
|
1283
|
+
(e.popperGenerator = K),
|
|
1284
|
+
(e.popperOffsets = $),
|
|
1285
|
+
(e.preventOverflow = le),
|
|
1286
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1287
|
+
});
|