diff options
Diffstat (limited to 'web-tools/web/_static/popperjs/popper-base.min.js')
-rw-r--r-- | web-tools/web/_static/popperjs/popper-base.min.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web-tools/web/_static/popperjs/popper-base.min.js b/web-tools/web/_static/popperjs/popper-base.min.js new file mode 100644 index 0000000..7dc781b --- /dev/null +++ b/web-tools/web/_static/popperjs/popper-base.min.js @@ -0,0 +1,6 @@ +/** + * @popperjs/core v2.5.4 - MIT License + */ + +"use strict";!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Popper={})}(this,(function(t){function e(t){return{width:(t=t.getBoundingClientRect()).width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function o(t){return"[object Window]"!==t.toString()?(t=t.ownerDocument)&&t.defaultView||window:t}function n(t){return{scrollLeft:(t=o(t)).pageXOffset,scrollTop:t.pageYOffset}}function i(t){return t instanceof o(t).Element||t instanceof Element}function r(t){return t instanceof o(t).HTMLElement||t instanceof HTMLElement}function f(t){return t?(t.nodeName||"").toLowerCase():null}function a(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}function c(t){return e(a(t)).left+n(t).scrollLeft}function s(t){return o(t).getComputedStyle(t)}function l(t){return t=s(t),/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function u(t,i,s){void 0===s&&(s=!1);var u=a(i);t=e(t);var d=r(i),p={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(d||!d&&!s)&&(("body"!==f(i)||l(u))&&(p=i!==o(i)&&r(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:n(i)),r(i)?((h=e(i)).x+=i.clientLeft,h.y+=i.clientTop):u&&(h.x=c(u))),{x:t.left+p.scrollLeft-h.x,y:t.top+p.scrollTop-h.y,width:t.width,height:t.height}}function d(t){return"html"===f(t)?t:t.assignedSlot||t.parentNode||t.host||a(t)}function p(t,e){void 0===e&&(e=[]);var n=function t(e){return 0<=["html","body","#document"].indexOf(f(e))?e.ownerDocument.body:r(e)&&l(e)?e:t(d(e))}(t);t="body"===f(n);var i=o(n);return n=t?[i].concat(i.visualViewport||[],l(n)?n:[]):n,e=e.concat(n),t?e:e.concat(p(d(n)))}function h(t){if(!r(t)||"fixed"===s(t).position)return null;if(t=t.offsetParent){var e=a(t);if("body"===f(t)&&"static"===s(t).position&&"static"!==s(e).position)return e}return t}function m(t){for(var e=o(t),n=h(t);n&&0<=["table","td","th"].indexOf(f(n))&&"static"===s(n).position;)n=h(n);if(n&&"body"===f(n)&&"static"===s(n).position)return e;if(!n)t:{for(t=d(t);r(t)&&0>["html","body"].indexOf(f(t));){if("none"!==(n=s(t)).transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange){n=t;break t}t=t.parentNode}n=null}return n||e}function g(t){var e=new Map,o=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){o.has(t.name)||function t(i){o.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(n){o.has(n)||(n=e.get(n))&&t(n)})),n.push(i)}(t)})),n}function b(t){var e;return function(){return e||(e=new Promise((function(o){Promise.resolve().then((function(){e=void 0,o(t())}))}))),e}}function v(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function y(t,i){if("viewport"===i){i=o(t);var f=a(t);i=i.visualViewport;var l=f.clientWidth;f=f.clientHeight;var u=0,d=0;i&&(l=i.width,f=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=i.offsetLeft,d=i.offsetTop)),t=v(t={width:l,height:f,x:u+c(t),y:d})}else r(i)?((t=e(i)).top+=i.clientTop,t.left+=i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top):(d=a(t),t=a(d),u=n(d),i=d.ownerDocument.body,l=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),f=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-u.scrollLeft+c(d),u=-u.scrollTop,"rtl"===s(i||t).direction&&(d+=Math.max(t.clientWidth,i?i.clientWidth:0)-l),t=v({width:l,height:f,x:d,y:u}));return t}function w(t,e,n){return e="clippingParents"===e?function(t){var e=p(d(t)),n=0<=["absolute","fixed"].indexOf(s(t).position)&&r(t)?m(t):t;return i(n)?e.filter((function(t){var e;if(e=i(t))t:if(e=n.getRootNode&&n.getRootNode(),t.contains(n))e=!0;else{var r;if((r=e)&&(r=e instanceof(r=o(e).ShadowRoot)||e instanceof ShadowRoot),r){e=n;do{if(e&&t.isSameNode(e)){e=!0;break t}e=e.parentNode||e.host}while(e)}e=!1}return e&&"body"!==f(t)})):[]}(t):[].concat(e),(n=(n=[].concat(e,[n])).reduce((function(e,o){return o=y(t,o),e.top=Math.max(o.top,e.top),e.right=Math.min(o.right,e.right),e.bottom=Math.min(o.bottom,e.bottom),e.left=Math.max(o.left,e.left),e}),y(t,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function x(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function O(t){void 0===t&&(t={});var e=t.defaultModifiers,o=void 0===e?[]:e,n=void 0===(t=t.defaultOptions)?E:t;return function(t,e,r){function f(){c.forEach((function(t){return t()})),c=[]}void 0===r&&(r=n);var a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},E),n),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],s=!1,l={state:a,setOptions:function(r){return f(),a.options=Object.assign(Object.assign(Object.assign({},n),a.options),r),a.scrollParents={reference:i(t)?p(t):t.contextElement?p(t.contextElement):[],popper:p(e)},r=function(t){var e=g(t);return M.reduce((function(t,o){return t.concat(e.filter((function(t){return t.phase===o})))}),[])}(function(t){var e=t.reduce((function(t,e){var o=t[e.name];return t[e.name]=o?Object.assign(Object.assign(Object.assign({},o),e),{},{options:Object.assign(Object.assign({},o.options),e.options),data:Object.assign(Object.assign({},o.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(o,a.options.modifiers))),a.orderedModifiers=r.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,o=t.options;o=void 0===o?{}:o,"function"==typeof(t=t.effect)&&(e=t({state:a,name:e,instance:l,options:o}),c.push(e||function(){}))})),l.update()},forceUpdate:function(){if(!s){var t=a.elements,e=t.reference;if(x(e,t=t.popper))for(a.rects={reference:u(e,m(t),"fixed"===a.options.strategy),popper:{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)})),e=0;e<a.orderedModifiers.length;e++)if(!0===a.reset)a.reset=!1,e=-1;else{var o=a.orderedModifiers[e];t=o.fn;var n=o.options;n=void 0===n?{}:n,o=o.name,"function"==typeof t&&(a=t({state:a,options:n,name:o,instance:l})||a)}}},update:b((function(){return new Promise((function(t){l.forceUpdate(),t(a)}))})),destroy:function(){f(),s=!0}};return x(t,e)?(l.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),l):l}}var j=["top","bottom","right","left"],M="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),E={placement:"bottom",modifiers:[],strategy:"absolute"},L=O();t.createPopper=L,t.detectOverflow=function(t,o){void 0===o&&(o={});var n=o;o=void 0===(o=n.placement)?t.placement:o;var r=n.boundary,f=void 0===r?"clippingParents":r,c=void 0===(r=n.rootBoundary)?"viewport":r;r=void 0===(r=n.elementContext)?"popper":r;var s=n.altBoundary,l=void 0!==s&&s;n=function(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}("number"!=typeof(n=void 0===(n=n.padding)?0:n)?n:function(t,e){return e.reduce((function(e,o){return e[o]=t,e}),{})}(n,j));var u=t.elements.reference;s=t.rects.popper,f=w(i(l=t.elements[l?"popper"===r?"reference":"popper":r])?l:l.contextElement||a(t.elements.popper),f,c),l=function(t){var e=t.reference,o=t.element,n=(t=t.placement)?t.split("-")[0]:null;t=t?t.split("-")[1]:null;var i=e.x+e.width/2-o.width/2,r=e.y+e.height/2-o.height/2;switch(n){case"top":i={x:i,y:e.y-o.height};break;case"bottom":i={x:i,y:e.y+e.height};break;case"right":i={x:e.x+e.width,y:r};break;case"left":i={x:e.x-o.width,y:r};break;default:i={x:e.x,y:e.y}}if(null!=(n=n?0<=["top","bottom"].indexOf(n)?"x":"y":null))switch(r="y"===n?"height":"width",t){case"start":i[n]=Math.floor(i[n])-Math.floor(e[r]/2-o[r]/2);break;case"end":i[n]=Math.floor(i[n])+Math.ceil(e[r]/2-o[r]/2)}return i}({reference:c=e(u),element:s,strategy:"absolute",placement:o}),s=v(Object.assign(Object.assign({},s),l)),c="popper"===r?s:c;var d={top:f.top-c.top+n.top,bottom:c.bottom-f.bottom+n.bottom,left:f.left-c.left+n.left,right:c.right-f.right+n.right};if(t=t.modifiersData.offset,"popper"===r&&t){var p=t[o];Object.keys(d).forEach((function(t){var e=0<=["right","bottom"].indexOf(t)?1:-1,o=0<=["top","bottom"].indexOf(t)?"y":"x";d[t]+=p[o]*e}))}return d},t.popperGenerator=O,Object.defineProperty(t,"__esModule",{value:!0})})); +//# sourceMappingURL=popper-base.min.js.map |