!function(a,b){"function"==typeofdefine&&define.amd?define(b):"object"==typeofexports?module.exports=b(require,exports,module):a.Tether=b()}(this,function(){"use strict";functiona(a,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}functionb(a){varb=getComputedStyle(a),c=b.position;if("fixed"===c)returna;for(vard=a;d=d.parentNode;){vare=void0;try{e=getComputedStyle(d)}catch(f){}if("undefined"==typeofe||null===e)returnd;varg=e.overflow,h=e.overflowX,i=e.overflowY;if(/(auto|scroll)/.test(g+i+h)&&("absolute"!==c||["relative","absolute","fixed"].indexOf(e.position)>=0))returnd}returndocument.body}functionc(a){varb=void0;a===document?(b=document,a=document.documentElement):b=a.ownerDocument;varc=b.documentElement,d={},e=a.getBoundingClientRect();for(varfine)d[f]=e[f];varg=v(b);returnd.top-=g.top,d.left-=g.left,"undefined"==typeofd.width&&(d.width=document.body.scrollWidth-d.left-d.right),"undefined"==typeofd.height&&(d.height=document.body.scrollHeight-d.top-d.bottom),d.top=d.top-c.clientTop,d.left=d.left-c.clientLeft,d.right=b.body.clientWidth-d.width-d.left,d.bottom=b.body.clientHeight-d.height-d.top,d}functiond(a){returna.offsetParent||document.documentElement}functione(){vara=document.createElement("div");a.style.width="100%",a.style.height="200px";varb=document.createElement("div");f(b.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),b.appendChild(a),document.body.appendChild(b);varc=a.offsetWidth;b.style.overflow="scroll";vard=a.offsetWidth;c===d&&(d=b.clientWidth),document.body.removeChild(b);vare=c-d;return{width:e,height:e}}functionf(){vara=arguments.length<=0||void0===arguments[0]?{}:arguments[0],b=[];returnArray.prototype.push.apply(b,arguments),b.slice(1).forEach(function(b){if(b)for(varcinb)({}).hasOwnProperty.call(b,c)&&(a[c]=b[c])}),a}functiong(a,b){if("undefined"!=typeofa.classList)b.split(" ").forEach(function(b){b.trim()&&a.classList.remove(b)});else{varc=newRegExp("(^| )"+b.split(" ").join("|")+"( |$)","gi"),d=j(a).replace(c," ");k(a,d)}}functionh(a,b){if("undefined"!=typeofa.classList)b.split(" ").forEach(function(b){b.trim()&&a.classList.add(b)});else{g(a,b);varc=j(a)+(" "+b);k(a,c)}}functioni(a,b){if("undefined"!=typeofa.classList)returna.classList.contains(b);varc=j(a);returnnewRegExp("(^| )"+b+"( |$)","gi").test(c)}functionj(a){returna.classNameinstanceofSVGAnimatedString?a.className.baseVal:a.className}functionk(a,b){a.setAttribute("class",b)}functionl(a,b,c){c.forEach(function(c){-1===b.indexOf(c)&&i(a,c)&&g(a,c)}),b.forEach(function(b){i(a,b)||h(a,b)})}functiona(a,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}functionm(a,b){varc=arguments.length<=2||void0===arguments[2]?1:arguments[2];returna+c>=b&&b>=a-c}functionn(){return"undefined"!=typeofperformance&&"undefined"!=typeofperformance.now?performance.now():+newDate}functiono(){for(vara={top:0,left:0},b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];returnc.forEach(function(b){varc=b.top,d=b.left;"string"==typeofc&&(c=parseFloat(c,10)),"string"==typeofd&&(d=parseFloat(d,10)),a.top+=c,a.left+=d}),a}functionp(a,b){return"string"==typeofa.left&&-1!==a.left.indexOf("%")&&(a.left=parseFloat(a.left,10)/100*b.width),"string"==typeofa.top&&-1!==a.top.indexOf("%")&&(a.top=parseFloat(a.top,10)/100*b.height),a}functionq(a,b){return"scrollParent"===b?b=a.scrollParent:"window"===b&&(b=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),b===document&&(b=b.documentElement),"undefined"!=typeofb.nodeType&&!function(){vara=c(b),d=a,e=getComputedStyle(b);b=[d.left,d.top,a.width+d.left,a.height+d.top],O.forEach(function(a,c){a=a[0].toUpperCase()+a.substr(1),"Top"===a||"Left"===a?b[c]+=parseFloat(e["border"+a+"Width"]):b[c]-=parseFloat(e["border"+a+"Width"])})}(),b}varr=function(){functiona(a,b){for(varc=0;c<b.length;c++){vard=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"ind&&(d.writable=!0),Obj