mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-23 00:27:46 +00:00
2 lines
42 KiB
JavaScript
2 lines
42 KiB
JavaScript
|
/*! For license information please see main.js.LICENSE.txt */
|
||
|
(()=>{var e={170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{afterMain:()=>x,afterRead:()=>y,afterWrite:()=>T,applyStyles:()=>M,arrow:()=>X,auto:()=>a,basePlacements:()=>c,beforeMain:()=>_,beforeRead:()=>b,beforeWrite:()=>O,bottom:()=>o,clippingParents:()=>f,computeStyles:()=>ne,createPopper:()=>Pe,createPopperBase:()=>De,createPopperLite:()=>Me,detectOverflow:()=>be,end:()=>u,eventListeners:()=>oe,flip:()=>ve,hide:()=>we,left:()=>s,main:()=>w,modifierPhases:()=>A,offset:()=>xe,placements:()=>g,popper:()=>d,popperGenerator:()=>Se,popperOffsets:()=>Oe,preventOverflow:()=>Ee,read:()=>v,reference:()=>h,right:()=>r,start:()=>l,top:()=>i,variationPlacements:()=>m,viewport:()=>p,write:()=>E});var i="top",o="bottom",r="right",s="left",a="auto",c=[i,o,r,s],l="start",u="end",f="clippingParents",p="viewport",d="popper",h="reference",m=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),g=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),b="beforeRead",v="read",y="afterRead",_="beforeMain",w="main",x="afterMain",O="beforeWrite",E="write",T="afterWrite",A=[b,v,y,_,w,x,O,E,T];function C(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function S(e){return e instanceof j(e).Element||e instanceof Element}function D(e){return e instanceof j(e).HTMLElement||e instanceof HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof j(e).ShadowRoot||e instanceof ShadowRoot)}const M={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]||{},i=t.attributes[e]||{},o=t.elements[e];D(o)&&C(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[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 i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});D(i)&&C(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function L(e){return e.split("-")[0]}var N=Math.max,k=Math.min,H=Math.round;function F(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function R(){return!/^((?!chrome|android).)*safari/i.test(F())}function W(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&D(e)&&(o=e.offsetWidth>0&&H(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&H(i.height)/e.offsetHeight||1);var s=(S(e)?j(e):window).visualViewport,a=!R()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function z(e){var t=W(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function B(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $(e){return j(e).getComputedStyle(e)}function q(e){return["table","td","th"].indexOf(C(e))>=0}function I(e){return((S(e)?e.ownerDocument:e.document)||window.document).documentElement}function V(e){return"html"===C(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||I(e)}function Y(e){return D(e)&&"fixed"!==$(e).position?e.offsetParent:null}function U(e){for(var t=j(e),n=Y(e);n&&q(n)&&"static"===$(n).position;)n=Y(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===$
|