Tab crashing when clicking back button
Just downloaded the newest update. When clicking the back button, the tab frequently crashes. It brings me back to the page I was on previously.
Just downloaded the newest update. When clicking the back button, the tab frequently crashes. It brings me back to the page I was on previously.
Firefox not functioning on my Apple iPhone it is my default browser
When I try to sign into Firefox I don’t have the password. To get a new one, Mozilla wants to reset Firefox and trash my data. Is there a way to sign in without a reset? … (read more)
When I try to sign into Firefox I don’t have the password. To get a new one, Mozilla wants to reset Firefox and trash my data. Is there a way to sign in without a reset?
Thanks.
The Firefox app on the iPad keeps prompting me to download a file instead of navigating the website. How do I keep this from happening?
The Firefox icon on my iPhone has disappeared, even though it is functional as my default browser. I feel like I’ve tried everything! Would anyone have any ideas? Thank y… (read more)
The Firefox icon on my iPhone has disappeared, even though it is functional as my default browser. I feel like I’ve tried everything! Would anyone have any ideas? Thank you!
Not so much as a crash but a complete blocking. I have a gray curtain over my website. see below
Why is it that no matter what I download i can’t find the file or it’s not saving it anywhere? Even in the downloads on Firefox it says no downloads after downloading. … (read more)
Why is it that no matter what I download i can’t find the file or it’s not saving it anywhere? Even in the downloads on Firefox it says no downloads after downloading.
I restored Firefox to default. Are my bookmarks lost completely?
Those mf try to block to see my email .. wtf .. please guide me how to avoid those mfs.
I know u can see me. Thanks
Where do I get the code to enable dual-authentication?
YouTube has blocked it's videos with an Adblock notice even after all such adblocks were removed. After removing my History and then my Cache, the Adblock notice reappea… (read more)
YouTube has blocked it's videos with an Adblock notice even after all such adblocks were removed. After removing my History and then my Cache, the Adblock notice reappeared blocking any video that I might try to watch. This has been happening all week, I called Apple five times and the final call ended by telling me they had no further ability to help me with such a software issue. This is no way to treat a satisfied customer, I listen to music to meditate each morning and now spend hours trying to avoid the blockage before my morning can begin. My days have been miserable as a result. Please help!
var TypeScriptModule=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.ex… (read more)
0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:_p.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:Hp(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:_p.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(Up(n),e,Up(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===Cp.forward&&e>=n.length-1?e=-1:t===Cp.backward&&e<=0&&(e=n.length);var o=this._getNextSelectableIndex(e,t);e===o?t===Cp.forward?e=this._getNextSelectableIndex(-1,t):t===Cp.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=o,zp(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,o=this.state,r=o.currentPendingValue,i=o.currentPendingValueValidIndex,a=o.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&zp(n,a)?s=a:i!==e.currentPendingValueValidIndex&&zp(n,i)?s=i:r!==e.currentPendingValue&&(l=r),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?n[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==E.tab&&e.which!==E.escape&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return Ep(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,n=e.styles;return Ip(this.props.theme,t,n,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index))},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"list"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t=Object(u.b)([ms("ComboBox",["theme","styles"],!0)],t)}(d.Component);function Ap(e,t){if(!e||!t)return[];var n={};e.forEach((function(e,t){e.selected&&(n[t]=!0)}));for(var o=function(t){var o=Nt(e,(function(e){return e.key===t}));o>-1&&(n[o]=!0)},r=0,i=t;r<i.length;r++){o(i[r])}return Object.keys(n).map(Number).sort()}function jp(e){return void 0===e?[]:e instanceof Array?e:[e]}function Hp(e){return e||""}function zp(e,t){return!!e&&t>=0&&t<e.length}function Wp(e){return e.itemType!==yp.Header&&e.itemType!==yp.Divider&&e.itemType!==yp.SelectAll}function Vp(e){return e.itemType!==yp.Header&&e.itemType!==yp.Divider}function Up(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function Kp(e){return e.which===E.alt||"Meta"===e.key}var Gp={auto:0,top:1,bottom:2,center:3},qp=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Yp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Qp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Xp=function(e){return e.getBoundingClientRect()},Zp=Xp,$p=Xp,Jp=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._surface=d.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&Object(xe.a)()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,o=e.divProps;return d.createElement("div",Object(u.a)({ref:t},o),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,o=e.divProps;return d.createElement("div",Object(u.a)({ref:t},o),n)},n._onRenderPage=function(e,t){for(var o,r=n.props,i=r.onRenderCell,a=r.onRenderCellConditional,s=r.role,l=e.page,c=l.items,p=void 0===c?[]:c,f=l.startIndex,h=Object(u.d)(e,["page"]),m=void 0===s?"listitem":"presentation",g=[],v=0;v<p.length;v++){var b=f+v,y=p[v],C=n.props.getKey?n.props.getKey(y,b):y&&y.key;null==C&&(C=b);var _=null!=a?a:i,S=null!==(o=null==_?void 0:_(y,b,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==o?o:null;a&&!S||g.push(d.createElement("div",{role:m,className:"ms-List-cell",key:C,"data-list-index":b,"data-automationid":"ListCell"},S))}return d.createElement("div",Object(u.a)({},h),g)},Ct(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new wt(n),n._events=new vo(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=Gp.auto);for(var o=this.props.startIndex,r=o+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=o;l<r;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=$p(this._scrollElement),p=qp(this._scrollElement),f={top:p,bottom:p+d.height},h=e-l,m=0;m<h;++m)a+=t(l+m);var g=a+t(e);switch(n){case Gp.top:return void Yp(this._scrollElement,a);case Gp.bottom:return void Yp(this._scrollElement,g-d.height);case Gp.center:return void Yp(this._scrollElement,(a+g-d.height)/2);case Gp.auto:}if(a>=f.top&&g<=f.bottom)return;a<f.top||g>f.bottom&&(a=g-d.height)}return void(this._scrollElement&&Yp(this._scrollElement,a))}a+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var o=n[t];if(!o.isSpacer&&(this._scrollTop||0)>=o.top&&(this._scrollTop||0)<=o.top+o.height){if(!e){var r=Math.floor(o.height/o.itemCount);return o.startIndex+Math.floor((this._scrollTop-o.top)/r)}for(var i=0,a=o.startIndex;a<o.startIndex+o.itemCount;a++){r=e(a);if(o.top+i<=this._scrollTop&&this._scrollTop<o.top+i+r)return a;i+=r}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=Pn(this._root.current),this._scrollTop=0,this.setState(Object(u.a)(Object(u.a)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,o=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(o.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,o)))):this._onAsyncIdle();n.onPagesUpdated&&n.onPagesUpdated(o.pages)}},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,o=t.pages,r=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===o.length)for(var i=0;i<n.length;i++){var a=n[i],s=o[i];if(a.key!==s.key||a.itemCount!==s.itemCount){r=!0;break}}else r=!0;return r},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,o=void 0===n?"list":n,r=e.onRenderSurface,i=e.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=fe(this.props,pe),d=0,p=s;d<p.length;d++){var f=p[d];l.push(this._renderPage(f))}var h=r?Po(r,this._onRenderSurface):this._onRenderSurface;return(i?Po(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:h({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:Object(u.a)(Object(u.a)({},c),{className:Me("ms-List",t),role:l.length>0?o:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,o=this.props.usePageCache;if(o&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var r=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:r,role:"presentation"},this._onRenderPage);return o&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return Object(u.a)(Object(u.a)({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=qt(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,o=this._requiredWindowsAhead,r=this._requiredWindowsBehind,i=Math.min(t,o+1),a=Math.min(n,r+1);i===o&&a===r||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),o=t.pages;return this._notifyPageChanges(o,n.pages,this.props),Object(u.a)(Object(u.a)(Object(u.a)({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var o=n.onPageAdded,r=n.onPageRemoved;if(o||r){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var o=e[n];o.items&&(t=this._measurePage(o)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],o=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!o||o.measureVersion!==this._measureVersion)){var r={width:n.clientWidth,height:n.clientHeight};(r.height||r.width)&&(t=e.height!==r.height,e.height=r.height,this._cachedPageHeights[e.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,o=e.items,r=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var a=Object(u.a)({},Qp),s=[],l=1,c=0,d=null,p=this._focusedIndex,f=r+n,h=this._shouldVirtualize(e),m=0===this._estimatedPageHeight&&!i,g=this._allowedRect,v=function(n){var i=b._getPageSpecification(e,n,g),u=i.height,v=i.data,y=i.key;l=i.itemCount;var C,_,S=c+u-1,k=Nt(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,x=!g||S>=g.top&&c<=g.bottom,w=!b._requiredRect||S>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!m&&(w||x&&k)||!h||p>=n&&p<n+l||n===r){d&&(s.push(d),d=null);var I=Math.min(l,f-n),E=b._createPage(y,o.slice(n,n+I),n,void 0,void 0,v);E.top=c,E.height=u,b._visibleRect&&b._visibleRect.bottom&&(E.isVisible=S>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(E),w&&b._allowedRect&&(C=a,_={top:c,bottom:S,height:u,left:g.left,right:g.right,width:g.width},C.top=_.top<C.top||-1===C.top?_.top:C.top,C.left=_.left<C.left||-1===C.left?_.left:C.left,C.bottom=_.bottom>C.bottom||-1===C.bottom?_.bottom:C.bottom,C.right=_.right>C.right||-1===C.right?_.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else d||(d=b._createPage("spacer-"+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(S-c)+1,d.itemCount+=l;if(c+=S-c+1,m&&h)return"break"},b=this,y=r;y<f;y+=l){if("break"===v(y))break}return d&&(d.key="spacer-end",s.push(d)),this._materializedRect=a,Object(u.a)(Object(u.a)({},t),{pages:s,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var o=e.getPageSpecification;if(o){var r=o(t,n),i=r.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=r.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var o=this._cachedPageHeights[e];return o?o.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,o,r,i,a){void 0===n&&(n=-1),void 0===o&&(o=t?t.length:0),void 0===r&&(r={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:o,items:t,style:r,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,o=t.startIndex,r=t.renderCount;return void 0===r?n?n.length-o:0:r},t.prototype._updateRenderRects=function(e,t,n){var o=e.renderedWindowsAhead,r=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var a=this._surfaceRect||Object(u.a)({},Qp),s=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),l=qp(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-l)>this._estimatedPageHeight/3)&&(a=this._surfaceRect=Zp(this._surface.current),this._scrollTop=l),!n&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var c=Math.max(0,-a.top),d=Object(N.a)(this._root.current),p={top:c,left:a.left,bottom:c+d.innerHeight,right:a.right,width:a.width,height:d.innerHeight};this._requiredRect=ef(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ef(p,r,o),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return d.createElement(d.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(d.Component);function ef(e,t,n){var o=e.top-t*e.height,r=e.height+(t+n)*e.height;return{top:o,bottom:o+r,height:r,left:e.left,right:e.right,width:e.width}}var tf=function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=d.createRef(),n._list=d.createRef(),n._onRenderList=function(e){var t=e.id,o=e.onRenderItem;return d.createElement(Jp,{componentRef:n._list,role:"listbox",id:"".concat(t,"-list"),"aria-labelledby":"".concat(t,"-label"),items:e.options,onRenderCell:o?function(e){return o(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},Ct(n),n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return d.createElement(Bp,Object(u.a)({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))},t}(d.Component),nf=function(e,t,n){for(var o=0,r=e;o<r.length;o++){var i=r[o];n[t.register(i,!0)]=i}},of=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];e.unregister(t[r],r,!0),delete t[r]}},rf=function(e){var t=da.getInstance(),n=e.className,o=e.overflowItems,r=e.keytipSequences,i=e.itemSubMenuProvider,a=e.onRenderOverflowButton,s=jr({}),l=d.useCallback((function(e){return i?i(e):e.subMenuProps?e.subMenuProps.items:void 0}),[i]),c=d.useMemo((function(){var e=[],n=[];return r?null==o||o.forEach((function(o){var i,a=o.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||l(o)?(s.onExecute=t.menuExecute.bind(t,r,null===(i=null==o?void 0:o.keytipProps)||void 0===i?void 0:i.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,e.push(s);var c=Object(u.a)(Object(u.a)({},o),{keytipProps:Object(u.a)(Object(u.a)({},a),{overflowSetSequence:r})});null==n||n.push(c)}else null==n||n.push(o)})):n=o,{modifiedOverflowItems:n,keytipsToRegister:e}}),[o,l,t,r]),p=c.modifiedOverflowItems;return function(e,t,n){var o=ua(e);d.useEffect((function(){o&&(of(n,o),nf(t,n,e))})),d.useEffect((function(){return nf(t,n,e),function(){of(n,e)}}),[])}(s,c.keytipsToRegister,t),d.createElement("div",{className:n},a(p))},af=L(),sf=d.forwardRef((function(e,t){var n=d.useRef(null),o=Ie(n,t);!function(e,t){d.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var o=!1;return t.current&&(o=tn(t.current,n)),o},focusElement:function(e){var n=!1;return!!e&&(t.current&&Xt(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var r=e.items,i=e.overflowItems,a=e.className,s=e.styles,l=e.vertical,c=e.role,p=e.overflowSide,f=void 0===p?"end":p,h=e.onRenderItem,m=af(s,{className:a,vertical:l}),g=!!i&&i.length>0;return d.createElement("div",Object(u.a)({},fe(e,pe),{role:c||"group","aria-orientation":"menubar"===c?!0===l?"vertical":"horizontal":void 0,className:m.root,ref:o}),"start"===f&&g&&d.createElement(rf,Object(u.a)({},e,{className:m.overflowButton})),r&&r.map((function(e,t){return d.createElement("div",{className:m.item,key:e.key,role:"none"},h(e))})),"end"===f&&g&&d.createElement(rf,Object(u.a)({},e,{className:m.overflowButton})))}));sf.displayName="OverflowSet";var lf={flexShrink:0,display:"inherit"},cf=k(sf,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",lf],overflowButton:["ms-OverflowSet-overflowButton",lf]}}),void 0,{scope:"OverflowSet"}),uf=function(e){var t=e.className,n=e.theme,o=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:o.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}},df=Object(f.c)((function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},o=e||{},r=o.root,i=o.label,a=Object(u.d)(o,["root","label"]);return Object(u.a)(Object(u.a)({},a),{root:r?[t,r]:t,label:i?[n,i]:n})})),pf=L(),ff=function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=d.createRef(),n._resizeGroup=d.createRef(),n._onRenderData=function(e){var t=n.props,o=t.ariaLabel,r=t.primaryGroupAriaLabel,i=t.farItemsGroupAriaLabel,a=e.farItems&&e.farItems.length>0;return d.createElement(zn,{className:Me(n._classNames.root),direction:Ot.horizontal,role:"menubar","aria-label":o},d.createElement(cf,{role:a?"group":"none","aria-label":a?r:void 0,componentRef:n._overflowSet,className:Me(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),a&&d.createElement(cf,{role:"group","aria-label":i,className:Me(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:xo}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,(function(){}));var t=e.text||e.name,o=Object(u.a)(Object(u.a)({allowDisabledFocus:!0,role:"menuitem"},e),{styles:df(e.buttonStyles),className:Me("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?d.createElement(Us,Object(u.a)({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),n._commandButton(e,o)):n._commandButton(e,o)},n._commandButton=function(e,t){var o=n.props.buttonAs,r=e.commandBarButtonAs,i=hl;return r&&(i=ps(r,i)),o&&(i=ps(o,i)),d.createElement(i,Object(u.a)({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,o=void 0===t?{}:t,r=Object(u.e)(Object(u.e)([],o.menuProps?o.menuProps.items:[],!0),e,!0),i=Object(u.a)(Object(u.a)({role:"menuitem"},o),{styles:Object(u.a)({menuIcon:{fontSize:"17px"}},o.styles),className:Me("ms-CommandBar-overflowButton",o.className),menuProps:Object(u.a)(Object(u.a)({},o.menuProps),{items:r}),menuIconProps:Object(u.a)({iconName:"More"},o.menuIconProps)}),a=n.props.overflowButtonAs?ps(n.props.overflowButtonAs,hl):hl;return d.createElement(a,Object(u.a)({},i))},n._onReduceData=function(e){var t=n.props,o=t.shiftOnReduce,r=t.onDataReduced,i=e.primaryItems,a=e.overflowItems,s=e.cacheKey,l=e.farItems,c=i[o?0:i.length-1];if(void 0!==c){c.renderedInOverflow=!0,a=Object(u.e)([c],a,!0),i=o?i.slice(1):i.slice(0,-1);var d=Object(u.a)(Object(u.a)({},e),{primaryItems:i,overflowItems:a});return s=n._computeCacheKey({primaryItems:i,overflow:a.length>0,farItems:l}),r&&r(c),d.cacheKey=s,d}},n._onGrowData=function(e){var t=n.props,o=t.shiftOnReduce,r=t.onDataGrown,i=e.minimumOverflowItems,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=e.farItems,d=s[0];if(void 0!==d&&s.length>i){d.renderedInOverflow=!1,s=s.slice(1),a=o?Object(u.e)([d],a,!0):Object(u.e)(Object(u.e)([],a,!0),[d],!1);var p=Object(u.a)(Object(u.a)({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0,farItems:c}),r&&r(d),p.cacheKey=l,p}},Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,o=e.farItems,r=e.styles,i=e.theme,a=e.dataDidRender,s=e.onReduceData,l=void 0===s?this._onReduceData:s,c=e.onGrowData,p=void 0===c?this._onGrowData:c,f=e.resizeGroupAs,h=void 0===f?Ms:f,m={primaryItems:Object(u.e)([],t,!0),overflowItems:Object(u.e)([],n,!0),minimumOverflowItems:Object(u.e)([],n,!0).length,farItems:o,cacheKey:this._computeCacheKey({primaryItems:Object(u.e)([],t,!0),overflow:n&&n.length>0,farItems:o})};this._classNames=pf(r,{theme:i});var g=fe(this.props,pe);return d.createElement(h,Object(u.a)({},g,{componentRef:this._resizeGroup,data:m,onReduceData:l,onGrowData:p,onRenderData:this._onRenderData,dataDidRender:a}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow,o=e.farItems,r=function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)};return[t&&t.reduce(r,""),n?"overflow":"",o&&o.reduce(r,"")].join("")},t.defaultProps={items:[],overflowItems:[]},t}(d.Component),hf=k(ff,uf,void 0,{scope:"CommandBar"}),mf=Object(u.a)(Object(u.a)({},kc),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'}),gf=L(),vf={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e.match(/^\d{4}(-\d{2}){2}$/)&&(e+="T12:00");var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:_l.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:mf,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:kl.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};var bf=d.forwardRef((function(e,t){var n,o,r=H(vf,e),i=r.firstDayOfWeek,a=r.strings,s=r.label,l=r.theme,c=r.className,p=r.styles,f=r.initialPickerDate,h=r.isRequired,m=r.disabled,g=r.ariaLabel,v=r.pickerAriaLabel,b=r.placeholder,y=r.allowTextInput,C=r.borderless,_=r.minDate,S=r.maxDate,k=r.showCloseButton,x=r.calendarProps,w=r.calloutProps,I=r.textField,O=r.underlined,T=r.allFocusable,D=r.calendarAs,P=void 0===D?Xc:D,R=r.tabIndex,M=r.disableAutoFocus,N=void 0===M||M,F=wa("DatePicker",r.id),B=wa("DatePicker-Callout"),L=d.useRef(null),A=d.useRef(null),j=function(){var e=d.useRef(null),t=d.useRef(!1);return[e,function(){var t,n;null===(n=null===(t=e.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},t,function(){t.current=!0}]}(),z=j[0],W=j[1],V=j[2],U=j[3],K=function(e,t){var n=e.allowTextInput,o=e.onAfterMenuDismiss,r=d.useState(!1),i=r[0],a=r[1],s=d.useRef(!1),l=Dr();return d.useEffect((function(){s.current&&!i&&(n&&l.requestAnimationFrame(t),null==o||o()),s.current=!0}),[i]),[i,a]}(r,W),G=K[0],q=K[1],Y=function(e){var t=e.formatDate,n=e.value,o=e.onSelectDate,r=Uc(n,void 0,(function(e,t){return null==o?void 0:o(t)})),i=r[0],a=r[1],s=d.useState((function(){return n&&t?t(n):""})),l=s[0],c=s[1];return d.useEffect((function(){c(n&&t?t(n):"")}),[t,n]),[i,l,function(e){a(e),c(e&&t?t(e):"")},c]}(r),Q=Y[0],X=Y[1],Z=Y[2],$=Y[3],J=function(e,t,n,o,r){var i,a=e.isRequired,s=e.allowTextInput,l=e.strings,c=e.parseDateFromString,u=e.onSelectDate,p=e.formatDate,f=e.minDate,h=e.maxDate,m=e.textField,g=d.useState(),v=g[0],b=g[1],y=d.useState(),C=y[0],_=y[1],S=d.useRef(!0),k=null===(i=null==m?void 0:m.validateOnLoad)||void 0===i||i;return d.useEffect((function(){S.current&&(S.current=!1,!k)||(a&&!t?b(l.isRequiredErrorMessage||" "):t&&yf(t,f,h)?b(l.isOutOfBoundsErrorMessage||" "):b(void 0))}),[f&&Yl(f),h&&Yl(h),t&&Yl(t),a,k]),[r?void 0:v,function(e){if(void 0===e&&(e=null),s)if(o||e){if(t&&!v&&p&&p(null!=e?e:t)===o)return;if(!(e=e||c(o))||isNaN(e.getTime())){n(t);var r=p?p(t):"",i=l.isResetStatusMessage?ec(l.isResetStatusMessage,o,r):l.invalidInputErrorMessage||"";_(i)}else yf(e,f,h)?b(l.isOutOfBoundsErrorMessage||" "):(n(e),b(void 0),_(void 0))}else b(a?l.isRequiredErrorMessage||" ":void 0),null==u||u(e);else a&&!o?b(l.isRequiredErrorMessage||" "):(b(void 0),_(void 0))},b,r?void 0:C,_]}(r,Q,Z,X,G),ee=J[0],te=J[1],ne=J[2],oe=J[3],re=J[4],ie=d.useCallback((function(){G||(U(),q(!0))}),[G,U,q]);d.useImperativeHandle(r.componentRef,(function(){return{focus:W,reset:function(){q(!1),Z(void 0),ne(void 0),re(void 0)},showDatePickerPopup:ie}}),[W,ne,q,Z,re,ie]);var ae=function(e){G&&(q(!1),te(e),!y&&e&&Z(e))},se=function(e){U(),ae(e)},le=function(e){G&&(e.stopPropagation(),se())},ce=gf(p,{theme:l,className:c,disabled:m,underlined:O,label:!!s,isDatePickerShown:G}),ue=fe(r,pe,["value"]),de=I&&I.iconProps,he=I&&I.id&&I.id!==F?I.id:F+"-label",me=!y&&!m,ge=null===(o=null!==(n=null==I?void 0:I["data-is-focusable"])&&void 0!==n?n:r["data-is-focusable"])||void 0===o||o;return d.createElement("div",Object(u.a)({},ue,{className:ce.root,ref:t}),d.createElement("div",{ref:A,"aria-owns":G?B:void 0,className:ce.wrapper},d.createElement(np,Object(u.a)({role:"combobox",label:s,"aria-expanded":G,ariaLabel:g,"aria-haspopup":"dialog","aria-controls":G?B:void 0,required:h,disabled:m,errorMessage:ee,placeholder:b,borderless:C,value:X,componentRef:z,underlined:O,tabIndex:R,readOnly:!y},I,{"data-is-focusable":ge,id:he,className:Me(ce.textField,I&&I.className),iconProps:Object(u.a)(Object(u.a)({iconName:"Calendar"},de),{className:Me(ce.icon,de&&de.className),onClick:function(e){e.stopPropagation(),G||r.disabled?r.allowTextInput&&ae():ie()}}),onRenderDescription:function(e,t){return d.createElement(d.Fragment,null,e.description?t(e):null,d.createElement("div",{"aria-live":"assertive",className:ce.statusMessage},oe))},onKeyDown:function(e){switch(e.which){case E.enter:e.preventDefault(),e.stopPropagation(),G?r.allowTextInput&&ae():(te(),ie());break;case E.escape:le(e);break;case E.down:e.altKey&&!G&&ie()}},onFocus:function(){N||y||(V.current||ie(),V.current=!1)},onBlur:function(e){te()},onClick:function(e){!(r.openOnClick||!r.disableAutoFocus)||G||r.disabled?r.allowTextInput&&ae():ie()},onChange:function(e,t){var n,o=r.textField;y&&(G&&ae(),$(t)),null===(n=null==o?void 0:o.onChange)||void 0===n||n.call(o,e,t)},onRenderInput:me?function(e){var t=fe(e,pe);return d.createElement("div",Object(u.a)({},t,{className:Me(t.className,ce.readOnlyTextField),tabIndex:R||0}),X||d.createElement("span",{className:ce.readOnlyPlaceholder},b))}:void 0}))),G&&d.createElement(Li,Object(u.a)({id:B,role:"dialog",ariaLabel:v,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:A.current,directionalHint:Eo.bottomLeftEdge},w,{className:Me(ce.callout,w&&w.className),onDismiss:function(e){se()},onPositioned:function(){var e=!0;r.calloutProps&&void 0!==r.calloutProps.setInitialFocus&&(e=r.calloutProps.setInitialFocus),L.current&&e&&L.current.focus()}}),d.createElement(eu,{isClickableOutsideFocusTrap:!0,disableFirstFocus:N},d.createElement(P,Object(u.a)({},x,{onSelectDate:function(e){r.calendarProps&&r.calendarProps.onSelectDate&&r.calendarProps.onSelectDate(e),se(e)},onDismiss:function(e){se()},isMonthPickerVisible:r.isMonthPickerVisible,showMonthPickerAsOverlay:r.showMonthPickerAsOverlay,today:r.today,value:Q||f,firstDayOfWeek:i,strings:a,highlightCurrentMonth:r.highlightCurrentMonth,highlightSelectedMonth:r.highlightSelectedMonth,showWeekNumbers:r.showWeekNumbers,firstWeekOfYear:r.firstWeekOfYear,showGoToToday:r.showGoToToday,dateTimeFormatter:r.dateTimeFormatter,minDate:_,maxDate:S,componentRef:L,showCloseButton:k,allFocusable:T})))))}));function yf(e,t,n){return!!t&&Hl(t,e)>0||!!n&&Hl(n,e)<0}bf.displayName="DatePickerBase";var Cf,_f,Sf,kf,xf,wf,If={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Ef=k(bf,(function(e){var t,n=e.className,o=e.theme,r=e.disabled,i=e.underlined,a=e.label,s=e.isDatePickerShown,l=o.palette,c=o.semanticColors,u=o.fonts,d=Object(p.R)(If,o),f={color:l.neutralSecondary,fontSize:p.k.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[d.root,o.fonts.large,s&&"is-open",p.gb,n],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},r&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[d.callout],icon:[f,a?d.withLabel:d.withoutLabel,{paddingTop:"7px"},!r&&[d.disabled,{pointerEvents:"initial",cursor:"pointer"}],r&&{color:c.disabledText,cursor:"default"}],statusMessage:[u.small,{color:c.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:32,lineHeight:30,overflow:"hidden",textOverflow:"ellipsis"},i&&{lineHeight:34}],readOnlyPlaceholder:(t={color:c.inputPlaceholderText},t[p.m]={color:"GrayText"},t)}}),void 0,{scope:"DatePicker"}),Of={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},Tf={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},Df={rowHeight:42,compactRowHeight:32},Pf=Object(u.a)(Object(u.a)({},Df),{rowVerticalPadding:11,compactRowVerticalPadding:6}),Rf=function(e){var t,n,o,r,i,a,s,l,c,d,f,h,m,g,v=e.theme,b=e.isSelected,y=e.canSelect,C=e.droppingClassName,_=e.isCheckVisible,S=e.checkboxCellClassName,k=e.compact,x=e.className,w=e.cellStyleProps,I=void 0===w?Tf:w,E=e.enableUpdateAnimations,O=e.disabled,T=v.palette,D=v.fonts,P=T.neutralPrimary,R=T.white,M=T.neutralSecondary,N=T.neutralLighter,F=T.neutralLight,B=T.neutralDark,L=T.neutralQuaternaryAlt,A=v.semanticColors,j=A.focusBorder,H=A.linkHovered,z=Object(p.R)(Of,v),W={defaultHeaderText:P,defaultMetaText:M,defaultBackground:R,defaultHoverHeaderText:B,defaultHoverMetaText:P,defaultHoverBackground:N,selectedHeaderText:B,selectedMetaText:P,selectedBackground:F,selectedHoverHeaderText:B,selectedHoverMetaText:P,selectedHoverBackground:L,focusHeaderText:B,focusMetaText:P,focusBackground:F,focusHoverBackground:L},V=[Object(p.Q)(v,{inset:-1,borderColor:j,outlineColor:R,highContrastStyle:{top:2,right:2,bottom:2,left:2}}),z.isSelected,{color:W.selectedMetaText,background:W.selectedBackground,borderBottom:"1px solid ".concat(R),selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(R)}},t[".".concat(z.cell," > .").concat(lo.root)]={color:H,selectors:(n={},n[p.m]={color:"HighlightText"},n)},t["&:hover"]={background:W.selectedHoverBackground,color:W.selectedHoverMetaText,selectors:(o={},o[p.m]={background:"Highlight",selectors:(r={},r[".".concat(z.cell)]={color:"HighlightText"},r[".".concat(z.cell," > .").concat(lo.root)]={forcedColorAdjust:"none",color:"HighlightText"},r)},o[".".concat(z.isRowHeader)]={color:W.selectedHoverHeaderText,selectors:(i={},i[p.m]={color:"HighlightText"},i)},o)},t["&:focus"]={background:W.focusBackground,selectors:(a={},a[".".concat(z.cell)]={color:W.focusMetaText,selectors:(s={},s[p.m]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},s)},a[".".concat(z.isRowHeader)]={color:W.focusHeaderText,selectors:(l={},l[p.m]={color:"HighlightText"},l)},a[p.m]={background:"Highlight"},a)},t[p.m]=Object(u.a)(Object(u.a)({background:"Highlight",color:"HighlightText"},Object(p.S)()),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:W.focusHoverBackground},t)}],U=[z.isContentUnselectable,{userSelect:"none",cursor:"default"}],K={minHeight:Pf.compactRowHeight,border:0},G={minHeight:Pf.compactRowHeight,paddingTop:Pf.compactRowVerticalPadding,paddingBottom:Pf.compactRowVerticalPadding,paddingLeft:"".concat(I.cellLeftPadding,"px")},q=[Object(p.Q)(v,{inset:-1}),z.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Pf.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Pf.rowVerticalPadding,paddingBottom:Pf.rowVerticalPadding,paddingLeft:"".concat(I.cellLeftPadding,"px"),selectors:(c={"& > button":{maxWidth:"100%"}},c["[data-is-focusable='true']"]=Object(p.Q)(v,{inset:-1,borderColor:M,outlineColor:R}),c)},b&&{selectors:(d={},d[p.m]=Object(u.a)({background:"Highlight",color:"HighlightText"},Object(p.S)()),d)},k&&G,O&&{opacity:.5}];return{root:[z.root,p.a.fadeIn400,C,v.fonts.small,_&&z.isCheckVisible,Object(p.Q)(v,{borderColor:j,outlineColor:R}),{borderBottom:"1px solid ".concat(N),background:W.defaultBackground,color:W.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:Pf.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(f={},f[".".concat(z.listCellFirstChild," &:before")]={display:"none"},f["&:hover"]={background:W.defaultHoverBackground,color:W.defaultHoverMetaText,selectors:(h={},h[".".concat(z.isRowHeader)]={color:W.defaultHoverHeaderText},h[".".concat(z.cell," > .").concat(lo.root)]={color:H},h)},f["&:hover .".concat(z.check)]={opacity:1},f[".".concat(Gn.a," &:focus .").concat(z.check)]={opacity:1},f[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},f)},b&&V,!y&&U,k&&K,x],cellUnpadded:{paddingRight:"".concat(I.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(I.cellExtraRightPadding+I.cellRightPadding,"px"),selectors:(m={},m["&.".concat(z.cellCheck)]={paddingRight:0},m)},cell:q,cellAnimation:E&&p.b.slideLeftIn40,cellMeasurer:[z.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[q,z.cellCheck,S,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[z.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[z.isRowHeader,{color:W.defaultHeaderText,fontSize:D.medium.fontSize},b&&{color:W.selectedHeaderText,fontWeight:p.l.semibold,selectors:(g={},g[p.m]={color:"HighlightText"},g)}],isMultiline:[q,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[z.check]}},Mf=function(e){var t=e.count,n=e.indentWidth,o=void 0===n?36:n,r=e.role,i=void 0===r?"presentation":r,a=t*o;return t>0?d.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:a},role:i}):null},Nf={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},Ff=42,Bf=function(e){var t=e.theme,n=e.cellStyleProps,o=void 0===n?Tf:n,r=t.semanticColors;return[Object(p.R)(Nf,t).cell,Object(p.Q)(t),{color:r.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 ".concat(o.cellRightPadding,"px 0 ").concat(o.cellLeftPadding,"px"),lineHeight:"inherit",margin:"0",height:Ff,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},Lf=function(e){var t,n,o,r,i=e.theme,a=e.className,s=e.isAllSelected,l=e.isResizingColumn,c=e.isSizing,d=e.isAllCollapsed,f=e.cellStyleProps,h=void 0===f?Tf:f,m=i.semanticColors,g=i.palette,v=i.fonts,b=Object(p.R)(Nf,i),y={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,resizerColor:g.neutralTertiaryAlt},C={opacity:1,transition:"opacity 0.3s linear"},_=Bf(e);return{root:[b.root,v.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:Ff,lineHeight:Ff,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(m.bodyDivider),cursor:"default",userSelect:"none",selectors:(t={},t["&:hover .".concat(b.check)]={opacity:1},t["& .".concat(b.tooltipHost," .").concat(b.checkTooltip)]={display:"block"},t)},s&&b.isAllSelected,l&&b.isResizingColumn,a],check:[b.check,{height:Ff},{selectors:(n={},n[".".concat(Gn.a," &:focus")]={opacity:1},n)}],cellWrapperPadded:{paddingRight:h.cellExtraRightPadding+h.cellRightPadding},cellIsCheck:[_,b.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},s&&{opacity:1}],cellIsGroupExpander:[_,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:v.small.fontSize,padding:0,border:"none",width:36,color:g.neutralSecondary,selectors:{":hover":{backgroundColor:g.neutralLighter},":active":{backgroundColor:g.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[b.cellSizer,Object(p.L)(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(o={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":C,":hover:after":C},o["&.".concat(b.isResizing,":after")]=[C,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],o)}],cellIsResizing:b.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[b.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},d?[b.isCollapsed,{transform:"rotate(0deg)"}]:{transform:P(i)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:b.checkTooltip,sizingOverlay:c&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(r={},r[p.m]=Object(u.a)({background:"transparent"},Object(p.S)()),r)},accessibleLabel:p.ab,dropHintCircleStyle:[b.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid ".concat(g.themePrimary),background:g.white}],dropHintCaretStyle:[b.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:v.medium.fontSize,color:g.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[b.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:g.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}},Af={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},jf=48,Hf=function(e){var t=e.theme,n=e.className,o=e.isHeader,r=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=Object(p.R)(Af,t),u=Df.rowHeight,d=Df.compactRowHeight,f=o?Ff:s?d:u,h=l||r||i;return{root:[c.root,n],check:[!a&&c.isDisabled,o&&c.isHeader,Object(p.Q)(t),t.fonts.small,ru.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:h?1:0,height:f,width:jf,padding:0,margin:0}],isDisabled:[]}};!function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(Cf||(Cf={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(_f||(_f={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(Sf||(Sf={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(kf||(kf={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(xf||(xf={})),function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(wf||(wf={}));var zf=L(),Wf=function(e){return function(t){return t?t.column.isIconOnly?d.createElement("span",{className:e.accessibleLabel},t.column.name):d.createElement(d.Fragment,null,t.column.name):null}},Vf=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,n=Object(u.d)(e,["columnProps"]),o=(null==t?void 0:t.useFastIcons)?We:Ge;return d.createElement(o,Object(u.a)({},n))}},n._onRenderColumnHeaderTooltip=function(e){return d.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,o=t.onColumnClick,r=t.column;r.columnActionsMode!==Cf.disabled&&(r.onColumnClick&&r.onColumnClick(e,r),o&&o(e,r))},n._onDragStart=function(e,t,o,r){var i=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(i.borderWhileDragging),n._async.setTimeout((function(){n._root.current&&n._root.current.classList.add(i.noBorderWhileDragging)}),20))},n._onDragEnd=function(e,t){var o=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(o.borderWhileDragging),n._root.current.classList.remove(o.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,o=t.onColumnContextMenu,r=t.column;r.onColumnContextMenu&&(r.onColumnContextMenu(r,e),e.preventDefault()),o&&(o(r,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&0===e.button&&e.stopPropagation()},Ct(n),n._async=new wt(n),n._events=new vo(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.parentId,o=e.isDraggable,r=e.styles,i=e.theme,a=e.cellStyleProps,s=void 0===a?Tf:a,l=e.useFastIcons,c=void 0===l||l,p=this.props.onRenderColumnHeaderTooltip,f=void 0===p?this._onRenderColumnHeaderTooltip:p;this._classNames=zf(r,{theme:i,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Cf.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:s,transitionDurationDrag:200,transitionDurationDrop:1500});var h=this._classNames,m=c?We:Ge,g=t.onRenderFilterIcon?Po(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),v=t.onRenderHeader?Po(t.onRenderHeader,Wf(this._classNames)):Wf(this._classNames),b=t.columnActionsMode!==Cf.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),y={"aria-label":t.ariaLabel?t.ariaLabel:t.isIconOnly?t.name:void 0,"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:"".concat(n,"-").concat(t.key,"-name"),"aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleDescription()?"".concat(n,"-").concat(t.key,"-tooltip"):void 0};return d.createElement(d.Fragment,null,d.createElement("div",Object(u.a)({key:t.key,ref:this._root,role:"columnheader"},!b&&y,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":b||t.columnActionsMode===Cf.disabled?void 0:"true",className:h.root,"data-is-draggable":o,draggable:o,style:{width:t.calculatedWidth+s.cellLeftPadding+s.cellRightPadding+(t.isPadded?s.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key}),o&&d.createElement(m,{iconName:"GripperBarVertical",className:h.gripperBarVerticalStyle}),f({hostClassName:h.cellTooltip,id:"".concat(n,"-").concat(t.key,"-tooltip"),setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Cf.disabled?t.ariaLabel:"",children:d.createElement("span",Object(u.a)({id:"".concat(n,"-").concat(t.key),className:h.cellTitle,"data-is-focusable":b&&t.columnActionsMode!==Cf.disabled?"true":void 0,role:b?"button":void 0},b&&y,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Cf.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===Cf.hasDropdown?!!t.isMenuOpen:void 0}),d.createElement("span",{id:"".concat(n,"-").concat(t.key,"-name"),className:h.cellName},(t.iconName||t.iconClassName)&&d.createElement(m,{className:h.iconClassName,iconName:t.iconName}),v(this.props)),t.isFiltered&&d.createElement(m,{className:h.nearIcon,iconName:"Filter"}),(t.isSorted||t.showSortIconWhenUnsorted)&&d.createElement(m,{className:h.sortIcon,iconName:t.isSorted?t.isSortedDescending?"SortDown":"SortUp":"Sort"}),t.isGrouped&&d.createElement(m,{className:h.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Cf.hasDropdown&&!t.isIconOnly&&g({"aria-hidden":!0,columnProps:this.props,className:h.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},t.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,n=e.parentId,o=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?d.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(n,"-").concat(t.key,"-tooltip"),className:o.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(d.Component),Uf={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},Kf=function(e){var t,n=e.theme,o=e.headerClassName,r=e.iconClassName,i=e.isActionable,a=e.isEmpty,s=e.isIconVisible,l=e.isPadded,c=e.isIconOnly,d=e.cellStyleProps,f=void 0===d?Tf:d,h=e.transitionDurationDrag,m=e.transitionDurationDrop,g=n.semanticColors,v=n.palette,b=n.fonts,y=Object(p.R)(Uf,n),C={iconForegroundColor:g.bodySubtext,headerForegroundColor:g.bodyText,headerBackgroundColor:g.bodyBackground,dropdownChevronForegroundColor:v.neutralSecondary,resizerColor:v.neutralTertiaryAlt},_={color:C.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid ".concat(v.themePrimary)},k={outlineColor:"transparent"};return{root:[Bf(e),b.small,i&&[y.isActionable,{selectors:{":hover":{color:g.bodyText,background:g.listHeaderBackgroundHovered},":active":{background:g.listHeaderBackgroundPressed}}}],a&&[y.isEmpty,{textOverflow:"clip"}],s&&y.isIconVisible,l&&{paddingRight:f.cellExtraRightPadding+f.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},o],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:v.neutralTertiary,left:1},nearIcon:[y.nearIcon,_],sortIcon:[_,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:C.iconForegroundColor,opacity:1},r],filterChevron:[y.filterChevron,{color:C.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:b.small.fontSize}],cellTitle:[y.cellTitle,Object(p.Q)(n),Object(u.a)({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(f.cellRightPadding,"px 0 ").concat(f.cellLeftPadding,"px")},c?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:p.l.semibold,fontSize:b.medium.fontSize},c&&{selectors:(t={},t[".".concat(y.nearIcon)]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:p.ab,borderWhileDragging:S,noBorderWhileDragging:[k,{transition:"outline ".concat(h,"ms ease")}],borderAfterDropping:S,noBorderAfterDropping:[k,{transition:"outline ".concat(m,"ms ease")}]}},Gf=k(Vf,Kf,void 0,{scope:"DetailsColumn"}),qf={label:K,audio:G,video:q,ol:Y,li:Q,a:X,button:Z,input:$,textarea:J,select:ee,option:te,table:ne,tr:oe,th:re,td:ie,colGroup:ae,col:se,form:le,iframe:ce,img:ue};function Yf(e,t,n){return fe(t,e&&qf[e]||U,n)}var Qf,Xf,Zf="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(Qf||(Qf={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Xf||(Xf={}));var $f=L(),Jf=d.memo((function(e){return d.createElement(iu,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function eh(e){return d.createElement(iu,{checked:e.checked})}function th(e){return d.createElement(Jf,{theme:e.theme,checked:e.checked})}var nh,oh=k((function(e){var t=e.isVisible,n=void 0!==t&&t,o=e.canSelect,r=void 0!==o&&o,i=e.anySelected,a=void 0!==i&&i,s=e.selected,l=void 0!==s&&s,c=e.selectionMode,p=e.isHeader,f=void 0!==p&&p,h=e.className,m=(e.checkClassName,e.styles),g=e.theme,v=e.compact,b=e.onRenderDetailsCheckbox,y=e.useFastIcons,C=void 0===y||y,_=Object(u.d)(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),S=C?th:eh,k=b?Po(b,S):S,x=$f(m,{theme:g,canSelect:r,selected:l,anySelected:a,className:h,isHeader:f,isVisible:n,compact:v}),w={checked:l,theme:g},I=Yf("div",_,["aria-label","aria-labelledby","aria-describedby"]),E=c===Qf.single?"radio":"checkbox";return r?d.createElement("div",Object(u.a)({},_,{role:E,className:Me(x.root,x.check),"aria-checked":l,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),k(w)):d.createElement("div",Object(u.a)({},I,{className:Me(x.root,x.check)}))}),Hf,void 0,{scope:"DetailsRowCheck"},!0),rh=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var o=this;if(!this._initialized){this._events=new vo(this);var r=Object(O.a)();r&&(this._events.on(r.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(r,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,d,p,f,h,m=n.key,g=void 0===m?"".concat(++this._lastId):m,v=[];if(n&&e){var b=n.eventMap,y=n.context,C=n.updateDropState,_={root:e,options:n,key:g};if(p=this._isDraggable(_),f=this._isDroppable(_),(p||f)&&b)for(var S=0,k=b;S<k.length;S++){var x=k[S],w={callback:x.callback.bind(null,y),eventName:x.eventName};v.push(w),this._events.on(e,w.eventName,w.callback)}f&&(a=function(e){e.isHandled||(e.isHandled=!0,o._dragEnterCounts[g]--,0===o._dragEnterCounts[g]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,o._dragEnterCounts[g]++,1===o._dragEnterCounts[g]&&C(!0,e))},l=function(e){o._dragEnterCounts[g]=0,C(!1,e)},c=function(e){o._dragEnterCounts[g]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},u=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),p&&(d=this._onMouseDown.bind(this,_),l=this._onDragEnd.bind(this,_),i=function(t){var r=n;r&&r.onDragStart&&r.onDragStart(r.context.data,r.context.index,o._selection.getSelection(),t),o._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",d),t.on(e,"dragend",l)),h={target:_,dispose:function(){if(o._activeTargets[g]===h&&delete o._activeTargets[g],e){for(var n=0,r=v;n<r.length;n++){var m=r[n];o._events.off(e,m.eventName,m.callback)}f&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",l))}}},this._activeTargets[g]=h}return{key:g,dispose:function(){h&&h.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var o=n[t],r=this._activeTargets[o];r.target.root&&(this._events.off(r.target.root,"mousemove"),this._events.off(r.target.root,"mouseleave"))}this._dragData.dropTarget&&(vo.raise(this._dragData.dropTarget.root,"dragleave"),vo.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=Object(O.a)();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,o=void 0===n?1:n;if(this._dragData&&1!==o)this._onMouseUp(t);else{var r=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(r,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(vo.raise(this._dragData.dropTarget.root,"dragleave"),vo.raise(r,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(vo.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,o=Object.keys(this._activeTargets);n<o.length;n++){var r=o[n],i=this._activeTargets[r];i.target.root&&(this._events.on(i.target.root,"mousemove",this._onMouseMove.bind(this,i.target)),this._events.on(i.target.root,"mouseleave",this._onMouseLeave.bind(this,i.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!(!t.canDrag||!t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,n))},e}();!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(nh||(nh={}));var ih=L(),ah=[],sh=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=d.createRef(),n._rootComponent=d.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var o=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var r=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,i=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=r,o.onColumnDrop){var a={draggedIndex:n._draggedColumnIndex,targetIndex:r};o.onColumnDrop(a)}else o.handleColumnReorder&&o.handleColumnReorder(n._draggedColumnIndex,r)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._computeColumnIndexOffset=function(e){var t=1;return e&&(t+=1),n.props.groupNestingDepth&&n.props.groupNestingDepth>0&&(t+=1),t},n._updateDragInfo=function(e,t){var o=n._getColumnReorderProps(),r=e.itemIndex;if(r>=0)n._draggedColumnIndex=r-n._computeColumnIndexOffset(!n._isCheckboxColumnHidden()),n._getDropHintPositions(),o.onColumnDragStart&&o.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},o.onColumnDragEnd)){var i=n._isEventOnHeader(t);o.onColumnDragEnd({dropLocation:i},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,o=void 0===t?ah:t,r=n._getColumnReorderProps(),i=0,a=0,s=r.frozenColumnCountFromStart||0,l=r.frozenColumnCountFromEnd||0,c=s;c<o.length-l+1;c++)if(n._rootElement.current){var u=n._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;n._dropHintDetails[c-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,c===o.length-l&&(n._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=P(n.props.theme);if(n._rootElement.current){var o=e-n._rootElement.current.getBoundingClientRect().left,r=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&lh(t,o,n._dropHintDetails[r].startX,n._dropHintDetails[r].endX))return;var i=n.props.columns,a=void 0===i?ah:i,s=n._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,u=l,d=a.length-c,p=-1;if(ch(t,o,n._dropHintDetails[u].endX)?p=u:uh(t,o,n._dropHintDetails[d].startX)?p=d:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[r+1]&&lh(t,o,n._dropHintDetails[r+1].startX,n._dropHintDetails[r+1].endX)?p=r+1:n._dropHintDetails[r-1]&&lh(t,o,n._dropHintDetails[r-1].startX,n._dropHintDetails[r-1].endX)&&(p=r-1)),-1===p)for(var f=l,h=d;f<h;){var m=Math.ceil((h+f)/2);if(lh(t,o,n._dropHintDetails[m].startX,n._dropHintDetails[m].endX)){p=m;break}ch(t,o,n._dropHintDetails[m].originX)?h=m:uh(t,o,n._dropHintDetails[m].originX)&&(f=m)}p===n._draggedColumnIndex||p===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():r!==p&&p>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[p].dropHintElementRef,"inline-block"),n._currentDropHintIndex=p)}},n._renderColumnSizer=function(e){var t,o=e.columnIndex,r=n.props.columns,i=void 0===r?ah:r,a=i[o],s=n.state.columnResizeDetails,l=n._classNames;return a.isResizable?d.createElement("div",{key:"".concat(a.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:dh,"data-sizer-index":o,onBlur:n._onSizerBlur,className:Me(l.cellSizer,o<i.length-1?l.cellSizerStart:l.cellSizerEnd,(t={},t[l.cellIsResizing]=s&&s.columnIndex===o,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,o)}):null},n._onRenderColumnHeaderTooltip=function(e){return d.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),o=Number(t),r=n.props.columns,i=void 0===r?ah:r;null!==t&&0===e.button&&(n.setState({columnResizeDetails:{columnIndex:o,columnMinWidth:i[o].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,o=t.columnResizeDetails,r=t.isSizing;o&&!r&&e.clientX!==o.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,o=t.columnResizeDetails,r=t.isSizing,i=n.props,a=i.columns,s=void 0===a?ah:a,l=i.onColumnResized,c=e.target.getAttribute("data-sizer-index");if(c&&!r){var d=Number(c);if(o){var p=void 0;e.which===E.enter?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===E.left?p=P(n.props.theme)?1:-1:e.which===E.right&&(p=P(n.props.theme)?-1:1),p&&(e.shiftKey||(p*=10),n.setState({columnResizeDetails:Object(u.a)(Object(u.a)({},o),{columnMinWidth:o.columnMinWidth+p})}),l&&l(s[d],o.columnMinWidth+p,d),e.preventDefault(),e.stopPropagation())}else e.which===E.enter&&(n.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:s[d].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,o=n.props,r=o.onColumnIsSizingChanged,i=o.onColumnResized,a=o.columns,s=void 0===a?ah:a,l=n.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&r&&r(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;P(n.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else n._onSizerMouseUp(e)},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,o=t.columns,r=void 0===o?ah:o,i=t.onColumnIsSizingChanged,a=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(r[a.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},Ct(n),n._events=new vo(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=bn("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new rh({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,Zf,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?ah:t,o=this.props.columns,r=void 0===o?ah:o;n[this._onDropIndexInfo.sourceIndex].key===r[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,o=void 0===n?ah:n,r=t.ariaLabel,i=t.ariaLabelForToggleAllGroupsButton,a=t.ariaLabelForSelectAllCheckbox,s=t.selectAllVisibility,l=t.ariaLabelForSelectionColumn,c=t.indentWidth,u=t.onColumnClick,p=t.onColumnContextMenu,f=t.onRenderColumnHeaderTooltip,h=void 0===f?this._onRenderColumnHeaderTooltip:f,m=t.styles,g=t.selectionMode,v=t.theme,b=t.onRenderDetailsCheckbox,y=t.groupNestingDepth,C=t.useFastIcons,_=t.checkboxVisibility,S=t.className,k=this.state,x=k.isAllSelected,w=k.columnResizeDetails,I=k.isSizing,E=k.isAllCollapsed,O=s!==nh.none,T=s===nh.hidden,D=_===xf.always,R=this._getColumnReorderProps(),M=R&&R.frozenColumnCountFromStart?R.frozenColumnCountFromStart:0,N=R&&R.frozenColumnCountFromEnd?R.frozenColumnCountFromEnd:0;this._classNames=ih(m,{theme:v,isAllSelected:x,isSelectAllHidden:s===nh.hidden,isResizingColumn:!!w&&I,isSizing:I,isAllCollapsed:E,isCheckboxHidden:T,className:S});var F=this._classNames,B=C?We:Ge,L=y>0,A=L&&this.props.collapseAllVisibility===wf.visible,j=this._computeColumnIndexOffset(O),H=P(v);return d.createElement(zn,{role:"row","aria-label":r,className:F.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:Ot.horizontal},O?[d.createElement("div",{key:"__checkbox",className:F.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:T?void 0:this._onSelectAllClicked,role:"columnheader"},h({hostClassName:F.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:a,children:d.createElement(oh,{id:"".concat(this._id,"-check"),"aria-label":g===Qf.multiple?a:l,"data-is-focusable":!T||void 0,isHeader:!0,selected:x,anySelected:!1,canSelect:!T,className:F.check,onRenderDetailsCheckbox:b,useFastIcons:C,isVisible:D})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:a&&!T?d.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:F.accessibleLabel,"aria-hidden":!0},a):l&&T?d.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:F.accessibleLabel,"aria-hidden":!0},l):null]:null,A?d.createElement("div",{className:F.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!E,role:"columnheader"},d.createElement(B,{className:F.collapseButton,iconName:H?"ChevronLeftMed":"ChevronRightMed"}),d.createElement("span",{className:F.accessibleLabel},i)):L?d.createElement("div",{className:F.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,d.createElement(Mf,{indentWidth:c,role:"gridcell",count:y-1}),o.map((function(t,n){var r=!!R&&(n>=M&&n<o.length-N);return[R&&(r||n===o.length-N)&&e._renderDropHint(n),d.createElement(Gf,{column:t,styles:t.styles,key:t.key,columnIndex:j+n,parentId:e._id,isDraggable:r,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:u,onColumnContextMenu:p,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]})),R&&0===N&&this._renderDropHint(o.length),I&&d.createElement(Bi,null,d.createElement("div",{className:F.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&Object(u.a)(Object(u.a)({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===Qf.none||n===xf.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return Sf.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?ah:t)[e],o=n.onRenderDivider;return o?o({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?We:Ge;return d.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e)},d.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},d.createElement(n,{iconName:"CircleShapeSolid"})),d.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,o=n.onColumnAutoResized,r=n.columns;o&&o((void 0===r?ah:r)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:nh.visible,collapseAllVisibility:wf.visible,useFastIcons:!0},t}(d.Component);function lh(e,t,n,o){return e?t<=n&&t>=o:t>=n&&t<=o}function ch(e,t,n){return e?t>=n:t<=n}function uh(e,t,n){return e?t<=n:t>=n}function dh(e){e.stopPropagation()}var ph=k(sh,Lf,void 0,{scope:"DetailsHeader"}),fh=function(e){var t=e.columns,n=e.rowClassNames,o=e.cellStyleProps,r=void 0===o?Tf:o,i=e.item,a=e.itemIndex,s=e.isSelected,l=e.onRenderItemColumn,c=e.getCellValueKey,u=e.onRenderField,p=e.cellsByColumn,f=e.enableUpdateAnimations,h=e.rowHeaderId,m=d.useRef(),g=m.current||(m.current={}),v=d.useCallback((function(e){var t=e.column,o=e.cellValueKey,i=e.className,a=e.onRender,s=e.item,l=e.itemIndex,c=void 0===t.calculatedWidth?"auto":t.calculatedWidth+r.cellLeftPadding+r.cellRightPadding+(t.isPadded?r.cellExtraRightPadding:0),u="".concat(t.key).concat(void 0!==o?"-".concat(o):"");return d.createElement("div",{key:u,id:t.isRowHeader?h:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:Me(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,i),style:{width:c},"data-automationid":"DetailsRowCell","data-automation-key":t.key},a(s,l,t))}),[n,r,h]);return d.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,o=void 0===t?c:t,r=p&&e.key in p&&function(){return p[e.key]}||e.onRender||l||hh,d=v;e.onRenderField&&(d=Po(e.onRenderField,d)),u&&(d=Po(u,d));var h=g[e.key],m=f&&o?o(i,a,e):void 0,b=!1;return void 0!==m&&void 0!==h&&m!==h&&(b=!0),g[e.key]=m,d({item:i,itemIndex:a,isSelected:s,column:e,cellValueKey:m,className:b?n.cellAnimation:void 0,onRender:r})})))};function hh(e,t,n){return e&&n?function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return null==n&&(n=""),"boolean"==typeof n?n.toString():n}(e,n):null}var mh=L(),gh=[],vh=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._cellMeasurer=d.createRef(),n._focusZone=d.createRef(),n._onSelectionChanged=function(){var e=bh(n.props);uo(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var o=n.state.isDropping,r=n.props,i=r.dragDropEvents,a=r.item;e?i.onDragEnter&&(n._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),o!==e&&n.setState({isDropping:e})},Ct(n),n._events=new vo(n),n.state={selectionState:bh(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){return Object(u.a)(Object(u.a)({},t),{selectionState:bh(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,o=e.item,r=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,Zf,this._onSelectionChanged),r&&o&&(this._onDidMountCalled=!0,r(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,o=n.item,r=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}o&&r&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,r(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=bh(e);return this.state.selectionState.isSelected!==n.isSelected||!uo(this.props,e)}return!0},t.prototype.render=function(){var e,t=this.props,n=t.className,o=t.columns,r=void 0===o?gh:o,i=t.dragDropEvents,a=t.item,s=t.itemIndex,l=t.id,c=t.flatIndexOffset,p=void 0===c?2:c,f=t.onRenderCheck,h=void 0===f?this._onRenderCheck:f,m=t.onRenderDetailsCheckbox,g=t.onRenderItemColumn,v=t.onRenderField,b=t.getCellValueKey,y=t.selectionMode,C=t.checkboxVisibility,_=t.getRowAriaLabel,S=t.getRowAriaDescription,k=t.getRowAriaDescribedBy,x=t.isGridRow,w=t.checkButtonAriaLabel,I=t.checkboxCellClassName,E=t.rowFieldsAs,O=t.selection,T=t.indentWidth,D=t.enableUpdateAnimations,P=t.compact,R=t.theme,M=t.styles,N=t.cellsByColumn,F=t.groupNestingDepth,B=t.useFastIcons,L=void 0===B||B,A=t.cellStyleProps,j=t.group,H=t.focusZoneProps,z=t.disabled,W=void 0!==z&&z,V=this.state,U=V.columnMeasureInfo,K=V.isDropping,G=this.state.selectionState,q=G.isSelected,Y=void 0!==q&&q,Q=G.isSelectionModal,X=void 0!==Q&&Q,Z=i?!(!i.canDrag||!i.canDrag(a)):void 0,$=K?this._droppingClassNames||"is-dropping":"",J=_?_(a):void 0,ee=S?S(a):void 0,te=k?k(a):void 0,ne=!!O&&O.canSelectItem(a,s)&&!W,oe=y===Qf.multiple,re=y!==Qf.none&&C!==xf.hidden,ie=y===Qf.none?void 0:Y,ae=j?s-j.startIndex+1:void 0,se=j?j.count:void 0,le=H?H.direction:Ot.horizontal;this._classNames=Object(u.a)(Object(u.a)({},this._classNames),mh(M,{theme:R,isSelected:Y,canSelect:!oe,anySelected:X,checkboxCellClassName:I,droppingClassName:$,className:n,compact:P,enableUpdateAnimations:D,cellStyleProps:A,disabled:W}));var ce={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};uo(this._rowClassNames||{},ce)||(this._rowClassNames=ce);var ue=E?ps(E,fh):fh,de=d.createElement(ue,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),cellsByColumn:N,columns:r,item:a,itemIndex:s,isSelected:Y,columnStartIndex:(re?1:0)+(F?1:0),onRenderItemColumn:g,onRenderField:v,getCellValueKey:b,enableUpdateAnimations:D,cellStyleProps:A}),he=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=bn("DetailsRow-description");var me=r.some((function(e){return!!e.isRowHeader})),ge="".concat(l,"-checkbox")+(me?" ".concat(l,"-header"):""),ve=x?{}:{"aria-level":F&&F+1||void 0,"aria-posinset":ae,"aria-setsize":se};return d.createElement(zn,Object(u.a)({"data-is-focusable":!0},fe(this.props,pe),"boolean"==typeof Z?{"data-is-draggable":Z,draggable:Z}:{},H,ve,{direction:le,elementRef:this._root,componentRef:this._focusZone,role:he,"aria-label":J,"aria-disabled":W||void 0,"aria-describedby":ee?this._ariaRowDescriptionId:te,className:this._classNames.root,"data-selection-index":s,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(e=this.props["data-selection-disabled"])&&void 0!==e?e:W||void 0,"data-item-index":s,"aria-rowindex":void 0===ae?s+p:void 0,"data-automationid":"DetailsRow","aria-selected":ie,allowFocusRoot:!0}),ee?d.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},ee):null,re&&d.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},h({id:l?"".concat(l,"-checkbox"):void 0,selected:Y,selectionMode:y,anySelected:X,"aria-label":w,"aria-labelledby":l?ge:void 0,canSelect:ne,compact:P,className:this._classNames.check,theme:R,isVisible:C===xf.always,onRenderDetailsCheckbox:m,useFastIcons:L})),d.createElement(Mf,{indentWidth:T,role:"gridcell",count:0===F?-1:F}),a&&de,U&&d.createElement("span",{role:"presentation",className:Me(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},d.createElement(ue,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),columns:[U.column],item:a,itemIndex:s,columnStartIndex:(re?1:0)+(F?1:0)+r.length,onRenderItemColumn:g,getCellValueKey:b})))},t.prototype.measureCell=function(e,t){var n=this.props.columns,o=void 0===n?gh:n,r=Object(u.a)({},o[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return d.createElement(oh,Object(u.a)({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:o.canDrag,canDrop:o.canDrop,onDragStart:o.onDragStart,updateDropState:this._updateDroppingState,onDrop:o.onDrop,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},t}(d.Component);function bh(e){var t,n=e.itemIndex,o=e.selection;return{isSelected:!!(null==o?void 0:o.isIndexSelected(n)),isSelectionModal:!!(null===(t=null==o?void 0:o.isModal)||void 0===t?void 0:t.call(o))}}var yh=k(vh,Rf,void 0,{scope:"DetailsRow"}),Ch=function(e){function t(t){var n=e.call(this,t)||this;n._root=d.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||Xt(document.activeElement,t)){if(Xt(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,"data-selection-invoke")){n.ignoreNextFocus();break}t=qt(t)}}else n.ignoreNextFocus()},n._onFocus=function(e){var t=e.target,o=n.props.selection,r=n._isCtrlPressed||n._isMetaPressed,i=n._getSelectionMode();if(n._shouldHandleFocus&&i!==Qf.none){var a=n._hasAttribute(t,"data-selection-toggle"),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);void 0===n._getItemSpan(s)&&(r?(o.setIndexSelected(l,o.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&o.setModal&&(o.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",l))}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=n.props.toggleWithoutModifierPressed,o=e.target,r=n._findItemRoot(o);if(!n._isSelectionDisabled(o))for(;o!==n._root.current&&!n._hasAttribute(o,"data-selection-all-toggle");){if(r){if(n._hasAttribute(o,"data-selection-toggle"))break;if(n._hasAttribute(o,"data-selection-invoke"))break;if(!(o!==r&&!n._shouldAutoSelect(o)||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed||t)){n._onInvokeMouseDown(e,n._getItemIndex(r),n._getItemSpan(r));break}if(n.props.disableAutoSelectOnInputElements&&("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName))return}o=qt(o)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,o=void 0!==t&&t;n._updateModifiers(e);for(var r=e.target,i=n._findItemRoot(r),a=n._isSelectionDisabled(r);r!==n._root.current;){if(n._hasAttribute(r,"data-selection-all-toggle")){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i),l=n._getItemSpan(i);if(n._hasAttribute(r,"data-selection-toggle")){a||(n._isShiftPressed?n._onItemSurfaceClick("click",s,l):n._onToggleClick(e,s,l));break}if(n._isTouch&&o&&n._hasAttribute(r,"data-selection-touch-invoke")||n._hasAttribute(r,"data-selection-invoke")){void 0===l&&n._onInvokeClick(e,s);break}if(r===i){a||n._onItemSurfaceClick("click",s,l);break}if("A"===r.tagName||"BUTTON"===r.tagName||"INPUT"===r.tagName)return}r=qt(r)}},n._onContextMenu=function(e){var t=e.target,o=n.props,r=o.onItemContextMenu,i=o.selection;if(r){var a=n._findItemRoot(t);if(a){var s=n._getItemIndex(a);n._onInvokeMouseDown(e,s),r(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,o=n.props.onItemInvoked,r=n._findItemRoot(t);if(r&&o&&!n._isInputElement(t)){for(var i=n._getItemIndex(r);t!==n._root.current&&!n._hasAttribute(t,"data-selection-toggle")&&!n._hasAttribute(t,"data-selection-invoke");){if(t===r){n._onInvokeClick(e,i);break}t=qt(t)}t=qt(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,o=n._isSelectionDisabled(t),r=n.props,i=r.selection,a=r.selectionClearedOnEscapePress,s=e.which===E.a&&(n._isCtrlPressed||n._isMetaPressed),l=e.which===E.escape;if(!n._isInputElement(t)){var c=n._getSelectionMode();if(s&&c===Qf.multiple&&!i.isAllSelected())return o||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&l&&i.getSelectedCount()>0)return o||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var u=n._findItemRoot(t);if(u)for(var d=n._getItemIndex(u),p=n._getItemSpan(u);t!==n._root.current&&!n._hasAttribute(t,"data-selection-toggle");){if(n._shouldAutoSelect(t)){o||void 0!==p||n._onInvokeMouseDown(e,d,p);break}if(!(e.which!==E.enter&&e.which!==E.space||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===u){if(e.which===E.enter)return void(void 0===p&&(n._onInvokeClick(e,d),e.preventDefault()));if(e.which===E.space)return o||n._onToggleClick(e,d,p),void e.preventDefault();break}t=qt(t)}}},n._events=new vo(n),n._async=new wt(n),Ct(n);var o=n.props.selection,r=o.isModal&&o.isModal();return n.state={isModal:r},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return Object(u.a)(Object(u.a)({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=Object(N.a)(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return d.createElement("div",{className:Me("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,d.createElement(Jn,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===Qf.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=qt(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===Qf.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t,n){var o=this.props.selection,r=this._getSelectionMode();if(o.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==n?!o.isRangeSelected(t,n):!o.isIndexSelected(t))&&o.setModal&&(o.setModal(!0),this._setIsTouch(!1)),r===Qf.multiple)void 0!==n?o.toggleRangeSelected(t,n):o.toggleIndexSelected(t);else{if(r!==Qf.single)return void o.setChangeEvents(!0);if(void 0===n||1===n){var i=o.isIndexSelected(t),a=o.isModal&&o.isModal();o.setAllSelected(!1),o.setIndexSelected(t,!i,!0),a&&o.setModal&&o.setModal(!0)}}o.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,o=n.selection,r=n.onItemInvoked;r&&(r(o.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t,n){var o,r=this.props,i=r.selection,a=r.toggleWithoutModifierPressed,s=this._isCtrlPressed||this._isMetaPressed,l=this._getSelectionMode();l===Qf.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==n?null===(o=i.selectToRange)||void 0===o||o.call(i,t,n,!s):i.selectToIndex(t,!s):"click"===e&&(s||a)?void 0!==n?i.toggleRangeSelected(t,n):i.toggleIndexSelected(t):this._clearAndSelectIndex(t,n):l===Qf.single&&this._clearAndSelectIndex(t,n)},t.prototype._onInvokeMouseDown=function(e,t,n){var o=this.props.selection;if(void 0!==n){if(o.isRangeSelected(t,n))return}else if(o.isIndexSelected(t))return;this._clearAndSelectIndex(t,n)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=Pn(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e,t){var n,o=this.props,r=o.selection,i=o.selectionClearedOnSurfaceClick,a=void 0===i||i;if(!((void 0===t||1===t)&&1===r.getSelectedCount()&&r.isIndexSelected(e))&&a){var s=r.isModal&&r.isModal();r.setChangeEvents(!1),r.setAllSelected(!1),void 0!==t?null===(n=r.setRangeSelected)||void 0===n||n.call(r,e,t,!0,!0):r.setIndexSelected(e,!0,!0),(s||this.props.enterModalOnTouch&&this._isTouch)&&(r.setModal&&r.setModal(!0),this._isTouch&&this._setIsTouch(!1)),r.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===E.tab},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute("data-selection-index"),o=Number(n);if(null!==n&&o>=0&&o<t.getItems().length)break;e=qt(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){var t,n=parseInt(null!==(t=e.getAttribute("data-selection-index"))&&void 0!==t?t:"",10);return isNaN(n)?-1:n},t.prototype._getItemSpan=function(e){var t,n=parseInt(null!==(t=e.getAttribute("data-selection-span"))&&void 0!==t?t:"",10);return isNaN(n)?void 0:n},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;){var o=e.getAttribute(t);if("false"===o){n=!1;break}n="true"===o,e=qt(e)}return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},t.prototype._isNonHandledClick=function(e){var t=Object(O.a)();if(t&&e)for(;e&&e!==t.documentElement;){if(sn(e)||e.hasAttribute("data-selection-index"))return!1;e=qt(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:Qf.none:t},t.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:Qf.multiple,selectionClearedOnEscapePress:!0},t}(d.Component),_h=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},o=n.onSelectionChanged,r=n.onItemsChanged,i=n.getKey,a=n.canSelectItem,s=void 0===a?function(){return!0}:a,l=n.items,c=n.selectionMode,u=void 0===c?Qf.multiple:c;this.mode=u,this._getKey=i||Sh,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=o,this._onItemsChanged=r,this._canSelectItem=s,this._keyToIndexMap={},this._isModal=!1,this.setItems(l||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"==typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"==typeof n||n?"".concat(n):""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},o={},r=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=!1,a=0;a<e.length;a++){if(u=e[a])(g=this.getKey(u,a))&&(i||g in this._keyToIndexMap&&this._keyToIndexMap[g]===a||(i=!0),n[g]=a);o[a]=u&&!this.canSelectItem(u),o[a]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var u,d=Number(c),p=(u=this._items[d])?this.getKey(u,Number(d)):void 0,f=p?n[p]:d;void 0===f?r=!0:(s[f]=!0,l++,r=r||f!==d)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(r=!0),!i)for(var h=0,m=Object.keys(this._keyToIndexMap);h<m.length;h++){var g;if(!((g=m[h])in n)){i=!0;break}}this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=o,this._items=e,this._selectedItems=null,r&&this._updateCount(),i&&(vo.raise(this,"items-change"),this._onItemsChanged&&this._onItemsChanged()),r&&this._change(),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.getItemIndex=function(e){var t=this._keyToIndexMap[e];return null!=t?t:-1},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,o=e;o<n;o++)if(!this.isIndexSelected(o))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===Qf.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===Qf.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var o=this._keyToIndexMap[e];o>=0&&this.setIndexSelected(o,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==Qf.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var o=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===Qf.single&&this._setAllSelected(!1,!0),o&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!o&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,n,o){if(this.mode!==Qf.none&&(e=Math.min(Math.max(0,e),this._items.length-1),t=Math.min(Math.max(0,t),this._items.length-e),!(e<0||e>=this._items.length||0===t))){this.setChangeEvents(!1);for(var r=e,i=e+t-1,a=(this._anchoredIndex||0)>=i?r:i;r<=i;r++)this.setIndexSelected(r,n,!!o&&r===a);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,n){if(this.mode!==Qf.none)if(this.mode!==Qf.single){var o=this._anchoredIndex||0,r=Math.min(e,o),i=Math.max(e+t-1,o);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);r<=i;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}else 1===t&&this.setIndexSelected(e,!0,!0)},e.prototype.selectToIndex=function(e,t){if(this.mode!==Qf.none)if(this.mode!==Qf.single){var n=this._anchoredIndex||0,o=Math.min(e,n),r=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);o<=r;o++)this.setIndexSelected(o,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==Qf.none){var n=this.isRangeSelected(e,t),o=e+t;if(!(this.mode===Qf.single&&t>1)){this.setChangeEvents(!1);for(var r=e;r<o;r++)this.setIndexSelected(r,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===Qf.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,vo.raise(this,Zf),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function Sh(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var kh,xh,wh={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},Ih="cubic-bezier(0.445, 0.050, 0.550, 0.950)",Eh=function(e){var t,n,o=e.theme,r=e.className,i=e.compact,a=o.palette,s=Object(p.R)(wh,o);return{root:[s.root,o.fonts.small,{position:"relative",selectors:(t={},t[".".concat(s.listCell)]={minHeight:38},t)},i&&[s.compact,{selectors:(n={},n[".".concat(s.listCell)]={minHeight:32},n)}],r],group:[s.group,{transition:"background-color ".concat(p.c.durationValue2," ").concat(Ih)}],groupIsDropping:{backgroundColor:a.neutralLight}}},Oh={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},Th="cubic-bezier(0.075, 0.820, 0.165, 1.000)",Dh="cubic-bezier(0.390, 0.575, 0.565, 1.000)",Ph="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(kh||(kh={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(xh||(xh={}));var Rh=L(),Mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,o=e.ariaLabel,r=e.ariaLive,i=e.styles,a=e.label,s=e.theme,l=e.className,c=e.labelPosition,p=o,f=fe(this.props,pe,["size"]),h=n;void 0===h&&void 0!==t&&(h=t===xh.large?kh.large:kh.medium);var m=Rh(i,{theme:s,size:h,className:l,labelPosition:c});return d.createElement("div",Object(u.a)({},f,{className:m.root}),d.createElement("div",{className:m.circle}),a&&d.createElement("div",{className:m.label},a),p&&d.createElement("div",{role:"status","aria-live":r},d.createElement(Tt,null,d.createElement("div",{className:m.screenReaderText},p))))},t.defaultProps={size:kh.medium,ariaLive:"polite",labelPosition:"bottom"},t}(d.Component),Nh={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Fh=Object(f.c)((function(){return Object(p.bb)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),Bh=k(Mh,(function(e){var t,n=e.theme,o=e.size,r=e.className,i=e.labelPosition,a=n.palette,s=Object(p.R)(Nh,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},r],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Fh(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[p.m]=Object(u.a)({borderTopColor:"Highlight"},Object(p.S)()),t)},o===kh.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===kh.small&&["ms-Spinner--small",{width:16,height:16}],o===kh.medium&&["ms-Spinner--medium",{width:20,height:20}],o===kh.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:p.ab}}),void 0,{scope:"Spinner"}),Lh=L(),Ah=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,o=e.onToggleCollapse,r=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&r&&r(t);n.setState({isCollapsed:i,isLoadingVisible:a}),o&&o(t)},n._onKeyUp=function(e){var t=n.props,o=t.group,r=t.onGroupHeaderKeyUp;if(r&&r(e,o),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===M(E.right,n.props.theme);(!n.state.isCollapsed&&e.which===M(E.left,n.props.theme)||i)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onHeaderClick=function(){var e=n.props,t=e.group,o=e.onGroupHeaderClick;o&&o(t)},n._onRenderTitle=function(e){if(!e.group)return null;var t=e.onRenderName?Po(e.onRenderName,n._onRenderName):n._onRenderName;return d.createElement("div",{className:n._classNames.title,id:n._id,onClick:n._onHeaderClick,role:"gridcell","aria-colspan":n.props.ariaColSpan,"data-selection-invoke":!0},t(e))},n._onRenderName=function(e){var t=e.group;return t?d.createElement(d.Fragment,null,d.createElement("span",null,t.name),d.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=bn("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,o=e.isGroupLoading,r=!n&&o&&o(e.group);return Object(u.a)(Object(u.a)({},t),{isCollapsed:n||!1,isLoadingVisible:r||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,o=void 0===n?0:n,r=e.viewport,i=e.selectionMode,a=e.loadingText,s=e.isSelected,l=void 0!==s&&s,c=e.selected,p=void 0!==c&&c,f=e.indentWidth,h=e.onRenderGroupHeaderCheckbox,m=e.isCollapsedGroupSelectVisible,g=void 0===m||m,v=e.expandButtonProps,b=e.expandButtonIcon,y=e.selectAllButtonProps,C=e.theme,_=e.styles,S=e.className,k=e.compact,x=e.ariaLevel,w=e.ariaPosInSet,I=e.ariaSetSize,E=e.ariaRowIndex,O=e.useFastIcons,T=this.props.onRenderTitle?Po(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,D=O?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,R=h?Po(h,D):D,M=this.state,N=M.isCollapsed,F=M.isLoadingVisible,B=i===Qf.multiple,L=B&&(g||!(t&&t.isCollapsed)),A=p||l,j=P(C);return this._classNames=Lh(_,{theme:C,className:S,selected:A,isCollapsed:N,compact:k}),t?d.createElement("div",{className:this._classNames.root,style:r?{minWidth:r.width}:{},role:"row","aria-level":x,"aria-setsize":I,"aria-posinset":w,"aria-rowindex":E,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":B?A:void 0,"data-selection-index":t.startIndex,"data-selection-span":t.count},d.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},L?d.createElement("div",{role:"gridcell"},d.createElement("button",Object(u.a)({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":A,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},y),R({checked:A,theme:C},R))):i!==Qf.none&&d.createElement(Mf,{indentWidth:jf,count:1}),d.createElement(Mf,{indentWidth:f,count:o}),d.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},d.createElement(Ge,{iconName:"Tag"})),d.createElement("div",{role:"gridcell"},d.createElement("button",Object(u.a)({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},v),d.createElement(Ge,{className:this._classNames.expandIsCollapsed,iconName:b||(j?"ChevronLeftMed":"ChevronRightMed")}))),T(this.props),F&&d.createElement(Bh,{label:a}))):null},t.prototype._defaultCheckboxRender=function(e){return d.createElement(iu,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return d.createElement(jh,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(d.Component),jh=d.memo((function(e){return d.createElement(iu,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),Hh=k(Ah,(function(e){var t,n,o,r,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,u=e.compact,d=Tf.cellLeftPadding,f=u?40:48,h=a.semanticColors,m=a.palette,g=a.fonts,v=Object(p.R)(Oh,a),b=[Object(p.Q)(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[v.root,Object(p.Q)(a),a.fonts.medium,{borderBottom:"1px solid ".concat(h.listBackground),cursor:"default",userSelect:"none",selectors:(t={":hover":{background:h.listItemBackgroundHovered,color:h.actionLinkHovered}},t["&:hover .".concat(v.check)]={opacity:1},t[".".concat(Gn.a," &:focus .").concat(v.check)]={opacity:1},t[":global(.".concat(v.group,".").concat(v.isDropping,")")]={selectors:(n={},n["& > .".concat(v.root," .").concat(v.dropIcon)]={transition:"transform ".concat(p.c.durationValue4," ").concat(Th," ")+"opacity ".concat(p.c.durationValue1," ").concat(Dh),transitionDelay:p.c.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(v.check)]={opacity:0},n)},t)},l&&[v.isSelected,{background:h.listItemBackgroundChecked,selectors:(o={":hover":{background:h.listItemBackgroundCheckedHovered}},o["".concat(v.check)]={opacity:1},o)}],u&&[v.compact,{border:"none"}],s],groupHeaderContainer:[{display:"flex",alignItems:"center",height:f}],headerCount:[{padding:"0px 4px"}],check:[v.check,b,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:jf,height:f,selectors:(r={},r[".".concat(Gn.a," &:focus")]={opacity:1},r)}],expand:[v.expand,b,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,width:36,height:f,color:l?m.neutralPrimary:m.neutralSecondary,selectors:{":hover":{backgroundColor:l?m.neutralQuaternary:m.neutralLight},":active":{backgroundColor:l?m.neutralTertiaryAlt:m.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[v.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:P(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[v.title,{paddingLeft:d,fontSize:u?g.medium.fontSize:g.mediumPlus.fontSize,fontWeight:c?p.l.regular:p.l.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[v.dropIcon,{position:"absolute",left:-26,fontSize:p.p.large,color:m.neutralSecondary,transition:"transform ".concat(p.c.durationValue2," ").concat(Ph,", ")+"opacity ".concat(p.c.durationValue4," ").concat(Dh),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(i={},i[":global(.".concat(v.iconTag,")")]={position:"absolute"},i)}]}}),void 0,{scope:"GroupHeader"}),zh={root:"ms-GroupShowAll",link:"ms-Link"},Wh=L(),Vh=k((function(e){var t=e.group,n=e.groupLevel,o=e.showAllLinkText,r=void 0===o?"Show All":o,i=e.styles,a=e.theme,s=e.onToggleSummarize,l=Wh(i,{theme:a}),c=Object(d.useCallback)((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?d.createElement("div",{className:l.root},d.createElement(Mf,{count:n}),d.createElement(co,{onClick:c},r)):null}),(function(e){var t,n=e.theme,o=n.fonts,r=Object(p.R)(zh,n);return{root:[r.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t[".".concat(r.link)]={fontSize:o.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),Uh={root:"ms-groupFooter"},Kh=L(),Gh=k((function(e){var t=e.group,n=e.groupLevel,o=e.footerText,r=e.indentWidth,i=e.styles,a=e.theme,s=Kh(i,{theme:a});return t&&o?d.createElement("div",{className:s.root},d.createElement(Mf,{indentWidth:r,count:n}),o):null}),(function(e){var t=e.theme,n=e.className,o=Object(p.R)(Uh,t);return{root:[t.fonts.medium,o.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),qh=function(e){function t(n){var o=e.call(this,n)||this;o._root=d.createRef(),o._list=d.createRef(),o._subGroupRefs={},o._droppingClassName="",o._onRenderGroupHeader=function(e){return d.createElement(Hh,Object(u.a)({},e))},o._onRenderGroupShowAll=function(e){return d.createElement(Vh,Object(u.a)({},e))},o._onRenderGroupFooter=function(e){return d.createElement(Gh,Object(u.a)({},e))},o._renderSubGroup=function(e,n){var r=o.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,l=r.getGroupItemLimit,c=r.groupNestingDepth,u=r.groupProps,p=r.items,f=r.headerProps,h=r.showAllProps,m=r.footerProps,g=r.listProps,v=r.onRenderCell,b=r.selection,y=r.selectionMode,C=r.viewport,_=r.onRenderGroupHeader,S=r.onRenderGroupShowAll,k=r.onRenderGroupFooter,x=r.onShouldVirtualize,w=r.group,I=r.compact,E=e.level?e.level+1:c;return!e||e.count>0||u&&u.showEmptyGroups?d.createElement(t,{ref:function(e){return o._subGroupRefs["subGroup_"+n]=e},key:o._getGroupKey(e,n),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:m,getGroupItemLimit:l,group:e,groupIndex:n,groupNestingDepth:E,groupProps:u,headerProps:f,items:p,listProps:g,onRenderCell:v,selection:b,selectionMode:y,showAllProps:h,viewport:C,onRenderGroupHeader:_,onRenderGroupShowAll:S,onRenderGroupFooter:k,onShouldVirtualize:x,groups:w?w.children:[],compact:I}):null},o._getGroupDragDropOptions=function(){var e=o.props,t=e.group,n=e.groupIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:o._updateDroppingState,canDrag:r.canDrag,canDrop:r.canDrop,onDrop:r.onDrop,onDragStart:r.onDragStart,onDragEnter:r.onDragEnter,onDragLeave:r.onDragLeave,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},o._updateDroppingState=function(e,t){var n=o.state.isDropping,r=o.props,i=r.dragDropEvents,a=r.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(o._droppingClassName=i.onDragEnter(a,t)),o.setState({isDropping:e}))};var r=n.selection,i=n.group;return Ct(o),o._id=bn("GroupedListSection"),o.state={isDropping:!1,isSelected:!(!r||!i)&&r.isRangeSelected(i.startIndex,i.count)},o._events=new vo(o),o}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,Zf,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,o=e.groupIndex,r=e.headerProps,i=e.showAllProps,a=e.footerProps,s=e.viewport,l=e.selectionMode,c=e.onRenderGroupHeader,p=void 0===c?this._onRenderGroupHeader:c,f=e.onRenderGroupShowAll,h=void 0===f?this._onRenderGroupShowAll:f,m=e.onRenderGroupFooter,g=void 0===m?this._onRenderGroupFooter:m,v=e.onShouldVirtualize,b=e.groupedListClassNames,y=e.groups,C=e.compact,_=e.listProps,S=void 0===_?{}:_,k=this.state.isSelected,x=n&&t?t(n):1/0,w=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>x||n.hasMoreData),I=n&&n.children&&n.children.length>0,E=S.version,O={group:n,groupIndex:o,groupLevel:n?n.level:0,isSelected:k,selected:k,viewport:s,selectionMode:l,groups:y,compact:C},T={groupedListId:this._id,ariaLevel:(null==n?void 0:n.level)?n.level+1:1,ariaSetSize:y?y.length:void 0,ariaPosInSet:void 0!==o?o+1:void 0},D=Object(u.a)(Object(u.a)(Object(u.a)({},r),O),T),P=Object(u.a)(Object(u.a)({},i),O),R=Object(u.a)(Object(u.a)({},a),O),M=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return d.createElement("div",Object(u.a)({ref:this._root},M&&{draggable:!0},{className:Me(b&&b.group,this._getDroppingClassName()),role:"presentation"}),p(D,this._onRenderGroupHeader),n&&n.isCollapsed?null:I?d.createElement(Jp,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:v,version:E,id:this._id}):this._onRenderGroup(x),n&&n.isCollapsed?null:w&&h(P,this._onRenderGroupShowAll),g(R,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var o;(o=this._list.current.pageRefs["subGroup_"+String(n)])&&o.forceListUpdate()}}else(o=this._subGroupRefs["subGroup_"+String(0)])&&o.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var o=n.isRangeSelected(t.startIndex,t.count);o!==this.state.isSelected&&this.setState({isSelected:o})}},t.prototype._onRenderGroupCell=function(e,t,n){return function(o,r){return e(t,o,r,n)}},t.prototype._onRenderGroup=function(e){var t=this.props,n=t.group,o=t.items,r=t.onRenderCell,i=t.listProps,a=t.groupNestingDepth,s=t.onShouldVirtualize,l=t.groupProps,c=n&&!n.isShowingAll?n.count:o.length,p=n?n.startIndex:0;return d.createElement(Jp,Object(u.a)({role:l&&l.role?l.role:"rowgroup","aria-label":null==n?void 0:n.name,items:o,onRenderCell:this._onRenderGroupCell(r,a,n),ref:this._list,renderCount:Math.min(c,e),startIndex:p,onShouldVirtualize:s,id:this._id},i))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,o=t.groupedListClassNames;return Me((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&o&&o.groupIsDropping)},t}(d.Component),Yh=L(),Qh=Df.rowHeight,Xh=Df.compactRowHeight,Zh=function(e){function t(t){var n=e.call(this,t)||this;n._list=d.createRef(),n._renderGroup=function(e,t){var o=n.props,r=o.dragDropEvents,i=o.dragDropHelper,a=o.eventsToRegister,s=o.groupProps,l=o.items,c=o.listProps,p=o.onRenderCell,f=o.selectionMode,h=o.selection,m=o.viewport,g=o.onShouldVirtualize,v=o.groups,b=o.compact,y={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},C=Object(u.a)(Object(u.a)({},s.headerProps),y),_=Object(u.a)(Object(u.a)({},s.showAllProps),y),S=Object(u.a)(Object(u.a)({},s.footerProps),y),k=n._getGroupNestingDepth();if(!s.showEmptyGroups&&e&&0===e.count)return null;var x=Object(u.a)(Object(u.a)({},c||{}),{version:n.state.version});return d.createElement(qh,{key:n._getGroupKey(e,t),dragDropEvents:r,dragDropHelper:i,eventsToRegister:a,footerProps:S,getGroupItemLimit:s&&s.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:k,groupProps:s,headerProps:C,listProps:x,items:l,onRenderCell:p,onRenderGroupHeader:s.onRenderHeader,onRenderGroupShowAll:s.onRenderShowAll,onRenderGroupFooter:s.onRenderFooter,selectionMode:f,selection:h,showAllProps:_,viewport:m,onShouldVirtualize:g,groupedListClassNames:n._classNames,groups:v,compact:b})},n._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?Xh:Qh;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,o=n.props.getGroupHeight,r=void 0===o?n._getGroupHeight:o,i=t&&t[e];return i?r(i,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,o=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(o&&o(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,o=t.selection,r=t.selectionMode;e&&o&&r===Qf.multiple&&o.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===M(E.right)},n._onToggleSummarize=function(e){var t=n.props.groupProps,o=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;o?o(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,o=t&&t[e];return{key:o&&o.key}},Ct(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var o=t.listProps,r=(void 0===o?{}:o).version,i=void 0===r?{}:r;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:i},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,o=e.selectionMode,r=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=Object(u.a)(Object(u.a)({},t),{selectionMode:o,compact:r,groups:n,listProps:a,items:i}),c=!1;return s===(t.listProps&&t.listProps.version)&&i===t.items&&n===t.groups&&o===t.selectionMode&&r===t.compact||(c=!0),c&&(l=Object(u.a)(Object(u.a)({},l),{version:{}})),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,o=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(o,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,o=e.onShouldVirtualize,r=e.theme,i=e.role,a=void 0===i?"treegrid":i,s=e.styles,l=e.compact,c=e.focusZoneProps,p=void 0===c?{}:c,f=e.rootListProps,h=void 0===f?{}:f,m=this.state,g=m.groups,v=m.version;this._classNames=Yh(s,{theme:r,className:t,compact:l});var b=p.shouldEnterInnerZone,y=void 0===b?this._isInnerZoneKeystroke:b;return d.createElement(zn,Object(u.a)({direction:Ot.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},p,{shouldEnterInnerZone:y,className:Me(this._classNames.root,p.className)}),g?d.createElement(Jp,Object(u.a)({ref:this._list,role:a,items:g,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:o,version:v},h)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,o=this.props.groupProps,r=o&&o.onToggleCollapseAll;n.length>0&&(r&&r(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:Qf.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(d.Component),$h=k(Zh,Eh,void 0,{scope:"GroupedList"});function Jh(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}function em(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=d.createRef(),n._registerResizeObserver=function(){var e=Object(N.a)(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,o=n._root.current,r=Jh(Pn(o)),i=Jh(o);((i&&i.width)!==t.width||(r&&r.height)!==t.height)&&n._resizeAttempts<3&&i&&r?(n._resizeAttempts++,n.setState({viewport:{width:i.width,height:r.height}},(function(){n._updateViewport(e)}))):(n._resizeAttempts=0,e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate())},n._async=new wt(n),n._events=new vo(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return Object(u.c)(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,o=t.disableResizeObserver,r=t.skipViewportMeasures,i=Object(N.a)(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),r||(!o&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),n?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,o=n.disableResizeObserver,r=n.skipViewportMeasures,i=Object(N.a)(this._root.current);r!==t&&(r?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!o&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return d.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},d.createElement(e,Object(u.a)({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=Object(N.a)(this._root.current);return e&&e.ResizeObserver},n}(Da)}var tm=function(e){var t=0;if(e)for(var n=Object(u.e)([],e,!0),o=void 0;n&&n.length>0;)++t,(o=n.pop())&&o.children&&n.push.apply(n,o.children);return t},nm=L(),om={tabIndex:0},rm={},im=function(e){var t=e.selection,n=e.ariaLabelForListHeader,o=e.ariaLabelForSelectAllCheckbox,r=e.ariaLabelForSelectionColumn,i=e.className,a=e.checkboxVisibility,s=e.compact,l=e.constrainMode,c=e.dragDropEvents,p=e.groups,h=e.groupProps,m=e.indentWidth,g=e.items,v=e.isPlaceholderData,b=e.isHeaderVisible,y=e.layoutMode,C=e.onItemInvoked,_=e.onItemContextMenu,S=e.onColumnHeaderClick,k=e.onColumnHeaderContextMenu,x=e.selectionMode,w=void 0===x?t.mode:x,I=e.selectionPreservedOnEmptyClick,O=e.selectionZoneProps,T=e.ariaLabel,D=e.ariaLabelForGrid,P=e.rowElementEventMap,R=e.shouldApplyApplicationRole,N=void 0!==R&&R,F=e.getKey,B=e.listProps,L=e.usePageCache,A=e.onShouldVirtualize,j=e.viewport,H=e.minimumPixelsForDrag,z=e.getGroupHeight,W=e.styles,V=e.theme,U=e.cellStyleProps,K=void 0===U?Tf:U,G=e.onRenderCheckbox,q=e.useFastIcons,Y=e.dragDropHelper,Q=e.adjustedColumns,X=e.isCollapsed,Z=e.isSizing,$=e.isSomeGroupExpanded,J=e.version,ee=e.rootRef,te=e.listRef,ne=e.focusZoneRef,oe=e.columnReorderOptions,re=e.groupedListRef,ie=e.headerRef,ae=e.onGroupExpandStateChanged,se=e.onColumnIsSizingChanged,le=e.onRowDidMount,ce=e.onRowWillUnmount,ue=e.disableSelectionZone,de=e.isSelectedOnFocus,pe=void 0===de||de,fe=e.onColumnResized,he=e.onColumnAutoResized,me=e.onToggleCollapse,ge=e.onActiveRowChanged,ve=e.onBlur,be=e.rowElementEventMap,ye=e.onRenderMissingItem,Ce=e.onRenderItemColumn,_e=e.onRenderField,Se=e.getCellValueKey,ke=e.getRowAriaLabel,xe=e.getRowAriaDescribedBy,we=e.checkButtonAriaLabel,Ie=e.checkButtonGroupAriaLabel,Ee=e.checkboxCellClassName,Oe=e.useReducedRowRenderer,Te=e.enableUpdateAnimations,De=e.enterModalSelectionOnTouch,Pe=e.onRenderDefaultRow,Re=e.selectionZoneRef,Ne=e.focusZoneProps,Fe=e.role?e.role:"grid",Be=bn("row"),Le=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(p),Ae=function(e){return d.useMemo((function(){var t={};if(e)for(var n=1,o=1,r=0,i=e;r<i.length;r++){var a=i[r];t[a.key]={numOfGroupHeadersBeforeItem:o,totalRowCount:n},o++,n+=a.count+1}return t}),[e])}(p),je=d.useMemo((function(){return Object(u.a)({renderedWindowsAhead:Z?0:2,renderedWindowsBehind:Z?0:2,getKey:F,version:J},B)}),[Z,F,J,B]),He=nh.none;if(w===Qf.single&&(He=nh.hidden),w===Qf.multiple){var ze=h&&h.headerProps&&h.headerProps.isCollapsedGroupSelectVisible;void 0===ze&&(ze=!0),He=ze||!p||$?nh.visible:nh.hidden}a===xf.hidden&&(He=nh.none);var We=d.useCallback((function(e){return d.createElement(ph,Object(u.a)({},e))}),[]),Ve=d.useCallback((function(){return null}),[]),Ue=e.onRenderDetailsHeader,Ke=d.useMemo((function(){return Ue?Po(Ue,We):We}),[Ue,We]),Ge=e.onRenderDetailsFooter,qe=d.useMemo((function(){return Ge?Po(Ge,Ve):Ve}),[Ge,Ve]),Ye=d.useMemo((function(){return{columns:Q,groupNestingDepth:Le,selection:t,selectionMode:w,viewport:j,checkboxVisibility:a,indentWidth:m,cellStyleProps:K}}),[Q,Le,t,w,j,a,m,K]),Qe=oe&&oe.onDragEnd,Xe=d.useCallback((function(e,t){var n=e.dropLocation,o=Sf.outside;if(Qe){if(n&&n!==Sf.header)o=n;else if(ee.current){var r=ee.current.getBoundingClientRect();t.clientX>r.left&&t.clientX<r.right&&t.clientY>r.top&&t.clientY<r.bottom&&(o=Sf.surface)}Qe(o)}}),[Qe,ee]),Ze=d.useMemo((function(){if(oe)return Object(u.a)(Object(u.a)({},oe),{onColumnDragEnd:Xe})}),[oe,Xe]),$e=(b?1:0)+(e.onRenderDetailsFooter?1:0)+tm(p)+(g?g.length:0),Je=(He!==nh.none?1:0)+(Q?Q.length:0)+(p?1:0),et=d.useMemo((function(){return nm(W,{theme:V,compact:s,isFixed:y===kf.fixedColumns,isHorizontalConstrained:l===_f.horizontalConstrained,className:i})}),[W,V,s,y,l,i]),tt=h&&h.onRenderFooter,nt=d.useMemo((function(){return tt?function(e,n){return tt(Object(u.a)(Object(u.a)({},e),{columns:Q,groupNestingDepth:Le,indentWidth:m,selection:t,selectionMode:w,viewport:j,checkboxVisibility:a,cellStyleProps:K}),n)}:void 0}),[tt,Q,Le,m,t,w,j,a,K]),ot=h&&h.onRenderHeader,rt=d.useMemo((function(){return ot?function(e,n){var o,r,i=e.groupIndex,s=void 0!==i?null===(r=null===(o=e.groups)||void 0===o?void 0:o[i])||void 0===r?void 0:r.key:void 0,l=void 0!==s&&Ae[s]?Ae[s].totalRowCount:0;return ot(Object(u.a)(Object(u.a)({},e),{columns:Q,groupNestingDepth:Le,indentWidth:m,selection:t,selectionMode:a!==xf.hidden?w:Qf.none,viewport:j,checkboxVisibility:a,cellStyleProps:K,ariaColSpan:Q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?l+(b?1:0):void 0}),n)}:function(e,t){var n,o,r=e.groupIndex,i=void 0!==r?null===(o=null===(n=e.groups)||void 0===n?void 0:n[r])||void 0===o?void 0:o.key:void 0,a=void 0!==i&&Ae[i]?Ae[i].totalRowCount:0;return t(Object(u.a)(Object(u.a)({},e),{ariaColSpan:Q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==r?a+(b?1:0):void 0}))}}),[ot,Q,Le,m,b,t,w,j,a,K,Ae]),it=d.useMemo((function(){var e;return Object(u.a)(Object(u.a)({},h),{role:"grid"===Fe?"rowgroup":"presentation",onRenderFooter:nt,onRenderHeader:rt,headerProps:Object(u.a)(Object(u.a)({},null==h?void 0:h.headerProps),{selectAllButtonProps:Object(u.a)({"aria-label":Ie},null===(e=null==h?void 0:h.headerProps)||void 0===e?void 0:e.selectAllButtonProps)})})}),[h,nt,rt,Ie,Fe]),at=jr((function(){return Object(f.c)((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),st=h&&h.collapseAllVisibility,lt=d.useMemo((function(){return at(Q)}),[Q,at]),ct=d.useCallback((function(n,o,r,i){var l=e.onRenderRow?Po(e.onRenderRow,Pe):Pe,u=i?i.key:void 0,d=u&&Ae[u]?Ae[u].numOfGroupHeadersBeforeItem:0,p="grid"===Fe?void 0:"presentation",f=b||r>0?rm:om,h={item:o,itemIndex:r,flatIndexOffset:(b?2:1)+d,compact:s,columns:Q,groupNestingDepth:n,id:"".concat(Be,"-").concat(r),selectionMode:w,selection:t,onDidMount:le,onWillUnmount:ce,onRenderItemColumn:Ce,onRenderField:_e,getCellValueKey:Se,eventsToRegister:be,dragDropEvents:c,dragDropHelper:Y,viewport:j,checkboxVisibility:a,collapseAllVisibility:st,getRowAriaLabel:ke,getRowAriaDescribedBy:xe,checkButtonAriaLabel:we,checkboxCellClassName:Ee,useReducedRowRenderer:Oe,indentWidth:m,cellStyleProps:K,onRenderDetailsCheckbox:G,enableUpdateAnimations:Te,rowWidth:lt,useFastIcons:q,role:p,isGridRow:!0,focusZoneProps:f};return o?l(h):ye?ye(r,h):null}),[s,Q,w,t,Be,le,ce,Ce,_e,Se,be,c,Y,j,a,st,ke,xe,b,we,Ee,Oe,m,K,G,Te,q,Pe,ye,e.onRenderRow,lt,Fe,Ae]),ut=d.useCallback((function(e){return function(t,n){return ct(e,t,n)}}),[ct]),dt=d.useCallback((function(e){return e.which===M(E.right,V)}),[V]),pt=Object(u.a)(Object(u.a)({},Ne),{componentRef:Ne&&Ne.componentRef?Ne.componentRef:ne,className:Ne&&Ne.className?Me(et.focusZone,Ne.className):et.focusZone,direction:Ne?Ne.direction:Ot.vertical,shouldEnterInnerZone:Ne&&Ne.shouldEnterInnerZone?Ne.shouldEnterInnerZone:dt,onActiveElementChanged:Ne&&Ne.onActiveElementChanged?Ne.onActiveElementChanged:ge,shouldRaiseClicksOnEnter:!1,onBlur:Ne&&Ne.onBlur?Ne.onBlur:ve}),ft=p&&(null==h?void 0:h.groupedListAs)?ps(h.groupedListAs,$h):$h,ht=p?d.createElement(ft,{focusZoneProps:pt,componentRef:re,groups:p,groupProps:it,items:g,onRenderCell:ct,role:"presentation",selection:t,selectionMode:a!==xf.hidden?w:Qf.none,dragDropEvents:c,dragDropHelper:Y,eventsToRegister:P,listProps:je,onGroupExpandStateChanged:ae,usePageCache:L,onShouldVirtualize:A,getGroupHeight:z,compact:s}):d.createElement(zn,Object(u.a)({},pt),d.createElement(Jp,Object(u.a)({ref:te,role:"presentation",items:g,onRenderCell:ut(0),usePageCache:L,onShouldVirtualize:A},je))),mt=d.useCallback((function(e){e.which===E.down&&ne.current&&ne.current.focus()&&(pe&&0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,ne,pe]),gt=d.useCallback((function(e){e.which!==E.up||e.altKey||ie.current&&ie.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[ie]);return d.createElement("div",Object(u.a)({ref:ee,className:et.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},N?{role:"application"}:{}),d.createElement(Jn,null),d.createElement("div",{role:Fe,"aria-label":D||T,"aria-rowcount":v?0:$e,"aria-colcount":Je,"aria-busy":v},d.createElement("div",{onKeyDown:mt,role:"presentation",className:et.headerWrapper},b&&Ke({componentRef:ie,selectionMode:w,layoutMode:y,selection:t,columns:Q,onColumnClick:S,onColumnContextMenu:k,onColumnResized:fe,onColumnIsSizingChanged:se,onColumnAutoResized:he,groupNestingDepth:Le,isAllCollapsed:X,onToggleCollapseAll:me,ariaLabel:n,ariaLabelForSelectAllCheckbox:o,ariaLabelForSelectionColumn:r,selectAllVisibility:He,collapseAllVisibility:h&&h.collapseAllVisibility,viewport:j,columnReorderProps:Ze,minimumPixelsForDrag:H,cellStyleProps:K,checkboxVisibility:a,indentWidth:m,onRenderDetailsCheckbox:G,rowWidth:at(Q),useFastIcons:q},Ke)),d.createElement("div",{onKeyDown:gt,role:"presentation",className:et.contentWrapper},ue?ht:d.createElement(Ch,Object(u.a)({ref:Re,selection:t,selectionPreservedOnEmptyClick:I,selectionMode:w,isSelectedOnFocus:pe,selectionClearedOnEscapePress:pe,toggleWithoutModifierPressed:!pe,onItemInvoked:C,onItemContextMenu:_,enterModalOnTouch:De},O||{}),ht)),qe(Object(u.a)({},Ye))))},am=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._header=d.createRef(),n._groupedList=d.createRef(),n._list=d.createRef(),n._focusZone=d.createRef(),n._selectionZone=d.createRef(),n._onRenderRow=function(e,t){return d.createElement(yh,Object(u.a)({},e))},n._getDerivedStateFromProps=function(e,t){var o=n.props,r=o.checkboxVisibility,i=o.items,a=o.setKey,s=o.selectionMode,l=void 0===s?n._selection.mode:s,c=o.columns,d=o.viewport,p=o.compact,f=o.dragDropEvents,h=(n.props.groupProps||{}).isAllGroupsCollapsed,m=void 0===h?void 0:h,g=e.viewport&&e.viewport.width||0,v=d&&d.width||0,b=e.setKey!==a||void 0===e.setKey,y=!1;e.layoutMode!==n.props.layoutMode&&(y=!0);var C=t;return b&&(n._initialFocusedIndex=e.initialFocusedIndex,C=Object(u.a)(Object(u.a)({},C),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===i||n._selection.setItems(e.items,b),e.checkboxVisibility===r&&e.columns===c&&g===v&&e.compact===p||(y=!0),C=Object(u.a)(Object(u.a)({},C),n._adjustColumns(e,C,!0)),e.selectionMode!==l&&(y=!0),void 0===m&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(C=Object(u.a)(Object(u.a)({},C),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==f&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new rh({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,y=!0),y&&(C=Object(u.a)(Object(u.a)({},C),{version:{}})),C},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,o=t.item,r=t.itemIndex,i=n._getItemKey(o,r);n._activeRows[i]=e,n._setFocusToRowIfPending(e);var a=n.props.onRowDidMount;a&&a(o,r)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,o=e.props,r=o.item,i=o.itemIndex,a=n._getItemKey(r,i);delete n._activeRows[a],t&&t(r,i)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,o){var r=Math.max(e.minWidth||100,t);n.props.onColumnResize&&n.props.onColumnResize(e,r,o),n._rememberCalculatedWidth(e,r),n.setState(Object(u.a)(Object(u.a)({},n._adjustColumns(n.props,n.state,!0,o)),{version:{}}))},n._onColumnAutoResized=function(e,t){var o=0,r=0,i=Object.keys(n._activeRows).length;for(var a in n._activeRows){if(n._activeRows.hasOwnProperty(a))n._activeRows[a].measureCell(t,(function(a){o=Math.max(o,a),++r===i&&n._onColumnResized(e,o,t)}))}},n._onActiveRowChanged=function(e,t){var o=n.props,r=o.items,i=o.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(r[a],a,t),n.setState({focusedItemIndex:a}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},Ct(n),n._async=new wt(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},n._selection=t.selection||new _h({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new rh({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,o){void 0===t&&(t=!1);var r=this.props.items[e];if(r){this.scrollToIndex(e,n,o);var i=this._getItemKey(r,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.updateColumn=function(e,t){var n,o,r=this.props,i=r.columns,a=void 0===i?[]:i,s=r.selectionMode,l=r.checkboxVisibility,c=r.columnReorderOptions,u=t.width,d=t.newColumnIndex,p=a.findIndex((function(t){return t.key===e.key}));if(u&&this._onColumnResized(e,u,p),void 0!==d&&c){var f=s===Qf.none||l===xf.hidden,h=(l!==xf.hidden?2:1)+p,m=f?h-1:h-2,g=f?d-1:d-2,v=null!==(n=c.frozenColumnCountFromStart)&&void 0!==n?n:0,b=null!==(o=c.frozenColumnCountFromEnd)&&void 0!==o?o:0;if(g>=v&&g<a.length-b)if(c.onColumnDrop){var y={draggedIndex:m,targetIndex:g};c.onColumnDrop(y)}else c.handleColumnReorder&&c.handleColumnReorder(m,g)}},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var n=this._getItemKey(i,this._initialFocusedIndex);(o=this._activeRows[n])&&this._setFocusToRowIfPending(o)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!Xt(this._root.current,document.activeElement,!1)){var o,r=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[r];n=this._getItemKey(i,this.state.focusedItemIndex);(o=this._activeRows[n])?this._setFocusToRow(o):this._initialFocusedIndex=r}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return d.createElement(im,Object(u.a)({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,n,o){var r=this._getAdjustedColumns(e,t,n,o),i=this.props.viewport,a=i&&i.width?i.width:0;return Object(u.a)(Object(u.a)({},t),{adjustedColumns:r,lastWidth:a})},t.prototype._getAdjustedColumns=function(e,t,n,o){var r,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,p=this.props?this.props.columns:[],f=t?t.lastWidth:-1,h=t?t.lastSelectionMode:void 0;return n||f!==u||h!==l||p&&d!==p?(d=d||sm(a,!0),s===kf.fixedColumns?(r=this._getFixedColumns(d,u,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(r=this._getJustifiedColumns(d,u,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),r):d||[]},t.prototype._getFixedColumns=function(e,t,n){var o=this,r=this.props,i=r.selectionMode,a=void 0===i?this._selection.mode:i,s=r.checkboxVisibility,l=r.flexMargin,c=r.skipViewportMeasures,d=t-(l||0),p=0;e.forEach((function(e){c||!e.flexGrow?d-=e.maxWidth||e.minWidth||100:(d-=e.minWidth||100,p+=e.flexGrow),d-=lm(e,n,!0)}));var f=a!==Qf.none&&s!==xf.hidden?jf:0,h=36*this._getGroupNestingDepth(),m=(d-=f+h)/p;return c||e.forEach((function(e){var t=Object(u.a)(Object(u.a)({},e),o._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var n=t.flexGrow*m+t.minWidth,r=n-t.maxWidth;r>0&&(d+=r,p-=r/(n-t.minWidth)*t.flexGrow)}})),m=d>0?d/p:0,e.map((function(e){var t=Object(u.a)(Object(u.a)({},e),o._columnOverrides[e.key]);return!c&&t.flexGrow&&d<=0||t.calculatedWidth||(!c&&t.flexGrow?(t.calculatedWidth=t.minWidth+t.flexGrow*m,t.calculatedWidth=Math.min(t.calculatedWidth,t.maxWidth||Number.MAX_VALUE)):t.calculatedWidth=t.maxWidth||t.minWidth||100),t}))},t.prototype._getJustifiedColumns=function(e,t,n){var o=this,r=n.selectionMode,i=void 0===r?this._selection.mode:r,a=n.checkboxVisibility,s=n.skipViewportMeasures,l=i!==Qf.none&&a!==xf.hidden?jf:0,c=36*this._getGroupNestingDepth(),d=0,p=0,f=t-(l+c),h=e.map((function(e,t){var r=Object(u.a)(Object(u.a)({},e),{calculatedWidth:e.minWidth||100}),i=Object(u.a)(Object(u.a)({},r),o._columnOverrides[e.key]);return r.isCollapsible||r.isCollapsable||(p+=lm(r,n)),d+=lm(i,n),i}));if(s)return h;for(var m=h.length-1;m>=0&&d>f;){var g=(C=h[m]).minWidth||100,v=d-f;if(C.calculatedWidth-g>=v||!C.isCollapsible&&!C.isCollapsable){var b=C.calculatedWidth;p<f&&(C.calculatedWidth=Math.max(C.calculatedWidth-v,g)),d-=b-C.calculatedWidth}else d-=lm(C,n),h.splice(m,1);m--}for(var y=0;y<h.length&&d<f;y++){var C=h[y],_=y===h.length-1,S=this._columnOverrides[C.key];if(!S||!S.calculatedWidth||_){var k=f-d,x=void 0;if(_)x=k;else{var w=C.maxWidth;g=C.minWidth||w||100;x=w?Math.min(k,w-g):k}C.calculatedWidth=C.calculatedWidth+x,d+=x}}return h},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,o=void 0;return e&&(o=e.key),n&&(o=n(e,t)),o||(o=t),o},t.defaultProps={layoutMode:kf.justified,selectionMode:Qf.multiple,constrainMode:_f.horizontalConstrained,checkboxVisibility:xf.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t=Object(u.b)([em],t)}(d.Component);function sm(e,t,n,o,r,i,a,s){var l=[];if(e&&e.length){var c=e[0];for(var u in c)c.hasOwnProperty(u)&&l.push({key:u,name:u,fieldName:u,minWidth:100,maxWidth:300,isCollapsible:!!l.length,isMultiline:void 0!==a&&a,isSorted:o===u,isSortedDescending:!!r,isRowHeader:!1,columnActionsMode:null!=s?s:Cf.clickable,isResizable:t,onColumnClick:n,isGrouped:i===u})}return l}function lm(e,t,n){var o=t.cellStyleProps,r=void 0===o?Tf:o;return(n?0:e.calculatedWidth)+r.cellLeftPadding+r.cellRightPadding+(e.isPadded?r.cellExtraRightPadding:0)}var cm,um={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},dm=function(e){var t,n,o=e.theme,r=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=o.semanticColors,c=Object(p.R)(um,o);return{root:[c.root,o.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& .".concat(c.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n[".".concat(c.listCell)]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],r],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}},pm=k(am,dm,void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(cm||(cm={}));var fm=p.c.durationValue2,hm={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},mm=L(),gm=function(e){function t(t){var n=e.call(this,t)||this;Ct(n);var o=n.props.allowTouchBodyScroll,r=void 0!==o&&o;return n._allowTouchBodyScroll=r,n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&On()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&Tn()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,o=e.theme,r=e.styles,i=fe(this.props,pe),a=mm(r,{theme:o,className:n,isDark:t});return d.createElement("div",Object(u.a)({},i,{className:a.root}))},t}(d.Component),vm={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},bm=k(gm,(function(e){var t,n=e.className,o=e.theme,r=e.isNone,i=e.isDark,a=o.palette,s=Object(p.R)(vm,o);return{root:[s.root,o.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[p.m]={border:"1px solid WindowText",opacity:0},t)},r&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),ym=Object(f.c)((function(e,t){return{root:Object(p.eb)(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),Cm={start:"touchstart",move:"touchmove",stop:"touchend"},_m={start:"mousedown",move:"mousemove",stop:"mouseup"},Sm=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=_m,n._events=[],n._onMouseDown=function(e){var t=d.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=_m,n._onDragStart(e)},n._onMouseUp=function(e){var t=d.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=_m,n._onDragStop(e)},n._onTouchStart=function(e){var t=d.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=Cm,n._onDragStart(e)},n._onTouchEnd=function(e){var t=d.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=Cm,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var o=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,o),n.setState({isDragging:!0,lastPosition:t}),n._events=[Ho(document.body,n._currentEventType.move,n._onDrag,!0),Ho(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var o=n._createUpdatedDragData(n._createDragDataFromPosition(t)),r=o.position;n.props.onDragChange&&n.props.onDragChange(e,o),n.setState({position:r,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var o=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,o),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return Object(u.c)(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=d.Children.only(this.props.children),t=e.props,n=this.props.position,o=this.state,r=o.position,i=o.isDragging,a=r.x,s=r.y;return n&&!i&&(a=n.x,s=n.y),d.cloneElement(e,{style:Object(u.a)(Object(u.a)({},t.style),{transform:"translate(".concat(a,"px, ").concat(s,"px)")}),className:ym(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(d.Component);function km(e){var t=d.useState(e),n=t[0],o=t[1];return[n,{setTrue:jr((function(){return function(){o(!0)}})),setFalse:jr((function(){return function(){o(!1)}})),toggle:jr((function(){return function(){o((function(e){return!e}))}}))}]}var xm={x:0,y:0},wm={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},Im=L(),Em=d.forwardRef((function(e,t){var n,o,r,i,a,s=H(wm,e),l=s.allowTouchBodyScroll,c=s.className,p=s.children,f=s.containerClassName,h=s.scrollableContentClassName,m=s.elementToFocusOnDismiss,g=s.firstFocusableSelector,v=s.focusTrapZoneProps,b=s.forceFocusInsideTrap,y=s.disableRestoreFocus,C=void 0===y?s.ignoreExternalFocusing:y,_=s.isBlocking,S=s.isAlert,k=s.isClickableOutsideFocusTrap,x=s.isDarkOverlay,w=s.onDismiss,I=s.layerProps,O=s.overlay,T=s.isOpen,D=s.titleAriaId,P=s.styles,R=s.subtitleAriaId,M=s.theme,N=s.topOffsetFixed,F=s.responsiveMode,B=s.onLayerDidMount,L=s.isModeless,A=s.dragOptions,j=s.onDismissed,z=s.enableAriaHiddenSiblings,W=s.popupProps,V=d.useRef(null),U=d.useRef(null),K=Ie(U,null==v?void 0:v.componentRef),G=d.useRef(null),q=Ie(V,t),Y=za(q),Q=wa("ModalFocusTrapZone",null==v?void 0:v.id),X=Mr(),Z=Hu(),$=Z.setTimeout,J=Z.clearTimeout,ee=d.useState(T),te=ee[0],ne=ee[1],oe=d.useState(T),re=oe[0],ie=oe[1],ae=d.useState(xm),se=ae[0],le=ae[1],ce=d.useState(),ue=ce[0],de=ce[1],pe=km(!1),fe=pe[0],he=pe[1],me=he.toggle,ge=he.setFalse,ve=jr((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:l,scrollableContent:null,lastSetCoordinates:xm,events:new vo({})}})),be=(A||{}).keepInBounds,ye=null!=S?S:_&&!L,Ce=void 0===I?"":I.className,_e=Im(P,{theme:M,className:c,containerClassName:f,scrollableContentClassName:h,isOpen:T,isVisible:re,hasBeenOpened:ve.hasBeenOpened,modalRectangleTop:ue,topOffsetFixed:N,isModeless:L,layerClassName:Ce,windowInnerHeight:null==X?void 0:X.innerHeight,isDefaultDragHandle:A&&!A.dragHandleSelector}),Se=Object(u.a)(Object(u.a)({eventBubblingEnabled:!1},I),{onLayerDidMount:I&&I.onLayerDidMount?I.onLayerDidMount:B,insertFirst:(null==I?void 0:I.insertFirst)||L,className:_e.layer}),ke=d.useCallback((function(e){e?ve.allowTouchBodyScroll?In(e,ve.events):wn(e,ve.events):ve.events.off(ve.scrollableContent),ve.scrollableContent=e}),[ve]),xe=function(){var e=G.current,t=null==e?void 0:e.getBoundingClientRect();t&&(N&&de(t.top),be&&(ve.minPosition={x:-t.left,y:-t.top},ve.maxPosition={x:t.left,y:t.top}))},we=d.useCallback((function(e,t){var n=ve.minPosition,o=ve.maxPosition;return be&&n&&o&&(t=Math.max(n[e],t),t=Math.min(o[e],t)),t}),[be,ve]),Ee=function(){var e;ve.lastSetCoordinates=xm,ge(),ve.isInKeyboardMoveMode=!1,ne(!1),le(xm),null===(e=ve.disposeOnKeyUp)||void 0===e||e.call(ve),null==j||j()},Oe=d.useCallback((function(){ge(),ve.isInKeyboardMoveMode=!1}),[ve,ge]),Te=d.useCallback((function(e,t){le((function(e){return{x:we("x",e.x+t.delta.x),y:we("y",e.y+t.delta.y)}}))}),[we]),De=d.useCallback((function(){U.current&&U.current.focus()}),[]);d.useEffect((function(){var e;J(ve.onModalCloseTimer),T&&(requestAnimationFrame((function(){return $(xe,0)})),ne(!0),A&&(e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===E.space&&Xt(ve.scrollableContent,e.target)&&(me(),e.preventDefault(),e.stopPropagation())},ve.disposeOnKeyUp||(ve.events.on(X,"keyup",e,!0),ve.disposeOnKeyUp=function(){ve.events.off(X,"keyup",e,!0),ve.disposeOnKeyUp=void 0})),ve.hasBeenOpened=!0,ie(!0)),!T&&te&&(ve.onModalCloseTimer=$(Ee,1e3*parseFloat(fm)),ie(!1))}),[te,T]),$c((function(){ve.events.dispose()})),function(e,t){d.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(s,U);var Pe=d.createElement(eu,Object(u.a)({},v,{id:Q,ref:G,componentRef:K,className:Me(_e.main,null==v?void 0:v.className),elementToFocusOnDismiss:null!==(n=null==v?void 0:v.elementToFocusOnDismiss)&&void 0!==n?n:m,isClickableOutsideFocusTrap:null!==(o=null==v?void 0:v.isClickableOutsideFocusTrap)&&void 0!==o?o:L||k||!_,disableRestoreFocus:null!==(r=null==v?void 0:v.disableRestoreFocus)&&void 0!==r?r:C,forceFocusInsideTrap:(null!==(i=null==v?void 0:v.forceFocusInsideTrap)&&void 0!==i?i:b)&&!L,firstFocusableSelector:(null==v?void 0:v.firstFocusableSelector)||g,focusPreviouslyFocusedInnerElement:null===(a=null==v?void 0:v.focusPreviouslyFocusedInnerElement)||void 0===a||a,onBlur:ve.isInKeyboardMoveMode?function(e){var t,n;null===(t=null==v?void 0:v.onBlur)||void 0===t||t.call(v,e),ve.lastSetCoordinates=xm,ve.isInKeyboardMoveMode=!1,null===(n=ve.disposeOnKeyDown)||void 0===n||n.call(ve)}:void 0}),A&&ve.isInKeyboardMoveMode&&d.createElement("div",{className:_e.keyboardMoveIconContainer},A.keyboardMoveIconProps?d.createElement(Ge,Object(u.a)({},A.keyboardMoveIconProps)):d.createElement(Ge,{iconName:"move",className:_e.keyboardMoveIcon})),d.createElement("div",{ref:ke,className:_e.scrollableContent,"data-is-scrollable":!0},A&&fe&&d.createElement(A.menu,{items:[{key:"move",text:A.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===E.space)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===E.escape;if(fe&&t&&ge(),!ve.isInKeyboardMoveMode||e.keyCode!==E.escape&&e.keyCode!==E.enter||(ve.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),ve.isInKeyboardMoveMode){var n=!0,o=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case E.escape:le(ve.lastSetCoordinates);case E.enter:ve.lastSetCoordinates=xm;break;case E.up:le((function(e){return{x:e.x,y:we("y",e.y-o)}}));break;case E.down:le((function(e){return{x:e.x,y:we("y",e.y+o)}}));break;case E.left:le((function(e){return{x:we("x",e.x-o),y:e.y}}));break;case E.right:le((function(e){return{x:we("x",e.x+o),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};ve.lastSetCoordinates=se,ge(),ve.isInKeyboardMoveMode=!0,ve.events.on(X,"keydown",e,!0),ve.disposeOnKeyDown=function(){ve.events.off(X,"keydown",e,!0),ve.disposeOnKeyDown=void 0}}},{key:"close",text:A.closeMenuItemText,onClick:Ee}],onDismiss:ge,alignTargetEdge:!0,coverTarget:!0,directionalHint:Eo.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:ve.scrollableContent}),p));return te&&Y>=(F||Ta.small)&&d.createElement(Bi,Object(u.a)({ref:q},Se),d.createElement(Ar,Object(u.a)({role:ye?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:R,onDismiss:w,shouldRestoreFocus:!C,enableAriaHiddenSiblings:z,"aria-modal":!L},W),d.createElement("div",{className:_e.root,role:L?void 0:"document"},!L&&d.createElement(bm,Object(u.a)({"aria-hidden":!0,isDarkThemed:x,onClick:_?void 0:w,allowTouchBodyScroll:l},O)),A?d.createElement(Sm,{handleSelector:A.dragHandleSelector||"#".concat(Q),preventDragSelector:"button",onStart:Oe,onDragChange:Te,onStop:De,position:se},Pe):Pe)))||null}));Em.displayName="Modal";var Om=k(Em,(function(e){var t,n=e.className,o=e.containerClassName,r=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,u=e.topOffsetFixed,d=e.isModeless,f=e.layerClassName,h=e.isDefaultDragHandle,m=e.windowInnerHeight,g=c.palette,v=c.effects,b=c.fonts,y=Object(p.R)(hm,c);return{root:[y.root,b.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(fm)},u&&"number"==typeof l&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[y.main,{boxShadow:v.elevation64,borderRadius:v.roundedCorner2,backgroundColor:g.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?p.G.Layer:void 0},d&&{pointerEvents:"auto"},u&&"number"==typeof l&&s&&{top:l},h&&{cursor:"move"},o],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:m},t)},r],layer:d&&[f,y.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:b.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Om.displayName="Modal";var Tm,Dm=L(),Pm=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return this._classNames=Dm(n,{theme:o,className:t}),d.createElement("div",{className:this._classNames.actions},d.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return d.Children.map(this.props.children,(function(t){return t?d.createElement("span",{className:e._classNames.action},t):null}))},t}(d.Component),Rm={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Mm=k(Pm,(function(e){var t=e.className,n=e.theme,o=Object(p.R)(Rm,n);return{actions:[o.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[o.action,{margin:"0 4px"}],actionsRight:[o.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}}),void 0,{scope:"DialogFooter"}),Nm=L(),Fm=d.createElement(Mm,null).type,Bm=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,o=t.className,r=t.closeButtonAriaLabel,i=t.onDismiss,a=t.subTextId,s=t.subText,l=t.titleProps,c=void 0===l?{}:l,p=t.titleId,f=t.title,h=t.type,m=t.styles,g=t.theme,v=t.draggableHeaderClassName,b=Nm(m,{theme:g,className:o,isLargeHeader:h===cm.largeHeader,isClose:h===cm.close,draggableHeaderClassName:v}),y=this._groupChildren();return s&&(e=d.createElement("p",{className:b.subText,id:a},s)),d.createElement("div",{className:b.content},d.createElement("div",{className:b.header},d.createElement("div",Object(u.a)({id:p,role:"heading","aria-level":1},c,{className:Me(b.title,c.className)}),f),d.createElement("div",{className:b.topButton},this.props.topButtonsProps.map((function(e,t){return d.createElement(Ss,Object(u.a)({key:e.uniqueId||t},e))})),(h===cm.close||n&&h!==cm.largeHeader)&&d.createElement(Ss,{className:b.button,iconProps:{iconName:"Cancel"},ariaLabel:r,onClick:i}))),d.createElement("div",{className:b.inner},d.createElement("div",{className:b.innerContent},e,y.contents),y.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return d.Children.map(this.props.children,(function(t){"object"==typeof t&&null!==t&&t.type===Fm?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=Object(u.b)([Aa],t)}(d.Component),Lm={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},Am=k(Bm,(function(e){var t,n,o,r=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,c=e.isMultiline,u=e.draggableHeaderClassName,d=i.palette,f=i.fonts,h=i.effects,m=i.semanticColors,g=Object(p.R)(Lm,i);return{content:[a&&[g.contentLgHeader,{borderTop:"4px solid ".concat(d.themePrimary)}],s&&g.close,{flexGrow:1,overflowY:"hidden"},r],subText:[g.subText,f.medium,{margin:"0 0 24px 0",color:m.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:p.l.regular}],header:[g.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&g.close,u&&[u,{cursor:"move"}]],button:[g.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:m.buttonText,fontSize:p.p.medium}}}],inner:[g.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: ".concat(p.z,"px) and (max-width: ").concat(p.u,"px)")]={padding:"0 16px 16px"},t)}],innerContent:[g.content,{position:"relative",width:"100%"}],title:[g.title,f.xLarge,{color:m.bodyText,margin:"0",minHeight:f.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: ".concat(p.z,"px) and (max-width: ").concat(p.u,"px)")]={padding:"16px 46px 16px 16px"},n)},a&&{color:m.menuHeader},c&&{fontSize:f.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(o={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:m.buttonText},".ms-Dialog-button:hover":{color:m.buttonTextHovered,borderRadius:h.roundedCorner2}},o["@media (min-width: ".concat(p.z,"px) and (max-width: ").concat(p.u,"px)")]={padding:"15px 8px 0 0"},o)}]}}),void 0,{scope:"DialogContent"}),jm=L(),Hm={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},zm={type:cm.normal,className:"",topButtonsProps:[]},Wm=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,o=e.modalProps,r=e.dialogContentProps,i=e.subText,a=o&&o.subtitleAriaId||t;return a||(a=(r&&r.subText||i)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,o=e.modalProps,r=e.dialogContentProps,i=e.title,a=o&&o.titleAriaId||t;return a||(a=(r&&r.title||i)&&n._defaultTitleTextId),a},n._id=bn("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t,n,o,r,i=this.props,a=i.className,s=i.containerClassName,l=i.contentClassName,c=i.elementToFocusOnDismiss,p=i.firstFocusableSelector,f=i.forceFocusInsideTrap,h=i.styles,m=i.hidden,g=i.disableRestoreFocus,v=void 0===g?i.ignoreExternalFocusing:g,b=i.isBlocking,y=i.isClickableOutsideFocusTrap,C=i.isDarkOverlay,_=i.isOpen,S=void 0===_?!m:_,k=i.onDismiss,x=i.onDismissed,w=i.onLayerDidMount,I=i.responsiveMode,E=i.subText,O=i.theme,T=i.title,D=i.topButtonsProps,P=i.type,R=i.minWidth,M=i.maxWidth,N=i.modalProps,F=Object(u.a)({onLayerDidMount:w},null==N?void 0:N.layerProps);(null==N?void 0:N.dragOptions)&&!(null===(e=N.dragOptions)||void 0===e?void 0:e.dragHandleSelector)&&(o="ms-Dialog-draggable-header",(r=Object(u.a)({},N.dragOptions)).dragHandleSelector=".".concat(o));var B=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Hm),{elementToFocusOnDismiss:c,firstFocusableSelector:p,forceFocusInsideTrap:f,disableRestoreFocus:v,isClickableOutsideFocusTrap:y,responsiveMode:I,className:a,containerClassName:s,isBlocking:b,isDarkOverlay:C,onDismissed:x}),N),{dragOptions:r,layerProps:F,isOpen:S}),L=Object(u.a)(Object(u.a)(Object(u.a)({className:l,subText:E,title:T,topButtonsProps:D,type:P},zm),i.dialogContentProps),{draggableHeaderClassName:o,titleProps:Object(u.a)({id:(null===(t=i.dialogContentProps)||void 0===t?void 0:t.titleId)||this._defaultTitleTextId},null===(n=i.dialogContentProps)||void 0===n?void 0:n.titleProps)}),A=jm(h,{theme:O,className:B.className,containerClassName:B.containerClassName,hidden:m,dialogDefaultMinWidth:R,dialogDefaultMaxWidth:M});return d.createElement(Om,Object(u.a)({},B,{className:A.root,containerClassName:A.main,onDismiss:k||B.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),d.createElement(Am,Object(u.a)({subTextId:this._defaultSubTextId,showCloseButton:B.isBlocking,onDismiss:k},L),i.children))},t.defaultProps={hidden:!0},t=Object(u.b)([Aa],t)}(d.Component),Vm={root:"ms-Dialog"},Um=k(Wm,(function(e){var t,n=e.className,o=e.containerClassName,r=e.dialogDefaultMinWidth,i=void 0===r?"288px":r,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,c=e.theme;return{root:[Object(p.R)(Vm,c).root,c.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: ".concat(p.y,"px)")]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},o]}}),void 0,{scope:"Dialog"});Um.displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(Tm||(Tm={}));var Km,Gm=L(),qm=d.createContext({}),Ym=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=d.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){e.which!==E.enter&&e.which!==E.space||n._onAction(e)},n._onAction=function(e){var t=n.props,o=t.onClick,r=t.onClickHref,i=t.onClickTarget;o?o(e):!o&&r&&(i?window.open(r,i,"noreferrer noopener nofollow"):window.location.href=r,e.preventDefault(),e.stopPropagation())},Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,o=t.onClickHref,r=t.children,i=t.type,a=t.accentColor,s=t.styles,l=t.theme,c=t.className,p=fe(this.props,pe,["className","onClick","type","role"]),f=!(!n&&!o);this._classNames=Gm(s,{theme:l,className:c,actionable:f,compact:i===Tm.compact}),i===Tm.compact&&a&&(e={borderBottomColor:a});var h={role:this.props.role||(f?n?"button":"link":void 0),tabIndex:f?0:void 0};return d.createElement("div",Object(u.a)({ref:this._rootElement,role:"group",className:this._classNames.root,onKeyDown:f?this._onKeyDown:void 0,onClick:f?this._onClick:void 0,style:e},p),d.createElement(qm.Provider,{value:h},r))},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:Tm.normal},t}(d.Component),Qm={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},Xm={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},Zm={root:"ms-DocumentCardTitle"},$m={root:"ms-DocumentCardLocation"},Jm={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},eg=k(Ym,(function(e){var t,n,o=e.className,r=e.theme,i=e.actionable,a=e.compact,s=r.palette,l=r.fonts,c=r.effects,u=Object(p.R)(Jm,r);return{root:[u.root,{WebkitFontSmoothing:"antialiased",backgroundColor:s.white,border:"1px solid ".concat(s.neutralLight),maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(Gn.a," &:focus")]=Object(p.V)(s.neutralSecondary,c.roundedCorner2),t[".".concat($m.root," + .").concat(Zm.root)]={paddingTop:"4px"},t)},i&&[u.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:s.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid ".concat(s.neutralTertiaryAlt),pointerEvents:"none"}}}],a&&[u.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(n={},n[".".concat(Qm.root)]={borderRight:"1px solid ".concat(s.neutralLight),borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n[".".concat(Qm.icon)]={maxHeight:"32px",maxWidth:"32px"},n[".".concat(Xm.root)]={paddingBottom:"12px"},n[".".concat(Zm.root)]={paddingBottom:"12px 16px 8px 16px",fontSize:l.mediumPlus.fontSize,lineHeight:"16px"},n)}],o]}}),void 0,{scope:"DocumentCard"}),tg=L(),ng=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,o=t.views,r=t.styles,i=t.theme,a=t.className;return this._classNames=tg(r,{theme:i,className:a}),d.createElement("div",{className:this._classNames.root},n&&n.map((function(t,n){return d.createElement("div",{className:e._classNames.action,key:n},d.createElement(Ss,Object(u.a)({},t)))})),o>0&&d.createElement("div",{className:this._classNames.views},d.createElement(Ge,{iconName:"View",className:this._classNames.viewsIcon}),o))},t}(d.Component),og={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},rg=k(ng,(function(e){var t=e.className,n=e.theme,o=n.palette,r=n.fonts,i=Object(p.R)(og,n);return{root:[i.root,{height:"".concat(34,"px"),padding:"".concat(4,"px ").concat(12,"px"),position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:o.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:r.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:r.medium.fontSize,verticalAlign:"top"}}}),void 0,{scope:"DocumentCardActions"}),ig=L(),ag=k(function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,o=e.styles,r=e.theme,i=e.className;return this._classNames=ig(o,{theme:r,className:i,multiplePeople:n.length>1}),n&&0!==n.length?d.createElement("div",{className:this._classNames.root},this._renderAvatars(n),d.createElement("div",{className:this._classNames.details},d.createElement("span",{className:this._classNames.name},this._getNameString(n)),d.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return d.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return d.createElement("div",{className:this._classNames.avatar},d.createElement(mt,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:Ne.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(d.Component),(function(e){var t=e.theme,n=e.className,o=e.multiplePeople,r=t.palette,i=t.fonts,a=Object(p.R)(Xm,t);return{root:[a.root,o&&a.multiplePeople,{padding:"".concat(8,"px ").concat(16,"px"),position:"relative"},n],avatars:[a.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[a.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:32,height:32,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid ".concat(r.white),borderRadius:"50%"},":nth-of-type(2)":o&&{marginLeft:"-16px"}}}],details:[a.details,{left:"".concat(o?72:56,"px"),height:32,position:"absolute",top:8,width:"calc(100% - ".concat(72,"px)")}],name:[a.name,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r.neutralPrimary,fontWeight:p.l.semibold}],activity:[a.activity,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r.neutralSecondary}]}}),void 0,{scope:"DocumentCardActivity"}),sg=L(),lg=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,o=e.theme,r=e.className;return this._classNames=sg(n,{theme:o,className:r}),d.createElement("div",{className:this._classNames.root},t)},t}(d.Component),cg={root:"ms-DocumentCardDetails"},ug=k(lg,(function(e){var t=e.className,n=e.theme;return{root:[Object(p.R)(cg,n).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}}),void 0,{scope:"DocumentCardDetails"}),dg=L(),pg=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},Ct(n),n.state={imageHasLoaded:!1},n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,o=e.height,r=e.imageFit,i=e.imageSrc;return this._classNames=dg(t,this.props),d.createElement("div",{className:this._classNames.root},i&&d.createElement(Pe,{width:n,height:o,imageFit:r,src:i,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return d.createElement("div",{className:this._classNames.centeredIconWrapper},d.createElement(Ge,Object(u.a)({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return d.createElement(Ge,Object(u.a)({className:this._classNames.cornerIcon},e))},t}(d.Component),fg=k(pg,(function(e){var t=e.theme,n=e.className,o=e.height,r=e.width,i=t.palette;return{root:[{borderBottom:"1px solid ".concat(i.neutralLight),position:"relative",backgroundColor:i.neutralLighterAlt,overflow:"hidden",height:o&&"".concat(o,"px"),width:r&&"".concat(r,"px")},n],centeredIcon:[{height:"42px",width:"42px",fontSize:"42px"}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:"32px",width:"32px",fontSize:"32px",position:"absolute",overflow:"visible"}]}}),void 0,{scope:"DocumentCardImage"}),hg=L(),mg=k(function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,o=e.ariaLabel,r=e.onClick,i=e.styles,a=e.theme,s=e.className;return this._classNames=hg(i,{theme:a,className:s}),d.createElement("a",{className:this._classNames.root,href:n,onClick:r,"aria-label":o},t)},t}(d.Component),(function(e){var t=e.theme,n=e.className,o=t.palette,r=t.fonts;return{root:[Object(p.R)($m,t).root,r.small,{color:o.themePrimary,display:"block",fontWeight:p.l.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:o.themePrimary,cursor:"pointer"}}},n]}}),void 0,{scope:"DocumentCardLocation"}),gg=L(),vg=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,o=e.theme,r=e.className;return this._classNames=gg(n,{theme:o,className:r}),d.createElement("div",{className:this._classNames.root},d.createElement(Ge,{iconName:t}))},t}(d.Component),bg={root:"ms-DocumentCardLogo"},yg=k(vg,(function(e){var t=e.theme,n=e.className,o=t.palette,r=t.fonts;return{root:[Object(p.R)(bg,t).root,{fontSize:r.xxLargePlus.fontSize,color:o.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}}),void 0,{scope:"DocumentCardLogo"}),Cg=L(),_g=k(function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,o=t.getOverflowDocumentCountText,r=t.maxDisplayCount,i=void 0===r?3:r,a=e.length-i,s=a?o?o(a):"+"+a:null,l=e.slice(0,i).map((function(e,t){return d.createElement("li",{key:t},d.createElement(Pe,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),d.createElement(co,Object(u.a)({className:n._classNames.fileListLink,href:e.url},e.linkProps),e.name))}));return d.createElement("div",null,d.createElement("ul",{className:n._classNames.fileList},l),s&&d.createElement("span",{className:n._classNames.fileListOverflowText},s))},Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,o=n.previewImages,r=n.styles,i=n.theme,a=n.className,s=o.length>1;return this._classNames=Cg(r,{theme:i,className:a,isFileList:s}),o.length>1?t=this._renderPreviewList(o):1===o.length&&(t=this._renderPreviewImage(o[0]),o[0].accentColor&&(e={borderBottomColor:o[0].accentColor})),d.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,n=e.height,o=e.imageFit,r=e.previewIconProps,i=e.previewIconContainerClass;if(r)return d.createElement("div",{className:Me(this._classNames.previewIcon,i),style:{width:t,height:n}},d.createElement(Ge,Object(u.a)({},r)));var a,s=d.createElement(Pe,{width:t,height:n,imageFit:o,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(a=d.createElement(Pe,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),d.createElement("div",null,s,a)},t}(d.Component),(function(e){var t,n,o=e.theme,r=e.className,i=e.isFileList,a=o.palette,s=o.fonts,l=Object(p.R)(Qm,o);return{root:[l.root,s.small,{backgroundColor:i?a.white:a.neutralLighterAlt,borderBottom:"1px solid ".concat(a.neutralLight),overflow:"hidden",position:"relative"},r],previewIcon:[l.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[l.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[Object(p.Q)(o,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:a.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:(t={":hover":{color:a.themePrimary}},t[".".concat(Gn.a," &:focus")]={selectors:(n={},n[p.m]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}}),void 0,{scope:"DocumentCardPreview"}),Sg=L(),kg=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,o=e.styles,r=e.theme,i=e.className,a={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=Sg(o,{theme:r,className:i}),d.createElement("div",{className:this._classNames.root},t&&d.createElement(Ge,Object(u.a)({},a)),n)},t}(d.Component),xg={root:"ms-DocumentCardStatus"},wg=k(kg,(function(e){var t=e.className,n=e.theme,o=n.palette,r=n.fonts;return{root:[Object(p.R)(xg,n).root,r.medium,{margin:"8px 16px",color:o.neutralPrimary,backgroundColor:o.neutralLighter,height:"32px"},t]}}),void 0,{scope:"DocumentCardStatus"}),Ig=L(),Eg=k(function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=d.createRef(),n._truncateTitle=function(){n._needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._titleElement.current;if(t){var o=getComputedStyle(t);if(o.width&&o.lineHeight&&o.height){var r=t.clientWidth,i=t.scrollWidth;n._clientWidth=r;var a=Math.floor((parseInt(o.height,10)+5)/parseInt(o.lineHeight,10));t.style.whiteSpace="";var s=i/(parseInt(o.width,10)*a);if(s>1){var l=e.length/s-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2)})}}}},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,o=e.truncatedTitleSecondPiece;if(t&&o){var r=n._titleElement.current;if(!r)return;(r.scrollHeight>r.clientHeight+5||r.scrollWidth>r.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:o.slice(1)})}},Ct(n),n._async=new wt(n),n._events=new vo(n),n._clientWidth=void 0,n.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},n}return Object(u.c)(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate?this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation)):this._events.off(window,"resize",this._updateTruncation):this._needMeasurement&&this._async.requestAnimationFrame((function(){t._truncateWhenInAnimation(),t._shrinkTitle()}))},t.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.title,o=t.shouldTruncate,r=t.showAsSecondaryTitle,i=t.styles,a=t.theme,s=t.className,l=this.state,c=l.truncatedTitleFirstPiece,u=l.truncatedTitleSecondPiece;return this._classNames=Ig(i,{theme:a,className:s,showAsSecondaryTitle:r}),o&&c&&u?d.createElement(qm.Consumer,null,(function(t){var o=t.role,r=t.tabIndex;return d.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:r,role:o},c,"…",u)})):d.createElement(qm.Consumer,null,(function(t){var o=t.role,r=t.tabIndex;return d.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:r,role:o,style:e._needMeasurement?{whiteSpace:"nowrap"}:void 0},n)}))},Object.defineProperty(t.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),t.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout((function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})}),250))},t}(d.Component),(function(e){var t,n=e.theme,o=e.className,r=e.showAsSecondaryTitle,i=n.palette,a=n.fonts,s=n.effects;return{root:[Object(p.R)(Zm,n).root,r?a.medium:a.large,{padding:"8px 16px",display:"block",overflow:"hidden",position:"relative",wordWrap:"break-word",height:r?"45px":"38px",lineHeight:r?"18px":"21px",color:r?i.neutralSecondary:i.neutralPrimary,selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(Gn.a," &:focus")]=Object(p.V)(i.neutralSecondary,s.roundedCorner2),t)},o]}}),void 0,{scope:"DocumentCardTitle"}),Og=function(e){var t;return function(n){t||(t=new Set,yt(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var o=requestAnimationFrame((function(){t.delete(o),n()}));t.add(o)}},Tg=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=[],o=0,r=0;r<e.length;r++){var i=e[r],a=i.itemType,s=i.hidden;a===yp.Divider||a===yp.Header?(t.push(r),n.push(r)):s?n.push(r):o++}this._size=o,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=n,this._cachedOptions=Object(u.e)([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(Km||(Km={}));var Dg,Pg=L();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(Dg||(Dg={}));var Rg,Mg,Ng,Fg,Bg,Lg=function(e){function t(t){var n=e.call(this,t)||this;n._panel=d.createRef(),n._animationCallback=null,n._hasCustomNavigation=!(!n.props.onRenderNavigation&&!n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?In(e,n._events):wn(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,o=void 0===t?n._onRenderNavigationContent:t;return d.createElement("div",{className:n._classNames.navigation},o(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,o=e.closeButtonAriaLabel,r=e.hasCloseButton,i=e.onRenderHeader,a=void 0===i?n._onRenderHeader:i;if(r){var s=null===(t=n._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return d.createElement(d.Fragment,null,!n._hasCustomNavigation&&a(n.props,n._onRenderHeader,n._headerTextId),d.createElement(Ss,{styles:s,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:o,title:o,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,o){var r=e.headerText,i=e.headerTextProps,a=void 0===i?{}:i;return r?d.createElement("div",{className:n._classNames.header},d.createElement("div",Object(u.a)({id:o,role:"heading","aria-level":1},a,{className:Me(n._classNames.headerText,a.className)}),r)):null},n._onRenderBody=function(e){return d.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,o=void 0===t?null:t;return o?d.createElement("div",{className:n._classNames.footer},d.createElement("div",{className:n._classNames.footerInner},o())):null},n._animateTo=function(e){e===Dg.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete(e)}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(e){n._updateFooterPosition(),e===Dg.open&&n.props.onOpened&&n.props.onOpened(),e===Dg.closed&&n.props.onDismissed&&n.props.onDismissed()};var o=n.props.allowTouchBodyScroll,r=void 0!==o&&o;return n._allowTouchBodyScroll=r,Ct(n),n.state={isFooterSticky:!1,visibility:Dg.closed,id:bn("Panel")},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==Dg.closed&&t.visibility!==Dg.animatingClosed?e.isOpen||t.visibility!==Dg.open&&t.visibility!==Dg.animatingOpen?null:{visibility:Dg.animatingClosed}:{visibility:Dg.animatingOpen}},t.prototype.componentDidMount=function(){this._async=new wt(this),this._events=new vo(this),this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:Dg.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),o=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===Dg.animatingOpen?this._animateTo(Dg.open):this.state.visibility===Dg.animatingClosed&&this._animateTo(Dg.closed)),n&&!o?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&o&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,o=e.elementToFocusOnDismiss,r=e.firstFocusableSelector,i=e.focusTrapZoneProps,a=e.forceFocusInsideTrap,s=e.hasCloseButton,l=e.headerText,c=e.headerClassName,p=void 0===c?"":c,f=e.ignoreExternalFocusing,h=e.isBlocking,m=e.isFooterAtBottom,g=e.isLightDismiss,v=e.isHiddenOnDismiss,b=e.layerProps,y=e.overlayProps,C=e.popupProps,_=e.type,S=e.styles,k=e.theme,x=e.customWidth,w=e.onLightDismissClick,I=void 0===w?this._onPanelClick:w,E=e.onRenderNavigation,O=void 0===E?this._onRenderNavigation:E,T=e.onRenderHeader,D=void 0===T?this._onRenderHeader:T,R=e.onRenderBody,M=void 0===R?this._onRenderBody:R,N=e.onRenderFooter,F=void 0===N?this._onRenderFooter:N,B=this.state,L=B.isFooterSticky,A=B.visibility,j=B.id,H=_===Km.smallFixedNear||_===Km.customNear,z=P(k)?H:!H,W=_===Km.custom||_===Km.customNear?{width:x}:{},V=fe(this.props,pe),U=this.isActive,K=A===Dg.animatingClosed||A===Dg.animatingOpen;if(this._headerTextId=l&&j+"-headerText",!U&&!K&&!v)return null;this._classNames=Pg(S,{theme:k,className:n,focusTrapZoneClassName:i?i.className:void 0,hasCloseButton:s,headerClassName:p,isAnimating:K,isFooterSticky:L,isFooterAtBottom:m,isOnRightSide:z,isOpen:U,isHiddenOnDismiss:v,type:_,hasCustomNavigation:this._hasCustomNavigation});var G,q=this._classNames,Y=this._allowTouchBodyScroll;return h&&U&&(G=d.createElement(bm,Object(u.a)({className:q.overlay,isDarkThemed:!1,onClick:g?I:void 0,allowTouchBodyScroll:Y},y))),d.createElement(Bi,Object(u.a)({},b),d.createElement(Ar,Object(u.a)({role:"dialog","aria-modal":h?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:q.hiddenPanel,enableAriaHiddenSiblings:!!U},C),d.createElement("div",Object(u.a)({"aria-hidden":!U&&K},V,{ref:this._panel,className:q.root}),G,d.createElement(eu,Object(u.a)({ignoreExternalFocusing:f,forceFocusInsideTrap:!(!h||v&&!U)&&a,firstFocusableSelector:r,isClickableOutsideFocusTrap:!0},i,{className:q.main,style:W,elementToFocusOnDismiss:o}),d.createElement("div",{className:q.contentInner},d.createElement("div",{ref:this._allowScrollOnPanel,className:q.scrollableContent,"data-is-scrollable":!0},d.createElement("div",{className:q.commands,"data-is-visible":!0},O(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!s)&&D(this.props,this._onRenderHeader,this._headerTextId),M(this.props,this._onRenderBody),F(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:Dg.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:Dg.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===Dg.open||this.state.visibility===Dg.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(Xt(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:Km.smallFixedFar},t}(d.Component),Ag={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},jg="100%",Hg="auto",zg=272,Wg=340,Vg=592,Ug=644,Kg=940,Gg="auto",qg=0,Yg=48,Qg=428,Xg=176,Zg=((Rg={})["@media (min-width: ".concat(p.y,"px)")]={width:Wg},Rg),$g=((Mg={})["@media (min-width: ".concat(p.x,"px)")]={width:Vg},Mg["@media (min-width: ".concat(p.B,"px)")]={width:Ug},Mg),Jg=((Ng={})["@media (min-width: ".concat(p.A,"px)")]={left:Yg,width:Hg},Ng["@media (min-width: ".concat(p.C,"px)")]={left:Qg},Ng),ev=((Fg={})["@media (min-width: ".concat(p.C,"px)")]={left:Gg,width:Kg},Fg),tv=((Bg={})["@media (min-width: ".concat(p.C,"px)")]={left:Xg},Bg),nv=function(e){var t;switch(e){case Km.smallFixedFar:t=Object(u.a)({},Zg);break;case Km.medium:t=Object(u.a)(Object(u.a)({},Zg),$g);break;case Km.large:t=Object(u.a)(Object(u.a)(Object(u.a)({},Zg),$g),Jg);break;case Km.largeFixed:t=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Zg),$g),Jg),ev);break;case Km.extraLarge:t=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Zg),$g),Jg),tv)}return t},ov={paddingLeft:"24px",paddingRight:"24px"},rv=k(Lg,(function(e){var t,n,o,r,i=e.className,a=e.focusTrapZoneClassName,s=e.hasCloseButton,l=e.headerClassName,c=e.isAnimating,d=e.isFooterSticky,f=e.isFooterAtBottom,h=e.isOnRightSide,m=e.isOpen,g=e.isHiddenOnDismiss,v=e.hasCustomNavigation,b=e.theme,y=e.type,C=void 0===y?Km.smallFixedFar:y,_=b.effects,S=b.fonts,k=b.semanticColors,x=Object(p.R)(Ag,b),w=C===Km.custom||C===Km.customNear;return{root:[x.root,b.fonts.medium,m&&x.isOpen,s&&x.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},w&&h&&x.custom,w&&!h&&x.customNear,i],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&c&&p.a.fadeIn100,!m&&c&&p.a.fadeOut100],hiddenPanel:[!m&&!c&&g&&{visibility:"hidden"}],main:[x.main,{backgroundColor:k.bodyBackground,boxShadow:_.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:Gg,right:qg,width:jg,selectors:Object(u.a)((t={},t[p.m]={borderLeft:"3px solid ".concat(k.variantBorder),borderRight:"3px solid ".concat(k.variantBorder)},t),nv(C))},C===Km.smallFluid&&{left:qg},C===Km.smallFixedNear&&{left:qg,right:Gg,width:zg},C===Km.customNear&&{right:"auto",left:0},w&&{maxWidth:"100vw"},m&&c&&!h&&p.a.slideRightIn40,m&&c&&h&&p.a.slideLeftIn40,!m&&c&&!h&&p.a.slideLeftOut40,!m&&c&&h&&p.a.slideRightOut40,a],commands:[x.commands,{backgroundColor:k.bodyBackground,paddingTop:18,selectors:(n={},n["@media (min-height: ".concat(p.y,"px)")]={position:"sticky",top:0,zIndex:1},n)},v&&{paddingTop:"inherit"}],navigation:[x.navigation,{display:"flex",justifyContent:"flex-end"},v&&{height:"44px"}],contentInner:[x.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[x.header,ov,{alignSelf:"flex-start"},s&&!v&&{flexGrow:1},v&&{flexShrink:0}],headerText:[x.headerText,S.xLarge,{color:k.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},l],scrollableContent:[x.scrollableContent,{overflowY:"auto"},f&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[x.content,ov,{paddingBottom:20},f&&{selectors:(o={},o["@media (min-height: ".concat(p.y,"px)")]={flexGrow:1},o)}],footer:[x.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(p.c.durationValue3," ").concat(p.c.easeFunction2),selectors:(r={},r["@media (min-height: ".concat(p.y,"px)")]={position:"sticky",bottom:0},r)},d&&{backgroundColor:k.bodyBackground,borderTopColor:k.variantBorder}],footerInner:[x.footerInner,ov,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[x.closeButton,{marginRight:14,color:b.palette.neutralSecondary,fontSize:p.p.large},v&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:b.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"}),iv=L(),av={options:[]};var sv=d.forwardRef((function(e,t){var n=H(av,e),o=d.useRef(null),r=Ie(t,o),i=za(o,n.responsiveMode),a=function(e){var t,n=e.defaultSelectedKeys,o=e.selectedKeys,r=e.defaultSelectedKey,i=e.selectedKey,a=e.options,s=e.multiSelect,l=ua(a),c=d.useState([]),u=c[0],p=c[1],f=a!==l,h=ua(t=s?f&&void 0!==n?n:o:f&&void 0!==r?r:i);return d.useEffect((function(){var e=function(){return a.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},n=function(e){return Nt(a,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&l||t===h&&!f||p(function(){if(void 0===t)return s?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var o=[],r=0,i=t;r<i.length;r++){var a,l=i[r];-1!==(a=n(l))&&o.push(a)}return o}())}),[f,s,l,h,a,t]),[u,p]}(n),s=a[0],l=a[1];return d.createElement(pv,Object(u.a)({},n,{responsiveMode:i,hoisted:{rootRef:r,selectedIndices:s,setSelectedIndices:l}}))}));sv.displayName="DropdownBase";var lv,cv,uv,dv,pv=function(e){function t(t){var n=e.call(this,t)||this;n._host=d.createRef(),n._focusZone=d.createRef(),n._dropDown=d.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new Tg,n._requestAnimationFrame=Og(n),n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onChange=function(e,t,o,r,i){var a=n.props,s=a.onChange,l=a.onChanged;if(s||l){var c=i?Object(u.a)(Object(u.a)({},t[o]),{selected:!r}):t[o];s&&s(Object(u.a)(Object(u.a)({},e),{target:n._dropDown.current}),c,o),l&&l(c,o)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var o=n.props.multiSelectDelimiter,r=void 0===o?", ":o;return e.map((function(e){return e.text})).join(r)},n._onRenderTitle=function(e){return d.createElement(d.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?d.createElement(d.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,o=e.panelProps,r=n.props,i=r.responsiveMode,a=r.dropdownWidth,s=i<=Ta.medium,l={firstFocusableTarget:"#".concat(n._listId,"1")},c=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,p=void 0,f=void 0;return"auto"===a?f=n._dropDown.current?n._dropDown.current.clientWidth:0:p=a||(n._dropDown.current?n._dropDown.current.clientWidth:0),s?d.createElement(rv,Object(u.a)({closeButtonAriaLabel:"Close",focusTrapZoneProps:l,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,styles:c},o),n._renderFocusableList(e)):d.createElement(Li,Object(u.a)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Eo.bottomLeftEdge,calloutWidth:p,calloutMinWidth:f},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return d.createElement(Ge,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,o=void 0===t?n._onRenderItem:t,r={items:[]},i=[],a=function(){var e=r.id?[d.createElement("div",{role:"group",key:r.id,"aria-labelledby":r.id},r.items)]:r.items;i=Object(u.e)(Object(u.e)([],i,!0),e,!0),r={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case yp.Header:r.items.length>0&&a();var i=n._id+e.key;r.items.push(o(Object(u.a)(Object(u.a)({id:i},e),{index:t}),n._onRenderItem)),r.id=i;break;case yp.Divider:t>0&&r.items.push(o(Object(u.a)(Object(u.a)({},e),{index:t}),n._onRenderItem)),r.items.length>0&&a();break;default:r.items.push(o(Object(u.a)(Object(u.a)({},e),{index:t}),n._onRenderItem))}}(e,t)})),r.items.length>0&&a(),d.createElement(d.Fragment,null,i)},n._onRenderItem=function(e){switch(e.itemType){case yp.Divider:return n._renderSeparator(e);case yp.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t,o=n.props,r=o.onRenderOption,i=void 0===r?n._onRenderOption:r,a=o.hoisted.selectedIndices,s=void 0===a?[]:a,l=!(void 0===e.index||!s)&&s.indexOf(e.index)>-1,c=e.hidden?n._classNames.dropdownItemHidden:l&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:l?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,p=e.title,f=n._listId+e.index,h=null!==(t=e.id)&&void 0!==t?t:f+"-label",m=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?d.createElement(cu,{id:f,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:Object(u.a)({"aria-selected":l,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:p,onRenderLabel:n._onRenderItemLabel.bind(n,Object(u.a)(Object(u.a)({},e),{id:h})),className:Me(c,"is-multi-select"),checked:l,styles:m,ariaPositionInSet:e.hidden?void 0:n._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:h}):d.createElement(ml,{id:f,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:c,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":l?"true":"false",ariaLabel:e.ariaLabel,title:p,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},i(e,n._onRenderOption))},n._onRenderOption=function(e){return d.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderMultiselectOption=function(e){return d.createElement("span",{id:e.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderMultiselectOption:t)(e,n._onRenderMultiselectOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame((function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&e&&e[0]&&!n.props.options[e[0]].disabled){var t=Object(O.a)().getElementById("".concat(n._id,"-list").concat(e[0]));t&&n._focusZone.current.focusElement(t),n._hasBeenPositioned=!0}else n._focusZone.current.focus()})),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=window.setTimeout((function(){n._isScrollIdle=!0}),n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(e){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||n.state.isOpen||(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,o=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,r=e.altKey||e.metaKey,i=n.state.isOpen;switch(e.which){case E.enter:n.setState({isOpen:!i});break;case E.escape:if(!i)return;n.setState({isOpen:!1});break;case E.up:if(r){if(i){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,o-1,o));break;case E.down:r&&(e.stopPropagation(),e.preventDefault()),r&&!i||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,o+1,o));break;case E.home:n.props.multiSelect||(t=n._moveIndex(e,1,0,o));break;case E.end:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,o));break;case E.space:break;default:return}t!==o&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),o=n.state.isOpen;if(!n.props.onKeyUp||(n.props.onKeyUp(e),!e.defaultPrevented)){switch(e.which){case E.space:n.setState({isOpen:!o});break;default:return void(t&&o&&n.setState({isOpen:!1}))}e.stopPropagation(),e.preventDefault()}}},n._onZoneKeyDown=function(e){var t,o,r;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var i=e.altKey||e.metaKey;switch(e.which){case E.up:i?n.setState({isOpen:!1}):n._host.current&&(r=$t(n._host.current,n._host.current.lastChild,!0));break;case E.home:case E.end:case E.pageUp:case E.pageDown:break;case E.down:!i&&n._host.current&&(r=Zt(n._host.current,n._host.current.firstChild,!0));break;case E.escape:n.setState({isOpen:!1});break;case E.tab:n.setState({isOpen:!1});var a=Object(O.a)();a&&(e.shiftKey?null===(t=nn(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(o=on(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===o||o.focus());break;default:return}r&&r.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,o=e.required,r=e.disabled,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?d.createElement(pu,{className:n._classNames.label,id:n._labelId,required:o,styles:i,disabled:r},t):null},Ct(n);t.multiSelect,t.selectedKey,t.selectedKeys,t.defaultSelectedKey,t.defaultSelectedKeys;var o=t.options;return n._id=t.id||bn("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(o),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return Pp(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,o=t.label,r=t.options,i=t.ariaLabel,a=t.required,s=t.errorMessage,l=t.styles,c=t.theme,p=t.panelProps,f=t.calloutProps,h=t.onRenderTitle,m=void 0===h?this._getTitle:h,g=t.onRenderContainer,v=void 0===g?this._onRenderContainer:g,b=t.onRenderCaretDown,y=void 0===b?this._onRenderCaretDown:b,C=t.onRenderLabel,_=void 0===C?this._onRenderLabel:C,S=t.onRenderItem,k=void 0===S?this._onRenderItem:S,x=t.hoisted.selectedIndices,w=this.state,I=w.isOpen,E=w.calloutRenderEdge,O=w.hasFocus,T=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;r!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(r);var D=Pp(r,x),P=fe(t,pe),R=this._isDisabled(),M=e+"-errorMessage";this._classNames=iv(l,{theme:c,className:n,hasError:!!(s&&s.length>0),hasLabel:!!o,isOpen:I,required:a,disabled:R,isRenderingPlaceholder:!D.length,panelClassName:p?p.className:void 0,calloutClassName:f?f.className:void 0,calloutRenderEdge:E});var N=!!s&&s.length>0;return d.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":I?this._listId:void 0},_(this.props,this._onRenderLabel),d.createElement("div",Object(u.a)({"data-is-focusable":!R,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:R?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":I?"true":"false","aria-label":i,"aria-labelledby":o&&!i?wo(this._labelId,this._optionId):void 0,"aria-describedby":N?this._id+"-errorMessage":void 0,"aria-required":a,"aria-disabled":R,"aria-controls":I?this._listId:void 0},P,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),d.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":O?"polite":void 0,"aria-atomic":!!O||void 0,"aria-invalid":N},D.length?m(D,this._onRenderTitle):T(t,this._onRenderPlaceholder)),d.createElement("span",{className:this._classNames.caretDownWrapper},y(t,this._onRenderCaretDown))),I&&v(Object(u.a)(Object(u.a)({},t),{onDismiss:this._onDismiss,onRenderItem:k}),this._onRenderContainer),N&&d.createElement("div",{role:"alert",id:M,className:this._classNames.errorMessage},s))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,o=n.options,r=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!!c&&c.indexOf(t)>-1,d=[];if(t=Math.max(0,Math.min(o.length-1,t)),void 0===r&&void 0===i){if(a||s||t!==c[0]){if(a)if(d=c?this._copyArray(c):[],u){var p=d.indexOf(t);p>-1&&d.splice(p,1)}else d.push(t);else d=[t];e.persist(),this.props.hoisted.setSelectedIndices(d),this._onChange(e,o,t,u,a)}}else this._onChange(e,o,t,u,a)},t.prototype._copyArray=function(e){for(var t=[],n=0,o=e;n<o.length;n++){var r=o[n];t.push(r)}return t},t.prototype._moveIndex=function(e,t,n,o){var r=this.props.options;if(o===n||0===r.length)return o;n>=r.length?n=0:n<0&&(n=r.length-1);for(var i=0;r[n].itemType===yp.Header||r[n].itemType===yp.Divider||r[n].disabled;){if(i>=r.length)return o;n+t<0?n=r.length:n+t>=r.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,o=e.label,r=e.ariaLabel,i=e.multiSelect;return d.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},d.createElement(zn,{ref:this._focusZone,direction:Ot.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":r,"aria-labelledby":o&&!r?this._labelId:void 0,"aria-multiselectable":i},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key,o=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?d.createElement("div",{role:"presentation",key:n,className:o}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,o=e.key,r=e.id,i=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return d.createElement("div",{id:r,key:o,className:i},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===E.alt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(Ro()||Fo())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(d.Component),fv={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},hv=((lv={})["".concat(p.m,", ").concat(p.o.replace("@media ",""))]=Object(u.a)({},Object(p.S)()),lv),mv={selectors:Object(u.a)((cv={},cv[p.m]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},cv[".ms-Checkbox-checkbox"]=(uv={},uv[p.m]={borderColor:"HighlightText"},uv),cv),hv)},gv={selectors:(dv={},dv[p.m]={borderColor:"Highlight"},dv)},vv=Object(p.X)(0,p.y),bv=k(sv,(function(e){var t,n,o,r,i,a,s,l,c,d,f,h,m=e.theme,g=e.hasError,v=e.hasLabel,b=e.className,y=e.isOpen,C=e.disabled,_=e.required,S=e.isRenderingPlaceholder,k=e.panelClassName,x=e.calloutClassName,w=e.calloutRenderEdge;if(!m)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var I=Object(p.R)(fv,m),E=m.palette,O=m.semanticColors,T=m.effects,D=m.fonts,P={color:O.menuItemTextHovered},R={color:O.menuItemText},M={borderColor:O.errorText},N=[I.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],F=[I.dropdownItemHeader,Object(u.a)(Object(u.a)({},D.medium),{fontWeight:p.l.semibold,color:O.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(t={},t[p.m]=Object(u.a)({color:"GrayText"},Object(p.S)()),t)})],B=O.menuItemBackgroundPressed,L=function(e){var t,n;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:O.menuItemTextHovered,backgroundColor:e?B:O.menuItemBackgroundHovered},mv],"&.is-multi-select:hover":[{backgroundColor:e?B:"transparent"},mv],"&:active:hover":[{color:O.menuItemTextHovered,backgroundColor:e?O.menuItemBackgroundHovered:O.menuItemBackgroundPressed},mv]},t[".".concat(Gn.a," &:focus:after")]=(n={left:0,top:0,bottom:0,right:0},n[p.m]={inset:"2px"},n),t[p.m]={border:"none"},t)}},A=Object(u.e)(Object(u.e)([],N,!0),[{backgroundColor:B,color:O.menuItemTextHovered},L(!0),mv],!1),j=Object(u.e)(Object(u.e)([],N,!0),[{color:O.disabledText,cursor:"default",selectors:(n={},n[p.m]={color:"GrayText",border:"none"},n)}],!1),H=w===Mo.bottom?"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0"):"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2),z=w===Mo.bottom?"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2):"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0");return{root:[I.root,b],label:I.label,dropdown:[I.dropdown,p.gb,D.medium,{color:O.menuItemText,borderColor:O.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(o={},o["&:hover ."+I.title]=[!C&&P,{borderColor:y?E.neutralSecondary:E.neutralPrimary},gv],o["&:focus ."+I.title]=[!C&&P,{selectors:(r={},r[p.m]={color:"Highlight"},r)}],o["&:focus:after"]=[{pointerEvents:"none",content:"",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:C?"none":"2px solid ".concat(E.themePrimary),borderRadius:"2px",selectors:(i={},i[p.m]={color:"Highlight"},i)}],o["&:active ."+I.title]=[!C&&P,{borderColor:E.themePrimary},gv],o["&:hover ."+I.caretDown]=!C&&R,o["&:focus ."+I.caretDown]=[!C&&R,{selectors:(a={},a[p.m]={color:"Highlight"},a)}],o["&:active ."+I.caretDown]=!C&&R,o["&:hover ."+I.titleIsPlaceHolder]=!C&&R,o["&:focus ."+I.titleIsPlaceHolder]=!C&&R,o["&:active ."+I.titleIsPlaceHolder]=!C&&R,o["&:hover ."+I.titleHasError]=M,o["&:active ."+I.titleHasError]=M,o)},y&&"is-open",C&&"is-disabled",_&&"is-required",_&&!v&&{selectors:(s={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},s[p.m]={selectors:{":after":{right:-14}}},s)}],title:[I.title,p.gb,{backgroundColor:O.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:O.inputBorder,borderRadius:y?H:T.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},S&&[I.titleIsPlaceHolder,{color:O.inputPlaceholderText}],g&&[I.titleHasError,M],C&&{backgroundColor:O.disabledBackground,border:"none",color:O.disabledText,cursor:"default",selectors:(l={},l[p.m]=Object(u.a)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},Object(p.S)()),l)}],caretDownWrapper:[I.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!C&&{cursor:"pointer"}],caretDown:[I.caretDown,{color:E.neutralSecondary,fontSize:D.small.fontSize,pointerEvents:"none"},C&&{color:O.disabledText,selectors:(c={},c[p.m]=Object(u.a)({color:"GrayText"},Object(p.S)()),c)}],errorMessage:Object(u.a)(Object(u.a)({color:O.errorText},m.fonts.small),{paddingTop:5}),callout:[I.callout,{boxShadow:T.elevation8,borderRadius:z,selectors:(d={},d[".ms-Callout-main"]={borderRadius:z},d)},x],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[I.dropdownItems,{display:"block"}],dropdownItem:Object(u.e)(Object(u.e)([],N,!0),[L()],!1),dropdownItemSelected:A,dropdownItemDisabled:j,dropdownItemSelectedAndDisabled:[A,j,{backgroundColor:"transparent"}],dropdownItemHidden:Object(u.e)(Object(u.e)([],N,!0),[{display:"none"}],!1),dropdownDivider:[I.dropdownDivider,{height:1,backgroundColor:O.bodyDivider}],dropdownDividerHidden:[I.dropdownDivider,{display:"none"}],dropdownOptionText:[I.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:F,dropdownItemHeaderHidden:Object(u.e)(Object(u.e)([],F,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(f={},f[".".concat(Gn.a," &:focus + label::before")]={outlineOffset:"0px"},f)}},panel:{root:[k],main:{selectors:(h={},h[vv]={width:272},h)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});bv.displayName="Dropdown";var yv=n(11);Object(yv.a)([{rawString:".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);Object(yv.a)([{rawString:".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}"}]);var Cv,_v,Sv="pickerText_9f838726",kv="pickerInput_9f838726",xv=o,wv=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=d.createRef(),n.selectedItemsList=d.createRef(),n.root=d.createRef(),n.input=d.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){t||(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===E.backspace&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,o=n.state.queryString;if(void 0===t||t===o){var r=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===r)return;var i,a=r,s=r;s&&s.then?s.then((function(e){i=e,n._addProcessedItem(i)})):(i=a,n._addProcessedItem(i))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},Ct(n),n.selection=new _h({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,o;return null!==(o=null!==(n=null!==(e=this.props.selectedItems)&&void 0!==e?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)&&void 0!==n?n:this.props.defaultSelectedItems)&&void 0!==o?o:null},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,o=e.disabled,r=e.focusZoneProps,i=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,a=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return d.createElement("div",{ref:this.root,className:Me("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},d.createElement(zn,Object(u.a)({direction:Ot.bidirectional},r),d.createElement(Ch,{selection:this.selection,selectionMode:Qf.multiple},d.createElement("div",{className:Me("ms-BasePicker-text",xv.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&d.createElement(It,Object(u.a)({},n,{className:Me("ms-BasePicker-input",xv.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":i,"aria-owns":a?"suggestion-list":void 0,"aria-expanded":a,"aria-haspopup":"true",role:"combobox",disabled:o,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return d.createElement(e,Object(u.a)({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return d.createElement(e,Object(u.a)({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(d.Component),Iv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(wv),Ev=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(Iv);(_v=Cv||(Cv={}))[_v.none=0]="none",_v[_v.descriptive=1]="descriptive",_v[_v.more=2]="more",_v[_v.downArrow=3]="downArrow";var Ov=Object(f.c)((function(e,t,n){var o=ys(e),r=Object(p.I)(o,n);return Object(u.a)(Object(u.a)({},r),{root:[o.root,t,e.fonts.medium,n&&n.root]})})),Tv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,o=Object(u.d)(e,["className","styles"]),r=Ov(this.props.theme,t,n);return d.createElement(fs,Object(u.a)({},o,{variantClassName:"ms-Button--facepile",styles:r,onRenderDescription:xo}))},t=Object(u.b)([ms("FacepileButton",["theme","styles"],!0)],t)}(d.Component),Dv=L(),Pv={size:Ne.size48,presence:Fe.none,imageAlt:"",showOverflowTooltip:!0};var Rv=d.forwardRef((function(e,t){var n=H(Pv,e),o=Ie(t,d.useRef(null)),r=function(){return n.text||n.primaryText||""},i=function(e,t,o){var r=t&&t(n,o);return r?d.createElement("div",{dir:"auto",className:e},r):void 0},a=function(e,t){return void 0===t&&(t=!0),e?t?function(){return d.createElement(Us,{content:e,overflowMode:Rs.Parent,directionalHint:Eo.topLeftEdge},e)}:function(){return d.createElement(d.Fragment,null,e)}:void 0},s=a(r(),n.showOverflowTooltip),l=a(n.secondaryText,n.showOverflowTooltip),c=a(n.tertiaryText,n.showOverflowTooltip),p=a(n.optionalText,n.showOverflowTooltip),f=n.hidePersonaDetails,h=n.onRenderOptionalText,m=void 0===h?p:h,g=n.onRenderPrimaryText,v=void 0===g?s:g,b=n.onRenderSecondaryText,y=void 0===b?l:b,C=n.onRenderTertiaryText,_=void 0===C?c:C,S=n.onRenderPersonaCoin,k=void 0===S?function(e){return d.createElement(mt,Object(u.a)({},e))}:S,x=n.size,w=n.allowPhoneInitials,I=n.className,E=n.coinProps,O=n.showUnknownPersonaCoin,T=n.coinSize,D=n.styles,P=n.imageAlt,R=n.imageInitials,M=n.imageShouldFadeIn,N=n.imageShouldStartVisible,F=n.imageUrl,B=n.initialsColor,L=n.initialsTextColor,A=n.isOutOfOffice,j=n.onPhotoLoadingStateChange,z=n.onRenderCoin,W=n.onRenderInitials,V=n.presence,U=n.presenceTitle,K=n.presenceColors,G=n.showInitialsUntilImageLoads,q=n.showSecondaryText,Y=n.theme,Q=Object(u.a)({allowPhoneInitials:w,showUnknownPersonaCoin:O,coinSize:T,imageAlt:P,imageInitials:R,imageShouldFadeIn:M,imageShouldStartVisible:N,imageUrl:F,initialsColor:B,initialsTextColor:L,onPhotoLoadingStateChange:j,onRenderCoin:z,onRenderInitials:W,presence:V,presenceTitle:U,showInitialsUntilImageLoads:G,size:x,text:r(),isOutOfOffice:A,presenceColors:K},E),X=Dv(D,{theme:Y,className:I,showSecondaryText:q,presence:V,size:x}),Z=fe(n,pe),$=d.createElement("div",{className:X.details},i(X.primaryText,v,s),i(X.secondaryText,y,l),i(X.tertiaryText,_,c),i(X.optionalText,m,p),n.children);return d.createElement("div",Object(u.a)({},Z,{ref:o,className:X.root,style:T?{height:T,minWidth:T}:void 0}),k(Q,k),(!f||x===Ne.size8||x===Ne.size10||x===Ne.tiny)&&$)}));Rv.displayName="PersonaBase";var Mv={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},Nv=k(Rv,(function(e){var t=e.className,n=e.showSecondaryText,o=e.theme,r=o.semanticColors,i=o.fonts,a=Object(p.R)(Mv,o),s=qe(e.size),l=Qe(e.presence),c={color:r.bodySubtext,fontWeight:p.l.regular,fontSize:i.small.fontSize};return{root:[a.root,o.fonts.medium,p.gb,{color:r.bodyText,position:"relative",height:Ae.size48,minWidth:Ae.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:Ae.size8,minWidth:Ae.size8}],s.isSize10&&[a.size10,{height:Ae.size10,minWidth:Ae.size10}],s.isSize16&&[a.size16,{height:Ae.size16,minWidth:Ae.size16}],s.isSize24&&[a.size24,{height:Ae.size24,minWidth:Ae.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:Ae.size28,minWidth:Ae.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:Ae.size32,minWidth:Ae.size32}],s.isSize40&&[a.size40,{height:Ae.size40,minWidth:Ae.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:Ae.size56,minWidth:Ae.size56}],s.isSize72&&[a.size72,{height:Ae.size72,minWidth:Ae.size72}],s.isSize100&&[a.size100,{height:Ae.size100,minWidth:Ae.size100}],s.isSize120&&[a.size120,{height:Ae.size120,minWidth:Ae.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,p.fb,{color:r.bodyText,fontWeight:p.l.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:r.inputTextHovered}}},n&&{height:"16px",lineHeight:"16px",overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Ae.size8},s.isSize16&&{lineHeight:Ae.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:22}],secondaryText:[a.secondaryText,p.fb,c,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:"16px",lineHeight:"16px",overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,p.fb,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,p.fb,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,p.fb]}}),void 0,{scope:"Persona"}),Fv=L(),Bv=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=Fv(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,o=t.getPersonaProps,r=t.personaSize;return d.createElement(Nv,Object(u.a)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:r},o?o(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,o=t.getPersonaProps,r=t.personaSize;return d.createElement(mt,Object(u.a)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:r},o?o(e):null))},Ct(n),n._ariaDescriptionId=bn(),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,o=t.maxDisplayablePersonas,r=t.personas,i=t.overflowPersonas,a=t.showAddButton,s=t.ariaLabel,l=t.showTooltip,c=void 0===l||l,u=this._classNames,p="number"==typeof o?Math.min(r.length,o):r.length;n&&!e&&(e=n);var f=i&&i.length>0,h=f?r:r.slice(0,p),m=(f?i:r.slice(p))||[];return d.createElement("div",{className:u.root},this.onRenderAriaDescription(),d.createElement("div",{className:u.itemContainer},a?this._getAddNewElement():null,d.createElement("ul",{className:u.members,"aria-label":s},this._onRenderVisiblePersonas(h,0===m.length&&1===r.length,c)),e?this._getOverflowElement(m):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&d.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,n){var o=this,r=this.props,i=r.onRenderPersona,a=void 0===i?this._getPersonaControl:i,s=r.onRenderPersonaCoin,l=void 0===s?this._getPersonaCoinControl:s,c=r.onRenderPersonaWrapper;return e.map((function(e,r){var i=t?a(e,o._getPersonaControl):l(e,o._getPersonaCoinControl),s=e.onClick?function(){return o._getElementWithOnClickEvent(i,e,n,r)}:function(){return o._getElementWithoutOnClickEvent(i,e,n,r)};return d.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(r),className:o._classNames.member},c?c(e,s):s())}))},t.prototype._getElementWithOnClickEvent=function(e,t,n,o){var r=t.keytipProps;return d.createElement(Tv,Object(u.a)({},fe(t,Z),this._getElementProps(t,n,o),{keytipProps:r,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n,o){return d.createElement("div",Object(u.a)({},fe(t,Z),this._getElementProps(t,n,o)),e)},t.prototype._getElementProps=function(e,t,n){var o=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:o.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case Cv.descriptive:return this._getDescriptiveOverflowElement(e);case Cv.downArrow:return this._getIconElement("ChevronDown");case Cv.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map((function(e){return e.personaName})).join(", "),o=Object(u.a)({title:n},this.props.overflowButtonProps),r=Math.max(e.length,0),i=this._classNames;return d.createElement(Tv,Object(u.a)({},o,{ariaDescription:o.title,className:i.descriptiveOverflowButton}),d.createElement(mt,{size:t,onRenderInitials:this._renderInitialsNotPictured(r),initialsColor:Be.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,o=t.personaSize,r=this._classNames;return d.createElement(Tv,Object(u.a)({},n,{className:r.overflowButton}),d.createElement(mt,{size:o,onRenderInitials:this._renderInitials(e,!0),initialsColor:Be.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,o=this._classNames;return d.createElement(Tv,Object(u.a)({},t,{className:o.addButton}),d.createElement(mt,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return d.createElement(Ge,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return d.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:Ne.size32},t}(d.Component),Lv={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},Av=k(Bv,(function(e){var t,n=e.className,o=e.theme,r=e.spacingAroundItemButton,i=void 0===r?2:r,a=o.palette,s=o.fonts,l=Object(p.R)(Lv,o),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,o.fonts.medium,{width:"auto"},n],addButton:[l.addButton,Object(p.Q)(o,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,Object(p.Q)(o,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(i,"px")}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(i,"px")}],overflowButton:[l.overflowButton,Object(p.Q)(o,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[p.m]={color:"WindowText"},t)}],screenReaderOnly:p.ab}}),void 0,{scope:"Facepile"});Object(yv.a)([{rawString:".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}"}]);var jv="callout_ad5629e1";Object(yv.a)([{rawString:".root_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_8c91000a{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var Hv="root_8c91000a",zv="suggestionsItem_8c91000a",Wv="closeButton_8c91000a",Vv="suggestionsItemIsSuggested_8c91000a",Uv="itemButton_8c91000a",Kv="actionButton_8c91000a",Gv="buttonSelected_8c91000a",qv="suggestionsTitle_8c91000a",Yv="suggestionsContainer_8c91000a",Qv="suggestionsNone_8c91000a",Xv="suggestionsSpinner_8c91000a",Zv="suggestionsAvailable_8c91000a",$v=i,Jv=L(),eb=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,o=t.RenderSuggestion,r=t.onClick,i=t.className,a=t.id,s=t.onRemoveItem,l=t.isSelectedOverride,c=t.removeButtonAriaLabel,u=t.styles,p=t.theme,f=t.removeButtonIconProps,h=u?Jv(u,{theme:p,className:i,suggested:n.selected||l}):{root:Me("ms-Suggestions-item",$v.suggestionsItem,(e={},e["is-suggested "+$v.suggestionsItemIsSuggested]=n.selected||l,e),i),itemButton:Me("ms-Suggestions-itemButton",$v.itemButton),closeButton:Me("ms-Suggestions-closeButton",$v.closeButton)};return d.createElement("div",{className:h.root,role:"presentation"},d.createElement(ml,{onClick:r,className:h.itemButton,id:a,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},o(n.item,this.props)),this.props.showRemoveButton?d.createElement(Ss,{iconProps:null!=f?f:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:c,ariaLabel:c,onClick:s,className:h.closeButton}):null)},t}(d.Component);Object(yv.a)([{rawString:".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var tb="suggestionsContainer_44c59fda",nb=a,ob=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=d.createRef(),n.SuggestionsItemOfProperType=eb,n._onClickTypedSuggestionsItem=function(e,t){return function(o){n.props.onSuggestionClick(o,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(o){(0,n.props.onSuggestionRemove)(o,e,t),o.stopPropagation()}},Ct(n),n.currentIndex=-1,n}return Object(u.c)(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,o=t.suggestionsItemClassName,r=t.resultsMaximumNumber,i=t.showRemoveButtons,a=t.suggestionsContainerAriaLabel,s=this.SuggestionsItemOfProperType,l=this.props.suggestions;return r&&(l=l.slice(0,r)),d.createElement("div",{className:Me("ms-Suggestions-container",nb.suggestionsContainer),id:"suggestion-list",role:"listbox","aria-label":a},l.map((function(t,r){return d.createElement("div",{ref:t.selected||r===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:r,id:"sug-"+r},d.createElement(s,{id:"sug-item"+r,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,r),className:o,showRemoveButton:i,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,r),isSelectedOverride:r===e.currentIndex}))})))},t.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},t}(d.Component);Object(yv.a)([{rawString:".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_ade399af:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var rb,ib="root_ade399af",ab="actionButton_ade399af",sb="buttonSelected_ade399af",lb="suggestionsTitle_ade399af",cb="suggestionsSpinner_ade399af",ub="itemButton_ade399af",db="screenReaderOnly_ade399af",pb=s;!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(rb||(rb={}));var fb=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,o=t.onExecute,r=t.isSelected,i=t.id,a=t.className;return o?d.createElement("div",{id:i,onClick:o,className:Me("ms-Suggestions-sectionButton",a,pb.actionButton,(e={},e["is-selected "+pb.buttonSelected]=r,e))},n()):d.createElement("div",{id:i,className:Me("ms-Suggestions-section",a,pb.suggestionsTitle)},n())},t}(d.Component),hb=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=d.createRef(),n._suggestions=d.createRef(),n.SuggestionsOfProperType=ob,Ct(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},(function(){t.resetSelectedItem()}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,o=e.footerItemsProps,r=e.suggestionsAvailableAlertText,i=Object(p.eb)(p.ab),a=this.state.suggestions&&this.state.suggestions.length>0&&r;return d.createElement("div",{className:Me("ms-Suggestions",t||"",pb.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),o&&this.renderFooterItems(),a?d.createElement("span",{role:"alert","aria-live":"polite",className:i},r):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement},enumerable:!1,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,o=t.footerItemsProps,r=this.state,i=r.selectedHeaderIndex,a=r.selectedFooterIndex;if(n&&-1!==i&&i<n.length){var s=n[i];s.onExecute&&s.onExecute()}else if(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(o&&-1!==a&&a<o.length){var l=o[a];l.onExecute&&l.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(n=this._suggestions.current)||void 0===n?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,o,r,i=this.state,a=i.selectedHeaderIndex,s=i.selectedFooterIndex,l=!1;return e===E.down?-1!==a||(null===(t=this._suggestions.current)||void 0===t?void 0:t.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectNextItem(rb.header),l=!0):(null===(n=this._suggestions.current)||void 0===n?void 0:n.hasSuggestionSelected())?(this.selectNextItem(rb.suggestion),l=!0):-1!==s&&(this.selectNextItem(rb.footer),l=!0):this.selectFirstItem():e===E.up?-1!==a||(null===(o=this._suggestions.current)||void 0===o?void 0:o.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectPreviousItem(rb.header),l=!0):(null===(r=this._suggestions.current)||void 0===r?void 0:r.hasSuggestionSelected())?(this.selectPreviousItem(rb.suggestion),l=!0):-1!==s&&(this.selectPreviousItem(rb.footer),l=!0):this.selectLastItem():e!==E.enter&&e!==E.tab||this.hasSelection()&&(this.executeSelectedAction(),l=!0),l},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,o=t.suggestionsHeaderContainerAriaLabel,r=this.state.selectedHeaderIndex;return n?d.createElement("div",{className:Me("ms-Suggestions-headerContainer",pb.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":o},n.map((function(t,n){var o=-1!==r&&r===n;return t.shouldShow()?d.createElement("div",{ref:o?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},d.createElement(fb,{id:"sug-header-item"+n,isSelected:o,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,o=t.suggestionsFooterContainerAriaLabel,r=this.state.selectedFooterIndex;return n?d.createElement("div",{className:Me("ms-Suggestions-footerContainer",pb.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":o},n.map((function(t,n){var o=-1!==r&&r===n;return t.shouldShow()?d.createElement("div",{ref:o?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},d.createElement(fb,{id:"sug-footer-item"+n,isSelected:o,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return d.createElement(e,Object(u.a)({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)}else this._selectNextItemOfItemType(e)},t.prototype.selectPreviousItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)}else this._selectPreviousItemOfItemType(e)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(rb.header)||this._selectNextItemOfItemType(rb.suggestion)||this._selectNextItemOfItemType(rb.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(rb.footer)||this._selectPreviousItemOfItemType(rb.suggestion)||this._selectPreviousItemOfItemType(rb.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,o;if(void 0===t&&(t=-1),e===rb.suggestion){if(this.state.suggestions.length>t+1)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var r=e===rb.header,i=r?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&i.length>t+1)for(var a=t+1;a<i.length;a++){var s=i[a];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:r?a:-1}),this.setState({selectedFooterIndex:r?-1:a}),null===(o=this._suggestions.current)||void 0===o||o.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,o;if(e===rb.suggestion){if((r=void 0!==t?t:this.state.suggestions.length)>0)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(r-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var r,i=e===rb.header,a=i?this.props.headerItemsProps:this.props.footerItemsProps;if(a)if((r=void 0!==t?t:a.length)>0)for(var s=r-1;s>=0;s--){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:i?s:-1}),this.setState({selectedFooterIndex:i?-1:s}),null===(o=this._suggestions.current)||void 0===o||o.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case rb.header:return this.state.selectedHeaderIndex;case rb.suggestion:return this._suggestions.current.currentIndex;case rb.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case rb.header:return rb.suggestion;case rb.suggestion:return rb.footer;case rb.footer:return rb.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case rb.header:return rb.footer;case rb.suggestion:return rb.header;case rb.footer:return rb.suggestion}},t}(d.Component),mb=r,gb=function(e){function t(t){var n=e.call(this,t)||this;return n.root=d.createRef(),n.suggestionsControl=d.createRef(),n.SuggestionsControlOfProperType=hb,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var o=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(o),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,o){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,o){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(o)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case E.escape:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case E.tab:case E.enter:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case E.del:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case E.up:case E.down:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new wt(n),Ct(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return d.createElement("div",{ref:this.root,className:Me("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?d.createElement(Li,Object(u.a)({className:mb.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:Eo.bottomLeftEdge,directionalHintForRTL:Eo.bottomRightEdge,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),d.createElement(e,Object(u.a)({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this;Array.isArray(e)?this.updateSuggestions(e,!0):e&&e.then&&(this.currentPromise=e,e.then((function(n){e===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(n,!0)})))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(d.Component);Object(yv.a)([{rawString:".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var vb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(gb),bb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return n=Object(u.a)({},e),Object(u.a)({},t),d.createElement("div",{className:Me("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_f73be5be")},d.createElement(Nv,Object(u.a)({presence:void 0!==n.presence?n.presence:Fe.none,size:Ne.size40,className:Me("ms-PeoplePicker-Persona","peoplePickerPersona_f73be5be"),showSecondaryText:!0},n)));var n},createGenericItem:yb},t}(vb);function yb(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=ke(e,P())),n}var Cb=function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}return e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e}(),_b=function(e){return!(!e||!e.some((function(e){return e.children?_b(e.children):!e.isCollapsed})))},Sb=function(e,t){if(void 0!==e)for(var n=0;n<e.length;n++)e[n].isCollapsed=t},kb=function(e){return e.which===M(E.right)},xb=L(),wb=function(e,t){var n,o;switch(e.type){case"item":return null!==(o=null===(n=e.item)||void 0===n?void 0:n.key)&&void 0!==o?o:null;case"header":return e.group.key;case"footer":return"".concat(e.group.key,"-footer");case"showAll":return"".concat(e.group.key,"-showAll")}return null},Ib=function(e){return d.createElement(Hh,Object(u.a)({},e))},Eb=function(e){return d.createElement(Vh,Object(u.a)({},e))},Ob=function(e){return e.group&&e.footerText?d.createElement(Gh,Object(u.a)({},e)):null},Tb=function(e){var t=e.selection,n=e.selectionMode,o=void 0===n?Qf.multiple:n,r=e.groupProps,i=void 0===r?{}:r,a=e.compact,s=void 0!==a&&a,l=e.items,c=void 0===l?[]:l,p=e.groups,f=e.onGroupExpandStateChanged,h=e.className,m=e.usePageCache,g=e.onShouldVirtualize,v=e.theme,b=e.role,y=void 0===b?"treegrid":b,C=e.styles,_=e.focusZoneProps,S=void 0===_?{}:_,k=e.rootListProps,x=void 0===k?{}:k,w=e.onRenderCell,I=e.viewport,E=e.listRef,O=e.groupExpandedVersion,T=e.version,D=i.onRenderHeader,P=void 0===D?Ib:D,R=i.onRenderFooter,M=void 0===R?Ob:R,N=i.onRenderShowAll,F=void 0===N?Eb:N,B=xb(C,{theme:v,className:h,compact:s}),L=d.useRef(),A=d.useRef([]),j=d.useRef(_b(p)),H=d.useState({}),z=H[0],W=H[1],V=d.useState({}),U=V[0],K=V[1],G=S.shouldEnterInnerZone,q=void 0===G?kb:G,Y=d.useMemo((function(){return function(e,t,n,o){if(!e)return t;n.length<1&&(n=new Array(t.length));for(var r=0,i=[],a=e.length-1;a>=0;)i.push({group:e[a],groupIndex:a+1}),a--;for(;i.length>0;){var s=i.pop(),l=s.group,c=s.groupIndex;for(n[r]={group:l,groupId:bn("GroupedListSection"),type:"header",groupIndex:c},r++;!0!==l.isCollapsed&&(null==l?void 0:l.children)&&l.children.length>0;){for(a=l.children.length-1;a>0;)i.push({group:l.children[a],groupIndex:a+1}),a--;l=l.children[0],n[r]={group:l,groupId:bn("GroupedListSection"),type:"header",groupIndex:1},r++}if(!0!==l.isCollapsed){for(var u=l.startIndex,d=o?o(l):1/0,p=l.isShowingAll?t.length:l.count,f=u+Math.min(p,d);u<f;)n[r]={group:l,item:t[u],itemIndex:u,type:"item"},u++,r++;!l.children&&!l.isCollapsed&&!l.isShowingAll&&(l.count>d||l.hasMoreData)&&(n[r]={group:l,type:"showAll"},r++)}n[r]={group:l,type:"footer"},r++}return n.length=r,n}(p,c,A.current,null==i?void 0:i.getGroupItemLimit)}),[p,null==i?void 0:i.getGroupItemLimit,c,U,A,O]),Q=d.useCallback((function(e){var t=Y[e];return{key:"header"===t.type?t.group.key:void 0}}),[Y]);d.useEffect((function(){return(null==i?void 0:i.isAllGroupsCollapsed)&&Sb(p,i.isAllGroupsCollapsed),L.current=new vo(void 0),function(){var e;null===(e=L.current)||void 0===e||e.dispose(),L.current=void 0}}),[]),d.useEffect((function(){W({})}),[T]),d.useEffect((function(){var e=_b(p);e!==j.current&&(j.current=e,null==f||f(e))}),[p,U,f,O]);var X=d.useCallback((function(e){var t,n=null===(t=null==i?void 0:i.headerProps)||void 0===t?void 0:t.onToggleCollapse;e&&(null==n||n(e),e.isCollapsed=!e.isCollapsed,K({}),W({}))}),[K,i]),Z=function(e){e&&t&&o===Qf.multiple&&t.toggleRangeSelected(e.startIndex,e.count)},$=function(e){var t,n=null===(t=null==i?void 0:i.showAllProps)||void 0===t?void 0:t.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),W({}),K({}))},J=function(e,t){var n;return{group:e,groupIndex:t,groupLevel:null!==(n=e.level)&&void 0!==n?n:0,viewport:I,selectionMode:o,groups:p,compact:s,onToggleSelectGroup:Z,onToggleCollapse:X,onToggleSummarize:$}};return d.createElement(zn,Object(u.a)({direction:Ot.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},S,{shouldEnterInnerZone:q,className:Me(B.root,S.className)}),d.createElement(Jp,Object(u.a)({ref:E,role:y,items:Y,onRenderCellConditional:function(e,n){var o;if("header"===e.type)return function(e,n){var o,r=e.group;o="treegrid"===y?{ariaLevel:r.level?r.level+1:1,ariaSetSize:p?p.length:void 0,ariaPosInSet:e.groupIndex}:{ariaRowIndex:n};var a=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},i.headerProps),J(e.group,n)),{key:r.key,groupedListId:e.groupId}),o);return d.createElement(Db,{render:P,defaultRender:Ib,item:e,selection:t,eventGroup:L.current,props:a})}(e,n);if("showAll"===e.type)return function(e,t){var n=e.group,o=Object(u.a)(Object(u.a)(Object(u.a)({},i.showAllProps),J(n,t)),{key:n.key?"".concat(n.key,"-show-all"):void 0});return F(o,Eb)}(e,n);if("footer"===e.type)return function(e,t){var n=e.group,o=Object(u.a)(Object(u.a)(Object(u.a)({},i.footerProps),J(n,t)),{key:n.key?"".concat(n.key,"-footer"):void 0});return M(o,Ob)}(e,n);var r=e.group.level?e.group.level+1:1;return w(r,e.item,null!==(o=e.itemIndex)&&void 0!==o?o:n,e.group)},usePageCache:m,onShouldVirtualize:g,getPageSpecification:Q,version:z,getKey:wb},x)))},Db=function(e){var t=e.render,n=e.defaultRender,o=e.item,r=e.selection,i=e.eventGroup,a=e.props,s=o.group,l=function(e,t,n,o){var r=d.useState((function(){var o;return null!==(o=null==n?void 0:n.isRangeSelected(e,t))&&void 0!==o&&o})),i=r[0],a=r[1];return d.useEffect((function(){if(n&&o){var r=function(){var o;a(null!==(o=null==n?void 0:n.isRangeSelected(e,t))&&void 0!==o&&o)};return o.on(n,Zf,r),function(){null==o||o.off(n,Zf,r)}}}),[e,t,n,o]),i}(s.startIndex,s.count,r,i);return t(Object(u.a)(Object(u.a)({},a),{isSelected:l,selected:l}),n)},Pb=k(function(e){function t(t){var n=e.call(this,t)||this;n._list=d.createRef(),Ct(n);var o=t.listProps,r=(void 0===o?{}:o).version,i=void 0===r?{}:r,a=t.groups;return n.state={version:i,groupExpandedVersion:{},groups:a},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,o=e.selectionMode,r=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=Object(u.a)(Object(u.a)({},t),{groups:n});return s===t.version&&i===t.items&&n===t.groups&&o===t.selectionMode&&r===t.compact||(l.version={}),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){var e;return(null===(e=this._list.current)||void 0===e?void 0:e.getStartItemIndexInView())||0},t.prototype.render=function(){return d.createElement(Tb,Object(u.a)({},this.props,this.state,{listRef:this._list}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdate()},t.prototype.toggleCollapseAll=function(e){var t,n=this.state.groups,o=this.props.groupProps;n&&n.length>0&&(null===(t=null==o?void 0:o.onToggleCollapseAll)||void 0===t||t.call(o,e),Sb(n,e),this.setState({groupExpandedVersion:{}}),this.forceUpdate())},t.prototype._forceListUpdate=function(){this.setState({version:{}})},t.displayName="GroupedListV2",t}(d.Component),Eh,void 0,{scope:"GroupedListV2"});Pb.displayName="GroupedListV2_unstable";var Rb,Mb={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Rb||(Rb={}));var Nb,Fb,Bb=function(e){var t=e.gapSpace,n=void 0===t?0:t,o=e.directionalHint,r=void 0===o?Eo.bottomLeftEdge:o,i=e.directionalHintFixed,a=e.targetElement,s=e.firstFocus,l=e.trapFocus,c=e.onLeave,p=e.className,f=e.finalHeight,h=e.content,m=e.calloutProps,g=Object(u.a)(Object(u.a)(Object(u.a)({},fe(e,pe)),{className:p,target:a,isBeakVisible:!1,directionalHint:r,directionalHintFixed:i,finalHeight:f,minPagePadding:24,onDismiss:c,gapSpace:n}),m);return d.createElement(d.Fragment,null,l?d.createElement(tu,Object(u.a)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!s}}),h):d.createElement(Li,Object(u.a)({},g),h))},Lb=L(),Ab=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=d.createRef(),n._onKeyDown=function(e){e.which===E.escape&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return d.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),d.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},d.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new wt(n),Ct(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,o=e.expandedCardHeight,r=e.theme,i=e.mode,a=e.className,s=this.state,l=s.needsScroll,c=s.firstFrameRendered,p=n+o;this._classNames=Lb(t,{theme:r,compactCardHeight:n,className:a,expandedCardHeight:o,needsScroll:l,expandedCardFirstFrameRendered:i===Rb.expanded&&c});var f=d.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return d.createElement(Bb,Object(u.a)({},this.props,{content:f,finalHeight:p,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(d.Component),jb=k(Ab,(function(e){var t,n=e.theme,o=e.needsScroll,r=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=Object(p.R)(Mb,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[p.m]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},r&&{height:a}],expandedCardScroll:[c.expandedCardScroll,o&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Hb={host:"ms-HoverCard-host"};!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Nb||(Nb={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Fb||(Fb={}));var zb={root:"ms-PlainCard-root"};var Wb=L(),Vb=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===E.escape&&n.props.onLeave&&n.props.onLeave(e)},Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,o=e.className;this._classNames=Wb(t,{theme:n,className:o});var r=d.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return d.createElement(Bb,Object(u.a)({},this.props,{content:r,className:this._classNames.root}))},t}(d.Component),Ub=k(Vb,(function(e){var t,n=e.theme,o=e.className;return{root:[Object(p.R)(zb,n).root,{pointerEvents:"auto",selectors:(t={},t[p.m]={border:"1px solid WindowText"},t)},o]}}),void 0,{scope:"PlainCard"}),Kb=L(),Gb=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=d.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Rb.compact,openMode:"keydown"===e.type?Nb.hotKey:Nb.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==E.escape)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==E.escape||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Rb.compact,openMode:Nb.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Rb.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,o=e.instantOpenOnClick,r=e.eventListenerTarget,i=r?n._getTargetElement(r):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),o?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Ct(n),n._async=new wt(n),n._events=new vo(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Rb.compact,openMode:Nb.hover},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Rb.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Rb.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,o=e.id,r=e.setAriaDescribedBy,i=void 0===r||r,a=e.styles,s=e.theme,l=e.className,c=e.type,p=e.plainCardProps,f=e.trapFocus,h=e.setInitialFocus,m=this.state,g=m.isHoverCardVisible,v=m.mode,b=m.openMode,y=o||bn("hoverCard");this._classNames=Kb(a,{theme:s,className:l});var C=Object(u.a)(Object(u.a)({},fe(this.props,pe)),{id:y,trapFocus:!!f,firstFocus:h||b===Nb.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),_=Object(u.a)(Object(u.a)(Object(u.a)({},t),C),{mode:v}),S=Object(u.a)(Object(u.a)({},p),C);return d.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&g?y:void 0,"data-is-focusable":!this.props.target},n,g&&(c===Fb.expanding?d.createElement(jb,Object(u.a)({},_)):d.createElement(Ub,Object(u.a)({},S))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Object(O.a)().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:E.c,type:Fb.expanding},t}(d.Component),qb=k(Gb,(function(e){var t=e.className,n=e.theme;return{host:[Object(p.R)(Hb,n).host,t]}}),void 0,{scope:"HoverCard"}),Yb=n(108);function Qb(e){var t=Object(O.a)().querySelectorAll(e);return Array.from(t).find((function(e){return an(e)}))}var Xb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,o=e.theme,r=e.disabled,i=e.visible,a=L()(n,{theme:o,disabled:r,visible:i});return d.createElement("div",{className:a.container},d.createElement("span",{className:a.root},t))},t}(d.Component),Zb=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},$b=function(e){return function(t){return Object(p.db)({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},Jb=k(Xb,(function(e){var t,n=e.theme,o=e.disabled,r=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},o&&{opacity:.5,selectors:(t={},t[p.m]={color:"GrayText",opacity:1},t)},!r&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},o&&{color:n.palette.neutralTertiaryAlt}]}}),void 0,{scope:"KeytipContent"}),ey=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,o=t.offset,r=t.overflowSetSequence,i=this.props.calloutProps,a=Qb(e=ha(r?fa(n,r):n));return a?(e=a,o&&(i=Object(u.a)(Object(u.a)({},i),{coverTarget:!0,directionalHint:Eo.topLeftEdge})),i&&void 0!==i.directionalHint||(i=Object(u.a)(Object(u.a)({},i),{directionalHint:Eo.bottomCenter})),d.createElement(Li,Object(u.a)({},i,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:o?$b(o):Zb,preventDismissOnScroll:!0,target:e}),d.createElement(Jb,Object(u.a)({},this.props)))):d.createElement(d.Fragment,null)},t}(d.Component),ty=function(e){return{root:[{zIndex:p.G.KeytipLayer}]}},ny=function(){function e(){this.nodeMap={},this.root={id:la,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var o=this._getFullSequence(e),r=pa(o);o.pop();var i=this._getParentID(o),a=this._createNode(r,i,[],e,n);this.nodeMap[t]=a,this.getNodes([i]).forEach((function(e){return e.children.push(r)}))},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),o=pa(n);n.pop();var r=this._getParentID(n),i=this.nodeMap[t],a=i.parent;if(i){if(a!==r&&this._removeChildFromParents(a,i.id),i.id!==o)this.getNodes([r]).forEach((function(e){var t=e.children.indexOf(i.id);t>=0?e.children[t]=o:e.children.push(o)}));i.id=o,i.keySequences=e.keySequences,i.overflowSetSequence=e.overflowSetSequence,i.onExecute=e.onExecute,i.onReturn=e.onReturn,i.hasDynamicChildren=e.hasDynamicChildren,i.hasMenu=e.hasMenu,i.parent=r,i.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),o=pa(n);n.pop(),this._removeChildFromParents(this._getParentID(n),o),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t){var n=this,o=this.getNodes(t.children).filter((function(t){return n._getNodeSequence(t)===e&&!t.disabled}));if(0!==o.length){var r=o[0];if(1===o.length)return r;var i=r.keySequences,a=r.overflowSetSequence,s=ha(a?fa(i,a):i),l=document.querySelectorAll(s);if(o.length<l.length)return r;var c=Array.from(l).findIndex((function(e){return an(e)}));return-1!==c?o[c]:o.find((function(e){return e.hasOverflowSubMenu}))||r}},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter((function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled}))},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce((function(e,o){return n.indexOf(t.nodeMap[o].id)>=0&&!t.nodeMap[o].persisted&&e.push(t.nodeMap[o].id),e}),[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce((function(n,o){return e.indexOf(t.nodeMap[o].id)>=0&&n.push(t.nodeMap[o]),n}),[])},e.prototype.getNode=function(e){return Ft(mo(this.nodeMap),(function(t){return t.id===e}))},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=Object(u.e)([],e.keySequences,!0);e.overflowSetSequence&&(t=fa(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:pa(t),o=!1;if(this.currentKeytip.overflowSetSequence)o=pa(this.currentKeytip.keySequences)===n;return o||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:pa(e)},e.prototype._getFullSequence=function(e){var t=Object(u.e)([],e.keySequences,!0);return e.overflowSetSequence&&(t=fa(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=Object(u.e)([],e.keySequences,!0);return e.overflowSetSequence&&(t=fa(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,o,r){var i=this,a=o.keySequences,s=o.hasDynamicChildren,l=o.overflowSetSequence,c=o.hasMenu,u=o.onExecute,d=o.onReturn,p=o.disabled,f=o.hasOverflowSubMenu,h={id:e,keySequences:a,overflowSetSequence:l,parent:t,children:n,onExecute:u,onReturn:d,hasDynamicChildren:s,hasMenu:c,disabled:p,persisted:r,hasOverflowSubMenu:f};return h.children=Object.keys(this.nodeMap).reduce((function(t,n){return i.nodeMap[n].parent===e&&t.push(i.nodeMap[n].id),t}),[]),h},e.prototype._removeChildFromParents=function(e,t){this.getNodes([e]).forEach((function(e){var n=e.children.indexOf(t);n>=0&&e.children.splice(n,1)}))},e}();function oy(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,o=t.modifierKeys;if(!n&&o||n&&!o)return!1;if(n&&o){if(n.length!==o.length)return!1;n=n.sort(),o=o.sort();for(var r=0;r<n.length;r++)if(n[r]!==o[r])return!1}return!0}function ry(e,t){return!!Ft(e,(function(e){return oy(e,t)}))}var iy={key:Ro()?"Control":"Meta",modifierKeys:[E.alt]},ay=iy,sy={key:"Escape"},ly=L(),cy=function(e){function t(t,n){var o=e.call(this,t,n)||this;o._keytipManager=da.getInstance(),o._delayedKeytipQueue=[],o._keyHandled=!1,o._onDismiss=function(e){o.state.inKeytipMode&&o._exitKeytipMode(e)},o._onKeyDown=function(e){o._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":o.state.inKeytipMode&&(o._keyHandled=!0,o._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var n={key:t};n.modifierKeys=o._getModifierKey(t,e),o.processTransitionInput(n,e)}},o._onKeyPress=function(e){o.state.inKeytipMode&&!o._keyHandled&&(o.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},o._onKeytipAdded=function(e){var t,n=e.keytip,r=e.uniqueID;if(o._keytipTree.addNode(n,r),o._setKeytips(),o._keytipTree.isCurrentKeytipParent(n)&&(o._delayedKeytipQueue=o._delayedKeytipQueue.concat((null===(t=o._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),o._addKeytipToQueue(pa(n.keySequences)),o._keytipTree.currentKeytip&&o._keytipTree.currentKeytip.hasDynamicChildren&&o._keytipTree.currentKeytip.children.indexOf(n.id)<0)){var i=o._keytipTree.getNode(o._keytipTree.currentKeytip.id);i&&(o._keytipTree.currentKeytip=i)}o._persistedKeytipChecks(n)},o._onKeytipUpdated=function(e){var t,n=e.keytip,r=e.uniqueID;o._keytipTree.updateNode(n,r),o._setKeytips(),o._keytipTree.isCurrentKeytipParent(n)&&(o._delayedKeytipQueue=o._delayedKeytipQueue.concat((null===(t=o._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),o._addKeytipToQueue(pa(n.keySequences))),o._persistedKeytipChecks(n)},o._persistedKeytipChecks=function(e){if(o._newCurrentKeytipSequences&&Wt(e.keySequences,o._newCurrentKeytipSequences)&&o._triggerKeytipImmediately(e),o._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=fa(t,e.overflowSetSequence)),o._keytipTree.currentKeytip=o._keytipTree.getNode(pa(t))}},o._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;o._removeKeytipFromQueue(pa(t.keySequences)),o._keytipTree.removeNode(t,n),o._setKeytips()},o._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;o._keytipTree.addNode(t,n,!0)},o._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;o._keytipTree.removeNode(t,n)},o._onPersistedKeytipExecute=function(e){o._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},o._setInKeytipMode=function(e){o.setState({inKeytipMode:e}),o._keytipManager.inKeytipMode=e},o._warnIfDuplicateKeytips=function(){var e=o._getDuplicateIds(o._keytipTree.getChildren());e.length&&Object(bo.b)("Duplicate keytips found for "+e.join(", "))},o._getDuplicateIds=function(e){var t={};return e.filter((function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]}))},Ct(o),o._events=new vo(o),o._async=new wt(o);var r=o._keytipManager.getKeytips();return o.state={inKeytipMode:!1,keytips:r,visibleKeytips:o._getVisibleKeytips(r)},o._buildTree(),o._currentSequence="",o._events.on(o._keytipManager,Ai.KEYTIP_ADDED,o._onKeytipAdded),o._events.on(o._keytipManager,Ai.KEYTIP_UPDATED,o._onKeytipUpdated),o._events.on(o._keytipManager,Ai.KEYTIP_REMOVED,o._onKeytipRemoved),o._events.on(o._keytipManager,Ai.PERSISTED_KEYTIP_ADDED,o._onPersistedKeytipAdded),o._events.on(o._keytipManager,Ai.PERSISTED_KEYTIP_REMOVED,o._onPersistedKeytipRemoved),o._events.on(o._keytipManager,Ai.PERSISTED_KEYTIP_EXECUTE,o._onPersistedKeytipExecute),o}return Object(u.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,o=t.styles,r=this.state,i=r.keytips,a=r.visibleKeytips;return this._classNames=ly(o,{}),d.createElement(Bi,{styles:ty},d.createElement("span",{id:la,className:this._classNames.innerContent},"".concat(n).concat(ca)),i&&i.map((function(t,n){return d.createElement("span",{key:n,id:pa(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(ca))})),a&&a.map((function(e){return d.createElement(ey,Object(u.a)({key:pa(e.keySequences)},e))})))},t.prototype.componentDidMount=function(){this._events.on(window,"mouseup",this._onDismiss,!0),this._events.on(window,"pointerup",this._onDismiss,!0),this._events.on(window,"resize",this._onDismiss),this._events.on(window,"keydown",this._onKeyDown,!0),this._events.on(window,"keypress",this._onKeyPress,!0),this._events.on(window,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,Ai.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,Ai.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;ry(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):ry(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):ry(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,o=this._keytipTree.currentKeytip;if(o){var r=this._keytipTree.getExactMatchedNode(n,o);if(r){this._keytipTree.currentKeytip=o=r;var i=this._keytipTree.getChildren();return o.onExecute&&(o.onExecute(this._getKtpExecuteTarget(o),this._getKtpTarget(o)),o=this._keytipTree.currentKeytip),0!==i.length||o.hasDynamicChildren||o.hasMenu?(this.showKeytips(i),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}var a=this._keytipTree.getPartiallyMatchedNodes(n,o);if(a.length>0){var s=a.filter((function(e){return!e.persisted})).map((function(e){return e.id}));this.showKeytips(s),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var o=n[t],r=pa(o.keySequences);o.overflowSetSequence&&(r=pa(fa(o.keySequences,o.overflowSetSequence))),e.indexOf(r)>=0?o.visible=!0:o.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},t.prototype._buildTree=function(){this._keytipTree=new ny;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],o=this._keytipManager.keytips[n];this._keytipTree.addNode(o.keytip,o.uniqueID)}for(var r=0,i=Object.keys(this._keytipManager.persistedKeytips);r<i.length;r++){n=i[r],o=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(o.keytip,o.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(pa(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t={};return e.filter((function(e){var n=pa(e.keySequences);e.overflowSetSequence&&(n=pa(fa(e.keySequences,e.overflowSetSequence)));var o=ha(e.keySequences),r=document.querySelectorAll(o);return t[n]=t[n]?t[n]+1:1,r.length>1&&t[n]<=r.length?e.visible&&an(r[t[n]-1]):e.visible&&1===t[n]}))},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(E.alt),t.ctrlKey&&"Control"!==e&&n.push(E.ctrl),t.shiftKey&&"Shift"!==e&&n.push(E.shift),t.metaKey&&"Meta"!==e&&n.push(E.leftWindow),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=Object(u.e)([],e.keySequences,!0);if(e.overflowSetSequence&&(t=fa(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(pa(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300))},t.prototype._getKtpExecuteTarget=function(e){return Object(O.a)().querySelector(ma(e.id))},t.prototype._getKtpTarget=function(e){return Object(O.a)().querySelector(ha(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!Wt(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[iy],keytipExitSequences:[ay],keytipReturnSequences:[sy],content:""},t}(d.Component),uy=k(cy,(function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}}),void 0,{scope:"KeytipLayer"});function dy(e){for(var t={},n=0,o=e.keytips;n<o.length;n++){py(t,[],o[n])}return t}function py(e,t,n){var o=n.sequence?n.sequence:n.content.toLocaleLowerCase(),r=t.concat(o),i=Object(u.a)(Object(u.a)({},n.optionalProps),{keySequences:r,content:n.content});if(e[n.id]=i,n.children)for(var a=0,s=n.children;a<s.length;a++){py(e,r,s[a])}}function fy(e){var t=va(e),n=t.keytipId,o=t.ariaDescribedBy;return d.useCallback((function(e){if(e){var t=my(e,ia)||e,r=my(e,aa)||t,i=my(e,sa)||r;hy(t,ia,n),hy(r,aa,n),hy(i,"aria-describedby",o,!0)}}),[n,o])}function hy(e,t,n,o){if(void 0===o&&(o=!1),e&&n){var r=n;if(o){var i=e.getAttribute(t);i&&-1===i.indexOf(n)&&(r="".concat(i," ").concat(n))}e.setAttribute(t,r)}}function my(e,t){return e.querySelector("[".concat(t,"]"))}var gy=function(e){var t=e.className,n=d.useState((function(){return bn()}))[0],o=e.id,r=void 0===o?n:o,i=d.useRef({hostId:r,rootRef:d.useRef(null),notifyLayersChanged:function(){}});return d.useImperativeHandle(e.componentRef,(function(){return i.current})),d.useEffect((function(){ki(r,i.current),Ei(r)}),[]),$c((function(){xi(r,i.current),Ei(r)})),d.createElement("div",Object(u.a)({},e,{className:Me("ms-LayerHost",t),ref:i.current.rootRef}))},vy=function(){function e(e){this._events=new vo(this),this._scrollableParent=Pn(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=Jh(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var o,r,i,a=this._scrollRect.top,s=this._scrollRect.left,l=a+this._scrollRect.height-100,c=s+this._scrollRect.width-100;n<a+100||n>l?(r=n,o=a,i=l,this._isVerticalScroll=!0):(r=t,o=s,i=c,this._isVerticalScroll=!1),this._scrollVelocity=r<o+100?Math.max(-15,(100-(r-o))/100*-15):r>i?Math.min(15,(r-i)/100*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}();function by(e,t){var n=e.left||e.x||0,o=e.top||e.y||0,r=t.left||t.x||0,i=t.top||t.y||0;return Math.sqrt(Math.pow(n-r,2)+Math.pow(o-i,2))}function yy(e){var t,n=e.contentSize,o=e.boundsSize,r=e.mode,i=void 0===r?"contain":r,a=e.maxScale,s=void 0===a?1:a,l=n.width/n.height,c=o.width/o.height;t=("contain"===i?l>c:l<c)?o.width/n.width:o.height/n.height;var u=Math.min(s,t);return{width:n.width*u,height:n.height*u}}function Cy(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function _y(e,t,n){void 0===n&&(n=10);var o=Math.pow(n,t);return Math.round(e*o)/o}var Sy,ky,xy=L(),wy=k(function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._onMouseDown=function(e){var t=n.props,o=t.isEnabled,r=t.onShouldStartSelection;n._isMouseEventOnScrollbar(e)||n._isInSelectionToggle(e)||n._isTouch||!o||n._isDragStartInSelection(e)||r&&!r(e)||n._scrollableSurface&&0===e.button&&n._root.current&&(n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(window,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(window,"click",n._onMouseUp,!0),n._autoScroll=new vy(n._root.current),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e))},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0))},Ct(n),n._async=new wt(n),n._events=new vo(n),n.state={dragRect:void 0},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){this._scrollableParent=Pn(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,o=e.theme,r=e.className,i=e.styles,a=this.state.dragRect,s=xy(i,{theme:o,className:r});return d.createElement("div",Object(u.a)({},t,{className:s.root,ref:this._root}),n,a&&d.createElement("div",{className:s.dragMask}),a&&d.createElement("div",{className:s.box,style:a},d.createElement("div",{className:s.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth,o=t.offsetHeight-t.clientHeight;if(n||o){var r=t.getBoundingClientRect();if(P(this.props.theme)){if(e.clientX<r.left+n)return!0}else if(e.clientX>r.left+t.clientWidth)return!0;if(e.clientY>r.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame((function(){t._onMouseMove(e)})),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||by(this._dragOrigin,n)>5){if(!this.state.dragRect){var o=this.props.selection;e.shiftKey||o.setAllSelected(!1),this._preservedIndicies=o&&o.getSelectedIndices&&o.getSelectedIndices()}var r=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},i={left:Math.min(this._dragOrigin.left||0,r.left),top:Math.min(this._dragOrigin.top||0,r.top),width:Math.abs(r.left-(this._dragOrigin.left||0)),height:Math.abs(r.top-(this._dragOrigin.top||0))};this._evaluateSelection(i,t),this.setState({dragRect:i})}return!1}},t.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),o=0;o<n.length;o++){var r=n[o],i=Number(r.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){var a=r.getBoundingClientRect();if(this._isPointInRectangle(a,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,o=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var r=0;r<o.length;r++){var i=o[r],a=i.getAttribute("data-selection-index"),s=this._itemRectCache[a];s||(s={left:(s=i.getBoundingClientRect()).left-t.left,top:s.top-t.top,width:s.width,height:s.height,right:s.left-t.left+s.width,bottom:s.top-t.top+s.height}).width>0&&s.height>0&&(this._itemRectCache[a]=s),s.top<e.top+e.height&&s.bottom>e.top&&s.left<e.left+e.width&&s.right>e.left?this._selectedIndicies[a]=!0:delete this._selectedIndicies[a]}var l=this._allSelectedIndices||{};for(var a in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(a)&&(this._allSelectedIndices[a]=!0);if(this._preservedIndicies)for(var c=0,u=this._preservedIndicies;c<u.length;c++){a=u[c];this._allSelectedIndices[a]=!0}var d=!1;for(var a in this._allSelectedIndices)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(!d)for(var a in l)if(this._allSelectedIndices[a]!==l[a]){d=!0;break}if(d){n.setChangeEvents(!1),n.setAllSelected(!1);for(var p=0,f=Object.keys(this._allSelectedIndices);p<f.length;p++){a=f[p];n.setIndexSelected(Number(a),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t}(d.Component),(function(e){var t,n,o,r=e.theme,i=e.className,a=r.palette;return{root:[i,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:(t={},t[p.m]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid ".concat(a.themePrimary),pointerEvents:"none",zIndex:10,selectors:(n={},n[p.m]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:a.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:(o={},o[p.m]={background:"none",backgroundColor:"transparent"},o)}]}}),void 0,{scope:"MarqueeSelection"});!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Sy||(Sy={}));var Iy,Ey,Oy,Ty,Dy=((ky={})[Sy.info]="Info",ky[Sy.warning]="Info",ky[Sy.error]="ErrorBadge",ky[Sy.blocked]="Blocked2",ky[Sy.severeWarning]="Warning",ky[Sy.success]="Completed",ky),Py=L(),Ry=function(e){switch(e){case Sy.blocked:case Sy.error:case Sy.severeWarning:return"assertive"}return"polite"},My=function(e){switch(e){case Sy.blocked:case Sy.error:case Sy.severeWarning:return"alert"}return"status"},Ny=d.forwardRef((function(e,t){var n=km(!1),o=n[0],r=n[1].toggle,i=wa("MessageBar"),a=e.actions,s=e.className,l=e.children,c=e.overflowButtonAriaLabel,p=e.dismissIconProps,f=e.styles,h=e.theme,m=e.messageBarType,g=void 0===m?Sy.info:m,v=e.onDismiss,b=void 0===v?void 0:v,y=e.isMultiline,C=void 0===y||y,_=e.truncated,S=e.dismissButtonAriaLabel,k=e.messageBarIconProps,x=e.role,w=e.delayedRender,I=void 0===w||w,E=e.expandButtonProps,O=fe(e,U,["className","role"]),T=Py(f,{theme:h,messageBarType:g||Sy.info,onDismiss:void 0!==b,actions:void 0!==a,truncated:_,isMultiline:C,expandSingleLine:o,className:s}),D={iconName:o?"DoubleChevronUp":"DoubleChevronDown"},P=a||b?{"aria-describedby":i,role:"region"}:{},R=a?d.createElement("div",{className:T.actions},a):null,M=b?d.createElement(Ss,{disabled:!1,className:T.dismissal,onClick:b,iconProps:p||{iconName:"Clear"},title:S,ariaLabel:S}):null;return d.createElement("div",Object(u.a)({ref:t,className:T.root},P),d.createElement("div",{className:T.content},d.createElement("div",{className:T.iconContainer,"aria-hidden":!0},k?d.createElement(Ge,Object(u.a)({},k,{className:Me(T.icon,k.className)})):d.createElement(Ge,{iconName:Dy[g],className:T.icon})),d.createElement("div",{className:T.text,id:i,role:x||My(g),"aria-live":Ry(g)},d.createElement("span",Object(u.a)({className:T.innerText},O),I?d.createElement(Tt,null,d.createElement("span",null,l)):d.createElement("span",null,l))),!C&&!R&&_&&d.createElement("div",{className:T.expandSingleLine},d.createElement(Ss,Object(u.a)({disabled:!1,className:T.expand,onClick:r,iconProps:D,ariaLabel:c,"aria-expanded":o},E))),!C&&R,!C&&M&&d.createElement("div",{className:T.dismissSingleLine},M),C&&M),C&&R)}));Ny.displayName="MessageBar";var Fy,By={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},Ly=((Iy={})[Sy.error]="errorBackground",Iy[Sy.blocked]="errorBackground",Iy[Sy.success]="successBackground",Iy[Sy.warning]="warningBackground",Iy[Sy.severeWarning]="severeWarningBackground",Iy[Sy.info]="infoBackground",Iy),Ay=((Ey={})[Sy.error]="errorIcon",Ey[Sy.blocked]="errorIcon",Ey[Sy.success]="successIcon",Ey[Sy.warning]="warningIcon",Ey[Sy.severeWarning]="severeWarningIcon",Ey[Sy.info]="infoIcon",Ey),jy=((Oy={})[Sy.error]="#ff0000",Oy[Sy.blocked]="#ff0000",Oy[Sy.success]="#bad80a",Oy[Sy.warning]="#fff100",Oy[Sy.severeWarning]="#ff0000",Oy[Sy.info]="WindowText",Oy),Hy=((Ty={})[Sy.error]="#e81123",Ty[Sy.blocked]="#e81123",Ty[Sy.success]="#107c10",Ty[Sy.warning]="#966400",Ty[Sy.severeWarning]="#d83b01",Ty[Sy.info]="WindowText",Ty),zy=k(Ny,(function(e){var t,n,o,r,i,a,s,l,c,d,f,h=e.theme,m=e.className,g=e.onDismiss,v=e.truncated,b=e.isMultiline,y=e.expandSingleLine,C=e.messageBarType,_=void 0===C?Sy.info:C,S=h.semanticColors,k=h.fonts,x=Object(p.X)(0,p.u),w=Object(p.R)(By,h),I={fontSize:p.p.xSmall,height:10,lineHeight:"10px",color:S.messageText,selectors:(t={},t[p.m]=Object(u.a)(Object(u.a)({},Object(p.S)()),{color:"WindowText"}),t)},E=[Object(p.Q)(h,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":I,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[w.root,k.medium,_===Sy.error&&w.error,_===Sy.blocked&&w.blocked,_===Sy.severeWarning&&w.severeWarning,_===Sy.success&&w.success,_===Sy.warning&&w.warning,b?w.multiline:w.singleline,!b&&g&&w.dismissalSingleLine,!b&&v&&w.expandingSingleLine,{background:S[Ly[_]],boxSizing:"border-box",color:S.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:S.messageLink,selectors:{":hover":{color:S.messageLinkHovered}}}},n[p.m]=Object(u.a)(Object(u.a)({},Object(p.S)()),{background:"transparent",border:"1px solid ".concat(jy[_]),color:"WindowText"}),n[p.o]={border:"1px solid ".concat(Hy[_])},n)},b&&{flexDirection:"column"},m],content:[w.content,(o={display:"flex",width:"100%",lineHeight:"normal"},o[x]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n "icon text close"\n "action action action"\n '},o)],iconContainer:[w.iconContainer,(r={fontSize:p.p.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},r[x]={gridArea:"icon"},r)],icon:{color:S[Ay[_]],selectors:(i={},i[p.m]=Object(u.a)(Object(u.a)({},Object(p.S)()),{color:"WindowText"}),i)},text:[w.text,Object(u.a)(Object(u.a)({minWidth:0,display:"flex",flexGrow:1,margin:8},k.small),(a={},a[x]={gridArea:"text"},a.selectors=(s={},s[p.m]=Object(u.a)({},Object(p.S)()),s),a)),!g&&{marginRight:12}],innerText:[w.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},v&&{overflow:"visible",whiteSpace:"pre-wrap"},!b&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!b&&!v&&{selectors:(l={},l[x]={overflow:"visible",whiteSpace:"pre-wrap"},l)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[w.dismissSingleLine,(c={},c[x]={gridArea:"close"},c)],expandSingleLine:w.expandSingleLine,dismissal:[w.dismissal,E],expand:[w.expand,E],actions:[b?w.actions:w.actionsSingleline,(d={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"},d[x]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":(f={marginLeft:8},f[x]={marginBottom:0},f)},d),b&&{marginBottom:8},g&&!b&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),Wy={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},Vy={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};function Uy(e){return!!e&&!/^[a-z0-9+-.]+:\/\//i.test(e)}var Ky,Gy=L(),qy=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=d.createRef(),n._onRenderLink=function(e){var t=n.props,o=t.styles,r=t.groups,i=t.theme,a=Gy(o,{theme:i,groups:r});return d.createElement("div",{className:a.linkText},e.name)},n._renderGroup=function(e,t){var o=n.props,r=o.styles,i=o.groups,a=o.theme,s=o.onRenderGroupHeader,l=void 0===s?n._renderGroupHeader:s,c=n._isGroupExpanded(e),p=Gy(r,{theme:a,isGroup:!0,isExpanded:c,groups:i}),f=Object(u.a)(Object(u.a)({},e),{isExpanded:c,onHeaderClick:function(t,o){n._onGroupHeaderClicked(e,t)}});return d.createElement("div",{key:t,className:p.group},f.name?l(f,n._renderGroupHeader):null,d.createElement("div",{className:p.groupContent},n._renderLinks(f.links,0)))},n._renderGroupHeader=function(e){var t,o=n.props,r=o.styles,i=o.groups,a=o.theme,s=o.expandButtonAriaLabel,l=e.isExpanded,c=Gy(r,{theme:a,isGroup:!0,isExpanded:l,groups:i}),u=null!==(t=e.collapseAriaLabel)&&void 0!==t?t:e.expandAriaLabel,p=(l?u:e.expandAriaLabel)||s,f=e.onHeaderClick,h=f?function(e){f(e,l)}:void 0;return d.createElement("button",{className:c.chevronButton,onClick:h,"aria-label":p,"aria-expanded":l},d.createElement(Ge,{className:c.chevronIcon,iconName:"ChevronDown"}),e.name)},Ct(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,o=e.className,r=e.isOnTop,i=e.role,a=void 0===i?"navigation":i,s=e.theme;if(!n)return null;var l=n.map(this._renderGroup),c=Gy(t,{theme:s,className:o,isOnTop:r,groups:n});return d.createElement(zn,Object(u.a)({direction:Ot.vertical,componentRef:this._focusZone},this.props.focusZoneProps),d.createElement("nav",{role:a,className:c.root,"aria-label":this.props.ariaLabel},l))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var o=this.props,r=o.styles,i=o.groups,a=o.theme,s=e.icon||e.iconProps,l=this._isLinkSelected(e),c=e.ariaCurrent,u=void 0===c?"page":c,p=Gy(r,{theme:a,isSelected:l,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(s?0:24),groups:i}),f=e.url&&e.target&&!Uy(e.url)?"noopener noreferrer":void 0,h=this.props.linkAs?ps(this.props.linkAs,rl):rl,m=this.props.onRenderLink?Po(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return d.createElement(h,{className:p.link,styles:Vy,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:f,disabled:e.disabled,"aria-current":l?u:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},m(e))},t.prototype._renderCompositeLink=function(e,t,n){var o,r=Object(u.a)({},fe(e,pe,["onClick"])),i=this.props,a=i.expandButtonAriaLabel,s=i.styles,l=i.groups,c=i.theme,p=Gy(s,{theme:c,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:l}),f="";if(e.links&&e.links.length>0)if(e.collapseAriaLabel||e.expandAriaLabel){var h=null!==(o=e.collapseAriaLabel)&&void 0!==o?o:e.expandAriaLabel;f=e.isExpanded?h:e.expandAriaLabel}else f=a?"".concat(e.name," ").concat(a):e.name;return d.createElement("div",Object(u.a)({},r,{key:e.key||t,className:p.compositeLink}),e.links&&e.links.length>0?d.createElement("button",{className:p.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":f,"aria-expanded":e.isExpanded?"true":"false"},d.createElement(Ge,{className:p.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var o=this.props,r=o.styles,i=o.groups,a=o.theme,s=Gy(r,{theme:a,groups:i});return d.createElement("li",{key:e.key||t,role:"listitem",className:s.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var o=e.map((function(e,o){return n._renderLink(e,o,t)})),r=this.props,i=r.styles,a=r.groups,s=r.theme,l=Gy(i,{theme:s,groups:a});return d.createElement("ul",{role:"list",className:l.navItems},o)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),void 0===e.isExpanded&&this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===Object(N.a)()||!e.url)return!1;(Fy=Fy||document.createElement("a")).href=e.url||"";var t=Fy.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(Fy.href=location.hash.substring(1),Fy.href===t)))},t.prototype._isGroupExpanded=function(e){return void 0!==e.isExpanded?e.isExpanded:e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=Object(u.a)(Object(u.a)({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(d.Component),Yy=k(qy,(function(e){var t,n=e.className,o=e.theme,r=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,c=e.isDisabled,u=e.isButtonEntry,d=e.navHeight,f=void 0===d?44:d,h=e.position,m=e.leftPadding,g=void 0===m?20:m,v=e.leftPaddingExpanded,b=void 0===v?28:v,y=e.rightPadding,C=void 0===y?20:y,_=o.palette,S=o.semanticColors,k=o.fonts,x=Object(p.R)(Wy,o);return{root:[x.root,n,k.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},r&&[{position:"absolute"},p.a.slideRightIn40]],linkText:[x.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[x.compositeLink,{display:"block",position:"relative",color:S.bodyText},i&&"is-expanded",l&&"is-selected",c&&"is-disabled",c&&{color:S.disabledText}],link:[x.link,Object(p.Q)(o),{display:"block",position:"relative",height:f,width:"100%",lineHeight:"".concat(f,"px"),textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:g,paddingRight:C,color:S.bodyText,selectors:(t={},t[p.m]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!c&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:S.bodyBackgroundHovered}}},l&&{color:S.bodyTextChecked,fontWeight:p.l.semibold,backgroundColor:S.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid ".concat(_.themePrimary),content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},c&&{color:S.disabledText},u&&{color:_.themePrimary}],chevronButton:[x.chevronButton,Object(p.Q)(o),k.small,{display:"block",textAlign:"left",lineHeight:"".concat(f,"px"),margin:"5px 0",padding:"0px, ".concat(C,"px, 0px, ").concat(b,"px"),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:S.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:S.bodyText}}},a&&{fontSize:k.large.fontSize,width:"100%",height:f,borderBottom:"1px solid ".concat(S.bodyDivider)},s&&{display:"block",width:b-2,height:f-2,position:"absolute",top:"1px",left:"".concat(h,"px"),zIndex:p.G.Nav,padding:0,margin:0}],chevronIcon:[x.chevronIcon,{position:"absolute",left:"8px",height:f,display:"inline-flex",alignItems:"center",lineHeight:"".concat(f,"px"),fontSize:k.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[x.navItem,{padding:0}],navItems:[x.navItems,{listStyleType:"none",padding:0,margin:0}],group:[x.group,i&&"is-expanded"],groupContent:[x.groupContent,{display:"none",marginBottom:"40px"},p.a.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(Ky||(Ky={}));var Qy={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};function Xy(e){var t,n,o,r,i,a,s=e.className,l=e.theme,c=e.suggested,d=l.palette,f=l.semanticColors,h=Object(p.R)(Qy,l);return{root:[h.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:f.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},c&&{selectors:(t={},t[".".concat(Gn.a," &")]={selectors:(n={},n[".".concat(h.closeButton)]={display:"block",background:f.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(l.semanticColors.focusBorder)},t)},s],itemButton:[h.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(o={},o[p.m]={color:"WindowText",selectors:{":hover":Object(u.a)({background:"Highlight",color:"HighlightText"},Object(p.S)())}},o[":hover"]={color:f.menuItemTextHovered},o)},c&&[h.isSuggested,{background:f.menuItemBackgroundPressed,selectors:(r={":hover":{background:f.menuDivider}},r[p.m]=Object(u.a)({background:"Highlight",color:"HighlightText"},Object(p.S)()),r)}]],closeButton:[h.closeButton,{display:"none",color:d.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:d.neutralTertiaryAlt,color:d.neutralDark}},i[p.m]={color:"WindowText"},i)},c&&(a={},a[".".concat(Gn.a," &")]={selectors:{":hover, :active":{background:d.neutralTertiary}}},a.selectors={":hover, :active":{background:d.neutralTertiary,color:d.neutralPrimary}},a)]}}var Zy=i,$y=L(),Jy=k(eb,Xy,void 0,{scope:"SuggestionItem"}),eC=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=d.createRef(),n._searchForMoreButton=d.createRef(),n._selectedElement=d.createRef(),n._scrollContainer=d.createRef(),n.tryHandleKeyDown=function(e,t){var o=!1,r=null,i=n.state.selectedActionType,a=n.props.suggestions.length;if(e===E.down)switch(i){case Ky.forceResolve:a>0?(n._refocusOnSuggestions(e),r=Ky.none):r=n._searchForMoreButton.current?Ky.searchMore:Ky.forceResolve;break;case Ky.searchMore:n._forceResolveButton.current?r=Ky.forceResolve:a>0?(n._refocusOnSuggestions(e),r=Ky.none):r=Ky.searchMore;break;case Ky.none:-1===t&&n._forceResolveButton.current&&(r=Ky.forceResolve)}else if(e===E.up)switch(i){case Ky.forceResolve:n._searchForMoreButton.current?r=Ky.searchMore:a>0&&(n._refocusOnSuggestions(e),r=Ky.none);break;case Ky.searchMore:a>0?(n._refocusOnSuggestions(e),r=Ky.none):n._forceResolveButton.current&&(r=Ky.forceResolve);break;case Ky.none:-1===t&&n._searchForMoreButton.current&&(r=Ky.searchMore)}return null!==r&&(n.setState({selectedActionType:r}),o=!0),o},n._getAlertText=function(){var e=n.props,t=e.isLoading,o=e.isSearching,r=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText,s=e.isExtendedLoading,l=e.loadingText;if(t||o){if(t&&s)return l||""}else{if(r.length>0)return i||"";if(a)return a}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&(n.props.onGetMoreResults(),n.setState({selectedActionType:Ky.none}))},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(o){n.props.onSuggestionClick(o,e,t)}},n._refocusOnSuggestions=function(e){"function"==typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(o){(0,n.props.onSuggestionRemove)(o,e,t),o.stopPropagation()}},Ct(n),n.state={selectedActionType:Ky.none},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,o=this.props,r=o.forceResolveText,i=o.mostRecentlyUsedHeaderText,a=o.searchForMoreIcon,s=o.searchForMoreText,l=o.className,c=o.moreSuggestionsAvailable,p=o.noResultsFoundText,f=o.suggestions,h=o.isLoading,m=o.isSearching,g=o.loadingText,v=o.onRenderNoResultFound,b=o.searchingText,y=o.isMostRecentlyUsedVisible,C=o.resultsMaximumNumber,_=o.resultsFooterFull,S=o.resultsFooter,k=o.isResultsFooterVisible,x=void 0===k||k,w=o.suggestionsHeaderText,I=o.suggestionsClassName,E=o.theme,O=o.styles,T=o.suggestionsListId,D=o.suggestionsContainerAriaLabel;this._classNames=O?$y(O,{theme:E,className:l,suggestionsClassName:I,forceResolveButtonSelected:this.state.selectedActionType===Ky.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===Ky.searchMore}):{root:Me("ms-Suggestions",l,Zy.root),title:Me("ms-Suggestions-title",Zy.suggestionsTitle),searchForMoreButton:Me("ms-SearchMore-button",Zy.actionButton,(e={},e["is-selected "+Zy.buttonSelected]=this.state.selectedActionType===Ky.searchMore,e)),forceResolveButton:Me("ms-forceResolve-button",Zy.actionButton,(t={},t["is-selected "+Zy.buttonSelected]=this.state.selectedActionType===Ky.forceResolve,t)),suggestionsAvailable:Me("ms-Suggestions-suggestionsAvailable",Zy.suggestionsAvailable),suggestionsContainer:Me("ms-Suggestions-container",Zy.suggestionsContainer,I),noSuggestions:Me("ms-Suggestions-none",Zy.suggestionsNone)};var P=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,R=O?{styles:P}:{className:Me("ms-Suggestions-spinner",Zy.suggestionsSpinner)},M=w;y&&i&&(M=i);var N=void 0;x&&(N=f.length>=C?_:S);var F,B=!(f&&f.length||h),L=this.state.selectedActionType===Ky.forceResolve?"sug-selectedAction":void 0,A=this.state.selectedActionType===Ky.searchMore?"sug-selectedAction":void 0;return d.createElement("div",{className:this._classNames.root,"aria-label":D||M,id:T,role:"listbox"},d.createElement(Rt,{message:this._getAlertText(),"aria-live":"polite"}),M?d.createElement("div",{className:this._classNames.title},M):null,r&&this._shouldShowForceResolve()&&d.createElement(ml,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:L,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},r),h&&d.createElement(Bh,Object(u.a)({},R,{ariaLabel:g,label:g})),B?(F=function(){return d.createElement("div",{className:n._classNames.noSuggestions},p)},d.createElement("div",{id:"sug-noResultsFound",role:"option"},v?v(void 0,F):F())):this._renderSuggestions(),s&&c&&d.createElement(ml,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:a||{iconName:"Search"},id:A,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},s),m?d.createElement(Bh,Object(u.a)({},R,{ariaLabel:b,label:b})):null,!N||c||y||m?null:d.createElement("div",{className:this._classNames.title},N(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==Ky.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case Ky.forceResolve:this._forceResolve();break;case Ky.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:Ky.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:Ky.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:Ky.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:Ky.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,n=e.offsetTop,o=this._scrollContainer.current,r=o.offsetHeight,i=o.scrollTop,a=n+t>i+r;n<i?this._scrollContainer.current.scrollTo(0,n):a&&this._scrollContainer.current.scrollTo(0,n-r+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.onRenderSuggestion,o=t.removeSuggestionAriaLabel,r=t.suggestionsItemClassName,i=t.resultsMaximumNumber,a=t.showRemoveButtons,s=t.removeButtonIconProps,l=this.props.suggestions,c=Jy,u=-1;return l.some((function(e,t){return!!e.selected&&(u=t,!0)})),i&&(l=u>=i?l.slice(u-i+1,u+1):l.slice(0,i)),0===l.length?null:d.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},l.map((function(t,i){return d.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:i,role:"presentation"},d.createElement(c,{suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:r,showRemoveButton:a,removeButtonAriaLabel:o,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),id:"sug-"+i,removeButtonIconProps:s}))})))},t}(d.Component),tC={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function nC(e){var t,n=e.className,o=e.suggestionsClassName,r=e.theme,i=e.forceResolveButtonSelected,a=e.searchForMoreButtonSelected,s=r.palette,l=r.semanticColors,c=r.fonts,d=Object(p.R)(tC,r),f={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid ".concat(s.neutralLight),height:40,textAlign:"left",width:"100%",fontSize:c.small.fontSize,selectors:{":hover":{backgroundColor:l.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:c.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},h={backgroundColor:s.themeLight,selectors:(t={},t[p.m]=Object(u.a)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(p.S)()),t)};return{root:[d.root,{minWidth:260},n],suggestionsContainer:[d.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},o],title:[d.title,{padding:"0 12px",fontSize:c.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid ".concat(l.menuItemBackgroundPressed)}],forceResolveButton:[d.forceResolveButton,f,i&&[d.isSelected,h]],searchForMoreButton:[d.searchForMoreButton,f,a&&[d.isSelected,h]],noSuggestions:[d.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:c.small.fontSize,lineHeight:30}],suggestionsAvailable:[d.suggestionsAvailable,p.ab],subComponentStyles:{spinner:{root:[d.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:c.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}var oC,rC=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.name||t.primaryText}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t,n){if(e&&e.length>0){if(n&&e.length>n){var o=t&&t>n?t+1-n:0;e=e.slice(o,o+n-1)}this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])}else this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}();!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(oC||(oC={})),Object(yv.a)([{rawString:".picker_94f06b16{position:relative}.pickerText_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_94f06b16:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid '},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:"";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}'}]);var iC="picker_94f06b16",aC="pickerText_94f06b16",sC="inputFocused_94f06b16",lC="inputDisabled_94f06b16",cC="pickerInput_94f06b16",uC="pickerItems_94f06b16",dC="screenReaderOnly_94f06b16",pC=l,fC=L();var hC=function(e){function t(t){var n=e.call(this,t)||this;n.root=d.createRef(),n.input=d.createRef(),n.suggestionElement=d.createRef(),n.SuggestionOfProperType=eC,n._styledSuggestions=k(n.SuggestionOfProperType,nC,void 0,{scope:"Suggestions"}),n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then((function(){return t()})):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===E.up?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===E.down&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,o){n.addItemByIndex(o)},n.onSuggestionRemove=function(e,t,o){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(o)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!Xt(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onWrapperClick=function(e){n.state.items.length&&!n.canAddItems()&&n.resetFocus(n.state.items.length-1)},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case E.escape:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case E.tab:case E.enter:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case E.backspace:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case E.del:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case E.up:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case E.down:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var o=n.state.items;if(t>=0){var r=o;r[t]=e,n._updateSelectedItems(r)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},(function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,o=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):o.then&&o.then((function(e){n.updateSuggestions(e),n.setState({isSearching:!1})}))}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var o=t,r=t;if(r&&r.then)r.then((function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)}));else{var i=n.state.items.concat([o]);n._updateSelectedItems(i)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,o=t.indexOf(e);if(o>=0){var r=t.slice(0,o).concat(t.slice(o+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(r),n._async.setTimeout((function(){n.setState({selectionRemoved:void 0})}),1e3)}},n.removeItems=function(e){var t=n.state.items.filter((function(t){return-1===e.indexOf(t)}));n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case E.up:case E.down:return!0}return e.which===E.enter},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==oC.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestions(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},Ct(n),n._async=new wt(n);var o=t.selectedItems||t.defaultSelectedItems||[];return n._id=bn(),n._ariaMap={selectedItems:"selected-items-".concat(n._id),selectedSuggestionAlert:"selected-suggestion-alert-".concat(n._id),suggestionList:"suggestion-list-".concat(n._id),combobox:"combobox-".concat(n._id)},n.suggestionStore=new rC,n.selection=new _h({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(o),n.state={items:o,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){if(this.state.items&&this.state.items!==t.items){var n=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(n,!1,!0),this.resetFocus(n)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,o=e.items,r=this.props,i=r.className,a=r.inputProps,s=r.disabled,l=r.selectionAriaLabel,c=r.selectionRole,p=void 0===c?"list":c,f=r.theme,h=r.styles,m=!!this.state.suggestionsVisible,g=m?this._ariaMap.suggestionList:void 0,v=h?fC(h,{theme:f,className:i,isFocused:n,disabled:s,inputClassName:a&&a.className}):{root:Me("ms-BasePicker",i||""),text:Me("ms-BasePicker-text",pC.pickerText,this.state.isFocused&&pC.inputFocused),itemsWrapper:pC.pickerItems,input:Me("ms-BasePicker-input",pC.pickerInput,a&&a.className),screenReaderText:pC.screenReaderOnly},b=this.props["aria-label"]||(null==a?void 0:a["aria-label"]);return d.createElement("div",{ref:this.root,className:v.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onWrapperClick},this.renderCustomAlert(v.screenReaderText),d.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},l||b),d.createElement(Ch,{selection:this.selection,selectionMode:Qf.multiple},d.createElement("div",{className:v.text,"aria-owns":g},o.length>0&&d.createElement("span",{id:this._ariaMap.selectedItems,className:v.itemsWrapper,role:p,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems()),this.canAddItems()&&d.createElement(It,Object(u.a)({spellCheck:!1},a,{className:v.input,componentRef:this.input,id:(null==a?void 0:a.id)?a.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":m?this.getActiveDescendant():void 0,"aria-controls":g,"aria-describedby":o.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":m,"aria-haspopup":"listbox","aria-label":b,role:"combobox",disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?d.createElement(Li,Object(u.a)({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:Eo.bottomLeftEdge,directionalHintForRTL:Eo.bottomRightEdge},this.props.pickerCalloutProps),d.createElement(e,Object(u.a)({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isExtendedLoading:this.state.suggestionsExtendedLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,o=t.removeButtonAriaLabel,r=t.removeButtonIconProps,i=this.props.onRenderItem,a=this.state,s=a.items,l=a.selectedIndices;return s.map((function(t,a){return i({item:t,index:a,key:t.key?t.key:a,selected:-1!==l.indexOf(a),onRemoveItem:function(){return e.removeItem(t)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:o,removeButtonIconProps:r})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length){e=null!=e?e:t.length-1;var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index] > button")[Math.min(e,t.length-1)];n&&n.focus()}else this.input.current&&this.input.current.focus()},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){var t,n=null===(t=this.props.pickerSuggestionsProps)||void 0===t?void 0:t.resultsMaximumNumber;this.suggestionStore.updateSuggestions(e,0,n),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var n=this;Array.isArray(e)?this._updateAndResolveValue(t,e):e&&e.then&&(this.setState({suggestionsLoading:!0}),this._startLoadTimer(),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement}),this.currentPromise=e,e.then((function(o){e===n.currentPromise&&n._updateAndResolveValue(t,o)})))},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var o=void 0;this.suggestionStore.currentSuggestion&&(o=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:o,suggestionsVisible:this._getShowSuggestions()},(function(){return n.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?(null===(e=this.suggestionElement.current)||void 0===e?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-".concat(t)}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=pC.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,o=n?n.ariaLabel:void 0;return d.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},"".concat(o," "))}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=pC.screenReaderOnly);var t=this.props.suggestionRemovedText,n=void 0===t?"removed {0}":t,o="";this.state.selectionRemoved&&(o=ec(n,this._getTextFromItem(this.state.selectionRemoved,"")));return d.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),o)},t.prototype._startLoadTimer=function(){var e=this;this._async.setTimeout((function(){e.state.suggestionsLoading&&e.setState({suggestionsExtendedLoading:!0})}),3e3)},t.prototype._updateAndResolveValue=function(e,t){var n;if(void 0!==e)this.resolveNewValue(e,t);else{var o=null===(n=this.props.pickerSuggestionsProps)||void 0===n?void 0:n.resultsMaximumNumber;this.suggestionStore.updateSuggestions(t,-1,o),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(d.Component),mC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,o=this.props,r=o.className,i=o.inputProps,a=o.disabled,s=o.selectionAriaLabel,l=o.selectionRole,c=void 0===l?"list":l,p=o.theme,f=o.styles,h=!!this.state.suggestionsVisible,m=h?this._ariaMap.suggestionList:void 0,g=f?fC(f,{theme:p,className:r,isFocused:n,inputClassName:i&&i.className}):{root:Me("ms-BasePicker",pC.picker,r||""),text:Me("ms-BasePicker-text",pC.pickerText,this.state.isFocused&&pC.inputFocused,a&&pC.inputDisabled),itemsWrapper:pC.pickerItems,input:Me("ms-BasePicker-input",pC.pickerInput,i&&i.className),screenReaderText:pC.screenReaderOnly},v=this.props["aria-label"]||(null==i?void 0:i["aria-label"]);return d.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},d.createElement("div",{className:g.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(g.screenReaderText),d.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},s||v),d.createElement("div",{className:g.text,"aria-owns":m},d.createElement(It,Object(u.a)({},i,{className:g.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":h?this.getActiveDescendant():void 0,"aria-controls":m,"aria-expanded":h,"aria-haspopup":"listbox","aria-label":v,"aria-describedby":this.state.items.length>0?this._ariaMap.selectedItems:void 0,role:"combobox",id:(null==i?void 0:i.id)?i.id:this._ariaMap.combobox,disabled:a,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),d.createElement(Ch,{selection:this.selection,selectionMode:Qf.single},d.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:c,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(hC),gC={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};function vC(e){var t,n,o,r,i,a,s,l,c=e.className,d=e.theme,f=e.selected,h=e.invalid,m=e.disabled,g=d.palette,v=d.semanticColors,b=d.fonts,y=Object(p.R)(gC,d),C=[f&&!h&&!m&&{color:g.white,selectors:(t={":hover":{color:g.white}},t[p.m]={color:"HighlightText"},t)},(h&&!f||h&&f&&m)&&{color:g.redDark,borderBottom:"2px dotted ".concat(g.redDark),selectors:(n={},n[".".concat(y.root,":hover &")]={color:g.redDark},n)},h&&f&&!m&&{color:g.white,borderBottom:"2px dotted ".concat(g.white)},m&&{selectors:(o={},o[p.m]={color:"GrayText"},o)}],_=[f&&!h&&!m&&{color:g.white,selectors:(r={":hover":{color:g.white}},r[p.m]={color:"HighlightText"},r)}],S=[h&&{fontSize:b.xLarge.fontSize}];return{root:[y.root,Object(p.Q)(d,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:g.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(i={":hover":{background:f||m?"":g.neutralLight}},i[p.m]=[{border:"1px solid WindowText"},m&&{borderColor:"GrayText"}],i)},f&&!m&&[y.isSelected,{background:g.themePrimary,selectors:(a={},a[p.m]=Object(u.a)({borderColor:"HighLight",background:"Highlight"},Object(p.S)()),a)}],h&&[y.isInvalid],h&&f&&!m&&{background:g.redDark},c],itemContent:[y.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[y.removeButton,{borderRadius:15,color:g.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:g.neutralTertiaryAlt,color:g.neutralDark}}},f&&[Object(p.Q)(d,{inset:2,borderColor:"transparent",highContrastStyle:{inset:2,left:1,top:1,bottom:1,right:1,outlineColor:"ButtonText"},outlineColor:g.white,borderRadius:15}),{color:g.white,selectors:(s={":hover":{color:g.white,background:g.themeDark},":active":{color:g.white,background:g.themeDarker}},s[p.m]={color:"HighlightText"},s)},h&&{selectors:{":hover":{background:g.red},":active":{background:g.redDark}}}],m&&{selectors:(l={},l[".".concat(ls.msButtonIcon)]={color:v.buttonText},l)}],subComponentStyles:{persona:{primaryText:C,secondaryText:_},personaCoin:{initials:S}}}}var bC=L(),yC=function(e){var t=e.item,n=e.onRemoveItem,o=e.index,r=e.selected,i=e.removeButtonAriaLabel,a=e.styles,s=e.theme,l=e.className,c=e.disabled,p=e.removeButtonIconProps,f=d.createRef(),h=bn(),m=bC(a,{theme:s,className:l,selected:r,disabled:c,invalid:t.ValidationState===oC.warning}),g=m.subComponentStyles?m.subComponentStyles.persona:void 0,v=m.subComponentStyles?m.subComponentStyles.personaCoin:void 0;return d.createElement("div",{"data-selection-index":o,className:m.root,role:"listitem",key:o,onClick:function(){var e;null===(e=f.current)||void 0===e||e.focus()}},d.createElement("div",{className:m.itemContent,id:"selectedItemPersona-"+h},d.createElement(Nv,Object(u.a)({size:Ne.size24,styles:g,coinProps:{styles:v}},t))),d.createElement(Ss,{componentRef:f,id:h,onClick:n,disabled:c,iconProps:null!=p?p:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:m.removeButton,ariaLabel:i,"aria-labelledby":"".concat(h," selectedItemPersona-").concat(h)}))},CC=k(yC,vC,void 0,{scope:"PeoplePickerItem"}),_C={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};function SC(e){var t,n,o,r=e.className,i=e.theme,a=Object(p.R)(_C,i),s={selectors:(t={},t[".".concat(Qy.isSuggested," &")]={selectors:(n={},n[p.m]={color:"HighlightText"},n)},t[".".concat(a.root,":hover &")]={selectors:(o={},o[p.m]={color:"HighlightText"},o)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},r],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}var kC=L(),xC=function(e){var t=e.personaProps,n=e.suggestionsProps,o=e.compact,r=e.styles,i=e.theme,a=e.className,s=kC(r,{theme:i,className:n&&n.suggestionsItemClassName||a}),l=s.subComponentStyles&&s.subComponentStyles.persona?s.subComponentStyles.persona:void 0;return d.createElement("div",{className:s.root},d.createElement(Nv,Object(u.a)({size:Ne.size24,styles:l,className:s.personaWrapper,showSecondaryText:!o,showOverflowTooltip:!1},t)))},wC=k(xC,SC,void 0,{scope:"PeoplePickerItemSuggestion"}),IC={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function EC(e){var t,n,o,r=e.className,i=e.theme,a=e.isFocused,s=e.inputClassName,l=e.disabled;if(!i)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var c=i.semanticColors,u=i.effects,d=i.fonts,f=c.inputBorder,h=c.inputBorderHovered,m=c.inputFocusBorderAlt,g=Object(p.R)(IC,i),v=[d.medium,{color:c.inputPlaceholderText,opacity:1,selectors:(t={},t[p.m]={color:"GrayText"},t)}],b={color:c.disabledText,selectors:(n={},n[p.m]={color:"GrayText"},n)};return{root:[g.root,r,{position:"relative"}],text:[g.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid ".concat(f),borderRadius:u.roundedCorner2},!a&&!l&&{selectors:{":hover":{borderColor:h}}},a&&!l&&Object(p.V)(m,u.roundedCorner2),l&&{borderColor:"rgba(218, 218, 218, 0.29)",selectors:(o={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:"rgba(218, 218, 218, 0.29)"}},o[p.m]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},o)}],itemsWrapper:[g.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[g.input,d.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:u.roundedCorner2,backgroundColor:"transparent",color:c.inputText,selectors:{"::-ms-clear":{display:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},Object(p.W)(v),l&&Object(p.W)(b),s],screenReaderText:p.ab}}var OC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(hC),TC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(mC),DC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.defaultProps={onRenderItem:function(e){return d.createElement(CC,Object(u.a)({},e))},onRenderSuggestionsItem:function(e,t){return d.createElement(wC,{personaProps:e,suggestionsProps:t})},createGenericItem:MC},t}(OC),PC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.defaultProps={onRenderItem:function(e){return d.createElement(CC,Object(u.a)({},e))},onRenderSuggestionsItem:function(e,t){return d.createElement(wC,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:MC},t}(OC),RC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.defaultProps={onRenderItem:function(e){return d.createElement(CC,Object(u.a)({},e))},onRenderSuggestionsItem:function(e,t){return d.createElement(wC,{personaProps:e,suggestionsProps:t})},createGenericItem:MC},t}(TC);function MC(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==oC.warning&&(n.imageInitials=ke(e,P())),n}var NC=k(DC,EC,void 0,{scope:"NormalPeoplePicker"}),FC=k(PC,EC,void 0,{scope:"CompactPeoplePicker"}),BC=k(RC,EC,void 0,{scope:"ListPeoplePickerBase"}),LC={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"};function AC(e){var t,n,o,r,i,a=e.className,s=e.theme,l=e.selected,c=e.disabled,u=s.palette,d=s.effects,f=s.fonts,h=s.semanticColors,m=Object(p.R)(LC,s);return{root:[m.root,f.medium,Object(p.Q)(s),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:d.roundedCorner2,color:h.inputText,background:u.neutralLighter,selectors:(t={":hover":[!c&&!l&&{color:u.neutralDark,background:u.neutralLight,selectors:{".ms-TagItem-close":{color:u.neutralPrimary}}},c&&{background:u.neutralLighter}]},t[p.m]={border:"1px solid ".concat(l?"WindowFrame":"WindowText")},t)},c&&{selectors:(n={},n[p.m]={borderColor:"GrayText"},n)},l&&!c&&[m.isSelected,{background:u.themePrimary,color:u.white}],a],text:[m.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},c&&{selectors:(o={},o[p.m]={color:"GrayText"},o)}],close:[m.close,Object(p.Q)(s,{borderColor:"transparent",inset:1,outlineColor:u.white}),{color:u.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:P(s)?"".concat(d.roundedCorner2," 0 0 ").concat(d.roundedCorner2):"0 ".concat(d.roundedCorner2," ").concat(d.roundedCorner2," 0"),selectors:(r={":hover":{background:u.neutralQuaternaryAlt,color:u.neutralPrimary}},r[".".concat(m.isSelected," &, :focus")]={color:u.white,background:u.themePrimary},r[":focus:hover"]={color:u.white,background:u.themeDark},r[":active"]={color:u.white,backgroundColor:u.themeDark},r)},c&&{selectors:(i={},i[".".concat(ls.msButtonIcon)]={color:u.neutralSecondary},i)}]}}var jC=L(),HC=function(e){var t=e.theme,n=e.styles,o=e.selected,r=e.disabled,i=e.enableTagFocusInDisabledPicker,a=e.children,s=e.className,l=e.index,c=e.onRemoveItem,p=e.removeButtonAriaLabel,f=e.title,h=void 0===f?"string"==typeof e.children?e.children:e.item.name:f,m=e.removeButtonIconProps,g=d.createRef(),v=jC(n,{theme:t,className:s,selected:o,disabled:r}),b=wa(),y=i?{"aria-disabled":r,tabindex:0}:{disabled:r};return d.createElement("div",{"data-selection-index":l,className:v.root,role:"listitem",key:l,onClick:function(){var e;null===(e=g.current)||void 0===e||e.focus()}},d.createElement("span",{className:v.text,title:h,id:"".concat(b,"-text")},a),d.createElement(Ss,Object(u.a)({componentRef:g,id:b,onClick:c},y,{iconProps:null!=m?m:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:v.close,"aria-labelledby":"".concat(b,"-removeLabel ").concat(b,"-text")})),d.createElement("span",{id:"".concat(b,"-removeLabel"),hidden:!0},p))},zC=k(HC,AC,void 0,{scope:"TagItem"}),WC={suggestionTextOverflow:"ms-TagItem-TextOverflow"};function VC(e){var t=e.className,n=e.theme;return{suggestionTextOverflow:[Object(p.R)(WC,n).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}var UC=L(),KC=function(e){var t=e.styles,n=e.theme,o=e.children,r=UC(t,{theme:n});return d.createElement("div",{className:r.suggestionTextOverflow}," ",o," ")},GC=k(KC,VC,void 0,{scope:"TagItemSuggestion"}),qC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.defaultProps={onRenderItem:function(e){return d.createElement(zC,Object(u.a)({},e),e.item.name)},onRenderSuggestionsItem:function(e){return d.createElement(GC,null,e.name)}},t}(hC),YC=k(qC,EC,void 0,{scope:"TagPicker"});function QC(e,t){void 0===t&&(t=null);var n,o=d.useRef({ref:(n=function(e){o.ref.current!==e&&(o.cleanup&&(o.cleanup(),o.cleanup=void 0),o.ref.current=e,null!==e&&(o.cleanup=o.callback(e)))},n.current=t,n),callback:e}).current;return o.callback=e,o.ref}var XC=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,o=e.pinnedIndex,r=d.useRef(),i=d.useRef(),a=QC((function(e){var t=function(e,t){if("undefined"!=typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach((function(e){return n.observe(e)})):n.observe(e),function(){return n.disconnect()}}var o=function(){return t(void 0)},r=Object(N.a)(Array.isArray(e)?e[0]:e);if(!r)return function(){};var i=r.requestAnimationFrame(o);return r.addEventListener("resize",o,!1),function(){r.cancelAnimationFrame(i),r.removeEventListener("resize",o,!1)}}(e,(function(t){i.current=t?t[0].contentRect.width:e.clientWidth,r.current&&r.current()}));return function(){t(),i.current=void 0}})),s=QC((function(e){return a(e.parentElement),function(){return a(null)}}));return we((function(){var e=a.current,l=s.current;if(e&&l){for(var c=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==l&&c.push(d)}var p=[],f=0;r.current=function(){var e=i.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===p[t]){var r=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===o&&(f=p[t+1]-r),t===c.length-2&&(f+=l.offsetWidth),p[t]=r+f}if(e>p[t])return void m(t+1)}m(0)}};var h=c.length,m=function(e){h!==e&&(h=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==o}}))))},g=void 0;if(void 0!==i.current){var v=Object(N.a)(e);if(v){var b=v.requestAnimationFrame(r.current);g=function(){return v.cancelAnimationFrame(b)}}}return function(){g&&g(),m(c.length),r.current=void 0}}})),{menuButtonRef:s}},ZC=function(e){function t(t){var n=e.call(this,t)||this;return Ct(n),n}return Object(u.c)(t,e),t.prototype.render=function(){return d.createElement("div",Object(u.a)({},fe(this.props,pe)),this.props.children)},t}(d.Component),$C=L(),JC=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return d.Children.forEach(d.Children.toArray(e.children),(function(o,r){if(e_(o)){var i=o.props,a=i.linkText,s=Object(u.d)(i,["linkText"]),l=o.props.itemKey||r.toString();n.links.push(Object(u.a)(Object(u.a)({headerText:a},s),{itemKey:l})),n.keyToIndexMapping[l]=r,n.keyToTabIdMapping[l]=function(e,t,n,o){return e.getTabId?e.getTabId(n,o):t+"-Tab".concat(o)}(e,t,l,r)}else o&&Object(bo.b)("The children of a Pivot component must be of type PivotItem to be rendered.")})),n},e_=function(e){var t;return d.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===ZC.name},t_=d.forwardRef((function(e,t){var n,o=d.useRef(null),r=d.useRef(null),i=wa("Pivot"),a=Uc(e.selectedKey,e.defaultSelectedKey),s=a[0],l=a[1],c=e.componentRef,p=e.theme,f=e.linkSize,h=e.linkFormat,m=e.overflowBehavior,g=e.overflowAriaLabel,v=e.focusZoneProps,b=e.overflowButtonAs,y={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},C=fe(e,pe,["aria-label","aria-labelledby"]),_=JC(e,i);d.useImperativeHandle(c,(function(){return{focus:function(){var e;null===(e=o.current)||void 0===e||e.focus()}}}));var S=function(e){if(!e)return null;var t=e.itemCount,o=e.itemIcon,r=e.headerText;return d.createElement("span",{className:n.linkContent},void 0!==o&&d.createElement("span",{className:n.icon},d.createElement(Ge,{iconName:o})),void 0!==r&&d.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&d.createElement("span",{className:n.count}," (",t,")"))},k=function(e,t,o,r){var i,a=t.itemKey,s=t.headerButtonProps,l=t.onRenderItemLink,c=e.keyToTabIdMapping[a],p=o===a;i=l?l(t,S):S(t);var f=t.headerText||"";f+=t.itemCount?" ("+t.itemCount+")":"",f+=t.itemIcon?" xx":"";var h=t.role&&"tab"!==t.role?{role:t.role}:{role:"tab","aria-selected":p};return d.createElement(ml,Object(u.a)({},s,h,{id:c,key:a,className:Me(r,p&&n.linkIsSelected),onClick:function(e){return x(a,e)},onKeyDown:function(e){return w(a,e)},"aria-label":t.ariaLabel,name:t.headerText,keytipProps:t.keytipProps,"data-content":f}),i)},x=function(e,t){t.preventDefault(),I(e,t)},w=function(e,t){t.which===E.enter&&(t.preventDefault(),I(e))},I=function(t,n){var o;if(l(t),_=JC(e,i),e.onLinkClick&&_.keyToIndexMapping[t]>=0){var a=_.keyToIndexMapping[t],s=d.Children.toArray(e.children)[a];e_(s)&&e.onLinkClick(s,n)}null===(o=r.current)||void 0===o||o.dismissMenu()};n=$C(e.styles,{theme:p,linkSize:f,linkFormat:h});var O,T=null===(O=s)||void 0!==O&&void 0!==_.keyToIndexMapping[O]?s:_.links.length?_.links[0].itemKey:void 0,D=T?_.keyToIndexMapping[T]:0,R=_.links.map((function(e){return k(_,e,T,n.link)})),M=d.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:Eo.bottomRightEdge}}),[]),N=XC({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)})),M.items=_.links.slice(e).filter((function(e){return e.itemKey!==T})).map((function(t,o){return t.role="menuitem",{key:t.itemKey||"".concat(e+o),onRender:function(){return k(_,t,T,n.linkInMenu)}}}))},rtl:P(p),pinnedIndex:D}).menuButtonRef,F=b||ml;return d.createElement("div",Object(u.a)({ref:t},C),d.createElement(zn,Object(u.a)({componentRef:o,role:"tablist"},y,{direction:Ot.horizontal},v,{className:Me(n.root,null==v?void 0:v.className)}),R,"menu"===m&&d.createElement(F,{className:Me(n.link,n.overflowMenuButton),elementRef:N,componentRef:r,menuProps:M,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:g,role:"tab"})),T&&_.links.map((function(t){return(!0===t.alwaysRender||T===t.itemKey)&&function(t,o){if(e.headersOnly||!t)return null;var r=_.keyToIndexMapping[t],i=_.keyToTabIdMapping[t];return d.createElement("div",{role:"tabpanel",hidden:!o,key:t,"aria-hidden":!o,"aria-labelledby":i,className:n.itemContainer},d.Children.toArray(e.children)[r])}(t.itemKey,T===t.itemKey)})))}));t_.displayName="Pivot";var n_,o_,r_={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},i_=function(e,t,n){var o,r,i;void 0===n&&(n=!1);var a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,d=l.fonts,f="large"===a,h="tabs"===s;return[d.medium,{color:c.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:c.buttonBackgroundHovered,color:c.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:c.buttonBackgroundPressed,color:c.buttonTextHovered},":focus":{outline:"none"}}},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:(o={},o[".".concat(Gn.a," &:focus")]={outline:"1px solid ".concat(c.focusBorder)},o[".".concat(Gn.a," &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},o[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(p.c.durationValue2," ").concat(p.c.easeFunction2,",\n right ").concat(p.c.durationValue2," ").concat(p.c.easeFunction2)},o[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:p.l.bold,height:1,overflow:"hidden",visibility:"hidden"},o)},f&&{fontSize:d.large.fontSize},h&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:c.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(r={":focus":{outlineOffset:"-2px"}},r[".".concat(Gn.a," &:focus::before")]={height:"auto",background:"transparent",transition:"none"},r["&:hover, &:focus"]={color:c.buttonTextCheckedHovered},r["&:active, &:hover"]={color:c.primaryButtonText,backgroundColor:c.primaryButtonBackground},r["&.".concat(t.linkIsSelected)]={backgroundColor:c.primaryButtonBackground,color:c.primaryButtonText,fontWeight:p.l.regular,selectors:(i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:c.primaryButtonBackgroundHovered,color:c.primaryButtonText},":active":{backgroundColor:c.primaryButtonBackgroundPressed,color:c.primaryButtonText}},i[p.m]=Object(u.a)({fontWeight:p.l.semibold,color:"HighlightText",background:"Highlight"},Object(p.S)()),i)},r[".".concat(Gn.a," &.").concat(t.linkIsSelected,":focus")]={outlineColor:c.primaryButtonText},r)}]]]},a_=k(t_,(function(e){var t,n,o,r,i=e.className,a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,d=l.fonts,f=Object(p.R)(r_,l),h="large"===a,m="tabs"===s;return{root:[f.root,d.medium,p.gb,{position:"relative",color:c.link,whiteSpace:"nowrap"},h&&f.rootIsLarge,m&&f.rootIsTabs,i],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:Object(u.e)(Object(u.e)([f.link],i_(e,f),!0),[(t={},t["&[data-is-overflowing='true']"]={display:"none"},t)],!1),overflowMenuButton:[f.overflowMenuButton,(n={visibility:"hidden",position:"absolute",right:0},n[".".concat(f.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},n)],linkInMenu:Object(u.e)(Object(u.e)([f.linkInMenu],i_(e,f,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[f.link,f.linkIsSelected,{fontWeight:p.l.semibold,selectors:(o={":before":{backgroundColor:c.inputBackgroundChecked,selectors:(r={},r[p.m]={backgroundColor:"Highlight"},r)},":hover::before":{left:0,right:0}},o[p.m]={color:"Highlight"},o)}],linkContent:[f.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[f.text,{display:"inline-block",verticalAlign:"top"}],count:[f.count,{display:"inline-block",verticalAlign:"top"}],icon:f.icon}}),void 0,{scope:"Pivot"});!function(e){e.links="links",e.tabs="tabs"}(n_||(n_={})),function(e){e.normal="normal",e.large="large"}(o_||(o_={}));var s_,l_=L(),c_=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,o=t.ariaLabel,r=t.ariaValueText,i=t.barHeight,a=t.className,s=t.description,l=t.label,c=void 0===l?n.props.title:l,u=t.styles,p=t.theme,f="number"==typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,h=l_(u,{theme:p,className:a,barHeight:i,indeterminate:void 0===f}),m={width:void 0!==f?f+"%":void 0,transition:void 0!==f&&f<.01?"none":void 0},g=void 0!==f?0:void 0,v=void 0!==f?100:void 0,b=void 0!==f?Math.floor(f):void 0;return d.createElement("div",{className:h.itemProgress},d.createElement("div",{className:h.progressTrack}),d.createElement("div",{className:h.progressBar,style:m,role:"progressbar","aria-describedby":s?n._descriptionId:void 0,"aria-label":o,"aria-labelledby":c?n._labelId:void 0,"aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":b,"aria-valuetext":r}))};var o=bn("progress-indicator");return n._labelId=o+"-label",n._descriptionId=o+"-description",n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,o=e.label,r=void 0===o?this.props.title:o,i=e.description,a=e.styles,s=e.theme,l=e.progressHidden,c=e.onRenderProgress,p=void 0===c?this._onRenderProgress:c,f="number"==typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,h=l_(a,{theme:s,className:n,barHeight:t,indeterminate:void 0===f});return d.createElement("div",{className:h.root},r?d.createElement("div",{id:this._labelId,className:h.itemName},r):null,l?null:p(Object(u.a)(Object(u.a)({},this.props),{percentComplete:f}),this._onRenderProgress),i?d.createElement("div",{id:this._descriptionId,className:h.itemDescription},i):null)},t.defaultProps={label:"",description:"",width:180},t}(d.Component),u_={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},d_=Object(f.c)((function(){return Object(p.bb)({"0%":{left:"-30%"},"100%":{left:"100%"}})})),p_=Object(f.c)((function(){return Object(p.bb)({"100%":{right:"-30%"},"0%":{right:"100%"}})})),f_=k(c_,(function(e){var t,n,o,r=P(e.theme),i=e.className,a=e.indeterminate,s=e.theme,l=e.barHeight,c=void 0===l?2:l,d=s.palette,f=s.semanticColors,h=s.fonts,m=Object(p.R)(u_,s),g=d.neutralLight;return{root:[m.root,h.medium,i],itemName:[m.itemName,p.fb,{color:f.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[m.itemDescription,{color:f.bodySubtext,fontSize:h.small.fontSize,lineHeight:18}],itemProgress:[m.itemProgress,{position:"relative",overflow:"hidden",height:c,padding:"".concat(8,"px 0")}],progressTrack:[m.progressTrack,{position:"absolute",width:"100%",height:c,backgroundColor:g,selectors:(t={},t[p.m]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:d.themePrimary,height:c,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[p.m]=Object(u.a)({backgroundColor:"highlight"},Object(p.S)()),n)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(g," 0%, ")+"".concat(d.themePrimary," 50%, ").concat(g," 100%)"),animation:"".concat(r?p_():d_()," 3s infinite"),selectors:(o={},o[p.m]={background:"highlight"},o)}:{transition:"width .15s linear"},m.progressBar]}}),void 0,{scope:"ProgressIndicator"}),h_={root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"};function m_(e,t){var n;return{color:e,selectors:(n={},n[p.m]={color:t},n)}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(s_||(s_={}));var g_=L(),v_=function(e){return d.createElement("div",{className:e.classNames.ratingStar},d.createElement(Ge,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&d.createElement(Ge,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},b_=function(e,t){return"".concat(e,"-star-").concat(t-1)},y_=d.forwardRef((function(e,t){var n=wa("Rating"),o=wa("RatingLabel"),r=e.ariaLabel,i=e.ariaLabelFormat,a=e.disabled,s=e.getAriaLabel,l=e.styles,c=e.min,p=void 0===c?e.allowZeroStars?0:1:c,f=e.max,h=void 0===f?5:f,m=e.readOnly,g=e.size,v=e.theme,b=e.icon,y=void 0===b?"FavoriteStarFill":b,C=e.unselectedIcon,_=void 0===C?"FavoriteStar":C,S=e.onRenderStar,k=Math.max(p,0),x=Uc(e.rating,e.defaultRating,e.onChange),w=x[0],I=x[1],O=function(e,t,n){return Math.min(Math.max(null!=e?e:t,t),n)}(w,k,h);!function(e,t){d.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,O);var T=d.useRef(null),D=Ie(T,t);$n(T);for(var P=fe(e,pe),R=g_(l,{disabled:a,readOnly:m,theme:v}),M=null==s?void 0:s(O,h),N=r||M,F=[],B=function(e){var t,r,s=function(e,t){var n=Math.ceil(t),o=100;return e===t?o=100:e===n?o=t%1*100:e>n&&(o=0),o}(e,O);F.push(d.createElement("button",Object(u.a)({className:Me(R.ratingButton,g===s_.Large?R.ratingStarIsLarge:R.ratingStarIsSmall),id:b_(n,e),key:e},e===Math.ceil(O)&&{"data-is-current":!0},{onKeyDown:function(t){var n=t.which,o=e;switch(n){case E.right:case E.down:o=Math.min(h,o+1);break;case E.left:case E.up:o=Math.max(1,o-1);break;case E.home:case E.pageUp:o=1;break;case E.end:case E.pageDown:o=h}o===e||void 0!==w&&Math.ceil(w)===o||I(o,t)},onClick:function(t){void 0!==w&&Math.ceil(w)===e||I(e,t)},disabled:!(!a&&!m),role:"radio","aria-hidden":m?"true":void 0,type:"button","aria-checked":e===Math.ceil(O)}),d.createElement("span",{id:"".concat(o,"-").concat(e),className:R.labelText},ec(i||"",e,h)),(t={fillPercentage:s,disabled:a,classNames:R,icon:s>0?y:_,starNum:e,unselectedIcon:_},(r=S)?r(t):d.createElement(v_,Object(u.a)({},t)))))},L=1;L<=h;L++)B(L);var A=g===s_.Large?R.rootIsLarge:R.rootIsSmall;return d.createElement("div",Object(u.a)({ref:D,className:Me("ms-Rating-star",R.root,A),"aria-label":m?void 0:N,id:n,role:m?void 0:"radiogroup"},P),d.createElement(zn,Object(u.a)({direction:Ot.bidirectional,className:Me(R.ratingFocusZone,A),defaultActiveElement:"#"+b_(n,Math.ceil(O))},m&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":M,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),F))}));y_.displayName="RatingBase";var C_=k(y_,(function(e){var t=e.disabled,n=e.readOnly,o=e.theme,r=o.semanticColors,i=o.palette,a=Object(p.R)(h_,o),s=i.neutralSecondary,l=i.themePrimary,c=i.themeDark,u=i.neutralPrimary,d=r.disabledBodySubtext;return{root:[a.root,o.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":m_(u,"Highlight")}}}}],rootIsSmall:[a.rootIsSmall,{height:"32px"}],rootIsLarge:[a.rootIsLarge,{height:"36px"}],ratingStar:[a.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[a.ratingStarBack,{color:s,width:"100%"},t&&m_(d,"GrayText")],ratingStarFront:[a.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},m_(u,"Highlight")],ratingButton:[Object(p.Q)(o),a.ratingButton,{backgroundColor:"transparent",padding:"".concat(8,"px ").concat(2,"px"),boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":m_(s,"WindowText"),".ms-RatingStar-front":m_(s,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[a.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[a.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[a.labelText,p.ab],ratingFocusZone:[Object(p.Q)(o),a.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"}),__={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},S_={auto:"auto",always:"always"},k_=d.createContext({scrollablePane:void 0}),x_=L(),w_=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._stickyAboveRef=d.createRef(),n._stickyBelowRef=d.createRef(),n._contentContainer=d.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,o=0;e.forEach((function(e){var r=e.state,i=r.isStickyTop,a=r.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(o+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:o})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,o){if(t.children.length){if(!t.contains(o)){var r=[].slice.call(t.children),i=[];n._stickies.forEach((function(o){(t===n.stickyAbove&&e.canStickyTop||e.canStickyBottom)&&i.push(o)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var o=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!o&&r.indexOf(o)>-1}));s<l.length;s++){var c=l[s];if((c.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=c;break}}var u=null;a&&(u=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(o,u)}}else t.appendChild(o)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return Object(u.a)(Object(u.a)({height:e},P(n.props.theme)?{right:"0",left:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}:{left:"0",right:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}),t?{top:"0"}:{bottom:"".concat(n.state.scrollbarHeight||n._getScrollbarHeight()||0,"px")})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,Ct(n),n._async=new wt(n),n._events=new vo(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var o=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&o.push(e)})),o.length&&o.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.scrollContainerFocus,o=e.scrollContainerAriaLabel,r=e.theme,i=e.styles,a=e.onScroll,s=this.state,l=s.stickyTopHeight,c=s.stickyBottomHeight,p=x_(i,{theme:r,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),f=n?{role:"group",tabIndex:0,"aria-label":o,onScroll:a}:{onScroll:a};return d.createElement("div",Object(u.a)({},fe(Object(u.a)({},this.props),pe,["onScroll"]),{ref:this._root,className:p.root}),d.createElement("div",{ref:this._stickyAboveRef,className:p.stickyAbove,style:this._getStickyContainerStyle(l,!0)}),d.createElement("div",Object(u.a)({ref:this._contentContainer},f,{className:p.contentContainer,"data-is-scrollable":!0}),d.createElement(k_.Provider,{value:this._getScrollablePaneContext()},this.props.children)),d.createElement("div",{className:p.stickyBelow,style:this._getStickyContainerStyle(c,!1)},d.createElement("div",{ref:this._stickyBelowRef,className:p.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(d.Component),I_=k(w_,(function(e){var t,n,o=e.className,r=e.theme,i=Object(p.R)(__,r),a={position:"absolute",pointerEvents:"none"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,r.fonts.medium,s,o],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[p.m]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[p.m]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"}),E_={root:{height:"auto"},icon:{fontSize:"12px"}},O_={iconName:"Clear"},T_={ariaLabel:"Clear text"},D_=L(),P_=d.forwardRef((function(e,t){var n=e.ariaLabel,o=e.className,r=e.defaultValue,i=void 0===r?"":r,a=e.disabled,s=e.underlined,l=e.styles,c=e.labelText,p=e.placeholder,f=void 0===p?c:p,h=e.theme,m=e.clearButtonProps,g=void 0===m?T_:m,v=e.disableAnimation,b=void 0!==v&&v,y=e.showIcon,C=void 0!==y&&y,_=e.onClear,S=e.onBlur,k=e.onEscape,x=e.onSearch,w=e.onKeyDown,I=e.iconProps,O=e.role,T=e.onChange,D=e.onChanged,P=d.useState(!1),R=P[0],M=P[1],N=d.useRef(),F=Uc(e.value,i,(function(e,t){e&&e.timeStamp===N.current||(N.current=null==e?void 0:e.timeStamp,null==T||T(e,t),null==D||D(t))})),B=F[0],L=F[1],A=String(B),j=d.useRef(null),H=d.useRef(null),z=Ie(j,t),W=wa("SearchBox",e.id),V=g.onClick,U=D_(l,{theme:h,className:o,underlined:s,hasFocus:R,disabled:a,hasInput:A.length>0,disableAnimation:b,showIcon:C}),K=fe(e,$,["className","placeholder","onFocus","onBlur","value","role"]),G=d.useCallback((function(e){var t;null==_||_(e),e.defaultPrevented||(L(""),null===(t=H.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[_,L]),q=d.useCallback((function(e){null==V||V(e),e.defaultPrevented||G(e)}),[V,G]),Y=d.useCallback((function(e){M(!1),null==S||S(e)}),[S]),Q=function(e){L(e.target.value,e)};return function(e,t,n){d.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.blur()},hasFocus:function(){return n}}}),[t,n])}(e.componentRef,H,R),d.createElement("div",{role:O,ref:z,className:U.root,onFocusCapture:function(t){var n;M(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)}},d.createElement("div",{className:U.iconContainer,onClick:function(){H.current&&(H.current.focus(),H.current.selectionStart=H.current.selectionEnd=0)},"aria-hidden":!0},d.createElement(Ge,Object(u.a)({iconName:"Search"},I,{className:U.icon}))),d.createElement("input",Object(u.a)({},K,{id:W,className:U.field,placeholder:f,onChange:Q,onInput:Q,onBlur:Y,onKeyDown:function(e){switch(e.which){case E.escape:null==k||k(e),A&&!e.defaultPrevented&&G(e);break;case E.enter:x&&(x(A),e.preventDefault(),e.stopPropagation());break;default:null==w||w(e),e.defaultPrevented&&e.stopPropagation()}},value:A,disabled:a,role:"searchbox","aria-label":n,ref:H})),A.length>0&&d.createElement("div",{className:U.clearButton},d.createElement(Ss,Object(u.a)({onBlur:Y,styles:E_,iconProps:O_},g,{onClick:q}))))}));P_.displayName="SearchBox";var R_={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};var M_=k(P_,(function(e){var t,n,o,r,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,u=e.className,d=e.hasInput,f=e.disableAnimation,h=e.showIcon,m=a.palette,g=a.fonts,v=a.semanticColors,b=a.effects,y=Object(p.R)(R_,a),C={color:v.inputPlaceholderText,opacity:1},_=m.neutralSecondary,S=m.neutralPrimary,k=m.neutralLighter,x=m.neutralLighter,w=m.neutralLighter;return{root:[y.root,g.medium,p.gb,{color:v.inputText,backgroundColor:v.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:b.roundedCorner2,border:"1px solid ".concat(v.inputBorder),height:32,selectors:(t={},t[p.m]={borderColor:"WindowText"},t[":hover"]={borderColor:v.inputBorderHovered,selectors:(n={},n[p.m]={borderColor:"Highlight"},n)},t[":hover .".concat(y.iconContainer)]={color:v.inputIconHovered},t)},!c&&d&&{selectors:(o={},o[":hover .".concat(y.iconContainer)]={width:4},o[":hover .".concat(y.icon)]={opacity:0,pointerEvents:"none"},o)},c&&["is-active",{position:"relative"},Object(p.V)(v.inputFocusBorderAlt,s?0:b.roundedCorner2,s?"borderBottom":"border")],h&&[{selectors:(r={},r[":hover .".concat(y.iconContainer)]={width:32},r[":hover .".concat(y.icon)]={opacity:1},r)}],l&&["is-disabled",{borderColor:k,backgroundColor:w,pointerEvents:"none",cursor:"default",selectors:(i={},i[p.m]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",u],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:v.inputIcon,cursor:"text"},c&&{width:4},l&&{color:v.inputIconDisabled},!f&&{transition:"width ".concat(p.c.durationValue1)},h&&c&&{width:32}],icon:[y.icon,{opacity:1},c&&{opacity:0,pointerEvents:"none"},!f&&{transition:"opacity ".concat(p.c.durationValue1," 0s")},h&&c&&{opacity:1}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:x},"&:hover .ms-Button-icon":{color:S},".ms-Button":{borderRadius:P(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:_}}}],field:[y.field,p.gb,Object(p.W)(C),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:v.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:v.disabledText}]}}),void 0,{scope:"SearchBox"}),N_=function(e){function t(t){var n=e.call(this,t)||this;n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,o=t,r=t;if(r&&r.then)r.then((function(e){var t=n.state.items.concat(e);n.updateItems(t)}));else{var i=n.state.items.concat(o);n.updateItems(i)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var o=t.slice(0,e).concat(t.slice(e+1));n.updateItems(o)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var o=n.state.items,r=o.indexOf(e);if(r>-1){var i=o.slice(0,r).concat(t).concat(o.slice(r+1));n.updateItems(i)}},n.removeItems=function(e){var t=n.state.items,o=e.filter((function(e){return n._canRemoveItem(e)})),r=t.filter((function(e){return-1===o.indexOf(e)})),i=o[0],a=t.indexOf(i);n.props.onItemsDeleted&&n.props.onItemsDeleted(o),n.updateItems(r,a)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map((function(o,r){return t({item:o,index:r,key:o.key?o.key:r,selected:n.selection.isIndexSelected(r),onRemoveItem:function(){return n.removeItem(o)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})}))},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var o=n.state.items;if(t>=0){var r=o;r[t]=e,n.updateItems(r)}},Ct(n);var o=t.selectedItems||t.defaultSelectedItems||[];return n.state={items:o},n._defaultSelection=new _h({onSelectionChanged:n.onSelectionChanged}),n}return Object(u.c)(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){n._onSelectedItemsUpdated(e,t)}))},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!==(e=this.props.selection)&&void 0!==e?e:this._defaultSelection},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=document.createElement("input");document.body.appendChild(n);try{if(n.value=t,n.select(),!document.execCommand("copy"))throw new Error}catch(e){}finally{document.body.removeChild(n)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t}(d.Component);Object(yv.a)([{rawString:".personaContainer_6625fd9a{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:';margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_6625fd9a::-moz-focus-inner{border:0}.personaContainer_6625fd9a{outline:transparent}.personaContainer_6625fd9a{position:relative}.ms-Fabric--isFocusVisible .personaContainer_6625fd9a:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid '},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_6625fd9a .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_6625fd9a .ms-Persona-primaryText.hover_6625fd9a{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a .actionButton_6625fd9a:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}.personaContainer_6625fd9a:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a{border:1px solid WindowText}}.personaContainer_6625fd9a .itemContent_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_6625fd9a .removeButton_6625fd9a{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_6625fd9a .expandButton_6625fd9a{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_6625fd9a .personaWrapper_6625fd9a{position:relative;display:inherit}.personaContainer_6625fd9a .personaWrapper_6625fd9a .ms-Persona-details{padding:0 8px}.personaContainer_6625fd9a .personaDetails_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_6625fd9a{display:inline-block;vertical-align:top}"}]);var F_="personaContainer_6625fd9a",B_="hover_6625fd9a",L_="actionButton_6625fd9a",A_="personaContainerIsSelected_6625fd9a",j_="validationError_6625fd9a",H_="itemContent_6625fd9a",z_="removeButton_6625fd9a",W_="expandButton_6625fd9a",V_="personaWrapper_6625fd9a",U_="personaDetails_6625fd9a",K_="itemContainer_6625fd9a",G_=c,q_=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=d.createRef(),Ct(n),n.state={contextualMenuVisible:!1},n}return Object(u.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,o=n.item,r=n.onExpandItem,i=n.onRemoveItem,a=n.removeButtonAriaLabel,s=n.index,l=n.selected,c=bn();return d.createElement("div",{ref:this.persona,className:Me("ms-PickerPersona-container",G_.personaContainer,(e={},e["is-selected "+G_.personaContainerIsSelected]=l,e),(t={},t["is-invalid "+G_.validationError]=!o.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":s,role:"listitem","aria-labelledby":"selectedItemPersona-"+c},d.createElement("div",{hidden:!o.canExpand||void 0===r},d.createElement(Ss,{onClick:this._onClickIconButton(r),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Me("ms-PickerItem-removeButton",G_.expandButton,G_.actionButton),ariaLabel:a})),d.createElement("div",{className:Me(G_.personaWrapper)},d.createElement("div",{className:Me("ms-PickerItem-content",G_.itemContent),id:"selectedItemPersona-"+c},d.createElement(Nv,Object(u.a)({},o,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:Ne.size32}))),d.createElement(Ss,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Me("ms-PickerItem-removeButton",G_.removeButton,G_.actionButton),ariaLabel:a})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(d.Component),Y_=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=d.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},Ct(n),n.state={contextualMenuVisible:!1},n}return Object(u.c)(t,e),t.prototype.render=function(){return d.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?d.createElement(ss,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:Eo.bottomLeftEdge}):null)},t}(d.Component),Q_={root:"ms-EditingItem",input:"ms-EditingItem-input"},X_=function(e){var t=Object(p.Y)();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,o=Object(p.R)(Q_,t);return{root:[o.root,{margin:"4px"}],input:[o.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},Z_=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=d.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?d.createElement(e,Object(u.a)({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):d.createElement(d.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate((function(){n._editingInput.focus()}))},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},Ct(n),n.state={contextualMenuVisible:!1},n}return Object(u.c)(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=bn(),t=fe(this.props,$),n=L()(X_);return d.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},d.createElement("input",Object(u.a)({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==E.backspace&&e.which!==E.del||e.stopPropagation()},t}(d.Component),$_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t}(N_),J_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map((function(e,n){return t._renderItem(e,n)}))},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}return Object(u.c)(t,e),t.prototype._renderItem=function(e,t){var n=this,o=this.props.removeButtonAriaLabel,r=this.props.onExpandGroup,i={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:o,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:r?function(){return r(e)}:void 0,menuItems:this._createMenuItems(e)},a=i.menuItems.length>0;if(e.isEditing&&a)return d.createElement(Z_,Object(u.a)({},i,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var s=(0,this.props.onRenderItem)(i);return a?d.createElement(Y_,{key:i.key,renderedItem:s,beginEditing:this._beginEditing,menuItems:this._createMenuItems(i.item),item:i.item}):s},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return d.createElement(q_,Object(u.a)({},e))}},t}($_),eS=L(),tS=d.forwardRef((function(e,t){var n=e.styles,o=e.theme,r=e.className,i=e.vertical,a=e.alignContent,s=e.children,l=eS(n,{theme:o,className:r,alignContent:a,vertical:i});return d.createElement("div",{className:l.root,ref:t},d.createElement("div",{className:l.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s))})),nS=k(tS,(function(e){var t,n,o=e.theme,r=e.alignContent,i=e.vertical,a=e.className,s="start"===r,l="center"===r,c="end"===r;return{root:[o.fonts.medium,{position:"relative"},r&&{textAlign:r},!r&&{textAlign:"center"},i&&(l||!r)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:o.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[p.m]={backgroundColor:"WindowText"},t)}},!i&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:o.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[p.m]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:o.semanticColors.bodyText,background:o.semanticColors.bodyBackground},i&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});nS.displayName="Separator";var oS,rS,iS={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},aS=Object(f.c)((function(){return Object(p.bb)({"0%":{transform:"translateX(-".concat("100%",")")},"100%":{transform:"translateX(".concat("100%",")")}})})),sS=Object(f.c)((function(){return Object(p.bb)({"100%":{transform:"translateX(-".concat("100%",")")},"0%":{transform:"translateX(".concat("100%",")")}})}));!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(oS||(oS={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(rS||(rS={}));var lS=L(),cS=function(e){var t=e.height,n=e.styles,o=e.width,r=void 0===o?"100%":o,i=e.borderStyle,a=e.theme,s=lS(n,{theme:a,height:t,borderStyle:i});return d.createElement("div",{style:{width:r,minWidth:"number"==typeof r?"".concat(r,"px"):"auto"},className:s.root},d.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},d.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),d.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},d.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),d.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},d.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),d.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},d.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},uS={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var dS=k(cS,(function(e){var t,n=e.height,o=e.borderStyle,r=e.theme,i=r.semanticColors,a=Object(p.R)(uS,r),s=o||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,r.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[p.m]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),pS=L(),fS=function(e){var t=e.height,n=e.styles,o=e.width,r=void 0===o?"10px":o,i=e.borderStyle,a=e.theme,s=pS(n,{theme:a,height:t,borderStyle:i});return d.createElement("div",{style:{width:r,minWidth:"number"==typeof r?"".concat(r,"px"):"auto"},className:s.root})},hS={root:"ms-ShimmerGap-root"};var mS=k(fS,(function(e){var t,n=e.height,o=e.borderStyle,r=e.theme,i=r.semanticColors,a=o||{};return{root:[Object(p.R)(hS,r).root,r.fonts.medium,{backgroundColor:i.bodyBackground,height:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,selectors:(t={},t[p.m]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),gS={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var vS=L(),bS=function(e){var t=e.height,n=e.styles,o=e.borderStyle,r=e.theme,i=vS(n,{theme:r,height:t,borderStyle:o});return d.createElement("div",{className:i.root},d.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},d.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},yS=k(bS,(function(e){var t,n,o=e.height,r=e.borderStyle,i=e.theme,a=i.semanticColors,s=Object(p.R)(gS,i),l=r||{};return{root:[s.root,i.fonts.medium,{width:"".concat(o,"px"),height:"".concat(o,"px"),minWidth:"".concat(o,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[p.m]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[p.m]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),CS=L(),_S=function(e){var t=e.styles,n=e.width,o=void 0===n?"auto":n,r=e.shimmerElements,i=e.rowHeight,a=void 0===i?function(e){return e.map((function(e){switch(e.type){case oS.circle:e.height||(e.height=rS.circle);break;case oS.line:e.height||(e.height=rS.line);break;case oS.gap:e.height||(e.height=rS.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(r||[]):i,s=e.flexWrap,l=void 0!==s&&s,c=e.theme,p=e.backgroundColor,f=CS(t,{theme:c,flexWrap:l});return d.createElement("div",{style:{width:o},className:f.root},function(e,t,n){return e?e.map((function(e,o){var r=e.type,i=Object(u.d)(e,["type"]),a=i.verticalAlign,s=i.height,l=SS(a,r,s,t,n);switch(e.type){case oS.circle:return d.createElement(yS,Object(u.a)({key:o},i,{styles:l}));case oS.gap:return d.createElement(mS,Object(u.a)({key:o},i,{styles:l}));case oS.line:return d.createElement(dS,Object(u.a)({key:o},i,{styles:l}))}})):d.createElement(dS,{height:rS.line})}(r,p,a))};var SS=Object(f.c)((function(e,t,n,o,r){var i,a=r&&n?r-n:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:"".concat(a,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:"".concat(a,"px")}):i={borderBottomWidth:"".concat(a?Math.floor(a/2):0,"px"),borderTopWidth:"".concat(a?Math.ceil(a/2):0,"px")},o)switch(t){case oS.circle:return{root:Object(u.a)(Object(u.a)({},i),{borderColor:o}),svg:{fill:o}};case oS.gap:return{root:Object(u.a)(Object(u.a)({},i),{borderColor:o,backgroundColor:o})};case oS.line:return{root:Object(u.a)(Object(u.a)({},i),{borderColor:o}),topLeftCorner:{fill:o},topRightCorner:{fill:o},bottomLeftCorner:{fill:o},bottomRightCorner:{fill:o}}}return{root:i}}));var kS={root:"ms-ShimmerElementsGroup-root"};var xS=k(_S,(function(e){var t=e.flexWrap,n=e.theme;return{root:[Object(p.R)(kS,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),wS=L(),IS=d.forwardRef((function(e,t){var n=e.styles,o=e.shimmerElements,r=e.children,i=e.width,a=e.className,s=e.customElementsGroup,l=e.theme,c=e.ariaLabel,p=e.shimmerColors,f=e.isDataLoaded,h=void 0!==f&&f,m=e.improveCSSPerformance,g=fe(e,pe),v=wS(n,{theme:l,isDataLoaded:h,className:a,transitionAnimationInterval:200,shimmerColor:p&&p.shimmer,shimmerWaveColor:p&&p.shimmerWave,improveCSSPerformance:m||!s}),b=jr({lastTimeoutId:0}),y=Hu(),C=y.setTimeout,_=y.clearTimeout,S=d.useState(h),k=S[0],x=S[1],w={width:i||"100%"};return d.useEffect((function(){if(h!==k){if(h)return b.lastTimeoutId=C((function(){x(!0)}),200),function(){return _(b.lastTimeoutId)};x(!1)}}),[h]),d.createElement("div",Object(u.a)({},g,{className:v.root,ref:t}),!k&&d.createElement("div",{style:w,className:v.shimmerWrapper},d.createElement("div",{className:v.shimmerGradient}),s||d.createElement(xS,{shimmerElements:o,backgroundColor:p&&p.background})),r&&d.createElement("div",{className:v.dataWrapper},r),c&&!h&&d.createElement("div",{role:"status","aria-live":"polite"},d.createElement(Tt,null,d.createElement("div",{className:v.screenReaderText},c))))}));IS.displayName="Shimmer";var ES=k(IS,(function(e){var t,n=e.isDataLoaded,o=e.className,r=e.theme,i=e.transitionAnimationInterval,a=e.shimmerColor,s=e.shimmerWaveColor,l=e.improveCSSPerformance,c=r.semanticColors,d=Object(p.R)(iS,r),f=P(r);return{root:[d.root,r.fonts.medium,{position:"relative",height:"auto"},o],shimmerWrapper:[d.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:a||c.disabledBackground,transition:"opacity ".concat(i,"ms"),selectors:(t={},t[p.m]=Object(u.a)({background:"WindowText\n linear-gradient(\n to right,\n transparent 0%,\n Window 50%,\n transparent 100%)\n 0 0 / 90% 100%\n no-repeat"},Object(p.S)()),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},l?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[d.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(a||c.disabledBackground,"\n linear-gradient(\n to right,\n ").concat(a||c.disabledBackground," 0%,\n ").concat(s||c.bodyDivider," 50%,\n ").concat(a||c.disabledBackground," 100%)\n 0 0 / 90% 100%\n no-repeat"),transform:"translateX(-".concat("100%",")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:f?sS():aS()}],dataWrapper:[d.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(i,"ms")},n&&{opacity:"1",position:"static"}],screenReaderText:p.ab}}),void 0,{scope:"Shimmer"}),OS=L(),TS=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var o=n.props.onRenderCustomPlaceholder,r=o?o(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return d.createElement(ES,{customElementsGroup:r})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,o=e.selectionMode,r=e.checkboxVisibility,i=e.cellStyleProps,a=void 0===i?Tf:i,s=Df.rowHeight,l=Df.compactRowHeight,c=n?l:s+1,u=[];return o!==Qf.none&&r!==xf.hidden&&u.push(d.createElement(xS,{key:"checkboxGap",shimmerElements:[{type:oS.gap,width:"40px",height:c}]})),t.forEach((function(e,t){var n=[],o=a.cellLeftPadding+a.cellRightPadding+e.calculatedWidth+(e.isPadded?a.cellExtraRightPadding:0);n.push({type:oS.gap,width:a.cellLeftPadding,height:c}),e.isIconOnly?(n.push({type:oS.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:oS.gap,width:a.cellRightPadding,height:c})):(n.push({type:oS.line,width:.95*e.calculatedWidth,height:7}),n.push({type:oS.gap,width:a.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?a.cellExtraRightPadding:0),height:c})),u.push(d.createElement(xS,{key:t,width:"".concat(o,"px"),shimmerElements:n}))})),u.push(d.createElement(xS,{key:"endGap",width:"100%",shimmerElements:[{type:oS.gap,width:"100%",height:c}]})),d.createElement("div",{style:{display:"flex"}},u)},n._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(10),n}return Object(u.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,o=e.items,r=e.listProps,i=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),a=(e.shimmerLines,e.styles),s=e.theme,l=e.ariaLabelForGrid,c=e.ariaLabelForShimmer,p=Object(u.d)(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),f=r&&r.className;this._classNames=OS(a,{theme:s});var h=Object(u.a)(Object(u.a)({},r),{className:n&&!i?Me(this._classNames.root,f):f});return d.createElement(pm,Object(u.a)({},p,{styles:t,items:n?this._shimmerItems:o,isPlaceholderData:n,ariaLabelForGrid:n&&c||l,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:h}))},t}(d.Component),DS=function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, ".concat(t.whiteTranslucent40," 65%,").concat(t.white," 100%)")}}}}},PS=k(TS,DS,void 0,{scope:"ShimmeredDetailsList"}),RS=L(),MS=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},NS=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},FS=function(e,t){var n=e.step,o=void 0===n?1:n,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.label,l=e.max,c=void 0===l?10:l,p=e.min,f=void 0===p?0:p,h=e.showValue,m=void 0===h||h,g=e.buttonProps,v=void 0===g?{}:g,b=e.vertical,y=void 0!==b&&b,C=e.snapToStep,_=e.valueFormat,S=e.styles,k=e.theme,x=e.originFromZero,w=e["aria-labelledby"],I=e.ariaLabel,O=void 0===I?e["aria-label"]:I,T=e.ranged,D=e.onChange,R=e.onChanged,N=d.useRef([]),F=Hu(),B=F.setTimeout,L=F.clearTimeout,A=d.useRef(null),j=Uc(e.value,e.defaultValue,(function(e,t){return null==D?void 0:D(t,T?[q.latestLowerValue,t]:void 0,e)})),H=j[0],z=j[1],W=Uc(e.lowerValue,e.defaultLowerValue,(function(e,t){return null==D?void 0:D(q.latestValue,[t,q.latestValue],e)})),V=W[0],U=W[1],K=Math.max(f,Math.min(c,H||0)),G=Math.max(f,Math.min(K,V||0)),q=jr({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:K,latestLowerValue:G});q.latestValue=K,q.latestLowerValue=G;var Y=wa("Slider",e.id||(null==v?void 0:v.id)),Q=RS(S,{className:r,disabled:a,vertical:y,showTransitions:!C&&!q.isBetweenSteps,showValue:m,ranged:T,theme:k}),X=(c-f)/o,Z=function(){L(q.onKeyDownTimer),q.onKeyDownTimer=-1},$=function(e){Z(),R&&(q.onKeyDownTimer=B((function(){R(e,q.latestValue,T?[q.latestLowerValue,q.latestValue]:void 0)}),1e3))},J=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},ee=function(e,t,n){t=Math.min(c,Math.max(f,t)),n=void 0!==n?Math.min(c,Math.max(f,n)):void 0;var r=0;if(isFinite(o))for(;Math.round(o*Math.pow(10,r))/Math.pow(10,r)!==o;)r++;var i=parseFloat(t.toFixed(r));q.isBetweenSteps=void 0!==n&&n!==i,T?q.isAdjustingLowerValue&&(x?i<=0:i<=q.latestValue)?U(i,e):!q.isAdjustingLowerValue&&(x?i>=0:i>=q.latestLowerValue)&&z(i,e):z(i,e)},te=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},ne=function(t){var n,o=A.current.getBoundingClientRect(),r=(e.vertical?o.height:o.width)/X;if(e.vertical){var i=te(t,e.vertical);n=(o.bottom-i)/r}else{var a=te(t,e.vertical);n=(P(e.theme)?o.right-a:a-o.left)/r}return n},oe=function(e,t){var n=ne(e),r=f+o*n,i=f+o*Math.round(n);ee(e,i,r),t||(e.preventDefault(),e.stopPropagation())},re=function(e){if(T){var t=ne(e),n=f+o*t;q.isAdjustingLowerValue=n<=q.latestLowerValue||n-q.latestLowerValue<=q.latestValue-n}"mousedown"===e.type?N.current.push(Ho(window,"mousemove",oe,!0),Ho(window,"mouseup",ie,!0)):"touchstart"===e.type&&N.current.push(Ho(window,"touchmove",oe,!0),Ho(window,"touchend",ie,!0)),oe(e,!0)},ie=function(e){q.isBetweenSteps=void 0,null==R||R(e,q.latestValue,T?[q.latestLowerValue,q.latestValue]:void 0),ae()},ae=d.useCallback((function(){N.current.forEach((function(e){return e()})),N.current=[]}),[]);d.useEffect((function(){return ae}),[ae]);var se=d.useRef(null),le=d.useRef(null),ce=d.useRef(null);!function(e,t,n,o){d.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return o},focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}}),[o,t,n])}(e,ce,K,T?[G,K]:void 0);var ue=MS(y?"bottom":P(e.theme)?"right":"left"),de=MS(y?"height":"width"),he=x?0:f,me=NS(K,f,c),ge=NS(G,f,c),ve=NS(he,f,c),be=T?me-ge:Math.abs(ve-me),ye=Math.min(100-me,100-ve),Ce=T?ge:Math.min(me,ve),_e={className:Q.root,ref:t},Se={className:Q.titleLabel,children:s,disabled:a,htmlFor:O?void 0:Y},ke=m?{className:Q.valueLabel,children:_?_(K):K,disabled:a,htmlFor:a?Y:void 0}:void 0,xe=T&&m?{className:Q.valueLabel,children:_?_(G):G,disabled:a}:void 0,we=x?{className:Q.zeroTick,style:ue(ve)}:void 0,Ie={className:Me(Q.lineContainer,Q.activeSection),style:de(be)},Ee={className:Me(Q.lineContainer,Q.inactiveSection),style:de(ye)},Oe={className:Me(Q.lineContainer,Q.inactiveSection),style:de(Ce)},Te=Object(u.a)({"aria-disabled":a,role:"slider",tabIndex:a?void 0:0},{"data-is-focusable":!a}),De=Object(u.a)(Object(u.a)(Object(u.a)({id:Y,className:Me(Q.slideBox,v.className),ref:ce},!a&&{onMouseDown:re,onTouchStart:re,onKeyDown:function(t){var n=q.isAdjustingLowerValue?q.latestLowerValue:q.latestValue,r=0;switch(t.which){case M(E.left,e.theme):case E.down:r=-o,Z(),$(t);break;case M(E.right,e.theme):case E.up:r=o,Z(),$(t);break;case E.home:n=f,Z(),$(t);break;case E.end:n=c,Z(),$(t);break;default:return}ee(t,n+r),t.preventDefault(),t.stopPropagation()}}),v&&fe(v,pe,["id","className"])),!T&&Object(u.a)(Object(u.a)({},Te),{"aria-valuemin":f,"aria-valuemax":c,"aria-valuenow":K,"aria-valuetext":J(K),"aria-label":O||s,"aria-labelledby":w})),Pe=a?{}:{onFocus:function(e){q.isAdjustingLowerValue=e.target===se.current}},Re=Object(u.a)({ref:le,className:Q.thumb,style:ue(me)},T&&Object(u.a)(Object(u.a)(Object(u.a)({},Te),Pe),{id:"max-".concat(Y),"aria-valuemin":G,"aria-valuemax":c,"aria-valuenow":K,"aria-valuetext":J(K),"aria-label":"max ".concat(O||s)})),Ne=T?Object(u.a)(Object(u.a)(Object(u.a)({ref:se,className:Q.thumb,style:ue(ge)},Te),Pe),{id:"min-".concat(Y),"aria-valuemin":f,"aria-valuemax":K,"aria-valuenow":G,"aria-valuetext":J(G),"aria-label":"min ".concat(O||s)}):void 0;return{root:_e,label:Se,sliderBox:De,container:{className:Q.container},valueLabel:ke,lowerValueLabel:xe,thumb:Re,lowerValueThumb:Ne,zeroTick:we,activeTrack:Ie,topInactiveTrack:Ee,bottomInactiveTrack:Oe,sliderLine:{ref:A,className:Q.line}}},BS=d.forwardRef((function(e,t){var n=FS(e,t);return d.createElement("div",Object(u.a)({},n.root),n&&d.createElement(pu,Object(u.a)({},n.label)),d.createElement("div",Object(u.a)({},n.container),e.ranged&&(e.vertical?n.valueLabel&&d.createElement(pu,Object(u.a)({},n.valueLabel)):n.lowerValueLabel&&d.createElement(pu,Object(u.a)({},n.lowerValueLabel))),d.createElement("div",Object(u.a)({},n.sliderBox),d.createElement("div",Object(u.a)({},n.sliderLine),e.ranged&&d.createElement("span",Object(u.a)({},n.lowerValueThumb)),d.createElement("span",Object(u.a)({},n.thumb)),n.zeroTick&&d.createElement("span",Object(u.a)({},n.zeroTick)),d.createElement("span",Object(u.a)({},n.bottomInactiveTrack)),d.createElement("span",Object(u.a)({},n.activeTrack)),d.createElement("span",Object(u.a)({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&d.createElement(pu,Object(u.a)({},n.lowerValueLabel)):n.valueLabel&&d.createElement(pu,Object(u.a)({},n.valueLabel))),d.createElement(Jn,null))}));BS.displayName="SliderBase";var LS,AS={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},jS=k(BS,(function(e){var t,n,o,r,i,a,s,l,c,d,f,h,m,g=e.className,v=e.titleLabelClassName,b=e.theme,y=e.vertical,C=e.disabled,_=e.showTransitions,S=e.showValue,k=e.ranged,x=b.semanticColors,w=b.palette,I=Object(p.R)(AS,b),E=x.inputBackgroundCheckedHovered,O=x.inputBackgroundChecked,T=w.neutralSecondaryAlt,D=w.neutralPrimary,R=w.neutralSecondaryAlt,M=x.disabledText,N=x.disabledBackground,F=x.inputBackground,B=x.smallInputBorder,L=x.disabledBorder,A=!C&&{backgroundColor:E,selectors:(t={},t[p.m]={backgroundColor:"Highlight"},t)},j=!C&&{backgroundColor:T,selectors:(n={},n[p.m]={borderColor:"Highlight"},n)},H=!C&&{backgroundColor:O,selectors:(o={},o[p.m]={backgroundColor:"Highlight"},o)},z=!C&&{border:"2px solid ".concat(E),selectors:(r={},r[p.m]={borderColor:"Highlight"},r)},W=!e.disabled&&{backgroundColor:x.inputPlaceholderBackgroundChecked,selectors:(i={},i[p.m]={backgroundColor:"Highlight"},i)};return{root:Object(u.e)(Object(u.e)(Object(u.e)(Object(u.e)(Object(u.e)([I.root,b.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[C?void 0:I.enabled],!1),[C?I.disabled:void 0],!1),[y?void 0:I.row],!1),[y?I.column:void 0],!1),[g],!1),titleLabel:[{padding:0},v],container:[I.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:Object(u.e)(Object(u.e)([I.slideBox,!k&&Object(p.Q)(b),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active .".concat(I.activeSection)]=A,a[":hover .".concat(I.activeSection)]=H,a[":active .".concat(I.inactiveSection)]=j,a[":hover .".concat(I.inactiveSection)]=j,a[":active .".concat(I.thumb)]=z,a[":hover .".concat(I.thumb)]=z,a[":active .".concat(I.zeroTick)]=W,a[":hover .".concat(I.zeroTick)]=W,a[p.m]={forcedColorAdjust:"none"},a)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?I.showValue:void 0],!1),[_?I.showTransitions:void 0],!1),thumb:[I.thumb,k&&Object(p.Q)(b,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:B,borderRadius:10,boxSizing:"border-box",background:F,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:P(b)?"translateX(50%)":"translateX(-50%)"},_&&{transition:"left ".concat(p.c.durationValue3," ").concat(p.c.easeFunction1)},C&&{borderColor:L,selectors:(s={},s[p.m]={borderColor:"GrayText"},s)}],line:[I.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[I.activeSection,{background:D,selectors:(l={},l[p.m]={backgroundColor:"WindowText"},l)},_&&{transition:"width ".concat(p.c.durationValue3," ").concat(p.c.easeFunction1)},C&&{background:M,selectors:(c={},c[p.m]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[I.inactiveSection,{background:R,selectors:(d={},d[p.m]={border:"1px solid WindowText"},d)},_&&{transition:"width ".concat(p.c.durationValue3," ").concat(p.c.easeFunction1)},C&&{background:N,selectors:(f={},f[p.m]={borderColor:"GrayText"},f)}],zeroTick:[I.zeroTick,{position:"absolute",background:x.disabledBorder,selectors:(h={},h[p.m]={backgroundColor:"WindowText"},h)},e.disabled&&{background:x.disabledBackground,selectors:(m={},m[p.m]={backgroundColor:"GrayText"},m)},e.vertical?{width:"16px",height:"1px",transform:P(b)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[I.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"});!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(LS||(LS={}));var HS=Object(f.c)((function(e){var t,n=e.semanticColors,o=n.disabledText,r=n.disabledBackground;return{backgroundColor:r,pointerEvents:"none",cursor:"default",color:o,selectors:(t={":after":{borderColor:r}},t[p.m]={color:"GrayText"},t)}})),zS=Object(f.c)((function(e,t,n){var o,r,i,a=e.palette,s=e.semanticColors,l=e.effects,c=a.neutralSecondary,u=s.buttonText,d=s.buttonText,f=s.buttonBackgroundHovered,h=s.buttonBackgroundPressed,m={root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:c,selectors:{"&.ms-DownButton":{borderRadius:"0 0 ".concat(l.roundedCorner2," 0")},"&.ms-UpButton":{borderRadius:"0 ".concat(l.roundedCorner2," 0 0")}}},rootHovered:{backgroundColor:f,color:u},rootChecked:{backgroundColor:h,color:d,selectors:(o={},o[p.m]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootPressed:{backgroundColor:h,color:d,selectors:(r={},r[p.m]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootDisabled:{opacity:.5,selectors:(i={},i[p.m]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}};return Object(p.I)(m,{},n)})),WS=L(),VS={disabled:!1,label:"",step:1,labelPosition:No.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},US=function(){},KS=function(e,t){var n=t.min,o=t.max;return"number"==typeof o&&(e=Math.min(e,o)),"number"==typeof n&&(e=Math.max(e,n)),e},GS=d.forwardRef((function(e,t){var n=H(VS,e),o=n.disabled,r=n.label,i=n.min,a=n.max,s=n.step,l=n.defaultValue,c=n.value,p=n.precision,f=n.labelPosition,h=n.iconProps,m=n.incrementButtonIcon,g=n.incrementButtonAriaLabel,v=n.decrementButtonIcon,b=n.decrementButtonAriaLabel,y=n.ariaLabel,C=n.ariaDescribedBy,_=n.upArrowButtonStyles,S=n.downArrowButtonStyles,k=n.theme,x=n.ariaPositionInSet,w=n.ariaSetSize,I=n.ariaValueNow,O=n.ariaValueText,T=n.className,D=n.inputProps,P=n.onDecrement,R=n.onIncrement,M=n.iconButtonProps,N=n.onValidate,F=n.onChange,B=n.styles,L=d.useRef(null),A=wa("input"),j=wa("Label"),z=d.useState(!1),W=z[0],V=z[1],U=d.useState(LS.notSpinning),K=U[0],G=U[1],q=Dr(),Y=d.useMemo((function(){return null!=p?p:Math.max(Cy(s),0)}),[p,s]),Q=Uc(c,null!=l?l:String(i||0),F),X=Q[0],Z=Q[1],$=d.useState(),J=$[0],ee=$[1],te=d.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;te.latestValue=X,te.latestIntermediateValue=J;var ne=ua(c);d.useEffect((function(){c!==ne&&void 0!==J&&ee(void 0)}),[c,ne,J]);var oe=WS(B,{theme:k,disabled:o,isFocused:W,keyboardSpinDirection:K,labelPosition:f,className:T}),re=fe(n,pe,["onBlur","onFocus","className","onChange"]),ie=d.useCallback((function(e){var t=te.latestIntermediateValue;if(void 0!==t&&t!==te.latestValue){var n=void 0;N?n=N(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(KS(Number(t),{min:i,max:a}))),void 0!==n&&n!==te.latestValue&&Z(n,e)}ee(void 0)}),[te,a,i,N,Z]),ae=d.useCallback((function(){te.stepTimeoutHandle>=0&&(q.clearTimeout(te.stepTimeoutHandle),te.stepTimeoutHandle=-1),(te.spinningByMouse||K!==LS.notSpinning)&&(te.spinningByMouse=!1,G(LS.notSpinning))}),[te,K,q]),se=d.useCallback((function(e,t){if(t.persist(),void 0!==te.latestIntermediateValue)return"keydown"!==t.type&&"mousedown"!==t.type||ie(t),void q.requestAnimationFrame((function(){se(e,t)}));var n=e(te.latestValue||"",t);void 0!==n&&n!==te.latestValue&&Z(n,t);var o=te.spinningByMouse;te.spinningByMouse="mousedown"===t.type,te.spinningByMouse&&(te.stepTimeoutHandle=q.setTimeout((function(){se(e,t)}),o?75:400))}),[te,q,ie,Z]),le=d.useCallback((function(e){if(R)return R(e);var t=KS(Number(e)+Number(s),{max:a});return t=_y(t,Y),String(t)}),[Y,a,R,s]),ce=d.useCallback((function(e){if(P)return P(e);var t=KS(Number(e)-Number(s),{min:i});return t=_y(t,Y),String(t)}),[Y,i,P,s]),ue=d.useCallback((function(e){(o||e.which===E.up||e.which===E.down)&&ae()}),[o,ae]),de=d.useCallback((function(e){se(le,e)}),[le,se]),he=d.useCallback((function(e){se(ce,e)}),[ce,se]);!function(e,t,n){d.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}}),[t,n])}(n,L,X),qS(n);var me=!!X&&!isNaN(Number(X)),ge=(h||r)&&d.createElement("div",{className:oe.labelWrapper},h&&d.createElement(Ge,Object(u.a)({},h,{className:oe.icon,"aria-hidden":"true"})),r&&d.createElement(pu,{id:j,htmlFor:A,className:oe.label,disabled:o},r));return d.createElement("div",{className:oe.root,ref:t},f!==No.bottom&&ge,d.createElement("div",Object(u.a)({},re,{className:oe.spinButtonWrapper,"aria-label":y&&y,"aria-posinset":x,"aria-setsize":w,"data-ktp-target":!0}),d.createElement("input",Object(u.a)({value:null!=J?J:X,id:A,onChange:US,onInput:function(e){ee(e.target.value)},className:oe.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":r&&j,"aria-valuenow":null!=I?I:me?Number(X):void 0,"aria-valuetext":null!=O?O:me?void 0:X,"aria-valuemin":i,"aria-valuemax":a,"aria-describedby":C,onBlur:function(e){var t;ie(e),V(!1),null===(t=n.onBlur)||void 0===t||t.call(n,e)},ref:L,onFocus:function(e){var t;L.current&&((te.spinningByMouse||K!==LS.notSpinning)&&ae(),L.current.select(),V(!0),null===(t=n.onFocus)||void 0===t||t.call(n,e))},onKeyDown:function(e){if(e.which!==E.up&&e.which!==E.down&&e.which!==E.enter||(e.preventDefault(),e.stopPropagation()),o)ae();else{var t=LS.notSpinning;switch(e.which){case E.up:t=LS.up,se(le,e);break;case E.down:t=LS.down,se(ce,e);break;case E.enter:ie(e);break;case E.escape:ee(void 0)}K!==t&&G(t)}},onKeyUp:ue,disabled:o,"aria-disabled":o,"data-lpignore":!0,"data-ktp-execute-target":!0},D)),d.createElement("span",{className:oe.arrowButtonsContainer},d.createElement(Ss,Object(u.a)({styles:zS(k,!0,_),className:"ms-UpButton",checked:K===LS.up,disabled:o,iconProps:m,onMouseDown:de,onMouseLeave:ae,onMouseUp:ae,tabIndex:-1,ariaLabel:g,"data-is-focusable":!1},M)),d.createElement(Ss,Object(u.a)({styles:zS(k,!1,S),className:"ms-DownButton",checked:K===LS.down,disabled:o,iconProps:v,onMouseDown:he,onMouseLeave:ae,onMouseUp:ae,tabIndex:-1,ariaLabel:b,"data-is-focusable":!1},M)))),f===No.bottom&&ge)}));GS.displayName="SpinButton";var qS=function(e){0},YS=k(GS,(function(e){var t,n,o,r,i=e.theme,a=e.className,s=e.labelPosition,l=e.disabled,c=e.isFocused,d=i.palette,f=i.semanticColors,h=i.effects,m=i.fonts,g=f.inputBorder,v=f.inputBackground,b=f.inputBorderHovered,y=f.inputFocusBorderAlt,C=f.inputText,_=d.white,S=f.inputBackgroundChecked,k=f.disabledText;return{root:[m.medium,{outline:"none",width:"100%",minWidth:86},a],labelWrapper:[{display:"inline-flex",alignItems:"center"},s===No.start&&{height:32,float:"left",marginRight:10},s===No.end&&{height:32,float:"right",marginLeft:10},s===No.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:p.p.large},l&&{color:k}],label:{pointerEvents:"none",lineHeight:p.p.large},spinButtonWrapper:[Object(u.a)(Object(u.a)({display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86},Object(p.V)(g,h.roundedCorner2,"border",0)),{":after":(t={borderWidth:"1px"},t[p.m]={borderColor:"GrayText"},t)}),(s===No.top||s===No.bottom)&&{width:"100%"},!l&&[{":hover:after":(n={borderColor:b},n[p.m]={borderColor:"Highlight"},n)},c&&{":hover:after, :after":(o={borderColor:y,borderWidth:"2px"},o[p.m]={borderColor:"Highlight"},o)}],l&&HS(i)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:m.medium.fontSize,fontFamily:"inherit",color:C,backgroundColor:v,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:"".concat(h.roundedCorner2," 0 0 ").concat(h.roundedCorner2)},!l&&{selectors:{"::selection":{backgroundColor:S,color:_,selectors:(r={},r[p.m]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},r)}}},l&&HS(i)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},l&&HS(i)]}}),void 0,{scope:"SpinButton"}),QS=u.a;function XS(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=e;return r.isSlot?0===(n=d.Children.toArray(n)).length?r(t):r(Object(u.a)(Object(u.a)({},t),{children:n})):d.createElement.apply(d,Object(u.e)([e,t],n,!1))}function ZS(e,t){void 0===t&&(t={});var n=t.defaultProp,o=void 0===n?"children":n;return function(t,n,r,i,a){if(d.isValidElement(n))return n;var s=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];for(var r={},i=[],a=0,s=n;a<s.length;a++){var l=s[a];i.push(l&&l.className),QS(r,l)}return r.className=Object(_n.a)([e,i],{rtl:P(t)}),r}(i,a,t,function(e,t){var n,o;"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,o=n):o=t;return o}(o,n));if(r){if(r.component){var l=r.component;return d.createElement(l,Object(u.a)({},s))}if(r.render)return r.render(s,e)}return d.createElement(e,Object(u.a)({},s))}}var $S=Object(f.c)((function(e){return ZS(e)}));function JS(e,t){var n={},o=e,r=function(e){if(t.hasOwnProperty(e)){var r=function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(r.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return ek(t[e],n,o[e],o.slots&&o.slots[e],o._defaultStyles&&o._defaultStyles[e],o.theme)};r.isSlot=!0,n[e]=r}};for(var i in t)r(i);return n}function ek(e,t,n,o,r,i){return void 0!==e.create?e.create(t,n,o,r):$S(e)(t,n,o,r,i)}function tk(e,t){void 0===t&&(t={});var n=t.factoryOptions,o=(void 0===n?{}:n).defaultProp,r=function(n){var o,r,i,a=(o=t.displayName,r=d.useContext(C),i=t.fields,y.a.getSettings(i||["theme","styles","tokens"],o,r.customizations)),s=t.state;s&&(n=Object(u.a)(Object(u.a)({},n),s(n)));var l=n.theme||a.theme,c=function e(t,n){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];for(var i={},a=0,s=o;a<s.length;a++){var l=s[a];l&&(l="function"==typeof l?l(t,n):l,Array.isArray(l)&&(l=e.apply(void 0,Object(u.e)([t,n],l,!1))),QS(i,l))}return i}(n,l,t.tokens,a.tokens,n.tokens),f=function(e,t,n){for(var o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];return p.I.apply(void 0,o.map((function(o){return"function"==typeof o?o(e,t,n):o})))}(n,l,c,t.styles,a.styles,n.styles),h=Object(u.a)(Object(u.a)({},n),{styles:f,tokens:c,_defaultStyles:f,theme:l});return e(h)};return r.displayName=t.displayName||e.name,o&&(r.create=ZS(r,{defaultProp:o})),QS(r,t.statics),r}var nk={root:"ms-StackItem"},ok={start:"flex-start",end:"flex-end"},rk=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},ik=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,o=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(o.toString().length)||"px"}},ak=function(e,t){if(void 0===e||"number"==typeof e||""===e)return e;var n=e.split(" ");return n.length<2?rk(e,t):n.reduce((function(e,n){return rk(e,t)+" "+rk(n,t)}))},sk={start:"flex-start",end:"flex-end"},lk={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},ck=tk((function(e){var t=e.children,n=fe(e,U);return null==t?null:XS(JS(e,{root:"div"}).root,Object(u.a)({},n),t)}),{displayName:"StackItem",styles:function(e,t,n){var o=e.grow,r=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=e.basis,d=void 0===u?"auto":u,f=Object(p.R)(nk,t);return{root:[t.fonts.medium,f.root,{flexBasis:d,margin:n.margin,padding:n.padding,height:s?"100%":"auto",width:"auto"},o&&{flexGrow:!0===o?1:o},(i||!o&&!r)&&{flexShrink:0},r&&!i&&{flexShrink:1},a&&{alignSelf:ok[a]||a},l&&{order:l},c]}}});var uk,dk=tk((function(e){var t=e.as,n=void 0===t?"div":t,o=e.disableShrink,r=void 0!==o&&o,i=e.enableScopedSelectors,a=void 0!==i&&i,s=e.wrap,l=Object(u.d)(e,["as","disableShrink","enableScopedSelectors","wrap"]),c=function e(t,n){var o=n.disableShrink,r=n.enableScopedSelectors,i=d.Children.toArray(t);return i=d.Children.map(i,(function(t){if(!t||!d.isValidElement(t))return t;if(t.type===d.Fragment)return t.props.children?e(t.props.children,{disableShrink:o,enableScopedSelectors:r}):null;var n,i=t,a={};(n=t)&&"object"==typeof n&&n.type&&n.type.displayName===ck.displayName&&(a={shrink:!o});var s=i.props.className;return d.cloneElement(i,Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},a),i.props),s&&{className:s}),r&&{className:Me(lk.child,s)}))}))}(e.children,{disableShrink:r,enableScopedSelectors:a}),p=fe(l,U),f=JS(e,{root:n,inner:"div"});return XS(f.root,Object(u.a)({},p),s?XS(f.inner,null,c):c)}),{displayName:"Stack",styles:function(e,t,n){var o,r,i,a,s,l,c,d,f,h,m,g,v,b=e.className,y=e.disableShrink,C=e.enableScopedSelectors,_=e.grow,S=e.horizontal,k=e.horizontalAlign,x=e.reversed,w=e.verticalAlign,I=e.verticalFill,E=e.wrap,O=Object(p.R)(lk,t),T=n&&n.childrenGap?n.childrenGap:e.gap,D=n&&n.maxHeight?n.maxHeight:e.maxHeight,P=n&&n.maxWidth?n.maxWidth:e.maxWidth,R=n&&n.padding?n.padding:e.padding,M=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:ik(rk(n[0],t)),columnGap:ik(rk(n[1],t))};var o=ik(rk(e,t));return{rowGap:o,columnGap:o}}(T,t),N=M.rowGap,F=M.columnGap,B="".concat(-.5*F.value).concat(F.unit),L="".concat(-.5*N.value).concat(N.unit),A={textOverflow:"ellipsis"},j="> "+(C?"."+lk.child:"*"),H=((o={})["".concat(j,":not(.").concat(nk.root,")")]={flexShrink:0},o);return E?{root:[O.root,{flexWrap:"wrap",maxWidth:P,maxHeight:D,width:"auto",overflow:"visible",height:"100%"},k&&(r={},r[S?"justifyContent":"alignItems"]=sk[k]||k,r),w&&(i={},i[S?"alignItems":"justifyContent"]=sk[w]||w,i),b,{display:"flex"},S&&{height:I?"100%":"auto"}],inner:[O.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:B,marginRight:B,marginTop:L,marginBottom:L,overflow:"visible",boxSizing:"border-box",padding:ak(R,t),width:0===F.value?"100%":"calc(100% + ".concat(F.value).concat(F.unit,")"),maxWidth:"100vw"},a[j]=Object(u.a)({margin:"".concat(.5*N.value).concat(N.unit," ").concat(.5*F.value).concat(F.unit)},A),a),y&&H,k&&(s={},s[S?"justifyContent":"alignItems"]=sk[k]||k,s),w&&(l={},l[S?"alignItems":"justifyContent"]=sk[w]||w,l),S&&(c={flexDirection:x?"row-reverse":"row",height:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")")},c[j]={maxWidth:0===F.value?"100%":"calc(100% - ".concat(F.value).concat(F.unit,")")},c),!S&&(d={flexDirection:x?"column-reverse":"column",height:"calc(100% + ".concat(N.value).concat(N.unit,")")},d[j]={maxHeight:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},d)]}:{root:[O.root,(f={display:"flex",flexDirection:S?x?"row-reverse":"row":x?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:I?"100%":"auto",maxWidth:P,maxHeight:D,padding:ak(R,t),boxSizing:"border-box"},f[j]=A,f),y&&H,_&&{flexGrow:!0===_?1:_},k&&(h={},h[S?"justifyContent":"alignItems"]=sk[k]||k,h),w&&(m={},m[S?"alignItems":"justifyContent"]=sk[w]||w,m),S&&F.value>0&&(g={},g["".concat(j,x?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(F.value).concat(F.unit)},g),!S&&N.value>0&&(v={},v["".concat(j,x?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(N.value).concat(N.unit)},v),b]}},statics:{Item:ck}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(uk||(uk={}));var pk=function(e){function t(t){var n=e.call(this,t)||this;return n._root=d.createRef(),n._stickyContentTop=d.createRef(),n._stickyContentBottom=d.createRef(),n._nonStickyContent=d.createRef(),n._placeHolder=d.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){if(n.root&&n.nonStickyContent){var o=n._getNonStickyDistanceFromTop(e),r=!1,i=!1;if(n.canStickyTop)r=o-n._getStickyDistanceFromTop()<e.scrollTop;n.canStickyBottom&&e.clientHeight-t.offsetHeight<=o&&(i=o-Math.floor(e.scrollTop)>=n._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&n.nonStickyContent.contains(document.activeElement)&&(n.state.isStickyTop!==r||n.state.isStickyBottom!==i)?n._activeElement=document.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&r,isStickyBottom:i,distanceFromTop:o})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var o=0;return n.stickyContentBottom&&(o=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),o},n._getNonStickyDistanceFromTop=function(e){var t=0,o=n.root;if(o){for(;o&&o.offsetParent!==e;)t+=o.offsetTop,o=o.offsetParent;o&&o.offsetParent===e&&(t+=o.offsetTop)}return t},Ct(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n}return Object(u.c)(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===uk.Both||this.props.stickyPosition===uk.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===uk.Both||this.props.stickyPosition===uk.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var o=this.state,r=o.isStickyBottom,i=o.isStickyTop,a=o.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===r||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,o=n.isStickyTop,r=n.isStickyBottom,i=n.distanceFromTop;return o!==t.isStickyTop||r!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||fk(this._nonStickyContent,this._stickyContentTop)||fk(this._nonStickyContent,this._stickyContentBottom)||fk(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,o=this.props,r=o.stickyClassName,i=o.children;return this.context.scrollablePane?d.createElement("div",{ref:this._root},this.canStickyTop&&d.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},d.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&d.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},d.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),d.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&d.createElement("span",{style:p.ab},i),d.createElement("div",{ref:this._nonStickyContent,className:t||n?r:void 0,style:this._getContentStyles(t||n)},i))):d.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var o=0,r=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(o=this.nonStickyContent.offsetHeight,r=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:o,width:r}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:uk.Both,isScrollSynced:!0},t.contextType=k_,t}(d.Component);function fk(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var hk=n(102),mk=L(),gk=Object(f.c)((function(e,t,n,o,r,i,a,s,l){var c=ol(e);return Object(p.db)({root:["ms-Button",c.root,n,t,a&&["is-checked",c.rootChecked],i&&["is-disabled",c.rootDisabled],!i&&!a&&{selectors:{":hover":c.rootHovered,":focus":c.rootFocused,":active":c.rootPressed}},i&&a&&[c.rootCheckedDisabled],!i&&a&&{selectors:{":hover":c.rootCheckedHovered,":active":c.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",c.flexContainer]})})),vk=function(e){var t,n,o=e.item,r=e.idPrefix,i=void 0===r?e.id:r,a=e.isRadio,s=e.selected,l=void 0!==s&&s,c=e.disabled,p=void 0!==c&&c,f=e.styles,h=e.circle,m=void 0===h||h,g=e.color,v=e.onClick,b=e.onHover,y=e.onFocus,C=e.onMouseEnter,_=e.onMouseMove,S=e.onMouseLeave,k=e.onWheel,x=e.onKeyDown,w=e.height,I=e.width,E=e.borderWidth,O=mk(f,{theme:e.theme,disabled:p,selected:l,circle:m,isWhite:(t=g,n=Ad(t),"ffffff"===(null==n?void 0:n.hex)),height:w,width:I,borderWidth:E}),T=function(e){var t,n=O.svg;return d.createElement("svg",{className:n,role:"img","aria-label":e.label,viewBox:"0 0 20 20",fill:null===(t=Ad(e.color))||void 0===t?void 0:t.str},m?d.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):d.createElement("rect",{width:"100%",height:"100%"}))},D=a?{role:"radio","aria-checked":l,selected:void 0}:{role:"gridcell",selected:l};return d.createElement(wl,Object(u.a)({item:o,id:"".concat(i,"-").concat(o.id,"-").concat(o.index),key:o.id,disabled:p},D,{onRenderItem:function(t){var n=e.onRenderColorCellContent;return(void 0===n?T:n)(t,T)},onClick:v,onHover:b,onFocus:y,label:o.label,className:O.colorCell,getClassNames:gk,index:o.index,onMouseEnter:C,onMouseMove:_,onMouseLeave:S,onWheel:k,onKeyDown:x}))},bk={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},yk=k(vk,(function(e){var t,n,o,r,i,a=e.theme,s=e.disabled,l=e.selected,c=e.circle,u=e.isWhite,d=e.height,f=void 0===d?20:d,h=e.width,m=void 0===h?20:h,g=e.borderWidth,v=a.semanticColors,b=a.palette,y=b.neutralLighter,C=b.neutralLight,_=b.neutralSecondary,S=b.neutralTertiary,k=g||(m<24?2:4);return{colorCell:[Object(p.Q)(a,{inset:-1,position:"relative",highContrastStyle:bk}),{backgroundColor:v.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:f,width:m,verticalAlign:"top"},!c&&{selectors:(t={},t[".".concat(Gn.a," &:focus::after")]={outlineOffset:"".concat(k-1,"px")},t)},c&&{borderRadius:"50%",selectors:(n={},n[".".concat(Gn.a," &:focus::after")]={outline:"none",borderColor:v.focusBorder,borderRadius:"50%",left:-k,right:-k,top:-k,bottom:-k,selectors:(o={},o[p.m]={outline:"1px solid ButtonText"},o)},n)},l&&{padding:2,border:"".concat(k,"px solid ").concat(C),selectors:(r={},r["&:hover::before"]={content:'""',height:f,width:m,position:"absolute",top:-k,left:-k,borderRadius:c?"50%":"default",boxShadow:"inset 0 0 0 1px ".concat(_)},r)},!l&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:v.bodyBackground,padding:2,border:"".concat(k,"px solid ").concat(y)},i["&:focus"]={borderColor:v.bodyBackground,padding:0,selectors:{":hover":{borderColor:a.palette.neutralLight,padding:2}}},i)},s&&{color:v.disabledBodyText,pointerEvents:"none",opacity:.3},u&&!l&&{backgroundColor:S,padding:1}],svg:[{width:"100%",height:"100%"},c&&{borderRadius:"50%"}]}}),void 0,{scope:"ColorPickerGridCell"},!0),Ck=L();var _k=d.forwardRef((function(e,t){var n=wa("swatchColorPicker"),o=e.id||n,r=jr({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),i=Hu(),a=i.setTimeout,s=i.clearTimeout,l=e.colorCells,c=e.cellShape,p=void 0===c?"circle":c,f=e.columnCount,h=e.shouldFocusCircularNavigate,m=void 0===h||h,g=e.className,v=e.disabled,b=void 0!==v&&v,y=e.doNotContainWithinFocusZone,C=e.styles,_=e.cellMargin,S=void 0===_?10:_,k=e.defaultSelectedId,x=e.focusOnHover,w=e.mouseLeaveParentSelector,I=e.onChange,O=e.onColorChanged,T=e.onCellHovered,D=e.onCellFocused,P=e.getColorGridCellStyles,R=e.cellHeight,M=e.cellWidth,N=e.cellBorderWidth,F=e.onRenderColorCellContent,B=d.useMemo((function(){return l.map((function(e,t){return Object(u.a)(Object(u.a)({},e),{index:t})}))}),[l]),L=d.useCallback((function(e,t){var n,o=null===(n=l.filter((function(e){return e.id===t}))[0])||void 0===n?void 0:n.color;null==I||I(e,t,o),null==O||O(t,o)}),[I,O,l]),A=Uc(e.selectedId,k,L),j=A[0],H=A[1],z=Ck(C,{theme:e.theme,className:g,cellMargin:S}),W={root:z.root,tableCell:z.tableCell,focusedContainer:z.focusedContainer},V=l.length<=f,U=d.useCallback((function(e){D&&(r.cellFocused=!1,D(void 0,void 0,e))}),[r,D]),K=d.useCallback((function(e){return x?(r.isNavigationIdle&&!b&&e.currentTarget.focus(),!0):!r.isNavigationIdle||!!b}),[x,r,b]),G=d.useCallback((function(e){if(!x)return!r.isNavigationIdle||!!b;var t=e.currentTarget;return!r.isNavigationIdle||document&&t===document.activeElement||t.focus(),!0}),[x,r,b]),q=d.useCallback((function(e){var t=w;if(x&&t&&r.isNavigationIdle&&!b)for(var n=document.querySelectorAll(t),o=0;o<n.length;o+=1)if(n[o].contains(e.currentTarget)){if(n[o].setActive)try{n[o].setActive()}catch(e){}else n[o].focus();break}}),[b,x,r,w]),Y=d.useCallback((function(e,t){T&&(e?T(e.id,e.color,t):T(void 0,void 0,t))}),[T]),Q=d.useCallback((function(e,t){if(D)return e?(r.cellFocused=!0,D(e.id,e.color,t)):(r.cellFocused=!1,D(void 0,void 0,t))}),[r,D]),X=d.useCallback((function(e,t){b||e.disabled||e.id!==j&&(D&&r.cellFocused&&(r.cellFocused=!1,D(void 0,void 0,t)),H(e.id,t))}),[b,r,D,j,H]),Z=d.useCallback((function(){r.isNavigationIdle||void 0===r.navigationIdleTimeoutId?r.isNavigationIdle=!1:(s(r.navigationIdleTimeoutId),r.navigationIdleTimeoutId=void 0),r.navigationIdleTimeoutId=a((function(){r.isNavigationIdle=!0}),r.navigationIdleDelay)}),[s,r,a]),$=d.useCallback((function(e){e.which!==E.up&&e.which!==E.down&&e.which!==E.left&&e.which!==E.right||Z()}),[Z]),J=function(e){return d.createElement(yk,{item:e,idPrefix:o,color:e.color,styles:P,disabled:b||e.disabled,onClick:X,onHover:Y,onFocus:Q,selected:j===e.id,circle:"circle"===p,label:e.label,onMouseEnter:K,onMouseMove:G,onMouseLeave:q,onWheel:Z,onKeyDown:$,onRenderColorCellContent:F,height:R,width:M,borderWidth:N,isRadio:V})};if(l.length<1||f<1)return null;return d.createElement(yl,Object(u.a)({},e,{ref:t,id:o,items:B,columnCount:f,isSemanticRadio:V,onRenderItem:function(t,n){var o=e.onRenderColorCell;return(void 0===o?J:o)(t,J)},shouldFocusCircularNavigate:m,doNotContainWithinFocusZone:y,onBlur:U,theme:e.theme,styles:W}))}));_k.displayName="SwatchColorPicker";var Sk={focusedContainer:"ms-swatchColorPickerBodyContainer"},kk=k(_k,(function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[Object(p.R)(Sk,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}}),void 0,{scope:"SwatchColorPicker"}),xk=L(),wk=d.forwardRef((function(e,t){var n,o,r,i,a,s,l,c=d.useRef(null),p=Nr(),f=Ie(c,t),h=wa("teaching-bubble-content-"),m=wa("teaching-bubble-title-"),g=null!==(n=e.ariaDescribedBy)&&void 0!==n?n:h,v=null!==(o=e.ariaLabelledBy)&&void 0!==o?o:m,b=e.illustrationImage,y=e.primaryButtonProps,C=e.secondaryButtonProps,_=e.headline,S=e.hasCondensedHeadline,k=e.hasCloseButton,x=void 0===k?e.hasCloseIcon:k,w=e.onDismiss,I=e.closeButtonAriaLabel,O=e.hasSmallHeadline,T=e.isWide,D=e.styles,P=e.theme,R=e.footerContent,M=e.focusTrapZoneProps,N=xk(D,{theme:P,hasCondensedHeadline:S,hasSmallHeadline:O,hasCloseButton:x,hasHeadline:!!_,isWide:T,primaryButtonClassName:y?y.className:void 0,secondaryButtonClassName:C?C.className:void 0});if(Pr(p,"keydown",d.useCallback((function(e){w&&e.which===E.escape&&w(e)}),[w])),b&&b.src&&(r=d.createElement("div",{className:N.imageContent},d.createElement(Pe,Object(u.a)({},b)))),_){var F="string"==typeof _?"p":"div";i=d.createElement("div",{className:N.header},d.createElement(F,{role:"heading","aria-level":3,className:N.headline,id:v},_))}if(e.children){var B="string"==typeof e.children?"p":"div";a=d.createElement("div",{className:N.body},d.createElement(B,{className:N.subText,id:g},e.children))}return(y||C||R)&&(s=d.createElement(dk,{className:N.footer,horizontal:!0,horizontalAlign:R?"space-between":"end"},d.createElement(dk.Item,{align:"center"},d.createElement("span",null,R)),d.createElement(dk.Item,null,y&&d.createElement(dl,Object(u.a)({},y,{className:N.primaryButton})),C&&d.createElement(ll,Object(u.a)({},C,{className:N.secondaryButton}))))),x&&(l=d.createElement(Ss,{className:N.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:I,onClick:w})),function(e,t){d.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,c),d.createElement("div",{className:N.content,ref:f,role:"dialog",tabIndex:-1,"aria-labelledby":v,"aria-describedby":g,"data-is-focusable":!0},r,d.createElement(eu,Object(u.a)({isClickableOutsideFocusTrap:!0},M),d.createElement("div",{className:N.bodyContent},i,a,s,l)))})),Ik={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},Ek=Object(f.c)((function(){return Object(p.bb)({"0%":{opacity:0,animationTimingFunction:p.c.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),Ok=function(e,t){var n=t||{},o=n.calloutWidth,r=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:o||"calc(100% + 1px)",animationName:"".concat(Ek()),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:r||456}]},Tk=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Dk=function(e){var t,n,o,r=e.hasCondensedHeadline,i=e.hasSmallHeadline,a=e.hasCloseButton,s=e.hasHeadline,l=e.isWide,c=e.primaryButtonClassName,d=e.secondaryButtonClassName,f=e.theme,h=e.calloutProps,m=void 0===h?{className:void 0,theme:f}:h,g=!r&&!i,v=f.palette,b=f.semanticColors,y=f.fonts,C=Object(p.R)(Ik,f),_=Object(p.Q)(f,{outlineColor:"transparent",borderColor:"transparent"});return{root:[C.root,y.medium,m.className],body:[C.body,a&&!s&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[C.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[C.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:v.white,fontSize:y.small.fontSize,selectors:{":hover":{background:v.themeDarkAlt,color:v.white},":active":{background:v.themeDark,color:v.white},":focus":{border:"1px solid ".concat(b.variantBorder)}}}],content:Object(u.e)(Object(u.e)([C.content],Ok(l),!0),[l&&{display:"flex"}],!1),footer:[C.footer,{display:"flex",flex:"auto",alignItems:"center",color:v.white,selectors:(t={},t[".".concat(C.button,":not(:first-child)")]={marginLeft:10},t)}],header:Object(u.e)(Object(u.e)([C.header],Tk(C,r,i),!0),[a&&{marginRight:24},(r||i)&&[y.medium,{fontWeight:p.l.semibold}]],!1),headline:[C.headline,{margin:0,color:v.white,fontWeight:p.l.semibold,overflowWrap:"break-word"},g&&[{fontSize:y.xLarge.fontSize}]],imageContent:[C.header,C.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[C.primaryButton,c,_,{backgroundColor:v.white,borderColor:v.white,color:v.themePrimary,whiteSpace:"nowrap",selectors:(n={},n[".".concat(C.buttonLabel)]=y.medium,n[":hover"]={backgroundColor:v.themeLighter,borderColor:v.themeLighter,color:v.themeDark},n[":focus"]={backgroundColor:v.themeLighter,border:"1px solid ".concat(v.black),color:v.themeDark,outline:"1px solid ".concat(v.white),outlineOffset:"-2px"},n[":active"]={backgroundColor:v.white,borderColor:v.white,color:v.themePrimary},n)}],secondaryButton:[C.secondaryButton,d,_,{backgroundColor:v.themePrimary,borderColor:v.white,whiteSpace:"nowrap",selectors:(o={},o[".".concat(C.buttonLabel)]=[y.medium,{color:v.white}],o[":hover"]={backgroundColor:v.themeDarkAlt,borderColor:v.white},o[":focus"]={backgroundColor:v.themeDark,border:"1px solid ".concat(v.black),outline:"1px solid ".concat(v.white),outlineOffset:"-2px"},o[":active"]={backgroundColor:v.themePrimary,borderColor:v.white},o)}],subText:[C.subText,{margin:0,fontSize:y.medium.fontSize,color:v.white,fontWeight:p.l.regular}],subComponentStyles:{callout:{root:Object(u.e)(Object(u.e)([],Ok(l,m),!0),[y.medium],!1),beak:[{background:v.themePrimary}],calloutMain:[{background:v.themePrimary}]}}}},Pk=k(wk,Dk,void 0,{scope:"TeachingBubbleContent"}),Rk={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Eo.rightCenter},Mk=L(),Nk=d.forwardRef((function(e,t){var n=d.useRef(null),o=Ie(n,t),r=e.calloutProps,i=e.targetElement,a=e.onDismiss,s=e.hasCloseButton,l=void 0===s?e.hasCloseIcon:s,c=e.isWide,p=e.styles,f=e.theme,h=e.target,m=d.useMemo((function(){return Object(u.a)(Object(u.a)(Object(u.a)({},Rk),r),{theme:f})}),[r,f]),g=Mk(p,{theme:f,isWide:c,calloutProps:m,hasCloseButton:l}),v=g.subComponentStyles?g.subComponentStyles.callout:void 0;return function(e,t){d.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,n),d.createElement(Li,Object(u.a)({target:h||i,onDismiss:a},m,{className:g.root,styles:v,hideOverflow:!0}),d.createElement("div",{ref:o},d.createElement(Pk,Object(u.a)({},e))))}));Nk.displayName="TeachingBubble";var Fk=k(Nk,Dk,void 0,{scope:"TeachingBubble"}),Bk=function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,o=(e.variant,e.nowrap,Object(u.d)(e,["block","className","as","variant","nowrap"]));return XS(JS(e,{root:n}).root,Object(u.a)({},fe(o,U)))},Lk=function(e,t){var n=e.as,o=e.className,r=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:r?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},o]}},Ak=tk(Bk,{displayName:"Text",styles:Lk}),jk={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function Hk(e,t){if(void 0===t&&(t=jk),!e)return[];for(var n=[],o=0,r=0;r+o<e.length;r++){var i=e.charAt(r+o);if("\\"===i)o++;else{var a=t[i];a&&n.push({displayIndex:r,format:a})}}return n}function zk(e,t,n){var o=e;if(!o)return"";o=o.replace(/\\/g,"");var r=0;t.length>0&&(r=t[0].displayIndex-1);for(var i=0,a=t;i<a.length;i++){var s=a[i],l=" ";s.value?(l=s.value,s.displayIndex>r&&(r=s.displayIndex)):n&&(l=n),o=o.slice(0,s.displayIndex)+l+o.slice(s.displayIndex+1)}return n||(o=o.slice(0,r+1)),o}function Wk(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function Vk(e,t,n){for(var o=0;o<e.length;o++)if(e[o].displayIndex>=t){if(e[o].displayIndex>=t+n)break;e[o].value=void 0}return e}function Uk(e,t,n){for(var o=0,r=0,i=!1,a=0;a<e.length&&o<n.length;a++)if(e[a].displayIndex>=t)for(i=!0,r=e[a].displayIndex;o<n.length;){if(e[a].format.test(n.charAt(o))){e[a].value=n.charAt(o++),a+1<e.length?r=e[a+1].displayIndex:r++;break}o++}return i?r:t}var Kk,Gk,qk,Yk="_",Qk=d.forwardRef((function(e,t){var n=d.useRef(null),o=e.componentRef,r=e.onFocus,i=e.onBlur,a=e.onMouseDown,s=e.onMouseUp,l=e.onChange,c=e.onPaste,p=e.onKeyDown,f=e.mask,h=e.maskChar,m=void 0===h?Yk:h,g=e.maskFormat,v=void 0===g?jk:g,b=e.value,y=jr((function(){return{maskCharData:Hk(f,v),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}})),C=d.useState(),_=C[0],S=C[1],k=d.useState((function(){return zk(f,y.maskCharData,m)})),x=k[0],w=k[1],I=d.useCallback((function(e){for(var t=0,n=0;t<e.length&&n<y.maskCharData.length;){var o=e[t];y.maskCharData[n].format.test(o)&&(y.maskCharData[n].value=o,n++),t++}}),[y]),O=d.useCallback((function(e){null==r||r(e),y.isFocused=!0;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){S(y.maskCharData[t].displayIndex);break}}),[y,r]),T=d.useCallback((function(e){null==i||i(e),y.isFocused=!1,y.moveCursorOnMouseUp=!0}),[y,i]),D=d.useCallback((function(e){null==a||a(e),y.isFocused||(y.moveCursorOnMouseUp=!0)}),[y,a]),P=d.useCallback((function(e){if(null==s||s(e),y.moveCursorOnMouseUp){y.moveCursorOnMouseUp=!1;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){S(y.maskCharData[t].displayIndex);break}}}),[y,s]),R=d.useCallback((function(e,t){if(null===y.changeSelectionData&&n.current&&(y.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),y.changeSelectionData){var o=0,r=y.changeSelectionData,i=r.changeType,a=r.selectionStart,s=r.selectionEnd;if("textPasted"===i){var c=s-a,u=t.length+c-x.length,d=a,p=t.substr(d,u);c&&(y.maskCharData=Vk(y.maskCharData,a,c)),o=Uk(y.maskCharData,d,p)}else if("delete"===i||"backspace"===i){var h="delete"===i;(u=s-a)?(y.maskCharData=Vk(y.maskCharData,a,u),o=Wk(y.maskCharData,a)):h?(y.maskCharData=function(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}(y.maskCharData,a),o=Wk(y.maskCharData,a)):(y.maskCharData=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}(y.maskCharData,a),o=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}(y.maskCharData,a))}else if(t.length>x.length){d=s-(u=t.length-x.length);var g=t.substr(d,u);o=Uk(y.maskCharData,d,g)}else if(t.length<=x.length){u=1;var v=x.length+u-t.length;d=s-u,g=t.substr(d,u);y.maskCharData=Vk(y.maskCharData,d,v),o=Uk(y.maskCharData,d,g)}y.changeSelectionData=null;var b=zk(f,y.maskCharData,m);w(b),S(o),null==l||l(e,b)}}),[x.length,y,f,m,l]),M=d.useCallback((function(e){if(null==p||p(e),y.changeSelectionData=null,n.current&&n.current.value){var t=e.keyCode,o=e.ctrlKey,r=e.metaKey;if(o||r)return;if(t===E.backspace||t===E.del){var i=e.target.selectionStart,a=e.target.se