!function(t,e){"function"==typeofdefine&&define.amd?define(e):"object"==typeofexports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionn(t){vare=getComputedStyle(t)||{},o=e.position;if("fixed"===o)returnt;for(vari=t;i=i.parentNode;){varn=void0;try{n=getComputedStyle(i)}catch(r){}if("undefined"==typeofn||null===n)returni;vars=n,a=s.overflow,f=s.overflowX,h=s.overflowY;if(/(auto|scroll)/.test(a+h+f)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(n.position)>=0))returni}returndocument.body}functionr(t){vare=void0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;varo=e.documentElement,i={},n=t.getBoundingClientRect();for(varrinn)i[r]=n[r];vars=x(e);returni.top-=s.top,i.left-=s.left,"undefined"==typeofi.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeofi.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}functions(t){returnt.offsetParent||document.documentElement}functiona(){vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");f(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);varo=t.offsetWidth;e.style.overflow="scroll";vari=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);varn=o-i;return{width:n,height:n}}functionf(){vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=[];returnArray.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(varoine)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}functionh(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{varo=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=u(t).replace(o," ");p(t,i)}}functionl(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{h(t,e);varo=u(t)+(" "+e);p(t,o)}}functiond(t,e){if("undefined"!=typeoft.classList)returnt.classList.contains(e);varo=u(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(o)}functionu(t){returnt.classNameinstanceofSVGAnimatedString?t.className.baseVal:t.className}functionp(t,e){t.setAttribute("class",e)}functionc(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&d(t,o)&&h(t,o)}),e.forEach(function(e){d(t,e)||l(t,e)})}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functiong(t,e){varo=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+o>=e&&e>=t-o}functionm(){return"undefined"!=typeofperformance&&"undefined"!=typeofperformance.now?performance.now():+newDate}functionv(){for(vart={top:0,left:0},e=arguments.length,o=Array(e),i=0;e>i;i++)o[i]=arguments[i];returno.forEach(function(e){varo=e.top,i=e.left;"string"==typeofo&&(o=parseFloat(o,10)),"string"==typeofi&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}functiony(t,e){return"string"==typeoft.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeoft.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}functionb(t,e){return"scrollParent"===e?e=t.scrollParent:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeofe.nodeType&&!function(){vart=r(e),o=t,i=getComputedStyle(e);e=[o.left,o.top,t.width+o.left,t.height+o.top],U.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(i["border"+t+"Width"]):e[o]-=parseFloat(i["border"+t+"Width"])})}(),e}varw=function(){functiont(t,e){for(varo=0;o<e.length;o++){vari=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.wri