!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t=[],n="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(e||(e={}));var r,o=function(e){return Object.freeze(e)},i=function(e,t){this.inlineSize=e,this.blockSize=t,o(this)},s=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,o(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),a=function(e){return e instanceof SVGElement&&"getBBox"in e},c=function(e){if(a(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},u=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},f="undefined"!=typeof window?window:{},h=new WeakMap,l=/auto|scroll/,d=/^tb|vertical/,p=/msie|trident/i.test(f.navigator&&f.navigator.userAgent),v=function(e){return parseFloat(e||"0")},g=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new i((n?t:e)||0,(n?e:t)||0)},y=o({devicePixelContentBoxSize:g(),borderBoxSize:g(),contentBoxSize:g(),contentRect:new s(0,0,0,0)}),b=function(e,t){if(void 0===t&&(t=!1),h.has(e)&&!t)return h.get(e);if(c(e))return h.set(e,y),y;var n=getComputedStyle(e),r=a(e)&&e.ownerSVGElement&&e.getBBox(),i=!p&&"border-box"===n.boxSizing,u=d.test(n.writingMode||""),f=!r&&l.test(n.overflowY||""),b=!r&&l.test(n.overflowX||""),m=r?0:v(n.paddingTop),w=r?0:v(n.paddingRight),E=r?0:v(n.paddingBottom),S=r?0:v(n.paddingLeft),T=r?0:v(n.borderTopWidth),x=r?0:v(n.borderRightWidth),z=r?0:v(n.borderBottomWidth),_=S+w,B=m+E,O=(r?0:v(n.borderLeftWidth))+x,R=T+z,A=b?e.offsetHeight-R-e.clientHeight:0,M=f?e.offsetWidth-O-e.clientWidth:0,j=i?_+O:0,k=i?B+R:0,C=r?r.width:v(n.width)-j-M,F=r?r.height:v(n.height)-k-A,N=C+_+M+O,P=F+B+A+R,D=o({devicePixelContentBoxSize:g(Math.round(C*devicePixelRatio),Math.round(F*devicePixelRatio),u),borderBoxSize:g(N,P,u),contentBoxSize:g(C,F,u),contentRect:new s(S,m,C,F)});return h.set(e,D),D},m=function(t,n,r){var o=b(t,r),i=o.borderBoxSize,s=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(n){case e.DEVICE_PIXEL_CONTENT_BOX:return a;case e.BORDER_BOX:return i;default:return s}},w=function(e){var t=b(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=o([t.borderBoxSize]),this.contentBoxSize=o([t.contentBoxSize]),this.devicePixelContentBoxSize=o([t.devicePixelContentBoxSize])},E=function(e){if(c(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,n=[];t.forEach((function(t){if(0!==t.activeTargets.length){var r=[];t.activeTargets.forEach((function(t){var n=new w(t.target),o=E(t.target);r.push(n),t.lastReportedSize=m(t.target,t.observedBox),o<e&&(e=o)})),n.push((function(){t.callback.call(t.observer,r,t.observer)})),t.activeTargets.splice(0,t.activeTargets.length)}}));for(var r=0,o=n;r<o.length;r++){(0,o[r])()}return e},T=function(e){t.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(E(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},x=function(){var e,r=0;for(T(r);t.some((function(e){return e.activeTargets.length>0}));)r=S(),T(r);return t.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:n}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=n),window.dispatchEvent(e)),r>0},z=[],_=function(e){if(!r){var t=0,n=document.createTextNode("");new MutationObserver((function(){return z.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),r=function(){n.textContent=""+(t?t--:t++)}}z.push(e),r()},B=0,O={attributes:!0,characterData:!0,childList:!0,subtree:!0},R=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],A=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,j=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=A(e);n=function(){var n=!1;try{n=x()}finally{if(M=!1,e=r-A(),!B)return;n?t.run(1e3):e>0?t.run(e):t.start()}},_((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,O)};document.body?t():f.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),R.forEach((function(t){return f.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),R.forEach((function(t){return f.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),k=function(e){!B&&e>0&&j.start(),!(B+=e)&&j.stop()},C=function(){function t(t,n){this.target=t,this.observedBox=n||e.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e,t=m(this.target,this.observedBox,!0);return e=this.target,a(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},t}(),F=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},N=new WeakMap,P=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},D=function(){function e(){}return e.connect=function(e,t){var n=new F(e,t);N.set(e,n)},e.observe=function(e,n,r){var o=N.get(e),i=0===o.observationTargets.length;P(o.observationTargets,n)<0&&(i&&t.push(o),o.observationTargets.push(new C(n,r&&r.box)),k(1),j.schedule())},e.unobserve=function(e,n){var r=N.get(e),o=P(r.observationTargets,n),i=1===r.observationTargets.length;o>=0&&(i&&t.splice(t.indexOf(r),1),r.observationTargets.splice(o,1),k(-1))},e.disconnect=function(e){var t=this,n=N.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),I=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");D.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!u(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");D.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!u(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");D.unobserve(this,e)},e.prototype.disconnect=function(){D.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});var L,W,X,V,q=setTimeout,G="undefined"!=typeof setImmediate?setImmediate:null;function H(e){return Boolean(e&&void 0!==e.length)}function U(){}function J(e){if(!(this instanceof J))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],ee(e,this)}function Y(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,J._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void Q(t.promise,e)}K(t.promise,r)}else(1===e._state?K:Q)(t.promise,e._value)}))):e._deferreds.push(t)}function K(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof J)return e._state=3,e._value=t,void Z(e);if("function"==typeof n)return void ee((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Z(e)}catch(t){Q(e,t)}var r,o}function Q(e,t){e._state=2,e._value=t,Z(e)}function Z(e){2===e._state&&0===e._deferreds.length&&J._immediateFn((function(){e._handled||J._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)Y(e,e._deferreds[t]);e._deferreds=null}function $(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function ee(e,t){var n=!1;try{e((function(e){n||(n=!0,K(t,e))}),(function(e){n||(n=!0,Q(t,e))}))}catch(e){if(n)return;n=!0,Q(t,e)}}J.prototype.catch=function(e){return this.then(null,e)},J.prototype.then=function(e,t){var n=new this.constructor(U);return Y(this,new $(e,t,n)),n},J.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},J.all=function(e){return new J((function(t,n){if(!H(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(t){i(e,t)}),n)}r[e]=s,0==--o&&t(r)}catch(e){n(e)}}for(var s=0;s<r.length;s++)i(s,r[s])}))},J.allSettled=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var s=n.then;if("function"==typeof s)return void s.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var s=0;s<r.length;s++)i(s,r[s])}))},J.resolve=function(e){return e&&"object"==typeof e&&e.constructor===J?e:new J((function(t){t(e)}))},J.reject=function(e){return new J((function(t,n){n(e)}))},J.race=function(e){return new J((function(t,n){if(!H(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)J.resolve(e[r]).then(t,n)}))},J._immediateFn="function"==typeof G&&function(e){G(e)}||function(e){q(e,0)},J._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},Array.from||(Array.from=(L=Object.prototype.toString,W=function(e){return"function"==typeof e||"[object Function]"===L.call(e)},X=Math.pow(2,53)-1,V=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),X)},function(e){var t=this,n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!W(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,s=V(n.length),a=W(t)?Object(new t(s)):new Array(s),c=0;c<s;)i=n[c],a[c]=o?void 0===r?o(i,c):o.call(r,i,c):i,c+=1;return a.length=s,a})),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n=void 0!==n?n:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,n);var r,o,i=[],s=this.length,a=t||0;a=a>=0?a:Math.max(0,s+a);var c="number"==typeof n?Math.min(n,s):s;if(n<0&&(c=s+n),(o=c-a)>0)if(i=new Array(o),this.charAt)for(r=0;r<o;r++)i[r]=this.charAt(a+r);else for(r=0;r<o;r++)i[r]=this[a+r];return i}}}(),window.ResizeObserver=I,String.prototype.padStart||Object.defineProperty(String.prototype,"padStart",{configurable:!0,writable:!0,value:function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}}),window.Promise=J}));
