!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";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t){vare=t.getBoundingClientRect(),o={};for(varnine)o[n]=e[n];if(t.ownerDocument!==document){varr=t.ownerDocument.defaultView.frameElement;if(r){vars=i(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}returno}functionr(t){vare=getComputedStyle(t)||{},o=e.position,n=[];if("fixed"===o)return[t];for(vari=t;(i=i.parentNode)&&i&&1===i.nodeType;){varr=void0;try{r=getComputedStyle(i)}catch(s){}if("undefined"==typeofr||null===r)returnn.push(i),n;vara=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&n.push(i)}returnn.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}functions(){A&&document.body.removeChild(A),A=null}functiona(t){vare=void0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;varo=e.documentElement,n=i(t),r=P();returnn.top-=r.top,n.left-=r.left,"undefined"==typeofn.width&&(n.width=document.body.scrollWidth-n.left-n.right),"undefined"==typeofn.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-o.clientTop,n.left=n.left-o.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}functionf(t){returnt.offsetParent||document.documentElement}functionl(){if(M)returnM;vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");h(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";varn=t.offsetWidth;o===n&&(n=e.clientWidth),document.body.removeChild(e);vari=o-n;returnM={width:i,height:i}}functionh(){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}functiond(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{varo=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=c(t).replace(o," ");g(t,n)}}functionu(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);varo=c(t)+(" "+e);g(t,o)}}functionp(t,e){if("undefined"!=typeoft.classList)returnt.classList.contains(e);varo=c(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(o)}functionc(t){returnt.classNameinstanceoft.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}functiong(t,e){t.setAttribute("class",e)}functionm(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&p(t,o)&&d(t,o)}),e.forEach(function(e){p(t,e)||u(t,e)})}functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionv(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}functiony(t,e){varo=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+o>=e&&e>=t-o}functionb(){return"undefined"!=typeofperformance&&"undefined"!=typeofperformance.now?performance.now():+newDate}functionw(){for(vart={top:0,left:0},e=arguments.length,o=Array(e),n=0;e>n;n++)o[n]=arguments[n];returno.forEach(function(e){varo=e.top,n=e.left;"string"==typeofo&&(o=parseFloat(o,10)),"string"==typeofn&&(n=parseFloat(n,10)),t.top+=o,t.left+=n}),t}functionC(t,e){return"string"==typeoft.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.widt