wp-rdnyc/dist/main.min.js

2 lines
43 KiB
JavaScript
Raw Normal View History

/*! For license information please see main.min.js.LICENSE.txt */
!function(){var e={492:function(e,t,n){"use strict";n.r(t),n.d(t,{afterMain:function(){return x},afterRead:function(){return v},afterWrite:function(){return A},applyStyles:function(){return P},arrow:function(){return G},auto:function(){return a},basePlacements:function(){return c},beforeMain:function(){return w},beforeRead:function(){return b},beforeWrite:function(){return O},bottom:function(){return o},clippingParents:function(){return f},computeStyles:function(){return ne},createPopper:function(){return Le},createPopperBase:function(){return Se},createPopperLite:function(){return Pe},detectOverflow:function(){return be},end:function(){return l},eventListeners:function(){return oe},flip:function(){return ye},hide:function(){return _e},left:function(){return s},main:function(){return _},modifierPhases:function(){return j},offset:function(){return xe},placements:function(){return m},popper:function(){return p},popperGenerator:function(){return De},popperOffsets:function(){return Oe},preventOverflow:function(){return Ee},read:function(){return y},reference:function(){return h},right:function(){return i},start:function(){return u},top:function(){return r},variationPlacements:function(){return g},viewport:function(){return d},write:function(){return E}});var r="top",o="bottom",i="right",s="left",a="auto",c=[r,o,i,s],u="start",l="end",f="clippingParents",d="viewport",p="popper",h="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),m=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),b="beforeRead",y="read",v="afterRead",w="beforeMain",_="main",x="afterMain",O="beforeWrite",E="write",A="afterWrite",j=[b,y,v,w,_,x,O,E,A];function C(e){return e?(e.nodeName||"").toLowerCase():null}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 D(e){return e instanceof T(e).Element||e instanceof Element}function S(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement}function L(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}var P={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]||{},r=t.attributes[e]||{},o=t.elements[e];S(o)&&C(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});S(r)&&C(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M(e){return e.split("-")[0]}var N=Math.max,k=Math.min,R=Math.round;function I(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(I())}function $(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&S(e)&&(o=e.offsetWidth>0&&R(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&R(r.height)/e.offsetHeight||1);var s=(D(e)?T(e):window).visualViewport,a=!B()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/o,u=(r.top+(a&&s?s.offsetTop:0))/i,l=r.width/o,f=r.height/i;return{width:l,height:f,top:u,right:c+l,bottom:u+f,left:c,x:c,y:u}}function W(e){var t=$(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 q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&L(n)){var r=t;do{if