gotty/bindata/static/js/gotty.js

3 lines
776 KiB
JavaScript
Raw Normal View History

2022-03-28 22:05:51 +00:00
/*! For license information please see gotty.js.LICENSE.txt */
2024-03-25 19:08:45 +00:00
(()=>{var e={926:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Alert:()=>Et,Button:()=>Lt,Carousel:()=>li,Collapse:()=>wi,Dropdown:()=>Vi,Modal:()=>Er,Offcanvas:()=>Gr,Popover:()=>bs,ScrollSpy:()=>$s,Tab:()=>Ks,Toast:()=>dn,Tooltip:()=>hs});var r={};i.r(r),i.d(r,{afterMain:()=>x,afterRead:()=>v,afterWrite:()=>S,applyStyles:()=>M,arrow:()=>Y,auto:()=>l,basePlacements:()=>c,beforeMain:()=>C,beforeRead:()=>m,beforeWrite:()=>y,bottom:()=>n,clippingParents:()=>u,computeStyles:()=>re,createPopper:()=>Me,createPopperBase:()=>Re,createPopperLite:()=>Te,detectOverflow:()=>Ae,end:()=>h,eventListeners:()=>ne,flip:()=>ve,hide:()=>xe,left:()=>a,main:()=>w,modifierPhases:()=>k,offset:()=>ye,placements:()=>_,popper:()=>b,popperGenerator:()=>De,popperOffsets:()=>$e,preventOverflow:()=>Se,read:()=>A,reference:()=>g,right:()=>o,start:()=>d,top:()=>s,variationPlacements:()=>p,viewport:()=>f,write:()=>$});var s="top",n="bottom",o="right",a="left",l="auto",c=[s,n,o,a],d="start",h="end",u="clippingParents",f="viewport",b="popper",g="reference",p=c.reduce((function(e,t){return e.concat([t+"-"+d,t+"-"+h])}),[]),_=[].concat(c,[l]).reduce((function(e,t){return e.concat([t,t+"-"+d,t+"-"+h])}),[]),m="beforeRead",A="read",v="afterRead",C="beforeMain",w="main",x="afterMain",y="beforeWrite",$="write",S="afterWrite",k=[m,A,v,C,w,x,y,$,S];function E(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L(e){return e instanceof B(e).Element||e instanceof Element}function D(e){return e instanceof B(e).HTMLElement||e instanceof HTMLElement}function R(e){return"undefined"!=typeof ShadowRoot&&(e instanceof B(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 i=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];D(s)&&E(s)&&(Object.assign(s.style,i),Object.keys(r).forEach((function(e){var t=r[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],s=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});D(r)&&E(r)&&(Object.assign(r.style,n),Object.keys(s).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function T(e){return e.split("-")[0]}var O=Math.max,I=Math.min,P=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 H(){return!/^((?!chrome|android).)*safari/i.test(F())}function z(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var r=e.getBoundingClientRect(),s=1,n=1;t&&D(e)&&(s=e.offsetWidth>0&&P(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&P(r.height)/e.offsetHeight||1);var o=(L(e)?B(e):window).visualViewport,a=!H()&&i,l=(r.left+(a&&o?o.offsetLeft:0))/s,c=(r.top+(a&&o?o.offsetTop:0))/n,d=r.width/s,h=r.height/n;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function N(e){var t=z(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function U(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&R(i)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function W(e){return B(e).getComputedStyle(e)}function j(e){return["table","td","th"].indexOf(E(e))>=0}function q(e){return((L(e)?e.ownerDocument:e.document)||window.document).documentElement}function G(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(R(e)?e.host:null)||q(e)}f
//# sourceMappingURL=gotty.js.map