diff options
Diffstat (limited to 'api/assets/b94388e26490ecd7f18d.js')
-rw-r--r-- | api/assets/b94388e26490ecd7f18d.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/api/assets/b94388e26490ecd7f18d.js b/api/assets/b94388e26490ecd7f18d.js deleted file mode 100644 index f872f02d..00000000 --- a/api/assets/b94388e26490ecd7f18d.js +++ /dev/null @@ -1,2 +0,0 @@ -(this.webpackJsonp=this.webpackJsonp||[]).push([[16],{5859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionText=d,t.contextMenuCallbackNative=function(e){e.preventDefault();var t=d();if("TEXTAREA"===e.target.tagName||"INPUT"===e.target.tagName){if("checkbox"!==e.target.type)return(0,o.openContextMenu)(e,(function(e){return r.createElement(l.default,s({},e,{text:t}))}))}else{if("none"===window.getComputedStyle(e.target).getPropertyValue("-webkit-user-select"))return;var n,c,f,p=e.target;do{null!=p.src&&(c=p.src),null!=p.href&&(n=p.href,f=p.textContent),p=p.parentNode}while(null!=p);if(null!=c)return(0,o.openContextMenu)(e,(function(e){return r.createElement(u.default,s({},e,{src:c}))}));if(null!=n)return(0,o.openContextMenu)(e,(function(e){return r.createElement(i.default,s({},e,{href:n,textContent:f}))}));if(t)return(0,o.openContextMenu)(e,(function(e){return r.createElement(a.default,s({},e,{text:t}))}))}return null},t.contextMenuCallbackWeb=function(e){var t=!1;if("INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName)t=!0;else if(null!=e.target.closest&&null!=e.target.closest("[contenteditable=true]"))t=!0;else if(d())t=!0;else{var n,r,o=e.target;do{null!=o.src&&(n=o.src),null!=o.href&&(r=o.href),o=o.parentNode}while(null!=o);null==r&&null==n||(t=!0)}t||e.preventDefault()};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(389),l=c(n(8629)),u=c(n(8874)),i=c(n(8875)),a=c(n(8876));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}},8253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={MenuStyle:!0};t.default=t.MenuStyle=void 0;var o=m(n(0)),l=h(n(9)),u=h(n(130)),i=n(8404),a=h(n(105)),c=n(721),f=h(n(272)),s=m(n(8726));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var d,p,v=h(n(8554)),y=m(n(8805)),b=h(n(7340));function h(e){return e&&e.__esModule?e:{default:e}}function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t,n,r){d||(d="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,l=arguments.length-3;if(t||0===l||(t={children:void 0}),1===l)t.children=r;else if(l>1){for(var u=new Array(l),i=0;i<l;i++)u[i]=arguments[i+3];t.children=u}if(t&&o)for(var a in o)void 0===t[a]&&(t[a]=o[a]);else t||(t=o||{});return{$$typeof:d,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function M(e){return function e(t){return null==t?[]:o.Children.toArray(t).flatMap((function(t){var n;return null==t||!1===t?[]:Array.isArray(t)?e(t):t.type===o.Fragment?null!==(n=e(t.props.children))&&void 0!==n?n:[]:[t]}))}(e).reduce((function(e,t){if(t.type===s.MenuSeparator)return e.push({type:"separator",navigable:!1}),e;if(t.type===s.MenuGroup){var n=M(t.props.children);return e.push({type:"groupstart",length:n.length,navigable:!1,props:t.props}),e.push.apply(e,n),e.push({type:"groupend",length:n.length,navigable:!1,props:t.props}),e}if(t.type===s.MenuItem)return e.push(null!=t.props.render?{type:"customitem",key:t.props.id,navigable:!0,render:t.props.render,props:t.props}:{type:"item",key:t.props.id,navigable:!0,label:t.props.label,children:t.props.children?M(t.props.children):void 0,onChildrenScroll:t.props.onChildrenScroll,props:t.props,childRowHeight:t.props.childRowHeight,listClassName:t.props.listClassName}),e;if(t.type===s.MenuCheckboxItem)return e.push({type:"checkbox",key:t.props.id,navigable:!0,props:t.props}),e;if(t.type===s.MenuRadioItem)return e.push({type:"radio",key:t.props.id,navigable:!0,props:t.props}),e;if(t.type===s.MenuControlItem)return e.push({type:"control",key:t.props.id,navigable:!0,props:t.props}),e;throw new Error("Menu API only allows Items and groups of Items as children. Received "+((null==t?void 0:t.type)||t||typeof t)+" ("+typeof t+") instead")}),[])}function P(e){var t,n=e.navId,r=e.style,s=void 0===r?p.FLEXIBLE:r,d=e.className,h=e.onClose,g=e.children,m=e.onSelect,P=M(g),w=function e(t){return t.reduce((function(t,n){return n.navigable?(t.push({key:n.key,children:"item"===n.type&&null!=n.children?e(n.children):void 0}),t):t}),[])}(P),k=o.useRef([]);(0,u.default)(k.current,w)||(k.current=w);var j=null===(t=P.find((function(e){return null!=e.key})))||void 0===t?void 0:t.key,S=(0,i.useMenuNavigator)({navId:n,items:k.current,initialFocusPath:a.default.keyboardModeEnabled&&j?[j]:[],closeMenu:h}),C=o.useRef(null);return(0,c.useFocusLock)(C),_(v.default.Provider,{value:m},void 0,o.createElement("div",O({className:(0,l.default)(b.default.menu,b.default[s],d)},S.getContainerProps(),{ref:C,"aria-label":e["aria-label"]}),_(f.default,{className:b.default.scroller},void 0,function e(t,n,r,l){var u=0,i=[];return t.reduce((function(t,a,c){var f=i.length>0?i[i.length-1]:t;switch(a.type){case"separator":f.push(_(y.Separator,{},"separator-"+c)),u=0;break;case"groupstart":u>0&&a.length>0&&(f.push(_(y.Separator,{},"separator-"+c)),u=0),i.push([]);break;case"groupend":i.length>0&&t.push(o.createElement(y.Group,O({key:"group-"+c,contents:i.pop()},a.props)));break;case"item":var s=a.children,d=a.childRowHeight,p=a.onChildrenScroll,v=a.listClassName,b=[].concat(r,[a.key]),h=n.isFocused(b),g=null!=s?{"aria-haspopup":!0}:{},m=o.createElement(y.Item,O({key:a.key},a.props,{label:a.label,hasSubmenu:null!=s,isFocused:h,menuItemProps:O({},n.getItemProps({path:b}),{},g),onClose:l}));null!=s?null!=d?f.push(o.createElement(y.SubmenuListItem,O({key:a.key+"-submenu"},a.props,{parentItem:m,isFocused:h,menuSubmenuProps:n.getSubmenuProps({path:b}),rows:e(s,n,b,l),rowHeight:d,onScroll:p,listClassName:v}))):f.push(o.createElement(y.SubmenuItem,O({key:a.key+"-submenu"},a.props,{parentItem:m,isFocused:h,menuSubmenuProps:n.getSubmenuProps({path:b}),renderSubmenu:function(){return e(s,n,b,l)}}))):f.push(m),u++;break;case"customitem":var M=[].concat(r,[a.key]);f.push(o.createElement(y.CustomItem,O({key:a.key},a.props,{isFocused:n.isFocused(M),menuItemProps:n.getItemProps({path:M}),onClose:l}),a.render)),u++;break;case"checkbox":var P=[].concat(r,[a.key]);f.push(o.createElement(y.CheckboxItem,O({key:a.key},a.props,{isFocused:n.isFocused(P),menuItemProps:n.getItemProps({path:P,role:"menuitemcheckbox"})}))),u++;break;case"radio":var w=[].concat(r,[a.key]);f.push(o.createElement(y.RadioItem,O({key:a.key},a.props,{isFocused:n.isFocused(w),menuItemProps:n.getItemProps({path:w,role:"menuitemradio"})}))),u++;break;case"control":var k=[].concat(r,[a.key]);f.push(o.createElement(y.ControlItem,O({key:a.key},a.props,{isFocused:n.isFocused(k),menuItemProps:n.getItemProps({path:k}),onClose:l}))),u++}return t}),[])}(P,S,[],h))))}t.MenuStyle=p,function(e){e.FIXED="styleFixed",e.FLEXIBLE="styleFlexible"}(p||(t.MenuStyle=p={})),P.displayName="Menu";var w=P;t.default=w},8256:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemColor=void 0,t.MenuItemColor=r,function(e){e.DEFAULT="colorDefault",e.BRAND="colorBrand",e.DANGER="colorDanger",e.PREMIUM="colorPremium",e.GREEN="colorGreen"}(r||(t.MenuItemColor=r={}))},8320:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=u(n(9)),l=u(n(7397));function u(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function c(e){var t,n=e.width,r=void 0===n?24:n,u=e.height,i=void 0===u?24:u,c=e.color,f=void 0===c?"currentColor":c,s=e.className,d=e.foreground,p=e.open,v=void 0!==p&&p;return a("svg",{className:(0,o.default)(l.default.arrow,s,(t={},t[l.default.open]=v,t)),width:r,height:i,viewBox:"0 0 24 24"},void 0,a("path",{className:d,fill:f,fillRule:"evenodd",clipRule:"evenodd",d:"M16.59 8.59004L12 13.17L7.41 8.59004L6 10L12 16L18 10L16.59 8.59004Z"}))}c.displayName="DropdownArrow"},8362:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=a(n(9)),u=n(468),i=a(n(7398));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var s=o.memo(o.forwardRef((function(e,t){var n=e.onScroll,r=e.listPadding,a=void 0===r?[0,0,0,0]:r,c=e.renderRow,s=e.renderSection,d=e.renderSectionHeader,p=e.renderSectionFooter,v=e.renderListHeader,y=e.rowCount,b=e.rowCountBySection,h=e.rowHeight,g=e.sectionMarginBottom,m=e.sectionHeaderHeight,O=e.sectionFooterHeight,_=e.listHeaderHeight,M=e.stickyHeaders,P=void 0!==M&&M,w=e.className,k=e.hideScrollbar,j=void 0!==k&&k,S=e.fade,C=void 0!==S&&S,I=e.initialScrollTop,E=void 0===I?0:I,N=o.useState(-1),L=N[0],A=N[1],R=o.useRef(null),x=o.useRef(-1),T=o.useRef(0),D=o.useRef(-1);o.useLayoutEffect((function(){var e,t=null===(e=R.current)||void 0===e?void 0:e.getScrollerNode();null!=t&&(t.scrollTop=E)}),[]);var W=o.useCallback((function(){var e="function"==typeof _?_():_;return null==e?0:e}),[_]),G=o.useCallback((function(e,t,n){return"function"==typeof h?h(n,{sectionIndex:e,sectionRowIndex:t}):h}),[h]),H=o.useCallback((function(e){var t="function"==typeof m?m(e):m;return null==t?0:t}),[m]),F=o.useCallback((function(e){var t="function"==typeof O?O(e):O;return null==t?0:t}),[O]),U=o.useCallback((function(e){var t="function"==typeof g?g(e):g;return null==t?0:t}),[g]),$=o.useRef([]),K=o.useRef([]),B=o.useMemo((function(){var e=0,t=null!=b,n=t?b.length:1,r=a[0],o=[],l=[];r+=W();for(var u=0;u<n;u++){var i=t?b[u]:y,c=0!==(null==b?void 0:b[u]);l[u]={firstRowIndex:e,offset:{top:r,bottom:-1}},r+=H(u);for(var f=0;f<i;f++){var s=r+(c?G(u,f,e):0),d={top:r,bottom:s};o[e]={sectionIndex:u,offset:d},r=s,e++}r+=F(u)+U(u),l[u].offset.bottom=r}return{totalHeight:r+=a[2],rowDescriptors:o,sectionDescriptors:l}}),[G,F,H,U,a,y,b,W]),V=B.totalHeight,Z=B.rowDescriptors,X=B.sectionDescriptors;$.current=X,K.current=Z;var z=o.useCallback((function(){var e,t=null===(e=R.current)||void 0===e?void 0:e.getScrollerNode();if(null!=t){var n=t.offsetHeight,r=t.scrollTop;x.current=n,A(r)}}),[]);o.useLayoutEffect((function(){-1===x.current&&z()}),[z]),o.useEffect((function(){var e,t=null===(e=R.current)||void 0===e?void 0:e.getScrollerNode();if(null!=t){var n=new ResizeObserver(z);return n.observe(t),function(){return n.disconnect()}}}),[z]);var q=o.useCallback((function(){var e,t=null===(e=R.current)||void 0===e?void 0:e.getScrollerNode();null!=t&&(window.cancelAnimationFrame(D.current),D.current=window.requestAnimationFrame((function(){var e=t.scrollTop;T.current=e,null==n||n(e),A(e)})))}),[n]);o.useImperativeHandle(t,(function(){return{scrollTo:function(e,t){var n;void 0===t&&(t={});var r=t.animate,o=void 0!==r&&r;null===(n=R.current)||void 0===n||n.scrollTo({to:e,animate:o})},scrollRowIntoView:function(e,t){void 0===t&&(t={});var n=t,r=n.animate,o=void 0!==r&&r,l=n.offset,u=void 0===l?0:l,i=K.current[e];null!=i&&window.requestAnimationFrame((function(){var t=i.sectionIndex,n=i.offset,r=n.top,l=n.bottom,a=H(t),c=r-(P?a:0)-u<=T.current,f=l+u>=T.current+x.current;if(c){var s,d=T.current+a-r,p=P?T.current-d:r;null===(s=R.current)||void 0===s||s.scrollTo({to:0===e?0:p-u,animate:o})}else if(f){var v,y=l-(T.current+x.current);null===(v=R.current)||void 0===v||v.scrollTo({to:T.current+y+u,animate:o})}}))},scrollToSectionTop:function(e,t){void 0===t&&(t={});var n=t,r=n.animate,o=void 0!==r&&r,l=n.offset,u=void 0===l?0:l,i=$.current[e];null!=i&&window.requestAnimationFrame((function(){var t;null===(t=R.current)||void 0===t||t.scrollTo({to:(0===e?0:i.offset.top)+u,animate:o})}))},getListDimensions:function(){return{height:x.current,totalHeight:V}},getSectionDescriptors:function(){return $.current},getRowDescriptors:function(){return K.current},getScrollerNode:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.getScrollerNode()},scrollIntoViewNode:function(e){var t;return null===(t=R.current)||void 0===t?void 0:t.scrollIntoViewNode({node:e})}}}),[H,P,V]);var Y=o.useMemo((function(){if(-1===x.current||-1===L)return{visibleItems:null,listOffset:0};var e=L,t=L+x.current,n=0,r=a[0],o=[],l=W();null!=v&&e<l?o.push(v()):r+=l;for(var u=0;u<X.length;u++){var i=X[u],f=i.firstRowIndex,y=i.offset,b=y.top,h=y.bottom,g=h-b;if(0!==g){var m=H(u),O=F(u),_=U(u);if(h<=e)r=h;else{if(!(h>e&&b<t))break;n=f;var M=[],w=0,k=0,j=b+m>=e&&b<=t;for(null!=d&&(P||j)&&M.push(d(u)),j||P||(r+=m);w+m+O<g-_;){var S=G(u,k,n),C=b+w+m,I=C+S;if(I<=e)r=I-(P?m:0);else{if(!(I>e&&C<t))break;M.push(c(n,{sectionIndex:u,sectionRowIndex:k}))}w+=S,k++,n++}var E=b+m+w;null!=p&&(E+O>=e&&E<=t)&&M.push(p(u)),null!=s?o.push(s(u,M)):o=[].concat(o,M)}}}return{visibleItems:o,listOffset:r}}),[G,F,H,U,a,c,s,p,d,L,X,P,v,W]),J=Y.visibleItems,Q=Y.listOffset,ee=o.useMemo((function(){var e,t,n;return{top:Q,right:null!==(e=null==a?void 0:a[1])&&void 0!==e?e:0,bottom:null!==(t=null==a?void 0:a[2])&&void 0!==t?t:0,left:null!==(n=null==a?void 0:a[3])&&void 0!==n?n:0}}),[Q,a]),te=o.useMemo((function(){return{height:V}}),[V]),ne=j?u.AdvancedScrollerNone:u.AdvancedScrollerThin;return o.createElement(ne,{fade:C,className:(0,l.default)(i.default.scroller,w),ref:R,onScroll:q},f("div",{className:i.default.listItems,style:ee},void 0,J),f("div",{className:i.default.listHeight,style:te}))})));t.default=s},8395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return i.default.embedded&&null!=e&&""!==e?null!=e&&(0,l.isStickerAssetUrl)(e)?null:[d(o.MenuItem,{id:"copy-native-link",label:c.default.Messages.COPY_LINK,action:function(){return a.default.copy(e)}},"copy-native-link"),d(o.MenuItem,{id:"open-native-link",label:c.default.Messages.OPEN_LINK,action:function(n){return(0,u.handleClick)({href:e,trusted:(0,u.isLinkTrusted)(e,t),shouldConfirm:!0},n)}},"open-native-link")]:null};!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=n(8253),l=n(290),u=n(730),i=f(n(16)),a=f(n(43)),c=f(n(6));function f(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function d(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}},8427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"function"==typeof e?e(t):e}},8471:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l.default.embedded&&null!=e&&0!==(null==e?void 0:e.length)?[c(o.MenuItem,{id:"search-google",label:u.default.Messages.SEARCH_WITH_GOOGLE,action:function(){return window.open("https://www.google.com/search?q="+encodeURIComponent(e),"_blank")}})]:null};!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=n(8253),l=i(n(16)),u=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}},8554:function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=o?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}n.default=e,t&&t.set(e,n);return n}(n(0)).createContext(void 0);t.default=o},8560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(3)),o=l(n(2));n(1);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={expressionSuggestionsEnabled:!0},f=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var o,l,a,f=r.prototype;return f.initialize=function(e){null!=e&&(c=e)},f.getState=function(){return c},o=r,(l=[{key:"expressionSuggestionsEnabled",get:function(){return c.expressionSuggestionsEnabled}}])&&u(o.prototype,l),a&&u(o,a),r}(r.default.PersistedStore);f.persistKey="ExpressionSuggestionsPersistedStore";var s=new f(o.default,{EXPRESSION_SUGGESTIONS_TOGGLE:function(e){c=a({},c,{expressionSuggestionsEnabled:!c.expressionSuggestionsEnabled})}});t.default=s},8561:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSupported=c,t.setEnabled=function(e){return null!=f?f.then((function(t){t.enabled=e})):Promise.resolve()},t.setLearnedWords=function(e){return null!=f?f.then((function(t){return t.setLearnedWords(e)})):Promise.resolve()},t.isMisspelled=function(e,t){void 0===t&&(t=!1);return null!=f?f.then((function(n){return n.isMisspelled(e,t)})):Promise.resolve(!1)},t.getCorrections=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=5);return null!=f?f.then((function(r){return r.getCorrectionsForMisspelling(e,t).slice(0,n)})):Promise.resolve([])},t.replaceWithCorrection=function(e){return null!=f?f.then((function(t){return t.replaceMisspelling(e)})):Promise.resolve()},t.setAppLocale=function(e){return null!=f?f.then((function(t){return t.setAppLocale(e)})):Promise.resolve()},t.addResultListener=function(e){if(!a())return;(r.default.spellCheck.Spellchecker||r.default.spellCheck).on("spellcheck-result",e)},t.removeResultListener=function(e){if(!a())return;(r.default.spellCheck.Spellchecker||r.default.spellCheck).removeListener("spellcheck-result",e)};var r=i(n(118)),o=n(8870),l=n(8872),u=i(n(16));function i(e){return e&&e.__esModule?e:{default:e}}function a(){var e=null==r.default.spellCheck.setSpellCheckProvider,t=null!=r.default.spellCheck.Spellchecker;return e||t}function c(){return!!u.default.embedded&&(a()?u.default.isDesktop():u.default.isOSX()||u.default.isWindows()&&parseFloat(r.default.os.release)>=6.2)}var f=c()?a()?(0,l.install)():(0,o.installLegacy)():null},8562:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(43))&&r.__esModule?r:{default:r};function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(e,t){this._shouldProcess=!1,this._processing=!1,this._minimumTimeRemaining=5,this._language=e,this._languageHint=e,this._onChange=t,t(e)}var t,n,r,u=e.prototype;return u.process=function(e){var t=this;this._processing||(this._processing=!0,requestIdleCallback((function(n){n.timeRemaining()<=t._minimumTimeRemaining?t._processEnd():(e.length>256&&(e=e.slice(0,256)),function(e,t){return o.default.ensureModule("discord_spellcheck").then((function(){var n=o.default.requireModule("discord_spellcheck").cld;return new Promise((function(r,o){n.detect(e,{httpHint:t,encodingHint:"UTF8"},(function(e,t){null!=e?o(new Error(e.message)):!t.reliable||t.languages[0].percent<90||t.languages[0].score<500?o(new Error("Not enough reliable text.")):r(t.languages[0].code)}))}))}))}(e,t._languageHint).then((function(e){t.language=e,t._processEnd(n.didTimeout)}),(function(){t._processEnd(n.didTimeout)})))})))},u._processEnd=function(e){void 0===e&&(e=!1),this._processing=!1,e&&this._minimumTimeRemaining++},t=e,(n=[{key:"language",get:function(){return this._language},set:function(e){this._language!==e&&(this._language=e,this._onChange(e))}},{key:"languageHint",set:function(e){this._languageHint=e}}])&&l(t.prototype,n),r&&l(t,r),e}();t.default=u},8563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={aa:"aa-ET",af:"af-ZA",ak:"ak-GH",am:"am-ET",an:"an-ES",ar:"ar-MA",as:"as-IN",ay:"ay-PE",az:"az-AZ",be:"be-BY",bg:"bg-BG",bi:"bi-TV",bn:"bn-BD",bo:"bo-CN",br:"br-FR",bs:"bs-BA",ca:"ca-ES",ce:"ce-RU",cs:"cs-CZ",cv:"cv-RU",cy:"cy-GB",da:"da-DK",de:"de-DE",dv:"dv-MV",dz:"dz-BT",el:"el-GR",en:"en-US",es:"es-ES",et:"et-EE",eu:"eu-ES",fa:"fa-IR",ff:"ff-SN",fi:"fi-FI",fo:"fo-FO",fr:"fr-FR",fy:"fy-DE",ga:"ga-IE",gd:"gd-GB",gl:"gl-ES",gu:"gu-IN",gv:"gv-GB",ha:"ha-NG",he:"he-IL",hi:"hi-IN",hr:"hr-HR",ht:"ht-HT",hu:"hu-HU",hy:"hy-AM",ia:"ia-FR",id:"id-ID",ig:"ig-NG",ik:"ik-CA",is:"is-IS",it:"it-IT",iu:"iu-CA",ja:"ja-JP",ka:"ka-GE",kk:"kk-KZ",kl:"kl-GL",km:"km-KH",kn:"kn-IN",ko:"ko-KR",ks:"ks-IN",ku:"ku-TR",kw:"kw-GB",ky:"ky-KG",lb:"lb-LU",lg:"lg-UG",li:"li-BE",ln:"ln-CD",lo:"lo-LA",lt:"lt-LT",lv:"lv-LV",mg:"mg-MG",mh:"mh-MH",mi:"mi-NZ",mk:"mk-MK",ml:"ml-IN",mn:"mn-MN",mr:"mr-IN",ms:"ms-MY",mt:"mt-MT",my:"my-MM",nb:"nb-NO",ne:"ne-NP",nl:"nl-NL",nn:"nn-NO",nr:"nr-ZA",oc:"oc-FR",om:"om-KE",or:"or-IN",os:"os-RU",pa:"pa-PK",pl:"pl-PL",ps:"ps-AF",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",rw:"rw-RW",sa:"sa-IN",sc:"sc-IT",sd:"sd-IN",se:"se-NO",si:"si-LK",sk:"sk-SK",sl:"sl-SI",so:"so-SO",sq:"sq-AL",sr:"sr-RS",ss:"ss-ZA",st:"st-ZA",sv:"sv-SE",sw:"sw-KE",ta:"ta-IN",te:"te-IN",tg:"tg-TJ",th:"th-TH",ti:"ti-ER",tk:"tk-TM",tl:"tl-PH",tn:"tn-ZA",tr:"tr-TR",ts:"ts-ZA",tt:"tt-RU",ug:"ug-CN",uk:"uk-UA",ur:"ur-PK",uz:"uz-UZ",ve:"ve-ZA",vi:"vi-VN",wa:"wa-BE",wo:"wo-SN",xh:"xh-ZA",yi:"yi-US",yo:"yo-NG",zh:"zh-CN",zu:"zu-ZA"};t.default=r},8628:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(3)),o=i(n(28)),l=i(n(2)),u=n(8561);n(1);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=!0,f=new Set;function s(){o.default.set("SpellcheckStore",{enabled:c,learnedWords:f})}var d=new(function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var l=r.prototype;return l.initialize=function(){var e=o.default.get("SpellcheckStore");null!=e&&(c=e.enabled,f=new Set(e.learnedWords),(0,u.setEnabled)(c),(0,u.setLearnedWords)(f))},l.isEnabled=function(){return c},r}(r.default.Store))(l.default,{SPELLCHECK_TOGGLE:function(e){return c=!c,(0,u.setEnabled)(c),void s()},SPELLCHECK_LEARN_WORD:function(e){var t=e.word;f.add(t.toLocaleLowerCase()),(0,u.setLearnedWords)(f),s()},I18N_LOAD_SUCCESS:function(e){var t=e.locale;(0,u.setAppLocale)(t)}});t.default=d},8629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r,o=v(n(0)),l=n(389),u=v(n(8253)),i=d(n(8630)),a=d(n(8631)),c=d(n(16)),f=d(n(43)),s=d(n(6));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function y(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function b(e){var t=e.text,n=e.target,r=e.onHeightUpdate,d=e.onSelect,p=o.useCallback((function(){(0,l.closeContextMenu)(),n instanceof HTMLElement&&n.focus()}),[n]),v=(0,a.default)({text:t,target:n,onHeightUpdate:r}),b=v[0],h=v[1],g=(0,i.default)();if(!c.default.embedded)return null;if(!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement))return null;var m=""!==t?[y(u.MenuItem,{id:"copy",label:s.default.Messages.COPY,hint:c.default.isOSX()?"⌘C":"Ctrl+C",action:function(){return f.default.copy(t)}}),y(u.MenuItem,{id:"cut",label:s.default.Messages.CUT,hint:c.default.isOSX()?"⌘X":"Ctrl+X",action:function(){return setTimeout((function(){return f.default.cut()}),0)}})]:null;return y(u.default,{navId:"textarea-context",onClose:p,"aria-label":s.default.Messages.TEXTAREA_ACTIONS_MENU_LABEL,onSelect:d},void 0,y(u.MenuGroup,{},void 0,g),y(u.MenuGroup,{},void 0,b),y(u.MenuGroup,{},void 0,h),y(u.MenuGroup,{},void 0,m,y(u.MenuItem,{id:"paste",label:s.default.Messages.PASTE,hint:c.default.isOSX()?"⌘V":"Ctrl+V",action:function(){return setTimeout((function(){return f.default.paste()}),0)}})))}b.displayName="NativeTextAreaContextMenu"},8630:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=n(3),l=n(8742),u=s(n(8560)),i=n(8253),a=s(n(13)),c=n(1),f=s(n(6));function s(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function v(){var e=(0,o.useStateFromStores)([u.default],(function(){return u.default.expressionSuggestionsEnabled}));return p(i.MenuCheckboxItem,{id:"sticker-suggestions",label:f.default.Messages.AUTO_SUGGEST_STICKERS,checked:e,action:function(){a.default.track(c.AnalyticEvents.STICKER_SUGGESTIONS_ENABLED_TOGGLED,{enabled:!e,location:{object:c.AnalyticsObjects.CONTEXT_MENU}}),(0,l.toggleExpressionSuggestionsEnabled)()}})}v.displayName="useExpressionSuggestionItems"},8631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.text,n=void 0===t?"":t,r=e.target,p=(0,l.useStateFromStores)([a.default],(function(){return a.default.isEnabled()})),v=o.useRef(b({},e,{spellcheckEnabled:p}));v.current=b({},e,{spellcheckEnabled:p});var h=o.useRef(!1),g=o.useState(!1),m=g[0],O=g[1],_=o.useState([]),M=_[0],P=_[1],w=o.useCallback((function(){var e=v.current,t=e.spellcheckEnabled,n=e.text,r=e.onHeightUpdate;t&&(0,f.isSupported)()&&Promise.all([(0,f.isMisspelled)(n,!0),(0,f.getCorrections)(n,!0)]).then((function(e){var t=e[0],n=e[1];h.current&&(O(t),P(n),r())}))}),[]),k=o.useCallback((function(){if(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement){var e=r.selectionStart,t=r.selectionEnd,n=r.value;r.value="",r.value=n,"email"!==r.type&&(r.selectionStart=e,r.selectionEnd=t)}}),[r]);if(o.useEffect((function(){return(0,f.addResultListener)(w),h.current=!0,function(){h.current=!1,(0,f.removeResultListener)(w)}}),[w]),o.useEffect((function(){w()}),[n,p,w]),!(0,f.isSupported)())return[null,null];var j=M.map((function(e,t){return y(i.MenuItem,{id:"correction-"+t,label:e,action:function(){(0,f.replaceWithCorrection)(e),r.focus()}})})),S=o.createElement(o.Fragment,null,m?y(i.MenuItem,{id:"add-to-dictionary",label:d.default.Messages.ADD_TO_DICTIONARY,action:function(){(0,u.learnWord)(n),k()}}):null,y(i.MenuCheckboxItem,{id:"spellcheck",label:d.default.Messages.SPELLCHECK,checked:p,action:function(){(0,u.toggleSpellcheck)(),k()}}),p?y(i.MenuItem,{id:"languages",label:d.default.Messages.LANGUAGES,action:function(){return window.open(c.default.getArticleURL(s.HelpdeskArticles.SPELLCHECK))}}):null);return[j,S]};var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=n(3),u=n(8873),i=n(8253),a=p(n(8628)),c=p(n(93)),f=n(8561),s=n(1),d=p(n(6));function p(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},8632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!i.default.embedded||null==e||(t=e,n=new URL(t),r=g(t),"https://media.discordapp.net"!==n.origin&&"https://cdn.discordapp.com"!==n.origin||t.startsWith("https://media.discordapp.net/stickers")||null==r||!b.has(r)))return null;var t,n,r;var o=function(e){var t=new URL(e);return"https://cdn.discordapp.com"===t.origin?e:"https://cdn.discordapp.com"+t.pathname}(e),a=function(){var e=y(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.default.saveImage(o);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),O(f.default.Messages.ERROR_SAVING_IMAGE,e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=y(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.default.copyImage(o);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),O(f.default.Messages.ERROR_COPYING_IMAGE,e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}();return i.default.isLinux()&&(0,u.getElectronVersion)()<7?null:[c.default.canCopyImage()&&m(e)?p(l.MenuItem,{id:"copy-image",label:f.default.Messages.COPY_IMAGE_MENU_ITEM,action:s},"copy-image"):null,p(l.MenuItem,{id:"save-image",label:f.default.Messages.SAVE_IMAGE_MENU_ITEM,action:a},"save-image")]};!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=s(n(154)),l=n(8253),u=n(1179),i=s(n(16)),a=s(n(164)),c=s(n(43)),f=s(n(6));function s(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function v(e,t,n,r,o,l,u){try{var i=e[l](u),a=i.value}catch(e){return void n(e)}i.done?t(a):Promise.resolve(a).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function u(e){v(l,r,o,u,i,"next",e)}function i(e){v(l,r,o,u,i,"throw",e)}u(void 0)}))}}var b=new Set(["jpg","jpeg","png","webp","gif","tiff","bmp"]),h=new Set(["jpg","jpeg","png"]),g=function(e){var t;return null===(t=new URL(e).pathname.split(".").pop())||void 0===t?void 0:t.toLowerCase()};function m(e){var t=g(e);return null!=t&&h.has(t)}function O(e,t){o.default.show({title:f.default.Messages.ERROR,body:e}),a.default.captureException(t)}},8726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuSeparator=function(){return null},t.MenuGroup=function(e){return null},t.MenuItem=function(e){return null},t.MenuCheckboxItem=function(e){return null},t.MenuRadioItem=function(e){return null},t.MenuControlItem=function(e){return null}},8742:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleExpressionSuggestionsEnabled=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r},l=n(1);t.toggleExpressionSuggestionsEnabled=function(){o.default.dispatch({type:l.ActionTypes.EXPRESSION_SUGGESTIONS_TOGGLE})}},8805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CheckboxItem",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MenuCheckboxItemProps",{enumerable:!0,get:function(){return o.MenuCheckboxItemProps}}),Object.defineProperty(t,"ControlItem",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"MenuControlItemProps",{enumerable:!0,get:function(){return l.MenuControlItemProps}}),Object.defineProperty(t,"CustomItem",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"MenuCustomItemProps",{enumerable:!0,get:function(){return u.MenuCustomItemProps}}),Object.defineProperty(t,"MenuCustomItemRenderProps",{enumerable:!0,get:function(){return u.MenuCustomItemRenderProps}}),Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"MenuGroupProps",{enumerable:!0,get:function(){return i.MenuGroupProps}}),Object.defineProperty(t,"Item",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MenuItemProps",{enumerable:!0,get:function(){return a.MenuItemProps}}),Object.defineProperty(t,"RadioItem",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"MenuRadioItemProps",{enumerable:!0,get:function(){return c.MenuRadioItemProps}}),Object.defineProperty(t,"Separator",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"SubmenuItem",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"MenuSubmenuItemProps",{enumerable:!0,get:function(){return s.MenuSubmenuItemProps}}),Object.defineProperty(t,"SubmenuListItem",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"MenuSubmenuListItemProps",{enumerable:!0,get:function(){return d.MenuSubmenuListItemProps}});var r,o=v(n(8806)),l=v(n(8809)),u=v(n(8810)),i=v(n(8811)),a=v(n(8812)),c=v(n(8813)),f=(r=n(8814))&&r.__esModule?r:{default:r},s=v(n(8815)),d=v(n(8816));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}},8806:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=d(n(9)),u=d(n(61)),i=d(n(8807)),a=d(n(8808)),c=d(n(8427)),f=n(8256),s=d(n(7340));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function b(e){var t,n=e.color,r=void 0===n?f.MenuItemColor.DEFAULT:n,d=e.label,p=e.checked,b=e.subtext,h=e.disabled,g=e.isFocused,m=e.menuItemProps,O=e.action;return o.createElement(u.default,v({className:(0,l.default)(s.default.item,s.default.labelContainer,s.default[r],(t={},t[s.default.disabled]=h,t[s.default.focused]=g,t)),onClick:h?void 0:O},m,{"aria-checked":p,"aria-disabled":h}),y("div",{className:s.default.label},void 0,(0,c.default)(d,e),null!=b&&y("div",{className:s.default.subtext},void 0,b)),y("div",{className:s.default.iconContainer},void 0,p?y(a.default,{className:s.default.icon,background:s.default.checkbox,foreground:s.default.check}):y(i.default,{className:s.default.icon,foreground:s.default.checkboxEmpty})))}b.displayName="MenuCheckboxItem"},8807:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r,o,l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),u=(r=n(22))&&r.__esModule?r:{default:r};function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=r;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function f(e){var t=e.width,n=void 0===t?24:t,r=e.height,o=void 0===r?24:r,i=e.color,f=void 0===i?"currentColor":i,s=e.className,d=e.foreground,p=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["width","height","color","className","foreground"]);return l.createElement("svg",a({},(0,u.default)(p),{className:s,width:n,height:o,viewBox:"0 0 24 24"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.625 3H5.375C4.06519 3 3 4.06519 3 5.375V18.625C3 19.936 4.06519 21 5.375 21H18.625C19.936 21 21 19.936 21 18.625V5.375C21.0057 4.08803 19.9197 3 18.625 3ZM19 19V5H4.99999V19H19Z",className:d,fill:f}))}f.displayName="Checkbox"},8808:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r,o,l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),u=(r=n(22))&&r.__esModule?r:{default:r};function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=r;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function f(e){var t=e.width,n=void 0===t?24:t,r=e.height,o=void 0===r?24:r,i=e.color,f=void 0===i?"currentColor":i,s=e.className,d=e.background,p=e.foreground,v=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["width","height","color","className","background","foreground"]);return l.createElement("svg",a({},(0,u.default)(v),{className:s,width:n,height:o,viewBox:"0 0 24 24"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.37499 3H18.625C19.9197 3 21.0056 4.08803 21 5.375V18.625C21 19.936 19.9359 21 18.625 21H5.37499C4.06518 21 3 19.936 3 18.625V5.375C3 4.06519 4.06518 3 5.37499 3Z",className:d,fill:f}),c("path",{d:"M9.58473 14.8636L6.04944 11.4051L4.50003 12.9978L9.58473 18L19.5 8.26174L17.9656 6.64795L9.58473 14.8636Z",className:p,fill:f}))}f.displayName="CheckboxChecked"},8809:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=a(n(9)),u=n(8256),i=a(n(7340));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function d(e){var t,n=e.color,r=void 0===n?u.MenuItemColor.DEFAULT:n,a=e.label,c=e.control,d=e.disabled,p=e.isFocused,v=e.showDefaultFocus,y=void 0!==v&&v,b=e.menuItemProps,h=e.onClose,g=o.useRef(null);o.useLayoutEffect((function(){var e,t,n;p?null===(e=g.current)||void 0===e||e.focus():null===(t=g.current)||void 0===t||null===(n=t.blur)||void 0===n||n.call(t)}),[p]);var m=o.useCallback((function(){var e,t;(null===(e=g.current)||void 0===e||null===(t=e.activate)||void 0===t?void 0:t.call(e))&&h()}),[h]),O=c({onClose:h,disabled:d,isFocused:p},g);return o.createElement("div",f({onClick:m,className:(0,l.default)(i.default.item,i.default[r],(t={},t[i.default.disabled]=d,t[i.default.focused]=y&&p,t[i.default.hideInteraction]=!y,t)),"aria-disabled":d},b),null!=a?s("div",{className:i.default.labelContainer},void 0,s("div",{className:i.default.label},void 0,a)):null,O)}d.displayName="MenuControlItem"},8810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=a(n(9)),l=a(n(61)),u=n(8256),i=a(n(7340));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){var t,n=e.children,a=e.color,c=void 0===a?u.MenuItemColor.DEFAULT:a,s=e.isFocused,d=void 0!==s&&s,p=e.disabled,v=void 0!==p&&p,y=e.keepItemStyles,b=void 0!==y&&y,h=e.menuItemProps,g=e.action,m=e.onClose,O=r.useCallback((function(e){if(null==g)return!1;m(),e.persist(),requestAnimationFrame((function(){return g(e)}))}),[g,m]),_=b?(0,o.default)(i.default.item,i.default[c],((t={})[i.default.focused]=d,t)):i.default.customItem;return r.createElement(l.default,f({className:_,onClick:v?void 0:O,"aria-disabled":v},h),n({color:c,disabled:v,isFocused:d}))}s.displayName="MenuCustomItem"},8811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o=i(n(9)),l=n(8256),u=i(n(7340));function i(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function f(e){var t=e.contents,n=e.label,r=e.className,i=e.color,a=void 0===i?l.MenuItemColor.DEFAULT:i;return 0===t.length?null:c("div",{"aria-label":n,role:"group",className:r},void 0,null!=n?c("div",{className:(0,o.default)(u.default.groupLabel,u.default[a])},void 0,n):null,t)}f.displayName="MenuGroup"},8812:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=d(n(9)),u=d(n(61)),i=d(n(8320)),a=d(n(8427)),c=n(8256),f=d(n(8554)),s=d(n(7340));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function b(e){var t,n=e.color,r=void 0===n?c.MenuItemColor.DEFAULT:n,d=e.label,p=e.icon,b=e.showIconFirst,h=void 0!==b&&b,g=e.imageUrl,m=e.hint,O=e.subtext,_=e.hasSubmenu,M=e.disabled,P=e.isFocused,w=e.menuItemProps,k=e.action,j=e.onClose,S=o.useContext(f.default),C=o.useCallback((function(e){if(null==k)return!1;j(),e.persist(),null==S||S(),requestAnimationFrame((function(){return k(e)}))}),[k,j,S]);return o.createElement(u.default,v({className:(0,l.default)(s.default.item,s.default.labelContainer,s.default[r],(t={},t[s.default.disabled]=M,t[s.default.focused]=P,t)),onClick:M?void 0:C,"aria-disabled":M},w),h&&null!=p&&y("div",{className:s.default.iconContainerLeft},void 0,y(p,{className:s.default.icon})),y("div",{className:s.default.label},void 0,(0,a.default)(d,e),null!=O&&y("div",{className:s.default.subtext},void 0,O)),null!=m&&y("div",{className:s.default.hintContainer},void 0,(0,a.default)(m,e)),!h&&null!=p&&y("div",{className:s.default.iconContainer},void 0,y(p,{className:s.default.icon})),null!=g&&y("div",{className:s.default.imageContainer},void 0,y("img",{className:s.default.image,src:(0,a.default)(g,e),alt:""})),_&&y("div",{className:s.default.iconContainer},void 0,y(i.default,{className:s.default.caret})))}b.displayName="MenuItem"},8813:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),l=d(n(9)),u=d(n(61)),i=d(n(750)),a=d(n(751)),c=d(n(8427)),f=n(8256),s=d(n(7340));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function b(e){var t,n=e.color,r=void 0===n?f.MenuItemColor.DEFAULT:n,d=e.label,p=e.checked,b=e.subtext,h=e.disabled,g=e.isFocused,m=e.menuItemProps,O=e.action;return o.createElement(u.default,v({className:(0,l.default)(s.default.item,s.default.labelContainer,s.default[r],(t={},t[s.default.disabled]=h,t[s.default.focused]=g,t)),onClick:h?void 0:O},m,{"aria-checked":p,"aria-disabled":h}),y("div",{className:s.default.label},void 0,(0,c.default)(d,e),null!=b&&y("div",{className:s.default.subtext},void 0,b)),y("div",{className:s.default.iconContainer},void 0,p?y(a.default,{className:s.default.icon,background:s.default.radio,foreground:s.default.radioSelection}):y(i.default,{className:s.default.icon,foreground:s.default.radio})))}b.displayName="MenuRadioItem"},8814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n)}(n(0));var r,o,l=(r=n(7340))&&r.__esModule?r:{default:r};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function i(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=r;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function a(){return i("div",{role:"separator",className:l.default.separator})}a.displayName="MenuSeparator"},8815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r,o=f(n(0)),l=f(n(250)),u=a(n(272)),i=a(n(7340));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function p(e){var t=e.parentItem,n=e.isFocused,r=e.menuSubmenuProps,a=e.renderSubmenu,c=o.useRef(null),f=o.useRef(null);return o.useLayoutEffect((function(){var e;n&&(null===(e=f.current)||void 0===e||e.focus())}),[n]),d("div",{className:i.default.submenuContainer},void 0,o.createElement("div",{ref:c}),t,n?d(l.default,{reference:c,autoInvert:!0,nudgeAlignIntoViewport:!0,fixed:!0,spacing:4,position:l.Positions.RIGHT,align:l.Align.TOP},void 0,(function(){return d("div",{className:i.default.submenuPaddingContainer},void 0,o.createElement("div",s({className:i.default.submenu},r,{ref:f}),d(u.default,{className:i.default.scroller},void 0,a())))})):null)}p.displayName="MenuSubmenuItem"},8816:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r,o=f(n(0)),l=a(n(8362)),u=f(n(250)),i=a(n(7340));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function s(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e){var t=e.parentItem,n=e.isFocused,r=e.menuSubmenuProps,a=e.rows,c=e.rowHeight,f=e.onScroll,p=e.listClassName,v=o.useRef(null),y=o.useRef(null),b=o.useRef(null);o.useLayoutEffect((function(){var e;n&&(null===(e=y.current)||void 0===e||e.focus())}),[n]);var h=o.useCallback((function(e){return a[e]}),[a]);return s("div",{className:i.default.submenuContainer},void 0,o.createElement("div",{ref:v}),t,n?s(u.default,{reference:v,autoInvert:!0,nudgeAlignIntoViewport:!0,fixed:!0,spacing:4,position:u.Positions.RIGHT,align:u.Align.TOP},void 0,(function(){return a.length>0&&s("div",{className:i.default.submenuPaddingContainer},void 0,o.createElement("div",d({className:i.default.submenu},r,{ref:y}),o.createElement(l.default,{ref:b,className:p,listPadding:[6,0,6,8],onScroll:f,renderRow:h,rowCount:a.length,rowHeight:c})))})):null)}p.displayName="MenuSubmenuListItem"},8870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.installLegacy=function(){return c.default.ensureModule("discord_spellcheck").then((function(){var e=c.default.requireModule("discord_spellcheck"),t=e.getLegacySpellchecker?e.getLegacySpellchecker():e.Spellchecker,n=t instanceof Function?new t:t,r=new h(n);return function(e){null!=document.body&&document.body.addEventListener("input",(function(t){var n=function(e){if(null==e)return null;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e.value;if(e instanceof HTMLElement&&e.hasAttribute("contenteditable"))return e.textContent}(t.target);null!=n&&e.detectLocale(n)}),!0)}(r),r}))},t.LegacySpellchecker=void 0;var r=n(8741),o=p(n(404)),l=p(n(118)),u=p(n(26)),i=n(48),a=p(n(16)),c=p(n(43)),f=p(n(8562)),s=p(n(8871)),d=p(n(8563));function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=new u.default("Spellchecker");function b(e){e=d.default[e]||e;var t=(0,r.parse)(e.replace(/[_-]/g,"-"));if(null!=t&&null!=t.langtag.language&&null!=t.langtag.region){var n=t.langtag,o=n.language,l=n.region;return o.language.toLowerCase()+"-"+l.toUpperCase()}y.error(e+" is not a valid locale.")}var h=function(){function e(e){var t=this;this._isMisspelledCache=new o.default({max:512,maxAge:4e3}),this._localeAvailable=!1,this._enabled=!0,this._learnedWords=new Set,this._spellchecker=e;var n=this.getAvailableLocales(),r=this.getAvailableLanguages(n);this._languageDetector=new f.default(n[0].split("-")[0],(function(e){var n=r[e]||d.default[e];null!=n&&t.setLocale(n)}))}var t,n,r,u=e.prototype;return u.reset=function(){var e=this;null!=this._locale&&(this._isMisspelledCache.reset(),l.default.spellCheck.setSpellCheckProvider(this._locale,!0,{spellCheck:function(t){return!e.isMisspelled(t)}}))},u.setLearnedWords=function(e){this._learnedWords=e,this.reset()},u.setLocale=function(e){e!==this._locale&&(this._locale=e,this._localeAvailable=this._spellchecker.setDictionary(e),y.info("Switching to "+e,this._localeAvailable?"(available)":"(unavailable)"),this.reset())},u.detectLocale=function(e){this.enabled&&this._languageDetector.process(e)},u.getAvailableLocales=function(){var e=c.default.requireModule("discord_spellcheck"),t=e.getKeyboardLayout?e.getKeyboardLayout():e.keyboardLayout;return(a.default.isOSX()?this._spellchecker.getAvailableDictionaries():t.getInstalledKeyboardLanguages()).map(b).filter(i.isNotNullish)},u.getAvailableLanguages=function(e){e=e||this.getAvailableLocales();var t={};return e.forEach((function(e){var n=e.split("-")[0];t[n]=t[n]||e})),t},u.isMisspelled=function(e,t){void 0===t&&(t=!1);var n=this._isMisspelledCache.get(e);return null!=n?n:!t&&(n=this._isMisspelled(e),this._isMisspelledCache.set(e,n),n)},u._isMisspelled=function(e){if(!this._enabled||!this._localeAvailable)return!1;if(1===e.length)return!1;var t=e.toLocaleLowerCase();return!this._learnedWords.has(t)&&!s.default.has(t)&&this._spellchecker.isMisspelled(e)},u.getCorrectionsForMisspelling=function(e,t){return void 0===t&&(t=!1),this.isMisspelled(e,t)&&this._spellchecker.getCorrectionsForMisspelling(e)||[]},u.setAppLocale=function(e){},u.replaceMisspelling=function(e){l.default.spellCheck.replaceMisspelling(e)},t=e,(n=[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this.reset()}}])&&v(t.prototype,n),r&&v(t,r),e}();t.LegacySpellchecker=h},8871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=new Set(["ain't","aren't","can't","could've","couldn't","couldn't've","didn't","doesn't","don't","hadn't","hadn't've","hasn't","haven't","he'd","he'd've","he'll","he's","how'd","how'll","how's","I'd","I'd've","I'll","I'm","I've","isn't","it'd","it'd've","it'll","it's","let's","ma'am","mightn't","mightn't've","might've","mustn't","must've","needn't","not've","o'clock","shan't","she'd","she'd've","she'll","she's","should've","shouldn't","shouldn't've","that'll","that's","there'd","there'd've","there're","there's","they'd","they'd've","they'll","they're","they've","wasn't","we'd","we'd've","we'll","we're","we've","weren't","what'll","what're","what's","what've","when's","where'd","where's","where've","who'd","who'll","who're","who's","who've","why'll","why're","why's","won't","would've","wouldn't","wouldn't've","y'all","y'all'd've","you'd","you'd've","you'll","you're","you've"].map((function(e){return e.replace(/'.*/,"")})));t.default=r},8872:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(){return O.apply(this,arguments)},t.Spellchecker=void 0;var r,o=n(8741),l=s(n(118)),u=s(n(26)),i=s(n(39)),a=n(48),c=s(n(8562)),f=s(n(8563));function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n,r,o,l,u){try{var i=e[l](u),a=i.value}catch(e){return void n(e)}i.done?t(a):Promise.resolve(a).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function u(e){d(l,r,o,u,i,"next",e)}function i(e){d(l,r,o,u,i,"throw",e)}u(void 0)}))}}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=new u.default("Spellchecker"),b=(null===l.default||void 0===l.default||null===(r=l.default.spellCheck)||void 0===r?void 0:r.Spellchecker)||(null===l.default||void 0===l.default?void 0:l.default.spellCheck);function h(e){e=f.default[e]||e;var t=(0,o.parse)(e.replace(/[_-]/g,"-"));if(null!=t&&null!=t.langtag.language&&null!=t.langtag.region){var n=t.langtag,r=n.language,l=n.region;return r.language.toLowerCase()+"-"+l.toUpperCase()}y.error(e+" is not a valid locale.")}var g=function(){function e(e){var t=this;this._enabled=!0,this._misspelledWord="",this._corrections=[];var n=i.default.locale.split("-"),r=n[0],o=n[1];this._regionPreference=o;var l=this.getAvailableLanguages(e);this._languageDetector=new c.default(r,(function(n){var o=n+"-"+t._regionPreference;if(-1!==e.indexOf(o))t.setLocale(o);else{var u=l[n]||f.default[r];null!=u&&t.setLocale(u)}})),b.on("spellcheck-result",(function(e,n){t._misspelledWord=e||"",t._corrections=n||[]}))}var t,n,r,o=e.prototype;return o.setLearnedWords=function(e){b.setLearnedWords(e)},o.setLocale=function(e){b.setLocale(e).then((function(t){y.info("Switching to "+e,t?"(available)":"(unavailable)")}))},o.setAppLocale=function(e){this._regionPreference=e.split("-")[1]},o.detectLanguage=function(e){this.enabled&&this._languageDetector.process(e)},o.getAvailableLanguages=function(e){var t={};return e.forEach((function(e){var n=e.split("-")[0];t[n]=t[n]||e})),t},o.isMisspelled=function(e,t){return""!==this._misspelledWord&&e===this._misspelledWord},o.getCorrectionsForMisspelling=function(e,t){return this.isMisspelled(e,t)?this._corrections:[]},o.replaceMisspelling=function(e){b.replaceMisspelling(e)},t=e,(n=[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e}}])&&v(t.prototype,n),r&&v(t,r),e}();function m(e){null!=document.body&&document.body.addEventListener("input",(function(t){var n=function(e){if(null==e)return null;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e.value;if(e instanceof HTMLElement&&e.hasAttribute("contenteditable"))return e.textContent}(t.target);null!=n&&e.detectLanguage(n)}),!0)}function O(){return(O=p(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.getAvailableDictionaries();case 2:return t=e.sent,n=t.map(h).filter(a.isNotNullish),m(r=new g(n)),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.Spellchecker=g},8873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleSpellcheck=function(){o.default.dispatch({type:l.ActionTypes.SPELLCHECK_TOGGLE})},t.learnWord=function(e){o.default.dispatch({type:l.ActionTypes.SPELLCHECK_LEARN_WORD,word:e})};var r,o=(r=n(2))&&r.__esModule?r:{default:r},l=n(1)},8874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;d(n(0));var r,o=n(389),l=d(n(8253)),u=f(n(16)),i=f(n(8632)),a=f(n(8395)),c=f(n(6));function f(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function v(e){var t=e.src,n=e.onSelect,r=(0,i.default)(t),f=(0,a.default)(t,null);return u.default.embedded?p(l.default,{navId:"image-context",onClose:o.closeContextMenu,"aria-label":c.default.Messages.IMAGE_ACTIONS_MENU_LABEL,onSelect:n},void 0,p(l.MenuGroup,{},void 0,r),p(l.MenuGroup,{},void 0,f)):null}v.displayName="NativeImageContextMenu"},8875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;s(n(0));var r,o=n(389),l=s(n(8253)),u=c(n(16)),i=c(n(8395)),a=c(n(6));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function d(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function p(e){var t=e.href,n=e.textContent,r=e.onSelect,c=(0,i.default)(t,n);return u.default.embedded?null==c?null:d(l.default,{navId:"image-context",onClose:o.closeContextMenu,"aria-label":a.default.Messages.IMAGE_ACTIONS_MENU_LABEL,onSelect:r},void 0,d(l.MenuGroup,{},void 0,c)):null}p.displayName="NativeLinkContextMenu"},8876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;d(n(0));var r,o=n(389),l=d(n(8253)),u=f(n(16)),i=f(n(43)),a=f(n(8471)),c=f(n(6));function f(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var l=e&&e.defaultProps,u=arguments.length-3;if(t||0===u||(t={children:void 0}),1===u)t.children=o;else if(u>1){for(var i=new Array(u),a=0;a<u;a++)i[a]=arguments[a+3];t.children=i}if(t&&l)for(var c in l)void 0===t[c]&&(t[c]=l[c]);else t||(t=l||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function v(e){var t=e.text,n=e.onSelect,r=(0,a.default)(t);return u.default.embedded?p(l.default,{navId:"text-context",onClose:o.closeContextMenu,"aria-label":c.default.Messages.TEXT_ACTIONS_MENU_LABEL,onSelect:n},void 0,p(l.MenuGroup,{},void 0,r),p(l.MenuGroup,{},void 0,p(l.MenuItem,{id:"copy",label:c.default.Messages.COPY,action:function(){return i.default.copy(t)}}))):null}v.displayName="NativeTextContextMenu"}}]); -//# sourceMappingURL=b94388e26490ecd7f18d.js.map \ No newline at end of file |