52 lines
48 KiB
JavaScript
52 lines
48 KiB
JavaScript
(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[5202],{200755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=void 0;var n;!function(t){t.HEADER_PRIMARY="var(--header-primary)";t.HEADER_SECONDARY="var(--header-secondary)";t.TEXT_NORMAL="var(--text-normal)";t.TEXT_MUTED="var(--text-muted)";t.TEXT_LINK="var(--text-link)";t.TEXT_LINK_LOW_SATURATION="var(--text-link-low-saturation)";t.TEXT_POSITIVE="var(--text-positive)";t.TEXT_WARNING="var(--text-warning)";t.TEXT_DANGER="var(--text-danger)";t.TEXT_BRAND="var(--text-brand)";t.INTERACTIVE_NORMAL="var(--interactive-normal)";t.INTERACTIVE_HOVER="var(--interactive-hover)";t.INTERACTIVE_ACTIVE="var(--interactive-active)";t.INTERACTIVE_MUTED="var(--interactive-muted)";t.BACKGROUND_PRIMARY="var(--background-primary)";t.BACKGROUND_SECONDARY="var(--background-secondary)";t.BACKGROUND_SECONDARY_ALT="var(--background-secondary-alt)";t.BACKGROUND_TERTIARY="var(--background-tertiary)"
|
|
;t.BACKGROUND_ACCENT="var(--background-accent)";t.BACKGROUND_FLOATING="var(--background-floating)";t.BACKGROUND_NESTED_FLOATING="var(--background-nested-floating)";t.BACKGROUND_MOBILE_PRIMARY="var(--background-mobile-primary)";t.BACKGROUND_MOBILE_SECONDARY="var(--background-mobile-secondary)";t.CHAT_BACKGROUND="var(--chat-background)";t.CHAT_BORDER="var(--chat-border)";t.CHAT_INPUT_CONTAINER_BACKGROUND="var(--chat-input-container-background)";t.BACKGROUND_MODIFIER_HOVER="var(--background-modifier-hover)";t.BACKGROUND_MODIFIER_ACTIVE="var(--background-modifier-active)";t.BACKGROUND_MODIFIER_SELECTED="var(--background-modifier-selected)";t.BACKGROUND_MODIFIER_ACCENT="var(--background-modifier-accent)";t.INFO_POSITIVE_BACKGROUND="var(--info-positive-background)";t.INFO_POSITIVE_FOREGROUND="var(--info-positive-foreground)";t.INFO_POSITIVE_TEXT="var(--info-positive-text)";t.INFO_WARNING_BACKGROUND="var(--info-warning-background)";t.INFO_WARNING_FOREGROUND="var(--info-warning-foreground)"
|
|
;t.INFO_WARNING_TEXT="var(--info-warning-text)";t.INFO_DANGER_BACKGROUND="var(--info-danger-background)";t.INFO_DANGER_FOREGROUND="var(--info-danger-foreground)";t.INFO_DANGER_TEXT="var(--info-danger-text)";t.INFO_HELP_BACKGROUND="var(--info-help-background)";t.INFO_HELP_FOREGROUND="var(--info-help-foreground)";t.INFO_HELP_TEXT="var(--info-help-text)";t.STATUS_POSITIVE_BACKGROUND="var(--status-positive-background)";t.STATUS_POSITIVE_TEXT="var(--status-positive-text)";t.STATUS_WARNING_BACKGROUND="var(--status-warning-background)";t.STATUS_WARNING_TEXT="var(--status-warning-text)";t.STATUS_DANGER_BACKGROUND="var(--status-danger-background)";t.STATUS_DANGER_TEXT="var(--status-danger-text)";t.STATUS_DANGER="var(--status-danger)";t.STATUS_POSITIVE="var(--status-positive)";t.STATUS_WARNING="var(--status-warning)";t.BUTTON_DANGER_BACKGROUND="var(--button-danger-background)";t.BUTTON_DANGER_BACKGROUND_HOVER="var(--button-danger-background-hover)"
|
|
;t.BUTTON_DANGER_BACKGROUND_ACTIVE="var(--button-danger-background-active)";t.BUTTON_DANGER_BACKGROUND_DISABLED="var(--button-danger-background-disabled)";t.BUTTON_POSITIVE_BACKGROUND="var(--button-positive-background)";t.BUTTON_POSITIVE_BACKGROUND_HOVER="var(--button-positive-background-hover)";t.BUTTON_POSITIVE_BACKGROUND_ACTIVE="var(--button-positive-background-active)";t.BUTTON_POSITIVE_BACKGROUND_DISABLED="var(--button-positive-background-disabled)";t.BUTTON_SECONDARY_BACKGROUND="var(--button-secondary-background)";t.BUTTON_SECONDARY_BACKGROUND_HOVER="var(--button-secondary-background-hover)";t.BUTTON_SECONDARY_BACKGROUND_ACTIVE="var(--button-secondary-background-active)";t.BUTTON_SECONDARY_BACKGROUND_DISABLED="var(--button-secondary-background-disabled)";t.BUTTON_OUTLINE_DANGER_TEXT="var(--button-outline-danger-text)";t.BUTTON_OUTLINE_DANGER_BORDER="var(--button-outline-danger-border)";t.BUTTON_OUTLINE_DANGER_BACKGROUND="var(--button-outline-danger-background)"
|
|
;t.BUTTON_OUTLINE_DANGER_BACKGROUND_HOVER="var(--button-outline-danger-background-hover)";t.BUTTON_OUTLINE_DANGER_TEXT_HOVER="var(--button-outline-danger-text-hover)";t.BUTTON_OUTLINE_DANGER_BORDER_HOVER="var(--button-outline-danger-border-hover)";t.BUTTON_OUTLINE_DANGER_BACKGROUND_ACTIVE="var(--button-outline-danger-background-active)";t.BUTTON_OUTLINE_DANGER_TEXT_ACTIVE="var(--button-outline-danger-text-active)";t.BUTTON_OUTLINE_DANGER_BORDER_ACTIVE="var(--button-outline-danger-border-active)";t.BUTTON_OUTLINE_POSITIVE_TEXT="var(--button-outline-positive-text)";t.BUTTON_OUTLINE_POSITIVE_BORDER="var(--button-outline-positive-border)";t.BUTTON_OUTLINE_POSITIVE_BACKGROUND="var(--button-outline-positive-background)";t.BUTTON_OUTLINE_POSITIVE_BACKGROUND_HOVER="var(--button-outline-positive-background-hover)";t.BUTTON_OUTLINE_POSITIVE_TEXT_HOVER="var(--button-outline-positive-text-hover)";t.BUTTON_OUTLINE_POSITIVE_BORDER_HOVER="var(--button-outline-positive-border-hover)"
|
|
;t.BUTTON_OUTLINE_POSITIVE_BACKGROUND_ACTIVE="var(--button-outline-positive-background-active)";t.BUTTON_OUTLINE_POSITIVE_TEXT_ACTIVE="var(--button-outline-positive-text-active)";t.BUTTON_OUTLINE_POSITIVE_BORDER_ACTIVE="var(--button-outline-positive-border-active)";t.BUTTON_OUTLINE_BRAND_TEXT="var(--button-outline-brand-text)";t.BUTTON_OUTLINE_BRAND_BORDER="var(--button-outline-brand-border)";t.BUTTON_OUTLINE_BRAND_BACKGROUND="var(--button-outline-brand-background)";t.BUTTON_OUTLINE_BRAND_BACKGROUND_HOVER="var(--button-outline-brand-background-hover)";t.BUTTON_OUTLINE_BRAND_TEXT_HOVER="var(--button-outline-brand-text-hover)";t.BUTTON_OUTLINE_BRAND_BORDER_HOVER="var(--button-outline-brand-border-hover)";t.BUTTON_OUTLINE_BRAND_BACKGROUND_ACTIVE="var(--button-outline-brand-background-active)";t.BUTTON_OUTLINE_BRAND_TEXT_ACTIVE="var(--button-outline-brand-text-active)";t.BUTTON_OUTLINE_BRAND_BORDER_ACTIVE="var(--button-outline-brand-border-active)"
|
|
;t.BUTTON_OUTLINE_PRIMARY_TEXT="var(--button-outline-primary-text)";t.BUTTON_OUTLINE_PRIMARY_BORDER="var(--button-outline-primary-border)";t.BUTTON_OUTLINE_PRIMARY_BACKGROUND="var(--button-outline-primary-background)";t.BUTTON_OUTLINE_PRIMARY_BACKGROUND_HOVER="var(--button-outline-primary-background-hover)";t.BUTTON_OUTLINE_PRIMARY_TEXT_HOVER="var(--button-outline-primary-text-hover)";t.BUTTON_OUTLINE_PRIMARY_BORDER_HOVER="var(--button-outline-primary-border-hover)";t.BUTTON_OUTLINE_PRIMARY_BACKGROUND_ACTIVE="var(--button-outline-primary-background-active)";t.BUTTON_OUTLINE_PRIMARY_TEXT_ACTIVE="var(--button-outline-primary-text-active)";t.BUTTON_OUTLINE_PRIMARY_BORDER_ACTIVE="var(--button-outline-primary-border-active)";t.MODAL_BACKGROUND="var(--modal-background)";t.MODAL_FOOTER_BACKGROUND="var(--modal-footer-background)";t.SCROLLBAR_THIN_THUMB="var(--scrollbar-thin-thumb)";t.SCROLLBAR_THIN_TRACK="var(--scrollbar-thin-track)";t.SCROLLBAR_AUTO_THUMB="var(--scrollbar-auto-thumb)"
|
|
;t.SCROLLBAR_AUTO_TRACK="var(--scrollbar-auto-track)";t.SCROLLBAR_AUTO_SCROLLBAR_COLOR_THUMB="var(--scrollbar-auto-scrollbar-color-thumb)";t.SCROLLBAR_AUTO_SCROLLBAR_COLOR_TRACK="var(--scrollbar-auto-scrollbar-color-track)";t.INPUT_BACKGROUND="var(--input-background)";t.INPUT_PLACEHOLDER_TEXT="var(--input-placeholder-text)";t.LOGO_PRIMARY="var(--logo-primary)";t.FOCUS_PRIMARY="var(--focus-primary)";t.CONTROL_BRAND_FOREGROUND="var(--control-brand-foreground)";t.CONTROL_BRAND_FOREGROUND_NEW="var(--control-brand-foreground-new)";t.BACKGROUND_MENTIONED="var(--background-mentioned)";t.BACKGROUND_MENTIONED_HOVER="var(--background-mentioned-hover)";t.BACKGROUND_MESSAGE_HOVER="var(--background-message-hover)";t.BACKGROUND_MESSAGE_AUTOMOD="var(--background-message-automod)";t.BACKGROUND_MESSAGE_AUTOMOD_HOVER="var(--background-message-automod-hover)";t.CHANNELS_DEFAULT="var(--channels-default)";t.CHANNEL_ICON="var(--channel-icon)"
|
|
;t.CHANNEL_TEXT_AREA_PLACEHOLDER="var(--channel-text-area-placeholder)";t.CHANNELTEXTAREA_BACKGROUND="var(--channeltextarea-background)";t.ACTIVITY_CARD_BACKGROUND="var(--activity-card-background)";t.TEXTBOX_MARKDOWN_SYNTAX="var(--textbox-markdown-syntax)";t.SPOILER_REVEALED_BACKGROUND="var(--spoiler-revealed-background)";t.SPOILER_HIDDEN_BACKGROUND="var(--spoiler-hidden-background)";t.ANDROID_NAVIGATION_BAR_BACKGROUND="var(--android-navigation-bar-background)";t.ANDROID_RIPPLE="var(--android-ripple)";t.DEPRECATED_CARD_BG="var(--deprecated-card-bg)";t.DEPRECATED_CARD_EDITABLE_BG="var(--deprecated-card-editable-bg)";t.DEPRECATED_STORE_BG="var(--deprecated-store-bg)";t.DEPRECATED_QUICKSWITCHER_INPUT_BACKGROUND="var(--deprecated-quickswitcher-input-background)";t.DEPRECATED_QUICKSWITCHER_INPUT_PLACEHOLDER="var(--deprecated-quickswitcher-input-placeholder)";t.DEPRECATED_TEXT_INPUT_BG="var(--deprecated-text-input-bg)";t.DEPRECATED_TEXT_INPUT_BORDER="var(--deprecated-text-input-border)"
|
|
;t.DEPRECATED_TEXT_INPUT_BORDER_HOVER="var(--deprecated-text-input-border-hover)";t.DEPRECATED_TEXT_INPUT_BORDER_DISABLED="var(--deprecated-text-input-border-disabled)";t.DEPRECATED_TEXT_INPUT_PREFIX="var(--deprecated-text-input-prefix)"}(n||(n={}));var r=n;e.default=r},610639:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.getFirstTruthyValue=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,o=e;r<o.length;r++){var i=o[r];if(null!=i&&Boolean(i))return i}return}},358162:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=void 0;var r=n(973935),o=n(659779),i={root:null,rootMargin:"0px",threshold:.5},a=function(){function t(t){var e=this;void 0===t&&(t=i);this._nodes=new WeakMap;this._components=new WeakMap;this._visibleComponents=new WeakSet;this._handleEntries=function(t){t.forEach((function(t){var n;if(null!=t.isIntersecting)n=t.isIntersecting;else{var r=e._options.threshold
|
|
;n=null==r?t.intersectionRatio>0:Array.isArray(r)?r.some((function(e){return t.intersectionRatio>e})):t.intersectionRatio>r}var o=e._nodes.get(t.target);if(null!=o){var i=!1;if(n){if(!e._visibleComponents.has(o)){e._visibleComponents.add(o);i=!0}}else if(e._visibleComponents.has(o)){e._visibleComponents.delete(o);i=!0}i&&o.forceUpdate()}}))};this._options=t;null!=window.IntersectionObserver&&(this._observer=new window.IntersectionObserver(this._handleEntries,t))}var e=t.prototype;e.isVisible=function(t){return null==this._observer||this._visibleComponents.has(t)};e.observe=function(t){var e=this._observer;if(null!=e){this.unobserve(t);var n=(0,r.findDOMNode)(t);if((0,o.isElement)(n,HTMLElement)){this._nodes.set(n,t);this._components.set(t,n);e.observe(n)}}};e.unobserve=function(t){var e=this._observer;if(null!=e){var n=this._components.get(t);if(null!=n){this._nodes.delete(n);this._components.delete(t);this._visibleComponents.delete(t);e.unobserve(n)}}};return t}();e.default=a},
|
|
34296:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=void 0;var r=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}r.default=t;n&&n.set(t,r);return r}(n(667294)),o=a(n(468811)),i=a(n(358162));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function c(t,e){c=Object.setPrototypeOf||function(t,e){t.__proto__=e;return t};return c(t,e)}var u=o.default.v4(),l=new Map,d=new Map,f=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;c(t,e)
|
|
}(e,t);function e(e){var n;(n=t.call(this,e)||this).isVisible=!1;var r=e.root,a=e.rootMargin,s=e.threshold;r?l.has(r)?n.elementId=l.get(r)||"":l.set(r,o.default.v4()):n.elementId=u;var c=n.getVisibilityObserverId();d.has(c)||d.set(c,new i.default({root:r,rootMargin:a,threshold:s}));return n}var n=e.prototype;n.componentDidMount=function(){if(this.props.active){var t=this.getVisibilityObserver();t.observe(this);this.isVisible=t.isVisible(this)}};n.componentDidUpdate=function(t){var e=this.getVisibilityObserver(),n=e.isVisible(this);this.props.active&&n!==this.isVisible&&this.props.onChange(n);!t.active&&this.props.active?e.observe(this):t.active&&!this.props.active&&e.unobserve(this);this.isVisible=n};n.componentWillUnmount=function(){this.getVisibilityObserver().unobserve(this)};n.getVisibilityObserverId=function(){var t=this.props,e=t.rootMargin,n=t.threshold;return this.elementId+" "+e+" "+n};n.getVisibilityObserver=function(){var t=this.getVisibilityObserverId(),e=d.get(t)
|
|
;if(!e)throw new Error("Visibility sensor with id "+t+" not found.");return e};n.render=function(){return r.Children.only(this.props.children)};return e}(r.Component);f.displayName="VisibilitySensor";f.defaultProps={active:!0,children:r.createElement("span"),root:null,rootMargin:"0px 0px 0px 0px",threshold:[0,Number.MIN_VALUE]};var h=f;e.default=h},376871:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});Object.defineProperty(e,"VisibilityObserver",{enumerable:!0,get:function(){return r.default}});Object.defineProperty(e,"VisibilitySensor",{enumerable:!0,get:function(){return o.default}});n(966337);var r=i(n(358162)),o=i(n(34296));function i(t){return t&&t.__esModule?t:{default:t}}},98129:(t,e,n)=>{"use strict";var r=n(60690);t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),i=r.getOption(t,"auto",!0);if(i&&!n){e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true.");n=!0}var a,s=o(),c=!1
|
|
;function u(){c=!0;for(;s.size();){var t=s;s=o();t.process()}c=!1}function l(){a=(t=u,setTimeout(t,0));var t}return{add:function(t,e){!c&&i&&n&&0===s.size()&&l();s.add(t,e)},force:function(t){if(!c){void 0===t&&(t=n);if(a){clearTimeout(a);a=null}t?l():u()}}}};function o(){var t={},e=0,n=0,r=0;return{add:function(o,i){if(!i){i=o;o=0}o>n?n=o:o<r&&(r=o);t[o]||(t[o]=[]);t[o].push(i);e++},process:function(){for(var e=r;e<=n;e++)for(var o=t[e],i=0;i<o.length;i++){(0,o[i])()}},size:function(){return e}}}},60690:t=>{"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];if(null==r&&void 0!==n)return n;return r}},602268:t=>{"use strict";var e=t.exports={};e.isIE=function(t){return(-1!==(e=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/"))&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:undefined}())
|
|
;var e};e.isLegacyOpera=function(){return!!window.opera}},917900:t=>{"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},158229:(t,e,n)=>{"use strict";var r=n(602268);t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function i(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t){return o(t).object}return{makeDetectable:function(t,a,s){if(!s){s=a;a=t;t=null}(t=t||{}).debug;r.isIE(8)?s(a):function(a,s){var c=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,l=window.getComputedStyle(a),d=a.offsetWidth,f=a.offsetHeight;o(a).startSize={width:d,height:f};function h(){function n(){if("static"===l.position){
|
|
a.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,r,o){var i=r[o];if("auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)){e.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n);n.style.setProperty(o,"0",t.important?"important":"")}};n(e,a,l,"top");n(e,a,l,"right");n(e,a,l,"bottom");n(e,a,l,"left")}}if(""!==l.position){n();u=!0}var i=document.createElement("object");i.style.cssText=c;i.tabIndex=-1;i.type="text/html";i.setAttribute("aria-hidden","true");i.onload=function(){u||n();!function t(e,n){if(e.contentDocument)n(e.contentDocument);else{var r=o(e);r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId);r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0;t(e,n)}),100)}}(this,(function(t){s(a)}))}
|
|
;r.isIE()||(i.data="about:blank");if(o(a)){a.appendChild(i);o(a).object=i;r.isIE()&&(i.data="about:blank")}}n?n.add(h):h()}(a,s)},addListener:function(t,e){function n(){e(t)}if(r.isIE(8)){o(t).object={proxy:n};t.attachEvent("onresize",n)}else{var i=a(t);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(o(t)){var e=a(t);if(e){r.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e);o(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(t).checkForObjectDocumentTimeoutId);delete o(t).object}}}}}},860787:(t,e,n)=>{"use strict";var r=n(917900).forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState,i=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=function(){var t=500,e=500,n=document.createElement("div")
|
|
;n.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]);r.appendChild(n);document.body.insertBefore(r,document.body.firstChild);var o=t-r.clientWidth,i=e-r.clientHeight;document.body.removeChild(r);return{width:o,height:i}}(),s="erd_scroll_detection_container";function c(t){!function(t,e,n){function r(n,r){r=r||function(e){t.head.appendChild(e)};var o=t.createElement("style");o.innerHTML=n;o.id=e;r(o);return o}if(!t.getElementById(e)){var o=n+"_animation",i=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n"
|
|
;a+="."+i+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+o,"animation-name: "+o])+" }\n";a+="@-webkit-keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n";r(a+="@keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",s)}c(window.document);function u(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function l(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function d(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function f(t){return o(t).container.childNodes[0].childNodes[0].childNodes[0]}function h(t){return o(t).container.childNodes[0].childNodes[0].childNodes[1]}return{
|
|
makeDetectable:function(t,c,d){if(!d){d=c;c=t;t=null}t=t||{};function v(){if(t.debug){var n=Array.prototype.slice.call(arguments);n.unshift(i.get(c),"Scroll: ");if(e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function p(t){var e=o(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function b(){var t=window.getComputedStyle(c),e={};e.position=t.position;e.width=c.offsetWidth;e.height=c.offsetHeight;e.top=t.top;e.right=t.right;e.bottom=t.bottom;e.left=t.left;e.widthCSS=t.width;e.heightCSS=t.height;return e}function _(){v("storeStyle invoked.");if(o(c)){var t=b();o(c).style=t}else v("Aborting because element has been uninstalled")}function g(t,e,n){o(t).lastWidth=e;o(t).lastHeight=n}function O(){return 2*a.width+1}function T(){return 2*a.height+1}function E(t){return t+10+O()}function m(t){return t+10+T()}function R(t,e,n){var r=f(t),o=h(t),i=E(e),a=m(n),s=function(t){return 2*t+O()}(e),c=function(t){
|
|
return 2*t+T()}(n);r.scrollLeft=i;r.scrollTop=a;o.scrollLeft=s;o.scrollTop=c}function y(){var t=o(c).container;if(!t){(t=document.createElement("div")).className=s;t.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]);o(c).container=t;!function(t){t.className+=" "+s+"_animation_active"}(t);c.appendChild(t);var e=function(){o(c).onRendered&&o(c).onRendered()};l(t,"animationstart",e);o(c).onAnimationStart=e}return t}function N(){v("Injecting elements");if(o(c)){!function(){var n=o(c).style;if("static"===n.position){c.style.setProperty("position","relative",t.important?"important":"");var r=function(t,e,n,r){var o=n[r];if("auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)){t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e)
|
|
;e.style[r]=0}};r(e,c,n,"top");r(e,c,n,"right");r(e,c,n,"bottom");r(e,c,n,"left")}}();var n=o(c).container;n||(n=y())
|
|
;var r,i,d,f,h=a.width,p=a.height,b=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),_=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+h))?r+"px":"0"),"top: "+(i=(i=-(1+p))?i+"px":"0"),"right: "+(f=(f=-h)?f+"px":"0"),"bottom: "+(d=(d=-p)?d+"px":"0")])),g=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),O=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),T=u(["position: absolute","left: 0","top: 0"]),E=u(["position: absolute","width: 200%","height: 200%"]),m=document.createElement("div"),R=document.createElement("div"),N=document.createElement("div"),A=document.createElement("div"),I=document.createElement("div"),D=document.createElement("div");m.dir="ltr";m.style.cssText=b
|
|
;m.className=s;R.className=s;R.style.cssText=_;N.style.cssText=g;A.style.cssText=T;I.style.cssText=O;D.style.cssText=E;N.appendChild(A);I.appendChild(D);R.appendChild(N);R.appendChild(I);m.appendChild(R);n.appendChild(m);l(N,"scroll",U);l(I,"scroll",C);o(c).onExpandScroll=U;o(c).onShrinkScroll=C}else v("Aborting because element has been uninstalled");function U(){var t=o(c);t&&t.onExpand?t.onExpand():v("Aborting expand scroll handler: element has been uninstalled")}function C(){var t=o(c);t&&t.onShrink?t.onShrink():v("Aborting shrink scroll handler: element has been uninstalled")}}function A(){function a(e,n,r){var o=function(t){return f(t).childNodes[0]}(e),i=E(n),a=m(r);o.style.setProperty("width",i+"px",t.important?"important":"");o.style.setProperty("height",a+"px",t.important?"important":"")}function s(r){var s=c.offsetWidth,l=c.offsetHeight,d=s!==o(c).lastWidth||l!==o(c).lastHeight;v("Storing current size",s,l);g(c,s,l);n.add(0,(function(){if(d)if(o(c))if(u()){if(t.debug){
|
|
var n=c.offsetWidth,r=c.offsetHeight;n===s&&r===l||e.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}a(c,s,l)}else v("Aborting because element container has not been initialized");else v("Aborting because element has been uninstalled")}));n.add(1,(function(){o(c)?u()?R(c,s,l):v("Aborting because element container has not been initialized"):v("Aborting because element has been uninstalled")}));d&&r&&n.add(2,(function(){o(c)?u()?r():v("Aborting because element container has not been initialized"):v("Aborting because element has been uninstalled")}))}function u(){return!!o(c).container}function l(){v("notifyListenersIfNeeded invoked");var t=o(c);if(void 0===o(c).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height)return v("Not notifying: Size is the same as the start size, and there has been no notification yet.")
|
|
;if(t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight)return v("Not notifying: Size already notified");v("Current size not notified, notifying...");t.lastNotifiedWidth=t.lastWidth;t.lastNotifiedHeight=t.lastHeight;r(o(c).listeners,(function(t){t(c)}))}function d(){v("Scroll detected.");p(c)?v("Scroll event fired while unrendered. Ignoring..."):s(l)}v("registerListenersAndPositionElements invoked.");if(o(c)){o(c).onRendered=function(){v("startanimation triggered.");if(p(c))v("Ignoring since element is still unrendered...");else{v("Element rendered.");var t=f(c),e=h(c);if(0===t.scrollLeft||0===t.scrollTop||0===e.scrollLeft||0===e.scrollTop){v("Scrollbars out of sync. Updating detector elements...");s(l)}}};o(c).onExpand=d;o(c).onShrink=d;var b=o(c).style;a(c,b.width,b.height)}else v("Aborting because element has been uninstalled")}function I(){v("finalizeDomMutation invoked.");if(o(c)){var t=o(c).style;g(c,t.width,t.height);R(c,t.width,t.height)
|
|
}else v("Aborting because element has been uninstalled")}function D(){d(c)}function U(){v("Installing...");o(c).listeners=[];!function(){var t=b();o(c).startSize={width:t.width,height:t.height};v("Element start size",o(c).startSize)}();n.add(0,_);n.add(1,N);n.add(2,A);n.add(3,I);n.add(4,D)}v("Making detectable...");if(function(t){return!function(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}(t)||null===window.getComputedStyle(t)}(c)){v("Element is detached");y();v("Waiting until element is attached...");o(c).onRendered=function(){v("Element is now attached");U()}}else U()},addListener:function(t,e){if(!o(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(t).listeners.push(e)},uninstall:function(t){var e=o(t);if(e){e.onExpandScroll&&d(f(t),"scroll",e.onExpandScroll);e.onShrinkScroll&&d(h(t),"scroll",e.onShrinkScroll)
|
|
;e.onAnimationStart&&d(e.container,"animationstart",e.onAnimationStart);e.container&&t.removeChild(e.container)}},initDocument:c}}},263844:(t,e,n)=>{"use strict";var r=n(917900).forEach,o=n(368452),i=n(396199),a=n(575805),s=n(279799),c=n(271724),u=n(602268),l=n(98129),d=n(721931),f=n(158229),h=n(860787);function v(t){return Array.isArray(t)||void 0!==t.length}function p(t){if(Array.isArray(t))return t;var e=[];r(t,(function(t){e.push(t)}));return e}function b(t){return t&&1===t.nodeType}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=a(),g=s({idGenerator:n,stateHandler:d});e=g}var O=t.reporter;if(!O){O=c(!1===O)}var T=_(t,"batchProcessor",l({reporter:O})),E={};E.callOnAdd=!!_(t,"callOnAdd",!0);E.debug=!!_(t,"debug",!1);var m,R=i(e),y=o({stateHandler:d}),N=_(t,"strategy","object"),A=_(t,"important",!1),I={reporter:O,batchProcessor:T,stateHandler:d,idHandler:e,important:A}
|
|
;if("scroll"===N)if(u.isLegacyOpera()){O.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy.");N="object"}else if(u.isIE(9)){O.warn("Scroll strategy is not supported on IE9. Changing to object strategy.");N="object"}if("scroll"===N)m=h(I);else{if("object"!==N)throw new Error("Invalid strategy name: "+N);m=f(I)}var D={};return{listenTo:function(t,n,o){function i(t){var e=R.get(t);r(e,(function(e){e(t)}))}function a(t,e,n){R.add(e,n);t&&n(e)}if(!o){o=n;n=t;t={}}if(!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(b(n))n=[n];else{if(!v(n))return O.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=p(n)}var s=0,c=_(t,"callOnAdd",E.callOnAdd),u=_(t,"onReady",(function(){})),l=_(t,"debug",E.debug);r(n,(function(t){if(!d.getState(t)){d.initState(t);e.set(t)}var f=e.get(t);l&&O.log("Attaching listener to element",f,t);if(!y.isDetectable(t)){l&&O.log(f,"Not detectable.")
|
|
;if(y.isBusy(t)){l&&O.log(f,"System busy making it detectable");a(c,t,o);D[f]=D[f]||[];D[f].push((function(){++s===n.length&&u()}));return}l&&O.log(f,"Making detectable...");y.markBusy(t,!0);return m.makeDetectable({debug:l,important:A},t,(function(t){l&&O.log(f,"onElementDetectable");if(d.getState(t)){y.markAsDetectable(t);y.markBusy(t,!1);m.addListener(t,i);a(c,t,o);var e=d.getState(t);if(e&&e.startSize){var h=t.offsetWidth,v=t.offsetHeight;e.startSize.width===h&&e.startSize.height===v||i(t)}D[f]&&r(D[f],(function(t){t()}))}else l&&O.log(f,"Element uninstalled before being detectable.");delete D[f];++s===n.length&&u()}))}l&&O.log(f,"Already detecable, adding listener.");a(c,t,o);s++}));s===n.length&&u()},removeListener:R.removeListener,removeAllListeners:R.removeAllListeners,uninstall:function(t){if(!t)return O.error("At least one element is required.");if(b(t))t=[t];else{if(!v(t))return O.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=p(t)}
|
|
r(t,(function(t){R.removeAllListeners(t);m.uninstall(t);d.cleanState(t)}))},initDocument:function(t){m.initDocument&&m.initDocument(t)}}};function _(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}},368452:t=>{"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},575805:t=>{"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},279799:t=>{"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=e.generate();r.id=o;return o}}}},396199:t=>{"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}
|
|
return{get:n,add:function(n,r){var o=t.get(n);e[o]||(e[o]=[]);e[o].push(r)},removeListener:function(t,e){for(var r=n(t),o=0,i=r.length;o<i;++o)if(r[o]===e){r.splice(o,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},271724:t=>{"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log");r(n,"warn");r(n,"error")}return n}},721931:t=>{"use strict";function e(t){return t._erd}t.exports={initState:function(t){t._erd={};return e(t)},getState:e,cleanState:function(t){delete t._erd}}},824390:t=>{"use strict";t.exports=function(t,e){var n=e.length,r=t.length;if(r>n)return!1;if(r===n)return t===e;t:for(var o=0,i=0;o<r;o++){for(var a=t.charCodeAt(o);i<n;)if(e.charCodeAt(i++)===a)continue t;return!1}return!0}},753074:t=>{"use strict";var e={childContextTypes:!0,
|
|
contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;t.exports=function(t,o,i){if("string"!=typeof o){var a=Object.getOwnPropertyNames(o);r&&(a=a.concat(Object.getOwnPropertySymbols(o)));for(var s=0;s<a.length;++s)if(!(e[a[s]]||n[a[s]]||i&&i[a[s]]))try{t[a[s]]=o[a[s]]}catch(t){}}return t}},966337:()=>{!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100;o.prototype.POLL_INTERVAL=null;o.prototype.USE_MUTATION_OBSERVER=!0;o.prototype.observe=function(t){if(!this._observationTargets.some((function(e){
|
|
return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()}};o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};o.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};o.prototype._initThresholds=function(t){var e=t||[0];Array.isArray(e)||(e=[e]);return e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))};o.prototype._parseRootMargin=function(t){
|
|
var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));e[1]=e[1]||e[0];e[2]=e[2]||e[0];e[3]=e[3]||e[1];return e};o.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=!0;if(this.POLL_INTERVAL)this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL);else{i(t,"resize",this._checkForIntersections,!0);i(e,"scroll",this._checkForIntersections,!0);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in t){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}}};o.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=!1;clearInterval(this._monitoringInterval);this._monitoringInterval=null
|
|
;a(t,"resize",this._checkForIntersections,!0);a(e,"scroll",this._checkForIntersections,!0);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,a=s(i),c=this._rootContainsTarget(i),u=o.entry,l=e&&c&&this._computeTargetAndRootIntersection(i,n),d=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:l});u?e&&c?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)};o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o,i,a,c,l,d,f,h,v=s(n),p=u(n),b=!1;!b;){
|
|
var _=null,g=1==p.nodeType?t.getComputedStyle(p):{};if("none"==g.display)return;if(p==this.root||p==e){b=!0;_=r}else p!=e.body&&p!=e.documentElement&&"visible"!=g.overflow&&(_=s(p));if(_&&!(v=(o=_,i=v,a=void 0,c=void 0,l=void 0,d=void 0,f=void 0,h=void 0,a=Math.max(o.top,i.top),c=Math.min(o.bottom,i.bottom),l=Math.max(o.left,i.left),d=Math.min(o.right,i.right),h=c-a,(f=d-l)>=0&&h>=0&&{top:a,bottom:c,left:l,right:d,width:f,height:h})))break;p=u(p)}return v}};o.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)};o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],
|
|
left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}};o.prototype._rootIsInDom=function(){return!this.root||c(e,this.root)};o.prototype._rootContainsTarget=function(t){return c(this.root||e,t)};o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)};o.prototype._unregisterInstance=function(){var t=n.indexOf(this);-1!=t&&n.splice(t,1)};t.IntersectionObserver=o;t.IntersectionObserverEntry=r}function r(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0};this.isIntersecting=!!t.intersectionRect
|
|
;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?o/n:this.isIntersecting?1:0}function o(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n();o=null}),r))});this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(i.rootMargin);this.thresholds=this._initThresholds(i.threshold);this.root=i.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function i(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,r){
|
|
"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function s(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return{top:0,bottom:0,left:0,right:0,width:0,height:0};e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top});return e}function c(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},477412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},234865:(t,e,n)=>{var r=n(789465),o=n(977813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},744037:(t,e,n)=>{var r=n(698363),o=n(3674);t.exports=function(t,e){return t&&r(e,o(e),t)}},163886:(t,e,n)=>{var r=n(698363),o=n(481704);t.exports=function(t,e){
|
|
return t&&r(e,o(e),t)}},789465:(t,e,n)=>{var r=n(538777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},285990:(t,e,n)=>{var r=n(646384),o=n(477412),i=n(234865),a=n(744037),s=n(163886),c=n(364626),u=n(200278),l=n(318805),d=n(201911),f=n(458234),h=n(946904),v=n(664160),p=n(43824),b=n(529148),_=n(738517),g=n(701469),O=n(644144),T=n(356688),E=n(513218),m=n(472928),R=n(3674),y="[object Arguments]",N="[object Function]",A="[object Object]",I={};I[y]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[A]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0
|
|
;I["[object Error]"]=I[N]=I["[object WeakMap]"]=!1;t.exports=function t(e,n,D,U,C,w){var B,x=1&n,S=2&n,k=4&n;D&&(B=C?D(e,U,C,w):D(e));if(void 0!==B)return B;if(!E(e))return e;var L=g(e);if(L){B=p(e);if(!x)return u(e,B)}else{var P=v(e),j=P==N||"[object GeneratorFunction]"==P;if(O(e))return c(e,x);if(P==A||P==y||j&&!C){B=S||j?{}:_(e);if(!x)return S?d(e,s(B,e)):l(e,a(B,e))}else{if(!I[P])return C?e:{};B=b(e,P,x)}}w||(w=new r);var G=w.get(e);if(G)return G;w.set(e,B);m(e)?e.forEach((function(r){B.add(t(r,n,D,r,e,w))})):T(e)&&e.forEach((function(r,o){B.set(o,t(r,n,D,o,e,w))}));var M=k?S?h:f:S?keysIn:R,V=L?void 0:M(e);o(V||e,(function(r,o){V&&(r=e[o=r]);i(B,o,t(r,n,D,o,e,w))}));return B}},603118:(t,e,n)=>{var r=n(513218),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;t.prototype=void 0;return n}}();t.exports=i},225588:(t,e,n)=>{var r=n(664160),o=n(637005);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},
|
|
829221:(t,e,n)=>{var r=n(664160),o=n(637005);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},710313:(t,e,n)=>{var r=n(513218),o=n(225726),i=n(133498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},314259:t=>{t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e);(n=n>o?o:n)<0&&(n+=o);o=e>n?0:n-e>>>0;e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},457406:(t,e,n)=>{var r=n(671811),o=n(610928),i=n(340292),a=n(240327);t.exports=function(t,e){e=r(e,t);return null==(t=i(t,e))||delete t[a(o(e))]}},274318:(t,e,n)=>{var r=n(611149);t.exports=function(t){var e=new t.constructor(t.byteLength);new r(e).set(new r(t));return e}},364626:(t,e,n)=>{t=n.nmd(t);var r=n(555639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice()
|
|
;var n=t.length,r=s?s(n):new t.constructor(n);t.copy(r);return r}},257157:(t,e,n)=>{var r=n(274318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},593147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));n.lastIndex=t.lastIndex;return n}},540419:(t,e,n)=>{var r=n(562705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},477133:(t,e,n)=>{var r=n(274318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},200278:t=>{t.exports=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}},698363:(t,e,n)=>{var r=n(234865),o=n(789465);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],l=i?i(n[u],t[u],u,n,t):void 0;void 0===l&&(l=t[u]);a?o(n,u,l):r(n,u,l)}return n}},318805:(t,e,n)=>{var r=n(698363),o=n(799551);t.exports=function(t,e){
|
|
return r(t,o(t),e)}},201911:(t,e,n)=>{var r=n(698363),o=n(151442);t.exports=function(t,e){return r(t,o(t),e)}},360696:(t,e,n)=>{var r=n(968630);t.exports=function(t){return r(t)?void 0:t}},499021:(t,e,n)=>{var r=n(385564),o=n(545357),i=n(430061);t.exports=function(t){return i(o(t,void 0,r),t+"")}},946904:(t,e,n)=>{var r=n(868866),o=n(151442),i=n(481704);t.exports=function(t){return r(t,i,o)}},385924:(t,e,n)=>{var r=n(205569)(Object.getPrototypeOf,Object);t.exports=r},151442:(t,e,n)=>{var r=n(862488),o=n(385924),i=n(799551),a=n(770479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;){r(e,i(t));t=o(t)}return e}:a;t.exports=s},43824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);if(n&&"string"==typeof t[0]&&e.call(t,"index")){r.index=t.index;r.input=t.input}return r}},529148:(t,e,n)=>{var r=n(274318),o=n(257157),i=n(593147),a=n(540419),s=n(477133);t.exports=function(t,e,n){var c=t.constructor;switch(e){
|
|
case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},738517:(t,e,n)=>{var r=n(603118),o=n(385924),i=n(225726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},133498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},340292:(t,e,n)=>{var r=n(297786),o=n(314259);t.exports=function(t,e){return e.length<2?t:r(t,o(e,0,-1))}},356688:(t,e,n)=>{var r=n(225588),o=n(307518),i=n(531167),a=i&&i.isMap,s=a?o(a):r
|
|
;t.exports=s},968630:(t,e,n)=>{var r=n(644239),o=n(385924),i=n(637005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},472928:(t,e,n)=>{var r=n(829221),o=n(307518),i=n(531167),a=i&&i.isSet,s=a?o(a):r;t.exports=s},481704:(t,e,n)=>{var r=n(14636),o=n(710313),i=n(498612);t.exports=function(t){return i(t)?r(t,!0):o(t)}},610928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},957557:(t,e,n)=>{var r=n(829932),o=n(285990),i=n(457406),a=n(671811),s=n(698363),c=n(360696),u=n(499021),l=n(946904),d=u((function(t,e){var n={};if(null==t)return n;var u=!1;e=r(e,(function(e){e=a(e,t);u||(u=e.length>1);return e}));s(t,l(t),n);u&&(n=o(n,7,c));for(var d=e.length;d--;)i(n,e[d]);return n}));t.exports=d},496259:(t,e,n)=>{"use strict"
|
|
;Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(t,r.key,r)}}return function(e,n,r){n&&t(e.prototype,n);r&&t(e,r);return e}}(),i=n(667294),a=d(i),s=d(n(45697)),c=d(n(973935)),u=d(n(263844)),l=d(n(441143));function d(t){return t&&t.__esModule?t:{default:t}}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}(e,t);o(e,null,[{key:"getDomNodeDimensions",value:function(t){
|
|
var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}}]);function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));t.state={initiated:!1};t.onResize=t.onResize.bind(t);return t}o(e,[{key:"componentDidMount",value:function(){this.parentNode=c.default.findDOMNode(this).parentNode;this.elementResizeDetector=(0,u.default)({strategy:"scroll",callOnAdd:!1});this.elementResizeDetector.listenTo(this.parentNode,this.onResize);this.componentIsMounted=!0;this.onResize()}},{key:"componentWillUnmount",value:function(){this.componentIsMounted=!1;this.elementResizeDetector.uninstall(this.parentNode)}},{key:"onResize",value:function(){
|
|
var t=e.getDomNodeDimensions(this.parentNode);this.componentIsMounted&&this.setState(r({initiated:!0},t))}},{key:"render",value:function(){(0,l.default)(this.props.children,"Expected children to be one of function or React.Element");if(!this.state.initiated)return a.default.createElement("div",null);if("function"==typeof this.props.children){var t=this.props.children(this.state);return t&&i.Children.only(t)}return i.Children.only(a.default.cloneElement(this.props.children,this.state))}}]);return e}(i.Component);f.propTypes={children:s.default.oneOfType([s.default.element,s.default.func]).isRequired};e.default=f}}]);
|
|
//# sourceMappingURL=cc8f15f64e6aa626796f.js.map
|