"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react-dom"),e=require("react");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function i(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&st+at>0&&(j?Ot-=(st+at)/2:R-st-at0&&dt+ut>0&&(j?Et-=(dt+ut)/2:A-dt-uti+e&&l>=f&&"bottom"===et&&(ft-=D+A,et="top")),c||(L+ito?L+it-o:-R+it+wt,st)),z-at>n&&(st=h(L+wtn&&d>p&&"right"===et&&(ct-=R+k,et="left")),c||(T+lte?T+lt-e:-A+lt+yt,dt)),I-ut>r&&(dt=h(T+ytMath.round(Math.abs(e))?t:e}exports.default=f;