@progress/kendo-react-dialogs 5.10.0-dev.202301031638 → 5.10.0-dev.202301051045
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","react-dom","prop-types","@progress/kendo-licensing","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactDialogs=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl")):e.KendoReactDialogs=t(e.React,e.ReactDOM,e.PropTypes,e.KendoLicensing,e.KendoReactIntl)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={580:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0;var a=n(899),s=n(994),l=n(189),c=n(348),u=n(379),p=n(556),d=n(556),f=n(363),h=n(147),m=n(56),g=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n._id=(0,p.guid)(),n.titleId=n.generateTitleId(),n.contentId=n.generateContentId(),n.onCloseDialog=function(e){e.preventDefault(),(0,p.dispatchEvent)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===p.Keys.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===p.Keys.tab){var o=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=o[0],i=o[o.length-1],a=n.getDocument();e.shiftKey?(a&&a.activeElement===r||a&&a.activeElement===n.element)&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(r.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+m.ZINDEX_DIALOGS_STEP:0)?n.state.zIndex:n.context+m.ZINDEX_DIALOGS_STEP:n.context?n.context:m.DEFAULT_DIALOGS_ZINDEX},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},(0,d.validatePackage)(f.packageMetadata),n.state={zIndex:(0,h.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return r(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,o=this.props,r=o.title,l=o.width,u=o.height,d=o.children,f=o.minWidth,h=o.dir,g=o.style,v=o.contentStyle,y=a.Children.toArray(d),b=this.getContent(y),w=this.getActionBar(y),C=r?{"aria-labelledby":n}:null,k=void 0===this.props.closeIcon||this.props.closeIcon,O=this.getCurrentZIndex(),E=a.createElement(p.ZIndexContext.Provider,{value:O},a.createElement("div",i({},((e={})[m.DATA_DIALOGS_ID]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:h,style:i({zIndex:O},g),ref:function(e){return t.element=e}}),a.createElement("div",{className:"k-overlay"}),a.createElement("div",i({},C,{className:"k-widget k-window k-dialog",role:"dialog","aria-modal":!0,"aria-describedby":this.contentId,style:{width:l,height:u,minWidth:f}}),this.props.title&&a.createElement(c.DialogTitleBar,{closeIcon:k,onCloseButtonClick:this.onCloseDialog,id:n},r),a.createElement("div",{className:"k-window-content k-dialog-content",style:v,id:this.contentId},b),w)));return p.canUseDOM?null!==this.props.appendTo?s.createPortal(E,this.props.appendTo||document.body):E:null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===u.DialogActionsBar}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==u.DialogActionsBar}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.prototype.generateContentId=function(){return"dialog-content"+this._id},t.displayName="Dialog",t.propTypes={title:l.any,id:l.string,dir:l.string,style:l.object,closeIcon:l.bool,width:l.oneOfType([l.number,l.string]),height:l.oneOfType([l.number,l.string]),minWidth:l.oneOfType([l.number,l.string]),autoFocus:l.bool},t.defaultProps={autoFocus:!1},t.contextType=p.ZIndexContext,t}(a.Component);t.DialogPropsContext=(0,p.createPropsContext)(),t.Dialog=(0,p.withPropsContext)(t.DialogPropsContext,g),t.Dialog.displayName="KendoReactDialog"},379:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var o=n(899),r=n(189),i=n(556);t.DialogActionsBar=function(e){var t,n=e.layout,r=void 0===n?a.layout:n,s=e.children,l=(0,i.classNames)("k-dialog-buttongroup","k-actions",((t={})["k-actions-".concat(r)]=r,t));return o.createElement("div",{className:l},s)},t.DialogActionsBar.propTypes={children:r.any,layout:r.oneOf(["start","center","end","stretched"])};var a={layout:"stretched"}},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var o=n(899),r=n(389);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,i=e.id,a=e.closeIcon;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:i},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},a&&o.createElement(r.Button,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action"})))}},522:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(n(899).Component);t.MiddleLayerOptimization=i},880:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(n=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",n.FULLSCREEN="FULLSCREEN",n.MINIMIZED="MINIMIZED"},891:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0;var a=n(899),s=n(994),l=n(189),c=n(583),u=n(556),p=n(556),d=n(151),f=n(522),h=n(880),m=n(556),g=n(363),v=n(617),y=n(56),b=n(147),w=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.draggable=null,n.offSetCoordinates={x:0,y:0},n._id=(0,u.guid)(),n.titleId=n.generateTitleId(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,o=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case u.Keys.up:e.preventDefault(),o<=n.height-5&&n.setState({height:n.height-5});break;case u.Keys.down:e.preventDefault(),n.setState({height:n.height+5});break;case u.Keys.left:t<=n.width-5&&n.setState({width:n.width-5});break;case u.Keys.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case u.Keys.up:n.windowStage===h.windowStage.MINIMIZED?(n.handleRestore(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})):n.windowStage===h.windowStage.DEFAULT&&(n.handleFullscreen(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.FULLSCREEN}));break;case u.Keys.down:n.windowStage===h.windowStage.FULLSCREEN?(n.handleRestore(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})):n.windowStage===h.windowStage.DEFAULT&&(n.handleMinimize(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case u.Keys.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case u.Keys.up:n.setState({top:n.state.top-5});break;case u.Keys.down:n.setState({top:n.state.top+5});break;case u.Keys.left:n.setState({left:n.state.left-5});break;case u.Keys.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==h.windowStage.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==h.windowStage.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:(0,b.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:h.windowStage.MINIMIZED,height:0}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),o=t?t.innerWidth:0,r=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:o,height:n.props.appendTo?n.props.appendTo.offsetHeight:r,stage:h.windowStage.FULLSCREEN}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===h.windowStage.FULLSCREEN?n.setState({stage:h.windowStage.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===h.windowStage.MINIMIZED&&n.setState({stage:h.windowStage.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),(0,u.dispatchEvent)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===h.windowStage.FULLSCREEN||n.windowStage===h.windowStage.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var o=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,r=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,s=n.props.minWidth||120,l=n.props.minHeight||100,c=n.top-r,u=n.left-o,p=o-n.left,d=r-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&l-(a+c)<0&&(n.top>0&&(f.height=a+c),f.top=r),t.direction.indexOf("s")>=0&&l-d<0&&(f.height=d),t.direction.indexOf("w")>=0&&s-(i+u)<0&&(n.left>0&&(f.width=i+u),f.left=o),t.direction.indexOf("e")>=0&&s-p<0&&(f.width=p),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,o,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:o,end:r,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===h.windowStage.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,o=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:o})}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+y.ZINDEX_DIALOGS_STEP:0)?n.state.zIndex:n.context+y.ZINDEX_DIALOGS_STEP:n.context?n.context:y.DEFAULT_DIALOGS_ZINDEX},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},(0,m.validatePackage)(g.packageMetadata),n.state={stage:n.props.stage||h.windowStage.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:(0,b.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),o=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-o.left,this.offSetCoordinates.y=n.top-o.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=a.Children.toArray(this.props.children),o=this.getContent(n),r=this.getActionBar(n),l=this.getCurrentZIndex(),m=(0,u.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),g=a.createElement(u.ZIndexContext.Provider,{value:l},a.createElement(a.Fragment,null,this.props.modal&&a.createElement("div",{className:"k-overlay",style:i({zIndex:l},this.props.overlayStyle)}),a.createElement("div",i({},((e={})[y.DATA_DIALOGS_ID]=this._id,e),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:m,style:i({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),a.createElement(f.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},a.createElement(p.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},a.createElement(c.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==h.windowStage.MINIMIZED?a.createElement(a.Fragment,null,a.createElement("div",{className:"k-window-content"},o),r):null,this.windowStage===h.windowStage.DEFAULT&&this.props.resizable?a.createElement(d.ResizeHandlers,{onResize:this.handleResize}):null))));return u.canUseDOM?null!==this.props.appendTo?s.createPortal(g,this.props.appendTo||document.body):g:null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==h.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==h.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===h.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===h.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===h.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===v.WindowActionsBar}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==v.WindowActionsBar}))},t.prototype.generateTitleId=function(){return"window-title-"+this._id},t.displayName="Window",t.propTypes={width:l.number,height:l.number,left:l.number,top:l.number,initialWidth:l.number,initialHeight:l.number,initialLeft:l.number,initialTop:l.number,minWidth:l.number,minHeight:l.number,resizable:l.bool,draggable:l.bool,title:l.any,shouldUpdateOnDrag:l.bool,stage:l.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:l.string,style:l.object,overlayStyle:l.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=u.ZIndexContext,t}(a.Component);t.WindowPropsContext=(0,p.createPropsContext)(),t.Window=(0,p.withPropsContext)(t.WindowPropsContext,w),t.Window.displayName="KendoReactWindow"},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var o=n(899),r=n(189),i=n(556);t.WindowActionsBar=function(e){var t=e.layout,n=void 0===t?a.layout:t,r=e.children,s=(0,i.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return o.createElement("div",{className:s},r)},t.WindowActionsBar.propTypes={children:r.any,layout:r.oneOf(["start","center","end","stretched"])};var a={layout:"end"}},151:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0;var i=n(899),a=n(556),s=["n","e","s","w","se","sw","ne","nw"],l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",null," ",s.map((function(t,n){return i.createElement(a.Draggable,{key:n,onDrag:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!1,direction:t})},onRelease:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!0,direction:t})}},i.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(i.Component);t.ResizeHandlers=l},583:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0;var r=n(899),i=n(880),a=n(389),s=n(499),l=n(364),c=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,c=e.onFullScreenButtonClick,u=e.onRestoreButtonClick,p=e.onDoubleClick,d=e.stage,f=e.forwardedRef,h=e.id,m=(0,s.useLocalization)(),g=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-minimize",className:"k-window-action",onClick:o,"aria-label":m.toLanguageString(l.dialogsWindowMinimizeButton,l.messages[l.dialogsWindowMinimizeButton])}),v=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:c,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-maximize",className:"k-window-action",onClick:c,"aria-label":m.toLanguageString(l.dialogsWindowMaximizeButton,l.messages[l.dialogsWindowMaximizeButton])}),y=e.restoreButton?r.createElement(e.restoreButton,{onClick:u,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-restore",className:"k-window-action",onClick:u,"aria-label":m.toLanguageString(l.dialogsWindowRestoreButton,l.messages[l.dialogsWindowRestoreButton])}),b=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"close",className:"k-window-action",onClick:n,"aria-label":m.toLanguageString(l.dialogsWindowCloseButton,l.messages[l.dialogsWindowCloseButton])});return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:f,onDoubleClick:p},r.createElement("div",{className:"k-window-title",id:h},t||""),r.createElement("div",{className:"k-window-actions"},d===i.windowStage.DEFAULT&&g,d===i.windowStage.DEFAULT&&v,d!==i.windowStage.DEFAULT&&y,b))};t.WindowTitleBar=r.forwardRef((function(e,t){return r.createElement(c,o({},e,{forwardedRef:t}))}))},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.dialogsWindowCloseButton=t.dialogsWindowRestoreButton=t.dialogsWindowMinimizeButton=t.dialogsWindowMaximizeButton=void 0,t.dialogsWindowMaximizeButton="dialogs.windowMaximizeButton",t.dialogsWindowMinimizeButton="dialogs.windowMinimizeButton",t.dialogsWindowRestoreButton="dialogs.windowRestoreButton",t.dialogsWindowCloseButton="dialogs.windowCloseButton",t.messages=((n={})[t.dialogsWindowMaximizeButton]="maximize",n[t.dialogsWindowMinimizeButton]="minimize",n[t.dialogsWindowRestoreButton]="restore",n[t.dialogsWindowCloseButton]="close",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672762145,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var o=n(56);t.getMaxZIndex=function(e,t,n){var r=e;if(t&&t.defaultView){var i=t.querySelectorAll(o.DIALOGS_SELECTOR),a=!1;return i.forEach((function(e){var i=t.defaultView.getComputedStyle(e,null);if(e.getAttribute(o.DATA_DIALOGS_ID)!==n&&null!==i.zIndex){var s=parseInt(i.zIndex,10);s>=r&&(r=s,a=!0)}})),a?r+o.ZINDEX_DIALOGS_STEP:r}return r}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>y,Chip:()=>at,ChipList:()=>nt,DropDownButton:()=>Ae,DropDownButtonItem:()=>Ne,FloatingActionButton:()=>mt,FloatingActionButtonItem:()=>ct,SplitButton:()=>_e,SplitButtonItem:()=>E,Toolbar:()=>je,ToolbarItem:()=>ze,ToolbarSeparator:()=>Fe,ToolbarSpacer:()=>Ue,toolbarButtons:()=>h});var o,r=n(899),i=n(189),a=n(47),s=n(697),l=n(6),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672761809,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},d=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},(0,l.s)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,n=this,o=this.props,i=o.children,l=o.togglable,c=o.icon,u=o.iconClass,d=o.imageUrl,f=o.imageAlt,h=(o.className,o.onClick,o.size),m=void 0===h?t.defaultProps.size:h,g=o.shape,v=void 0===g?t.defaultProps.shape:g,y=o.rounded,b=void 0===y?t.defaultProps.rounded:y,w=o.fillMode,C=void 0===w?t.defaultProps.fillMode:w,k=o.themeColor,O=void 0===k?t.defaultProps.themeColor:k,E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),x=void 0!==c||void 0!==u||void 0!==d,D=void 0!==i,I=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=(0,a.A)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",o)}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:f});return r.createElement("button",p({ref:function(e){return n._element=e},"aria-pressed":l?this.state.selected:void 0},E,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(s.G.sizeMap[m]||m)]=m,e["k-button-".concat(v)]=v,e["k-button-".concat(C)]=C,e["k-button-".concat(C,"-").concat(O)]=Boolean(C&&O),e["k-rounded-".concat(s.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!D&&x,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),I,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:null,rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",h=["button"+f,".k-button-group > button"+f,".k-dropdownlist",".k-colorpicker"];var m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},v={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return m(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=(0,a.A)([v["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[v["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",g({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,s=(0,a.A)(e.props.className,((i={})[v["group-start"]]=o?n:0===t,i[v["group-end"]]=o?0===t:n,i)),l=g(g({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=g(g(g(g({},e.props),s?{className:s}:{}),Object.keys(l).length?{style:l}:{}),void 0!==c?{disabled:c}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),b=n(198),w=n(493),C=n(407),k=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:(0,a.A)("k-item",e.className,{"k-focus":e.focused}),tabIndex:-1,onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:(0,a.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:(0,a.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};k.displayName="KendoReactButtonItem";var O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),x=function(e,t,n,o){if(n)return e;var r=Math.min(o-1,Math.max(0,e));switch(t){case w.R.enter:case w.R.space:case w.R.esc:return-1;case w.R.up:case w.R.left:return r-1<0?o-1:r-1;case w.R.down:case w.R.right:return r+1>=o?0:r+1;case w.R.home:return 0;case w.R.end:return o-1;default:return e}},D=n(994),I=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},S="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),_=n(827),P=n(259);const N="bottom",R="center",M="middle",A="left",T="right",L="top",j="fit",B="flip",z="none";var W,F,U,K=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},H=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&a!==R&&a!==M&&i!==R&&i!==M){var c=i===L||i===A;t<0&&c?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!c&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},X=(W=function(e){if(!Z())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},U=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return U||(F=W.apply(void 0,e),U=!0),F}),Z=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const Y={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:X,canUseDOM:Z};function G(e){return e.ownerDocument||e.document||e}const V=function(e){return G(e).defaultView},q=function(e){return G(e).documentElement};var $=0;function J(){if(!$&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),$=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return $}function Q(e){var t=V(e),n=q(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=J()),o}function ee(e){var t=q(e),n=V(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const te=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function ne(e){return e===(e.ownerDocument||{}).body?ee(e):{x:e.scrollLeft,y:e.scrollTop}}const oe=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||q(e)};function re(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ie(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var ae=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return Y.canUseDOM()?window:null},le=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},ue=function(e){if(!e||!Y.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},pe=function(){return Y.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},de={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,c=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===N&&(d+=t.height),s!==R&&s!==M||(d+=Math.round(t.height/2)),c===N&&(d-=o.height,p*=-1),c!==R&&c!==M||(d-=Math.round(o.height/2),p*=-1),a===T&&(f+=t.width),a!==R&&a!==M||(f+=Math.round(t.width/2)),l===T&&(f-=o.width,u*=-1),l!==R&&l!==M||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=Q(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ae.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?te(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=te(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?oe(t):null,r=function(e,t){var n=V(e),o=n.getComputedStyle(e),r=te(e),i=t||oe(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var c=n.getComputedStyle(i);(l=te(i)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,s=r.height,l=r.width,c=function(e,t){return e?ne(e):function(e){var t=oe(e);return t?ne(t):{x:0,y:0}}(t)}(o,e),u=c.x,p=c.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+u*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,c=o.left,u=o.height,p=o.width,d=a.height,f=a.width,h=s.horizontal||0,m=s.vertical||0,g=0,v=0,y=i.vertical===j,b=i.horizontal===j,w=i.vertical===B,C=i.horizontal===B;y&&(v+=K(l,u,d)),b&&(g+=K(c,p,f)),w&&(v+=H({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),C&&(g+=H({margin:h,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=w&&0!==v,O=C&&0!==g,E=y&&0!==v,x=b&&0!==g;return{flipped:O||k,fitted:E||x,flip:{horizontal:O,vertical:k},fit:{horizontal:x,vertical:E},offset:{left:g,top:v}}},scrollPosition:ee,scrollableParents:function(e){var t=[];if(!Y.canUseDOM())return t;for(var n=e.parentElement;n;)(le.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ue,stackingElementOffset:function(e){var t=ue(e);return t?te(t):null},stackingElementScroll:function(e){var t=ue(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ue(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ue(e))},windowViewPort:Q,zoomLevel:pe,isZoomed:function(){return pe()>1},zIndex:function(e,t){if(!e||!Y.canUseDOM())return null;var n=function(e,t){for(var n,o,r=re(e),i=t;i&&(n=ie(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(re(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const fe=de;const he=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"!==s&&fe.hasOffsetParent(n)?function(e,t,n,o){var r=Y.eitherRect(fe.position(e,t,o),n);return Y.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:fe.scrollPosition(t)}(e,t),i=Y.eitherRect(fe.offset(e),n),a=2*o,s=fe.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=fe.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),fe.removeScroll(fe.addScroll(Y.removeStackingOffset(Y.scaleRect(i,o),l),s),r)}(t,n,a,l),u=Y.scaleRect(fe.offset(n),l);return fe.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var me={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672761777,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ve=function(){return ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve.apply(this,arguments)};function ye(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var be,we={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(be||(be={}));var Ce="k-animation-container-shown",ke=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:be.hidden,previous:be.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:be.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,c=t.scale,u=t.positionMode,p=e.style,d=p.width,f=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var h=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=fe.offsetAtPoint(o,n),u=Y.scaleRect(c,l),p=Y.scaleRect(fe.offset(t),l),d=Y.eitherRect(p,n),f=e.viewPort||fe.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=fe.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),m=fe.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:he({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:u,scale:c}),margin:n.props.margin});if(e.style.top=h.offset.top+"px",e.style.left=h.offset.left+"px",e.style.width=d,e.style.height=f,n._collisions={fit:h.fit,fitted:h.fitted,flip:h.flip,flipped:h.flipped},n.props.onPosition){var m={target:n,flipped:h.flipped,fitted:h.fitted};n.props.onPosition.call(void 0,m)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(Ce),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),I(e),e.style.display="exit"===o?"none":"",r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){I(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};S?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(Ce),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===be.hiding&&n.state.previous===be.shown&&n.setState({current:be.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,l.s)(me),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=void 0,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=void 0),s=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return ge(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,p=e.offset,d=e.contentKey,f=ve(ve({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:c,style:u,offset:p,contentKey:d}});return e.show?t.current===be.hidden||t.current===be.hiding?ve(ve({},f),{current:be.showing,previous:t.current}):t.current===be.showing?ve(ve({},f),{current:be.shown,previous:t.current}):t.current!==be.shown||ye(p,t.props.offset)&&ye(r,t.props.anchorAlign)&&ye(i,t.props.appendTo)&&ye(a,t.props.collision)&&ye(s,t.props.popupAlign)&&ye(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ve(ve({},f),{current:be.reposition,previous:t.current}):t.current===be.hiding||t.current===be.hidden?ve(ve({},f),{current:be.hidden,previous:t.current}):ve(ve({},f),{current:be.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===be.showing&&this._popup?this.show(this._popup):this.state.current===be.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===be.reposition&&this.state.previous===be.shown?this.setState({current:be.shown,previous:this.state.current}):this.state.current===be.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===be.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,l=t.id,c=t.positionMode,u=this.props.appendTo?this.props.appendTo:_.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===be.reposition&&this.state.previous===be.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===be.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(P.$.Provider,{value:f},r.createElement("div",{className:(0,a.A)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:ve({zIndex:f},p)},r.createElement("div",{className:(0,a.A)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?D.createPortal(h,u):h}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=fe.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:be.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([j,B,z]),vertical:i.oneOf([j,B,z])}),anchorAlign:i.shape({horizontal:i.oneOf([A,R,T]),vertical:i.oneOf([L,R,N])}),popupAlign:i.shape({horizontal:i.oneOf([A,R,T]),vertical:i.oneOf([L,R,N])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:j,vertical:B},anchorAlign:{horizontal:A,vertical:N},popupAlign:{horizontal:A,vertical:L},offset:we,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=P.$,t.displayName="PopupComponent",t}(r.Component),Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oe.apply(this,arguments)},Ee=r.createContext((function(e){return e})),xe=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(ke,Oe({ref:t},n))}));function De(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Ie(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}xe.displayName="Popup";var Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.list=null,n.guid=(0,b.M)(),n.skipFocus=!1,n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==w.R.down?n.opened&&e.keyCode===w.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=void 0;if(e.keyCode===w.R.enter||e.keyCode===w.R.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(o={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,o.opened))):n.opened&&e.keyCode===w.R.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===w.R.up||e.keyCode===w.R.down||e.keyCode===w.R.left||e.keyCode===w.R.right;e.altKey||!i&&e.keyCode!==w.R.home&&e.keyCode!==w.R.end||e.preventDefault()}o&&n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.onFocus=function(e){n.skipFocus||((0,C.N)(n.props.onFocus,e,n,void 0),n.setState({focused:!0}))},n.onItemClick=function(e,t){var o=n.opened;o&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),o&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1,opened:!1}),(0,C.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){(0,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Se(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===E})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,l=o.style,c=o.tabIndex,u=o.disabled;return r.createElement("div",{id:i,style:l,className:(0,a.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(s.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:u||void 0,tabIndex:c,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":u,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),r.createElement(d,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",className:"k-split-button-arrow",disabled:u||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,C.N)(this.props.onButtonClick,e,this,void 0):(0,C.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(xe,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Ie(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(k,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pe(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(r.Component),Re=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(){return Me=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.list=null,n.skipFocus=!1,n.guid=(0,b.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==w.R.down?n.opened&&e.keyCode===w.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Me({},n.state);if(e.keyCode===w.R.enter||e.keyCode===w.R.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),o.focusedIndex=n.opened?-1:0,o.opened=!n.opened,n.dispatchPopupEvent(e,o.opened)):n.opened&&e.keyCode===w.R.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===w.R.up||e.keyCode===w.R.down||e.keyCode===w.R.left||e.keyCode===w.R.right;e.altKey||!i&&e.keyCode!==w.R.home&&e.keyCode!==w.R.end||e.preventDefault()}n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.handleFocus=function(e){n.skipFocus||(n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,C.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,C.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){(0,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Re(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,s=o.style,l=o.tabIndex,c=o.disabled;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Ne})).map((function(e){return e.props})),r.createElement("div",{id:i,style:s,className:(0,a.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,C.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(xe,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Ie(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,ref:this.listRef,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(k,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Le=function(){return Le=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Le.apply(this,arguments)},je=function(e){function t(n){var o=e.call(this,n)||this;return o._element=null,o.offsetHeight=0,o.offsetWidth=0,o.buttons=[],o.focusedSelector=o.selectors.map((function(e){return e+":focus"})).join(","),o.setTabIndex=function(e){var n=o.props.tabIndex,r=void 0===n?t.defaultProps.tabIndex:n;o.buttons.forEach((function(t,n){t.tabIndex=n===e?r:-1}))},o.onKeyDown=function(e){var t=e.target;if((e.keyCode===w.R.left||e.keyCode===w.R.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===w.R.left?o.focusButton(n,n-1):o.focusButton(n,n+1)}},o.onWindowResize=function(e){var t=o.element;if(t){var n=t.offsetWidth,r=t.offsetHeight;if(o.offsetWidth!==n||o.offsetHeight!==r){o.offsetWidth=n,o.offsetHeight=r;var i={offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight};o.props.onResize&&o.props.onResize.call(void 0,Le(Le({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Te(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-widget k-toolbar",this.props.className),style:this.props.style,role:void 0!==this.props.role?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var o=this.props.tabIndex,r=void 0===o?t.defaultProps.tabIndex:o,i=this.buttons[n];if(i){i.tabIndex=r,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,role:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Be(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("span",{id:this.props.id,className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(r.PureComponent),We=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){return r.createElement(ze,{className:"k-separator"})},t}(r.PureComponent),Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null);r.useImperativeHandle(o,(function(){return{element:n.current}})),r.useImperativeHandle(t,(function(){return{element:n.current}}));var i=r.useMemo((function(){return(0,a.A)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ue.displayName="KendoReactToolbarSpacer",Ue.propTypes={className:i.string};var Ke,He,Xe,Ze,Ye=n(199),Ge=n(659),Ve=n(322),qe=n(703),$e=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(Ke||(Ke={})),function(e){e.toggle="toggle",e.remove="remove"}(He||(He={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Xe||(Xe={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ze||(Ze={}));var Je=function(){return Je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Je.apply(this,arguments)},Qe=r.createContext([null,function(e){}]),et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ye.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,g=e.size,v=e.className,y=e.ariaDescribedBy,b=e.ariaLabelledBy,w=e.selection,C=void 0===w?rt.selection:w,k=e.value,O=void 0===k?rt.defaultValue:k,E=e.defaultData,x=void 0===E?rt.defaultData:E,D=e.valueField,I=void 0===D?rt.valueField:D,S=e.textField,_=void 0===S?rt.textField:S,P=e.onChange,N=e.onDataChange,R=r.useMemo((function(){return p||at}),[p,at]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var M=r.useCallback((function(e,t){P&&o.current&&P.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[P]),A=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case Ke.single:switch(t.type){case He.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case He.remove:return t.payload===e?null:e;default:return e}case Ke.multiple:switch(t.type){case He.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):$e($e([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case He.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):$e($e([],e,!0),[t.payload],!1):e;default:return e}case Ke.none:return null;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:C,state:O},M),T=A[0],L=A[1],j=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),B=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case Ze.add:break;case Ze.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Ze.reorder:break;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(e.data||x,{state:e.data,valueField:I},j),z=B[0],W=B[1],F=r.useCallback((function(e,t){return e.push(t[I]),e}),[I]),U=r.useMemo((function(){return e.data||z}),[e.data,z]),K=r.useMemo((function(){return O||T}),[O,T]),H=r.useMemo((function(){return U.reduce(F,[])}),[U,F]),X=r.useCallback((function(e){return(0,Ge.Y)(I)(e)}),[I]),Z=r.useCallback((function(e){return(0,Ge.Y)(_)(e)}),[_]),Y=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Xe.next:return n===t.items.length-1?e:t.items[n+1];case Xe.prev:return 0===n?e:t.items[n-1];case Xe.current:return t.payload;case Xe.reset:return null;default:return e}}(t.payload,Je(Je({},t),e));o(n)}]}({items:H}),G=Y[0],V=Y[1],q=(0,Ve.i)(e,o);return r.createElement(Qe.Provider,{value:[K,L]},r.createElement(et.Provider,{value:[G,V]},r.createElement(tt.Provider,{value:[U,W]},r.createElement("div",Je({ref:i},q,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,qe.p)(h,m,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":m},n["k-chip-list-".concat(s.G.sizeMap[g]||g)]=g,n),v),"aria-labelledby":b,"aria-describedby":y}),U.map((function(e,t){return r.createElement(R,{role:"option",dataItem:e,size:g,key:[X(e),t].join("-"),text:Z(e),value:X(e)})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},rt={chip:at,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},it.apply(this,arguments)},at=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ye.n)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(Qe),d=p[0],f=p[1],h=r.useContext(et),m=h[0],g=h[1],v=r.useContext(tt)[1],y=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return m===e.value}),[e.value,m]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var C=r.useCallback((function(t){f({type:He.toggle,payload:e.value,event:t})}),[f,e.value]),k=r.useCallback((function(t){e.removable&&(v({type:Ze.remove,payload:e.value,event:t}),g({type:Xe.reset,payload:e.value,event:t}),f({type:He.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,v,g,f]),O=r.useCallback((function(t){switch(t.keyCode){case w.R.left:g({type:Xe.prev,payload:e.value,event:t});break;case w.R.right:g({type:Xe.next,payload:e.value,event:t});break;case w.R.enter:f({type:He.toggle,payload:e.value,event:t});break;case w.R.delete:k(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,g,f,k]),E=r.useCallback((function(t){g({payload:e.value,type:Xe.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,g]),x=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),D=(0,Ve.i)(e,o,{onClick:C});return r.createElement("div",it({},D,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,qe.p)(e.tabIndex,e.disabled,void 0),className:(0,a.A)("k-chip",(n={"k-rtl":"rtl"===u,"k-disabled":e.disabled,"k-selected":y,"k-focus":b},n["k-chip-".concat(s.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(s.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":y,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:E,onBlur:x,onKeyDown:O}),y&&e.selectedIcon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:(0,a.A)("k-chip-action","k-chip-remove-action")},r.createElement("span",{className:(0,a.A)("k-icon",e.removeIcon),onClick:k}))))})),st={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};at.displayName="KendoReactChip",at.propTypes=st,at.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},lt.apply(this,arguments)},ct=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,g=e.onClick,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=r.useRef(null),b=r.useCallback((function(){y.current&&y.current.focus()}),[]),w=r.useCallback((function(){return{element:y.current,focus:b}}),[b]);r.useImperativeHandle(t,w);var C=r.useCallback((function(e){g&&void 0!==d&&!o&&g(e,d)}),[g,d]),k=r.useMemo((function(){return(0,a.A)("k-fab-item",{"k-focus":u,"k-disabled":o},n)}),[n,o,u]),O=h;return r.createElement("li",lt({ref:y,id:c,className:k,style:l,role:"menuitem",tabIndex:(0,qe.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:C,onMouseDown:m,onPointerDown:m},v),O?r.createElement(O,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:(0,a.A)("k-fab-item-icon k-icon k-i-".concat(s))})))}));ct.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ct.displayName="KendoFloatingActionButtonItem";var ut="16px",pt=function(e){return"number"==typeof e?e+"px":e},dt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ht=function(){return ht=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ht.apply(this,arguments)},mt=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?gt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,g=e.item,v=e.text,y=e.positionMode,k=void 0===y?gt.positionMode:y,O=e.shape,E=void 0===O?gt.shape:O,x=e.size,D=void 0===x?gt.size:x,I=e.style,S=e.rounded,_=void 0===S?gt.rounded:S,N=e.themeColor,R=void 0===N?gt.themeColor:N,M=e.overlayStyle,A=e.tabIndex,T=e.accessKey,L=e.popupSettings,j=void 0===L?{}:L,B=e.modal,z=e.onClick,W=e.onItemClick,F=e.onFocus,U=e.onBlur,K=e.onKeyDown,H=e.onOpen,X=e.onClose,Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),Y=(0,P.u)(),G=Y?Y+2:100,V=r.useRef(null),q=r.useRef(null),$=r.useRef(null),J=r.useRef(null),Q=r.useCallback((function(){q.current&&q.current.focus()}),[]),ee=r.useCallback((function(){return{element:q.current,focus:Q}}),[Q]);r.useImperativeHandle(V,ee),r.useImperativeHandle(t,(function(){return V.current}));var te=r.useState(!1),ne=te[0],oe=te[1],re=r.useState(!1),ie=re[0],ae=re[1],se=r.useState(-1),le=se[0],ce=se[1],ue=r.useMemo((function(){return(0,b.M)()}),[]),pe=(0,Ye.n)(q,e.dir),de="rtl"===pe,fe=r.useMemo((function(){return(0,b.M)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pt(n.x):ut,s=n&&void 0!==n.x?"calc(50% + ".concat(pt(n.x),")"):"50%",l=n&&void 0!==n.y?pt(n.y):ut,c=n&&void 0!==n.y?"calc(50% + ".concat(pt(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,o),"center"===r?s:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?c:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(q,o,i,de)}),[q,o,i,de]),r.useEffect((function(){ie&&q&&q.current&&q.current.focus()}),[ie,q]);var he=r.useCallback((function(e,t){m&&(0,C.N)(t?H:X,e,ee(),void 0)}),[H,X,m]),me=r.useCallback((function(e){e.target&&!p&&(!m&&z?(0,C.N)(z,e,ee(),void 0):(oe(!ne),ae(!0),ce(ne?-1:0),he(e,!ne)))}),[oe,ae,ce,z,he,ne,m,p]),ge=r.useCallback((function(e){ae(!0),ce(ne?0:-1),F&&(0,C.N)(F,e,ee(),void 0)}),[F,ae,ce]),ve=r.useCallback((function(e){ae(!1),oe(!1),ce(-1),(0,C.N)(U,e,ee(),void 0),ne&&he(e,!1)}),[U,ae,oe,ce,he]),ye=r.useCallback((function(e){e.preventDefault()}),[]),be=r.useCallback((function(e,t){m&&(m[t].disabled||(0,C.N)(W,e,ee(),{itemProps:m[t],itemIndex:t}))}),[W]),we=r.useCallback((function(e,t){e.target&&m&&(ce(t),oe(!1),be(e,t),he(e,!1))}),[ce,oe,be,he]),Ce=r.useCallback((function(e){document.activeElement===q.current&&e.preventDefault()}),[q,document.activeElement]),ke=r.useCallback((function(e){var t=le,n=m?m.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case w.R.enter:case w.R.space:t>=0&&be(e,t),e.preventDefault(),oe(!ne),ce(ne?-1:0);break;case w.R.esc:e.preventDefault(),oe(!1),ce(-1);break;case w.R.home:e.preventDefault(),ce(0);break;case w.R.end:e.preventDefault(),ce(n);break;case w.R.down:case w.R.right:e.preventDefault(),t<n&&!r&&ce(t+1),t>0&&r&&ce(t-1);break;case w.R.up:case w.R.left:e.preventDefault(),t>0&&!r&&ce(t-1),t<n&&r&&ce(t+1)}(0,C.N)(K,e,ee(),void 0)}),[K,le,ce,de,oe]),Oe=r.useMemo((function(){var e;return(0,a.A)("k-fab k-fab-solid",((e={})["k-fab-".concat(E)]=E,e["k-fab-sm"]="small"===D,e["k-fab-md"]="medium"===D,e["k-fab-lg"]="large"===D,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===k,e["k-pos-fixed"]="fixed"===k,e["k-focus"]=ie,e["k-rounded-".concat(s.G.roundedMap[_]||_)]=_,e["k-fab-solid-".concat(R)]=R,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[R,D,_,E,p,k,o,ie,u]),Ee=m&&m.map((function(e,t){return r.createElement(ct,ht({},e,{key:t,index:t,id:"".concat(fe,"-").concat(t),disabled:p||e.disabled,focused:le===t,dataItem:e,item:g,className:(0,a.A)(e.className,(n=pe||"ltr",i=o.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:we,onDown:Ce}));var n,i})),De=d&&!v,Ie=(q.current?q.current.offsetWidth:0)/2-16;return r.createElement(P.$.Provider,{value:G},r.createElement(r.Fragment,null,r.createElement("button",ht({ref:q,id:h||ue,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?ne:void 0,"aria-haspopup":!!m,"aria-label":"".concat(v||""," floatingactionbutton"),"aria-owns":m?fe:void 0,"aria-activedescendant":le>=0&&m?"".concat(fe,"-").concat(le):void 0,tabIndex:(0,qe.p)(A,p),accessKey:T,dir:pe,disabled:p,className:Oe,style:I,onClick:me,onMouseDown:ye,onFocus:ge,onBlur:ve,onKeyDown:ke},Z),d?r.createElement("span",{role:"presentation",className:(0,a.A)("k-fab-icon k-icon k-i-".concat(d))}):f?r.createElement("span",{role:"presentation",className:f}):null,v&&r.createElement("span",{className:"k-fab-text"},v)),B&&ne&&r.createElement("div",{className:"k-overlay",style:ht({zIndex:G},M)}),r.createElement(xe,{ref:J,anchor:q.current,show:ne,animate:j.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",j.popupClass),anchorAlign:j.anchorAlign||dt(o,de),popupAlign:j.popupAlign||ft(o,de),style:{boxShadow:"none"}},r.createElement("ul",{ref:$,role:"menu","aria-labelledby":h,id:fe,className:(0,a.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:De?Ie:void 0,paddingRight:De?Ie:void 0}},Ee))))}));mt.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf([null,"rectangle","square"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:i.bool,overlayStyle:i.object};var gt={align:{vertical:"bottom",horizontal:"end"},shape:null,size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};mt.displayName="KendoFloatingActionButton"},827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},47:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},407:(e,t,n)=>{function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,{N:()=>o})},100:(e,t,n)=>{n.d(t,{E:()=>r});var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},703:(e,t,n)=>{n.d(t,{p:()=>o});var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},659:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(100),r={};function i(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},198:(e,t,n)=>{n.d(t,{M:()=>o});var o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},199:(e,t,n)=>{n.d(t,{n:()=>r});var o=n(899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},322:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(899),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},493:(e,t,n)=>{n.d(t,{R:()=>o});var o={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},556:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>V,DragAndDrop:()=>De,Draggable:()=>Be,Droppable:()=>We,FormComponent:()=>g,Icon:()=>re,Keys:()=>w.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>h,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>X,dispatchEvent:()=>B.N,extendDataItem:()=>A,focusFirstFocusableChild:()=>m,getItemPath:()=>T,getScrollbarWidth:()=>k,getTabIndex:()=>v.p,getter:()=>y.Y,guid:()=>b.M,hasRelativeStackingContext:()=>j,kendoThemeMaps:()=>Fe.G,mapTree:()=>R,mapTreeItem:()=>M,memoizeOne:()=>Ke,noop:()=>C,setScrollbarWidth:()=>O,setter:()=>I,useAsyncFocusBlur:()=>W,useCollection:()=>J,useCustomComponent:()=>$,useDir:()=>Y.n,useDocument:()=>Q,useDraggable:()=>je,useDroppable:()=>ze,useMouse:()=>q.i,usePropsContext:()=>K,useRtl:()=>G,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>L.s,withPropsContext:()=>Z});var o=n(259),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),a=n(827),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},l=n(47),c=n(899),u=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return u(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function h(e){return e.map((function(e){return f(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},v=n(703),y=n(659),b=n(198),w=n(493),C=function(){},k=function(){return!(!a.N||!document.body)&&(new i).scrollbarWidth},O=function(){if(!a.N||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},E=n(100),x={undefined:function(e){return e}},D=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(e){if(x[e])return x[e];var t=(0,E.E)(e);return x[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||D(t[a+1],o);r[t[i]]=n},x[e]}var S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},_=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function P(e,t,n){var o;return n?S(S({},e),((o={})[t]=n.length?_([],n,!0):void 0,o)):e&&e[t]?_([],e[t],!0):[]}function N(e,t,n){if(e[t]){var o=P(e,t).map((function(e){return N(e,t,n)}));return n(P(e,t,o))}return n(e)}var R=function(e,t,n){return _([],e.map((function(e){return N(e,t,n)})),!0)},M=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],c=o(s[l]);s.splice(l,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},T=function(e,t,n){var o=[],r=_([],t,!0);if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},L=n(6),j=function(e){if(!a.N)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r},B=n(407),z=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function W(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call(void 0,e[0]),i.current||(i.current=!0,t&&t.call.apply(t,z([void 0],e,!1)))}),[i,t,o]),u=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call(void 0,e[0]),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,z([void 0],e,!1)))}))}),[i,s,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var F=function(){return F=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},F.apply(this,arguments)},U=function(e){var t=e.children,n=W({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return c.createElement(c.Fragment,null,t.call(void 0,F({},n)))},K=function(e,t){return c.useContext(e)(t)},H=function(){return H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},H.apply(this,arguments)},X=function(){return c.createContext((function(e){return e}))},Z=function(e,t){return c.forwardRef((function(n,o){var r=K(e,n);return c.createElement(t,H({},r,{ref:o}))}))},Y=n(199);function G(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var V,q=n(322),$=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(V||(V={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case V.add:t.current.push(e.item);break;case V.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Q=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},ee=function(e){var t=Q(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},te=n(189),ne={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oe.apply(this,arguments)},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,u=e.id,p=e.tabIndex,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:h.current}})),c.useImperativeHandle(t,(function(){return f.current}));var m=c.useMemo((function(){return i||ie.size}),[i]),g=c.useMemo((function(){return a||ie.flip}),[a]),v=c.useMemo((function(){var e;return(0,l.A)("k-icon","k-i-"+o,((e={})["k-color-".concat(r)]=r,e["k-flip-h"]="horizontal"===g||"both"===g,e["k-flip-v"]="vertical"===g||"both"===g,e),ne[m],n)}),[o,r,m,g,n]),y=(0,q.i)(e,f);return c.createElement("span",oe({ref:h},d,y,{className:v,id:u,tabIndex:p,style:s,role:"presentation"}))}));re.propTypes={style:te.object,classNames:te.string,name:te.string,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ae.apply(this,arguments)},se=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.id,u=e.tabIndex,p=e.size,d=e.style,f=e.svgStyle,h=e.themeColor,m=e.viewBox,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:v.current}}));var y=c.useMemo((function(){return i?i.name:le.icon}),[i]),b=c.useMemo((function(){return p||le.size}),[p]),w=c.useMemo((function(){return a||le.flip}),[a]),C=c.useMemo((function(){return m||le.viewBox}),[m]),k=c.useMemo((function(){var e;return(0,l.A)("k-svg-icon","k-svg-i-"+y,((e={})["k-color-".concat(h)]=h,e["k-flip-h"]="horizontal"===w||"both"===w,e["k-flip-v"]="vertical"===w||"both"===w,e),ne[b],o)}),[y,h,b,w,o]),O=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},d):e.width?ae({width:e.width,height:e.width},d):e.height?ae({width:e.height,height:e.height},d):ae({},d)}),[e.width,e.height,d]);return c.createElement("span",{className:k,style:O,ref:v},c.createElement("svg",ae({id:s,className:r,style:f,"aria-hidden":!0,tabIndex:u,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:C,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},g),i?void 0:n))}));se.propTypes={style:te.object,classNames:te.string,children:te.any,icon:te.object,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var ce={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ue={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},fe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},he={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ve=function(){return ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve.apply(this,arguments)},ye=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,s=t.fontWeight,l=t.textAlign,u=t.textTransform,p=t.themeColor,d=t.margin,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var g=e;return c.createElement(g,ve({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],he[l],me[u],ge[p],function(){if(void 0!==d){if("string"==typeof d)return[pe[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,o,r;null!==d[t]&&void 0!==d[t]&&e.push((n=t,r="string"==typeof(o=d[t])?de[o]:o,"".concat(fe[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},f),t.children)}));return t.propTypes={style:te.object,className:te.string,fontSize:te.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:te.oneOf(["light","normal","bold"]),margin:te.oneOfType([te.number,te.object,te.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:te.oneOf(["left","right","center","justify"]),textTransform:te.oneOf(["lowercase","uppercase","capitalize"]),themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},be={h1:ye("h1"),h2:ye("h2"),h3:ye("h3"),h4:ye("h4"),h5:ye("h5"),h6:ye("h6"),p:ye("p"),code:ye("code"),pre:ye("pre")},we=function(){return we=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},we.apply(this,arguments)},Ce=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,we(we({},t),{value:e}))}),[n,i])]},ke=c.createContext([void 0,C]),Oe=c.createContext([void 0,C]),Ee=c.createContext([[],C,C]),xe=c.createContext([[],C,C]),De=function(e){var t=Ce(null,void 0),n=t[0],o=t[1],r=Ce(null,void 0),i=r[0],a=r[1],s=J([]),l=s[0],u=s[1],p=J([]),d=p[0],f=p[1];return c.createElement(ke.Provider,{value:[n,o]},c.createElement(Oe.Provider,{value:[i,a]},c.createElement(Ee.Provider,{value:[l,function(e){u({type:V.add,item:e})},function(e){u({type:V.remove,item:e})}]},c.createElement(xe.Provider,{value:[d,function(e){f({type:V.add,item:e})},function(e){f({type:V.remove,item:e})}]},e.children))))};De.displayName="KendoReactDragAndDrop";var Ie,Se=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Pe=function(e){var t=Se(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Ne=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Re=function(e){var t=Pe(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Ne(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Ie||(Ie={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Me:l,u=n.onIsScrollingChange,p=void 0===u?Me:u,d=n.onVelocityChange,f=void 0===d?Me:d,h=n.onOffsetChange,m=void 0===h?Me:h,g=n.onPageOffsetChange,v=void 0===g?Me:g,y=n.onClientOffsetChange,b=void 0===y?Me:y,w=n.onScrollOffsetChange,C=void 0===w?Me:w,k=n.onInitialScrollOffsetChange,O=void 0===k?Me:k,E=t.payload,x=E.element,D=E.hint,I=e.autoScrollDirection,S=e.scrollableParent,_=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(_.type){case Ie.POINTER_DOWN:if(_.type===Ie.POINTER_DOWN&&(!_.originalEvent.isPrimary||0!==_.originalEvent.button))break;case Ie.MOUSE_DOWN:if(_.type===Ie.MOUSE_DOWN&&_.originalEvent.which&&_.originalEvent.which>1||e.ignoreMouse)break;case Ie.TOUCH_START:if(_.type===Ie.TOUCH_START&&1!==_.originalEvent.touches.length)break;case Ie.START:var P=S||Re(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),b({x:_.clientX,y:_.clientY}),v({x:_.pageX,y:_.pageY}),m({x:_.offsetX,y:_.offsetY}),c(!0),E.onPress&&E.onPress(_);break;case Ie.SCROLL:if(_.type===Ie.SCROLL&&!e.pressed)break;var N=S||Re(x),R=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};_.scrollX=R.x-e.initialScrollOffset.x,_.scrollY=R.y-e.initialScrollOffset.y,C({x:_.scrollX,y:_.scrollY});case Ie.POINTER_MOVE:if(_.type===Ie.POINTER_MOVE&&!_.originalEvent.isPrimary)break;case Ie.MOUSE_MOVE:case Ie.TOUCH_MOVE:if(_.type===Ie.TOUCH_MOVE&&1!==_.originalEvent.touches.length)break;case Ie.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==_.originalEvent.type&&x){var M=_e(x),A=S||Re(M.elementFromPoint(_.clientX,_.clientY)),T=(o=_.clientX,r=_.clientY,i=function(e,t){var n=Pe(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(A,function(e){var t=_e(e);return t&&t.defaultView||window}(x)),a={x:0,y:0},s=50,o-i.left<s?a.x=-(s-(o-i.left)):i.right-o<s&&(a.x=s-(i.right-o)),r-i.top<s?a.y=-(s-(r-i.top)):i.bottom-r<s&&(a.y=s-(i.bottom-r)),a);f({x:I&&!1===I.horizontal?0:T.x,y:I&&!1===I.vertical?0:T.y}),p(0!==T.y||0!==T.x)}!e.drag&&E.onDragStart&&E.onDragStart(_),E.onDrag&&E.onDrag(_);var L=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,c=s-r;if(i<a&&r<s){var u=o.width*o.height,p=n.width*n.height,d=l*c;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(D||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||x)}))),j=e.drops.find((function(e){return e.element===L}));j&&L&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(_.clientX,_.clientY,S||Re(L))&&L!==x?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_),j.onDragEnter&&j.onDragEnter(_)):j.onDragOver&&j.onDragOver(_):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}b({x:_.clientX,y:_.clientY}),v({x:_.pageX,y:_.pageY});break;case Ie.POINTER_UP:if(_.type===Ie.POINTER_UP&&!_.originalEvent.isPrimary)break;case Ie.MOUSE_UP:case Ie.TOUCH_END:if(_.type===Ie.TOUCH_END&&1!==_.originalEvent.touches.length)break;case Ie.END:c(!1),p(!1),C({x:0,y:0}),E.onRelease&&E.onRelease(_),e.drop&&e.drop.onDrop&&e.drop.onDrop(_),e.drag&&E.onDragEnd&&E.onDragEnd(_);break;case Ie.POINTER_CANCEL:case Ie.CONTEXT_MENU:case Ie.TOUCH_CANCEL:case Ie.CANCEL:c(!1),p(!1),C({x:0,y:0}),E.onDragEnd&&E.onDragEnd(_),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}},Te=function(e,t){if(e){var n,o;e===Pe(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Le=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function je(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?C:o,i=t.onRelease,a=void 0===i?C:i,s=t.onDragStart,l=void 0===s?C:s,u=t.onDrag,p=void 0===u?C:u,d=t.onDragEnd,f=void 0===d?C:d,h=n.hint,m=void 0===h?null:h,g=n.mouseOnly,v=void 0!==g&&g,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,k=void 0===w?null:w,O=c.useState(!1),E=O[0],x=O[1],D=c.useState(!1),I=D[0],S=D[1],_=Le(Oe)[0],P=Le(ke),N=P[0],R=P[1],M=c.useContext(xe)[0],A=c.useContext(Ee),T=A[0],L=A[1],j=A[2],B=c.useRef({x:0,y:0}),z=c.useRef(),W=c.useRef(!1),F=c.useRef(),U=c.useRef(null),K=c.useRef(!1),H=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),Z=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),q=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!v&&q,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=c.useCallback((function(){return k&&k.current&&k.current.element?k.current.element:k?k.current:null}),[k]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ve,onDrag:ye,onDragEnd:be,onRelease:ge,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:N?N.current:null,drop:_?_.current:null,drags:T.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:E,ignoreMouse:W.current,scrollOffset:G.current,offset:H.current,pageOffset:X.current,initialScrollOffset:V.current,clientOffset:Z.current,initialClientOffset:Y.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[N,_,T,M,E,b,te,I]),ae=c.useCallback((function(e){x(e)}),[]),se=c.useCallback((function(e){S(e)}),[]),le=c.useCallback((function(e){B.current=e}),[]),ce=c.useCallback((function(e){H.current=e}),[]),ue=c.useCallback((function(e){Z.current=e}),[]),pe=c.useCallback((function(e){X.current=e}),[]),de=c.useCallback((function(e){Y.current=e}),[]),fe=c.useCallback((function(e){G.current=e}),[]),he=c.useCallback((function(e){V.current=e}),[]),me=c.useCallback((function(e){r(e)}),[r]),ge=c.useCallback((function(e){a(e)}),[a]),ve=c.useCallback((function(t){R(ne,{target:e.current,event:t}),l(t)}),[R,e,l]),ye=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){K.current||(R(null,{target:e.current,event:t}),f(t))}),[f,R,e]),we=c.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,he,ae,fe,se]),Ce=c.useCallback((function(e){we(e)}),[we]),De=c.useCallback((function(e){we(e)}),[we]),Ie=c.useCallback((function(e){we(e)}),[we]),Se=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){we(e)}),[we]),Pe=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),je=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Be=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),ze=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();W.current=!0,F.current=t.setTimeout((function(){W.current=!1}),2e3)}we(e)}),[we,re]),We=c.useCallback((function(e){we(e)}),[we]),Fe=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=c.useCallback((function(){return L(ne),function(){j(ne)}}),[j,L]);c.useEffect((function(){var e=re();if(I){var t=ee()||Re(document.elementFromPoint(Z.current.x,Z.current.y));e.clearInterval(z.current),z.current=e.setInterval((function(){Te(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(z.current)}}),[J,ee,re,I]),c.useEffect(Fe,[Fe]),c.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(U.current=Re(t),U.current&&U.current.addEventListener("scroll",We,{passive:!0}),t.addEventListener("pointerdown",Ce,{passive:!0})),E&&(n.addEventListener("pointermove",De),n.addEventListener("pointerup",Se,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",C,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",_e,{passive:!0}),v||(t.addEventListener("touchstart",je,{passive:!0}),E&&(t.addEventListener("touchmove",Be,{passive:!0}),t.addEventListener("touchend",ze,{passive:!0})))),E&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",We),t&&(t.removeEventListener("pointerdown",Ce),t.removeEventListener("mousedown",_e),t.removeEventListener("touchstart",je),t.removeEventListener("touchmove",Be),t.removeEventListener("touchend",ze)),n.removeEventListener("pointermove",De),n.removeEventListener("pointerup",Se,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",C),e.clearTimeout(F.current)}}),[E,re,J,oe,v,$,Me,_e,Pe,Ne,Ie,Ce,De,Se,ze,Be,je,We]),c.useEffect((function(){return function(){K.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),l=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),u=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return je(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function ze(e,t){void 0===t&&(t={onDragEnter:C,onDragOver:C,onDragLeave:C,onDrop:C});var n=t.onDragEnter,o=void 0===n?C:n,r=t.onDragOver,i=void 0===r?C:r,a=t.onDragLeave,s=void 0===a?C:a,l=t.onDrop,u=void 0===l?C:l,p=Le(Oe)[1],d=c.useContext(xe),f=d[1],h=d[2],m=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=c.useRef(null);c.useImperativeHandle(g,(function(){return{element:m(),onDragEnter:v,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var v=c.useCallback((function(t){p(g,{target:e.current,event:t}),o(t)}),[p,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),w=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),k=c.useCallback((function(){return f(g),function(){h(g)}}),[h,f]);c.useLayoutEffect(k,[k])}Be.displayName="KendoReactDraggable";var We=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),l=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return ze(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));We.displayName="KendoReactDroppable";var Fe=n(697);function Ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function Ke(e,t){void 0===t&&(t=Ue);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}},697:(e,t,n)=>{n.d(t,{G:()=>o});var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},6:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(302);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},302:e=>{e.exports=o},499:e=>{e.exports=r},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=t}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{var e=l;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0;var t=s(580);Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}});var n=s(379);Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return n.DialogActionsBar}});var o=s(891);Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return o.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return o.WindowPropsContext}});var r=s(617);Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return r.WindowActionsBar}})})(),l})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","react-dom","prop-types","@progress/kendo-licensing","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactDialogs=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl")):e.KendoReactDialogs=t(e.React,e.ReactDOM,e.PropTypes,e.KendoLicensing,e.KendoReactIntl)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={580:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0;var a=n(899),s=n(994),l=n(189),c=n(348),u=n(379),p=n(556),d=n(556),f=n(363),h=n(147),m=n(56),g=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n._id=(0,p.guid)(),n.titleId=n.generateTitleId(),n.contentId=n.generateContentId(),n.onCloseDialog=function(e){e.preventDefault(),(0,p.dispatchEvent)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===p.Keys.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===p.Keys.tab){var o=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=o[0],i=o[o.length-1],a=n.getDocument();e.shiftKey?(a&&a.activeElement===r||a&&a.activeElement===n.element)&&(i.focus(),e.preventDefault()):a&&a.activeElement===i&&(r.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+m.ZINDEX_DIALOGS_STEP:0)?n.state.zIndex:n.context+m.ZINDEX_DIALOGS_STEP:n.context?n.context:m.DEFAULT_DIALOGS_ZINDEX},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},(0,d.validatePackage)(f.packageMetadata),n.state={zIndex:(0,h.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return r(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t=this,n=void 0!==this.props.id?this.props.id:this.titleId,o=this.props,r=o.title,l=o.width,u=o.height,d=o.children,f=o.minWidth,h=o.dir,g=o.style,v=o.contentStyle,y=a.Children.toArray(d),b=this.getContent(y),w=this.getActionBar(y),C=r?{"aria-labelledby":n}:null,k=void 0===this.props.closeIcon||this.props.closeIcon,O=this.getCurrentZIndex(),E=a.createElement(p.ZIndexContext.Provider,{value:O},a.createElement("div",i({},((e={})[m.DATA_DIALOGS_ID]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:h,style:i({zIndex:O},g),ref:function(e){return t.element=e}}),a.createElement("div",{className:"k-overlay"}),a.createElement("div",i({},C,{className:"k-widget k-window k-dialog",role:"dialog","aria-modal":!0,"aria-describedby":this.contentId,style:{width:l,height:u,minWidth:f}}),this.props.title&&a.createElement(c.DialogTitleBar,{closeIcon:k,onCloseButtonClick:this.onCloseDialog,id:n},r),a.createElement("div",{className:"k-window-content k-dialog-content",style:v,id:this.contentId},b),w)));return p.canUseDOM?null!==this.props.appendTo?s.createPortal(E,this.props.appendTo||document.body):E:null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===u.DialogActionsBar}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==u.DialogActionsBar}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.prototype.generateContentId=function(){return"dialog-content"+this._id},t.displayName="Dialog",t.propTypes={title:l.any,id:l.string,dir:l.string,style:l.object,closeIcon:l.bool,width:l.oneOfType([l.number,l.string]),height:l.oneOfType([l.number,l.string]),minWidth:l.oneOfType([l.number,l.string]),autoFocus:l.bool},t.defaultProps={autoFocus:!1},t.contextType=p.ZIndexContext,t}(a.Component);t.DialogPropsContext=(0,p.createPropsContext)(),t.Dialog=(0,p.withPropsContext)(t.DialogPropsContext,g),t.Dialog.displayName="KendoReactDialog"},379:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var o=n(899),r=n(189),i=n(556);t.DialogActionsBar=function(e){var t,n=e.layout,r=void 0===n?a.layout:n,s=e.children,l=(0,i.classNames)("k-dialog-buttongroup","k-actions",((t={})["k-actions-".concat(r)]=r,t));return o.createElement("div",{className:l},s)},t.DialogActionsBar.propTypes={children:r.any,layout:r.oneOf(["start","center","end","stretched"])};var a={layout:"stretched"}},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var o=n(899),r=n(389);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,i=e.id,a=e.closeIcon;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:i},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},a&&o.createElement(r.Button,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action"})))}},522:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(n(899).Component);t.MiddleLayerOptimization=i},880:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(n=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",n.FULLSCREEN="FULLSCREEN",n.MINIMIZED="MINIMIZED"},891:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0;var a=n(899),s=n(994),l=n(189),c=n(583),u=n(556),p=n(556),d=n(151),f=n(522),h=n(880),m=n(556),g=n(363),v=n(617),y=n(56),b=n(147),w=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.draggable=null,n.offSetCoordinates={x:0,y:0},n._id=(0,u.guid)(),n.titleId=n.generateTitleId(),n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,o=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case u.Keys.up:e.preventDefault(),o<=n.height-5&&n.setState({height:n.height-5});break;case u.Keys.down:e.preventDefault(),n.setState({height:n.height+5});break;case u.Keys.left:t<=n.width-5&&n.setState({width:n.width-5});break;case u.Keys.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case u.Keys.up:n.windowStage===h.windowStage.MINIMIZED?(n.handleRestore(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})):n.windowStage===h.windowStage.DEFAULT&&(n.handleFullscreen(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.FULLSCREEN}));break;case u.Keys.down:n.windowStage===h.windowStage.FULLSCREEN?(n.handleRestore(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})):n.windowStage===h.windowStage.DEFAULT&&(n.handleMinimize(e),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case u.Keys.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case u.Keys.up:n.setState({top:n.state.top-5});break;case u.Keys.down:n.setState({top:n.state.top+5});break;case u.Keys.left:n.setState({left:n.state.left-5});break;case u.Keys.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==h.windowStage.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==h.windowStage.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:(0,b.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:h.windowStage.MINIMIZED,height:0}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),o=t?t.innerWidth:0,r=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:o,height:n.props.appendTo?n.props.appendTo.offsetHeight:r,stage:h.windowStage.FULLSCREEN}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===h.windowStage.FULLSCREEN?n.setState({stage:h.windowStage.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===h.windowStage.MINIMIZED&&n.setState({stage:h.windowStage.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),(0,u.dispatchEvent)(n.props.onStageChange,e,n,{state:h.windowStage.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),(0,u.dispatchEvent)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===h.windowStage.FULLSCREEN||n.windowStage===h.windowStage.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var o=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,r=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,s=n.props.minWidth||120,l=n.props.minHeight||100,c=n.top-r,u=n.left-o,p=o-n.left,d=r-n.top,f=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&l-(a+c)<0&&(n.top>0&&(f.height=a+c),f.top=r),t.direction.indexOf("s")>=0&&l-d<0&&(f.height=d),t.direction.indexOf("w")>=0&&s-(i+u)<0&&(n.left>0&&(f.width=i+u),f.left=o),t.direction.indexOf("e")>=0&&s-p<0&&(f.width=p),n.setState(f),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,o,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:o,end:r,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===h.windowStage.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,o=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:o})}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+y.ZINDEX_DIALOGS_STEP:0)?n.state.zIndex:n.context+y.ZINDEX_DIALOGS_STEP:n.context?n.context:y.DEFAULT_DIALOGS_ZINDEX},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},(0,m.validatePackage)(g.packageMetadata),n.state={stage:n.props.stage||h.windowStage.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:(0,b.getMaxZIndex)(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),o=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-o.left,this.offSetCoordinates.y=n.top-o.top}},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}},t.prototype.render=function(){var e,t=this,n=a.Children.toArray(this.props.children),o=this.getContent(n),r=this.getActionBar(n),l=this.getCurrentZIndex(),m=(0,u.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),g=a.createElement(u.ZIndexContext.Provider,{value:l},a.createElement(a.Fragment,null,this.props.modal&&a.createElement("div",{className:"k-overlay",style:i({zIndex:l},this.props.overlayStyle)}),a.createElement("div",i({},((e={})[y.DATA_DIALOGS_ID]=this._id,e),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:m,style:i({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:l},this.props.style)}),a.createElement(f.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},a.createElement(p.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},a.createElement(c.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==h.windowStage.MINIMIZED?a.createElement(a.Fragment,null,a.createElement("div",{className:"k-window-content"},o),r):null,this.windowStage===h.windowStage.DEFAULT&&this.props.resizable?a.createElement(d.ResizeHandlers,{onResize:this.handleResize}):null))));return u.canUseDOM?null!==this.props.appendTo?s.createPortal(g,this.props.appendTo||document.body):g:null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==h.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==h.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===h.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===h.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===h.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===v.WindowActionsBar}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==v.WindowActionsBar}))},t.prototype.generateTitleId=function(){return"window-title-"+this._id},t.displayName="Window",t.propTypes={width:l.number,height:l.number,left:l.number,top:l.number,initialWidth:l.number,initialHeight:l.number,initialLeft:l.number,initialTop:l.number,minWidth:l.number,minHeight:l.number,resizable:l.bool,draggable:l.bool,title:l.any,shouldUpdateOnDrag:l.bool,stage:l.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:l.string,style:l.object,overlayStyle:l.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=u.ZIndexContext,t}(a.Component);t.WindowPropsContext=(0,p.createPropsContext)(),t.Window=(0,p.withPropsContext)(t.WindowPropsContext,w),t.Window.displayName="KendoReactWindow"},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var o=n(899),r=n(189),i=n(556);t.WindowActionsBar=function(e){var t=e.layout,n=void 0===t?a.layout:t,r=e.children,s=(0,i.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return o.createElement("div",{className:s},r)},t.WindowActionsBar.propTypes={children:r.any,layout:r.oneOf(["start","center","end","stretched"])};var a={layout:"end"}},151:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0;var i=n(899),a=n(556),s=["n","e","s","w","se","sw","ne","nw"],l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",null," ",s.map((function(t,n){return i.createElement(a.Draggable,{key:n,onDrag:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!1,direction:t})},onRelease:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!0,direction:t})}},i.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(i.Component);t.ResizeHandlers=l},583:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0;var r=n(899),i=n(880),a=n(389),s=n(499),l=n(364),c=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.onMinimizeButtonClick,c=e.onFullScreenButtonClick,u=e.onRestoreButtonClick,p=e.onDoubleClick,d=e.stage,f=e.forwardedRef,h=e.id,m=(0,s.useLocalization)(),g=e.minimizeButton?r.createElement(e.minimizeButton,{onClick:o,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-minimize",className:"k-window-action",onClick:o,"aria-label":m.toLanguageString(l.dialogsWindowMinimizeButton,l.messages[l.dialogsWindowMinimizeButton])}),v=e.maximizeButton?r.createElement(e.maximizeButton,{onClick:c,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-maximize",className:"k-window-action",onClick:c,"aria-label":m.toLanguageString(l.dialogsWindowMaximizeButton,l.messages[l.dialogsWindowMaximizeButton])}),y=e.restoreButton?r.createElement(e.restoreButton,{onClick:u,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"window-restore",className:"k-window-action",onClick:u,"aria-label":m.toLanguageString(l.dialogsWindowRestoreButton,l.messages[l.dialogsWindowRestoreButton])}),b=e.closeButton?r.createElement(e.closeButton,{onClick:n,stage:d}):r.createElement(a.Button,{fillMode:"flat",icon:"close",className:"k-window-action",onClick:n,"aria-label":m.toLanguageString(l.dialogsWindowCloseButton,l.messages[l.dialogsWindowCloseButton])});return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:f,onDoubleClick:p},r.createElement("div",{className:"k-window-title",id:h},t||""),r.createElement("div",{className:"k-window-actions"},d===i.windowStage.DEFAULT&&g,d===i.windowStage.DEFAULT&&v,d!==i.windowStage.DEFAULT&&y,b))};t.WindowTitleBar=r.forwardRef((function(e,t){return r.createElement(c,o({},e,{forwardedRef:t}))}))},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.dialogsWindowCloseButton=t.dialogsWindowRestoreButton=t.dialogsWindowMinimizeButton=t.dialogsWindowMaximizeButton=void 0,t.dialogsWindowMaximizeButton="dialogs.windowMaximizeButton",t.dialogsWindowMinimizeButton="dialogs.windowMinimizeButton",t.dialogsWindowRestoreButton="dialogs.windowRestoreButton",t.dialogsWindowCloseButton="dialogs.windowCloseButton",t.messages=((n={})[t.dialogsWindowMaximizeButton]="maximize",n[t.dialogsWindowMinimizeButton]="minimize",n[t.dialogsWindowRestoreButton]="restore",n[t.dialogsWindowCloseButton]="close",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672914367,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var o=n(56);t.getMaxZIndex=function(e,t,n){var r=e;if(t&&t.defaultView){var i=t.querySelectorAll(o.DIALOGS_SELECTOR),a=!1;return i.forEach((function(e){var i=t.defaultView.getComputedStyle(e,null);if(e.getAttribute(o.DATA_DIALOGS_ID)!==n&&null!==i.zIndex){var s=parseInt(i.zIndex,10);s>=r&&(r=s,a=!0)}})),a?r+o.ZINDEX_DIALOGS_STEP:r}return r}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>y,Chip:()=>at,ChipList:()=>nt,DropDownButton:()=>Ae,DropDownButtonItem:()=>Ne,FloatingActionButton:()=>mt,FloatingActionButtonItem:()=>ct,SplitButton:()=>_e,SplitButtonItem:()=>E,Toolbar:()=>je,ToolbarItem:()=>ze,ToolbarSeparator:()=>Fe,ToolbarSpacer:()=>Ue,toolbarButtons:()=>h});var o,r=n(899),i=n(189),a=n(47),s=n(697),l=n(6),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672914133,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},d=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},(0,l.s)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,n=this,o=this.props,i=o.children,l=o.togglable,c=o.icon,u=o.iconClass,d=o.imageUrl,f=o.imageAlt,h=(o.className,o.onClick,o.size),m=void 0===h?t.defaultProps.size:h,g=o.shape,v=void 0===g?t.defaultProps.shape:g,y=o.rounded,b=void 0===y?t.defaultProps.rounded:y,w=o.fillMode,C=void 0===w?t.defaultProps.fillMode:w,k=o.themeColor,O=void 0===k?t.defaultProps.themeColor:k,E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),x=void 0!==c||void 0!==u||void 0!==d,D=void 0!==i,I=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=(0,a.A)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",o)}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:f});return r.createElement("button",p({ref:function(e){return n._element=e},"aria-pressed":l?this.state.selected:void 0},E,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(s.G.sizeMap[m]||m)]=m,e["k-button-".concat(v)]=v,e["k-button-".concat(C)]=C,e["k-button-".concat(C,"-").concat(O)]=Boolean(C&&O),e["k-rounded-".concat(s.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!D&&x,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),I,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:null,rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",h=["button"+f,".k-button-group > button"+f,".k-dropdownlist",".k-colorpicker"];var m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},v={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return m(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=(0,a.A)([v["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[v["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",g({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,s=(0,a.A)(e.props.className,((i={})[v["group-start"]]=o?n:0===t,i[v["group-end"]]=o?0===t:n,i)),l=g(g({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=g(g(g(g({},e.props),s?{className:s}:{}),Object.keys(l).length?{style:l}:{}),void 0!==c?{disabled:c}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),b=n(198),w=n(493),C=n(407),k=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:(0,a.A)("k-item",e.className,{"k-focus":e.focused}),tabIndex:-1,onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:(0,a.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:(0,a.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};k.displayName="KendoReactButtonItem";var O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),x=function(e,t,n,o){if(n)return e;var r=Math.min(o-1,Math.max(0,e));switch(t){case w.R.enter:case w.R.space:case w.R.esc:return-1;case w.R.up:case w.R.left:return r-1<0?o-1:r-1;case w.R.down:case w.R.right:return r+1>=o?0:r+1;case w.R.home:return 0;case w.R.end:return o-1;default:return e}},D=n(994),I=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},S="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),_=n(827),P=n(259);const N="bottom",R="center",M="middle",A="left",T="right",L="top",j="fit",B="flip",z="none";var W,F,U,K=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},H=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&a!==R&&a!==M&&i!==R&&i!==M){var c=i===L||i===A;t<0&&c?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!c&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},X=(W=function(e){if(!Z())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},U=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return U||(F=W.apply(void 0,e),U=!0),F}),Z=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const Y={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:X,canUseDOM:Z};function G(e){return e.ownerDocument||e.document||e}const V=function(e){return G(e).defaultView},q=function(e){return G(e).documentElement};var $=0;function J(){if(!$&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),$=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return $}function Q(e){var t=V(e),n=q(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=J()),o}function ee(e){var t=q(e),n=V(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const te=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function ne(e){return e===(e.ownerDocument||{}).body?ee(e):{x:e.scrollLeft,y:e.scrollTop}}const oe=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||q(e)};function re(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ie(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var ae=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return Y.canUseDOM()?window:null},le=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},ue=function(e){if(!e||!Y.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},pe=function(){return Y.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},de={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,c=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===N&&(d+=t.height),s!==R&&s!==M||(d+=Math.round(t.height/2)),c===N&&(d-=o.height,p*=-1),c!==R&&c!==M||(d-=Math.round(o.height/2),p*=-1),a===T&&(f+=t.width),a!==R&&a!==M||(f+=Math.round(t.width/2)),l===T&&(f-=o.width,u*=-1),l!==R&&l!==M||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=Q(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ae.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?te(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=te(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?oe(t):null,r=function(e,t){var n=V(e),o=n.getComputedStyle(e),r=te(e),i=t||oe(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var c=n.getComputedStyle(i);(l=te(i)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,s=r.height,l=r.width,c=function(e,t){return e?ne(e):function(e){var t=oe(e);return t?ne(t):{x:0,y:0}}(t)}(o,e),u=c.x,p=c.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+u*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,c=o.left,u=o.height,p=o.width,d=a.height,f=a.width,h=s.horizontal||0,m=s.vertical||0,g=0,v=0,y=i.vertical===j,b=i.horizontal===j,w=i.vertical===B,C=i.horizontal===B;y&&(v+=K(l,u,d)),b&&(g+=K(c,p,f)),w&&(v+=H({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),C&&(g+=H({margin:h,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=w&&0!==v,O=C&&0!==g,E=y&&0!==v,x=b&&0!==g;return{flipped:O||k,fitted:E||x,flip:{horizontal:O,vertical:k},fit:{horizontal:x,vertical:E},offset:{left:g,top:v}}},scrollPosition:ee,scrollableParents:function(e){var t=[];if(!Y.canUseDOM())return t;for(var n=e.parentElement;n;)(le.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ue,stackingElementOffset:function(e){var t=ue(e);return t?te(t):null},stackingElementScroll:function(e){var t=ue(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ue(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ue(e))},windowViewPort:Q,zoomLevel:pe,isZoomed:function(){return pe()>1},zIndex:function(e,t){if(!e||!Y.canUseDOM())return null;var n=function(e,t){for(var n,o,r=re(e),i=t;i&&(n=ie(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(re(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const fe=de;const he=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"!==s&&fe.hasOffsetParent(n)?function(e,t,n,o){var r=Y.eitherRect(fe.position(e,t,o),n);return Y.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:fe.scrollPosition(t)}(e,t),i=Y.eitherRect(fe.offset(e),n),a=2*o,s=fe.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=fe.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),fe.removeScroll(fe.addScroll(Y.removeStackingOffset(Y.scaleRect(i,o),l),s),r)}(t,n,a,l),u=Y.scaleRect(fe.offset(n),l);return fe.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var me={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672914110,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ve=function(){return ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve.apply(this,arguments)};function ye(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var be,we={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(be||(be={}));var Ce="k-animation-container-shown",ke=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:be.hidden,previous:be.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:be.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,c=t.scale,u=t.positionMode,p=e.style,d=p.width,f=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var h=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=fe.offsetAtPoint(o,n),u=Y.scaleRect(c,l),p=Y.scaleRect(fe.offset(t),l),d=Y.eitherRect(p,n),f=e.viewPort||fe.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=fe.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),m=fe.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:he({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:u,scale:c}),margin:n.props.margin});if(e.style.top=h.offset.top+"px",e.style.left=h.offset.left+"px",e.style.width=d,e.style.height=f,n._collisions={fit:h.fit,fitted:h.fitted,flip:h.flip,flipped:h.flipped},n.props.onPosition){var m={target:n,flipped:h.flipped,fitted:h.fitted};n.props.onPosition.call(void 0,m)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(Ce),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),I(e),e.style.display="exit"===o?"none":"",r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){I(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};S?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(Ce),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===be.hiding&&n.state.previous===be.shown&&n.setState({current:be.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,l.s)(me),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=void 0,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=void 0),s=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return ge(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,p=e.offset,d=e.contentKey,f=ve(ve({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:c,style:u,offset:p,contentKey:d}});return e.show?t.current===be.hidden||t.current===be.hiding?ve(ve({},f),{current:be.showing,previous:t.current}):t.current===be.showing?ve(ve({},f),{current:be.shown,previous:t.current}):t.current!==be.shown||ye(p,t.props.offset)&&ye(r,t.props.anchorAlign)&&ye(i,t.props.appendTo)&&ye(a,t.props.collision)&&ye(s,t.props.popupAlign)&&ye(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ve(ve({},f),{current:be.reposition,previous:t.current}):t.current===be.hiding||t.current===be.hidden?ve(ve({},f),{current:be.hidden,previous:t.current}):ve(ve({},f),{current:be.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===be.showing&&this._popup?this.show(this._popup):this.state.current===be.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===be.reposition&&this.state.previous===be.shown?this.setState({current:be.shown,previous:this.state.current}):this.state.current===be.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===be.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,l=t.id,c=t.positionMode,u=this.props.appendTo?this.props.appendTo:_.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===be.reposition&&this.state.previous===be.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===be.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(P.$.Provider,{value:f},r.createElement("div",{className:(0,a.A)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:ve({zIndex:f},p)},r.createElement("div",{className:(0,a.A)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?D.createPortal(h,u):h}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=fe.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:be.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([j,B,z]),vertical:i.oneOf([j,B,z])}),anchorAlign:i.shape({horizontal:i.oneOf([A,R,T]),vertical:i.oneOf([L,R,N])}),popupAlign:i.shape({horizontal:i.oneOf([A,R,T]),vertical:i.oneOf([L,R,N])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:j,vertical:B},anchorAlign:{horizontal:A,vertical:N},popupAlign:{horizontal:A,vertical:L},offset:we,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=P.$,t.displayName="PopupComponent",t}(r.Component),Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oe.apply(this,arguments)},Ee=r.createContext((function(e){return e})),xe=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(ke,Oe({ref:t},n))}));function De(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Ie(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}xe.displayName="Popup";var Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.list=null,n.guid=(0,b.M)(),n.skipFocus=!1,n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==w.R.down?n.opened&&e.keyCode===w.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=void 0;if(e.keyCode===w.R.enter||e.keyCode===w.R.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(o={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,o.opened))):n.opened&&e.keyCode===w.R.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===w.R.up||e.keyCode===w.R.down||e.keyCode===w.R.left||e.keyCode===w.R.right;e.altKey||!i&&e.keyCode!==w.R.home&&e.keyCode!==w.R.end||e.preventDefault()}o&&n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.onFocus=function(e){n.skipFocus||((0,C.N)(n.props.onFocus,e,n,void 0),n.setState({focused:!0}))},n.onItemClick=function(e,t){var o=n.opened;o&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),o&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1,opened:!1}),(0,C.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){(0,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Se(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===E})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,l=o.style,c=o.tabIndex,u=o.disabled;return r.createElement("div",{id:i,style:l,className:(0,a.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(s.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:u||void 0,tabIndex:c,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":u,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),r.createElement(d,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",className:"k-split-button-arrow",disabled:u||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,C.N)(this.props.onButtonClick,e,this,void 0):(0,C.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(xe,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Ie(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(k,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pe(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(r.Component),Re=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(){return Me=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.list=null,n.skipFocus=!1,n.guid=(0,b.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==w.R.down?n.opened&&e.keyCode===w.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Me({},n.state);if(e.keyCode===w.R.enter||e.keyCode===w.R.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),o.focusedIndex=n.opened?-1:0,o.opened=!n.opened,n.dispatchPopupEvent(e,o.opened)):n.opened&&e.keyCode===w.R.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===w.R.up||e.keyCode===w.R.down||e.keyCode===w.R.left||e.keyCode===w.R.right;e.altKey||!i&&e.keyCode!==w.R.home&&e.keyCode!==w.R.end||e.preventDefault()}n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.handleFocus=function(e){n.skipFocus||(n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,C.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,C.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){(0,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Re(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,s=o.style,l=o.tabIndex,c=o.disabled;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Ne})).map((function(e){return e.props})),r.createElement("div",{id:i,style:s,className:(0,a.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,C.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(xe,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Ie(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,ref:this.listRef,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(k,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Le=function(){return Le=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Le.apply(this,arguments)},je=function(e){function t(n){var o=e.call(this,n)||this;return o._element=null,o.offsetHeight=0,o.offsetWidth=0,o.buttons=[],o.focusedSelector=o.selectors.map((function(e){return e+":focus"})).join(","),o.setTabIndex=function(e){var n=o.props.tabIndex,r=void 0===n?t.defaultProps.tabIndex:n;o.buttons.forEach((function(t,n){t.tabIndex=n===e?r:-1}))},o.onKeyDown=function(e){var t=e.target;if((e.keyCode===w.R.left||e.keyCode===w.R.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===w.R.left?o.focusButton(n,n-1):o.focusButton(n,n+1)}},o.onWindowResize=function(e){var t=o.element;if(t){var n=t.offsetWidth,r=t.offsetHeight;if(o.offsetWidth!==n||o.offsetHeight!==r){o.offsetWidth=n,o.offsetHeight=r;var i={offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight};o.props.onResize&&o.props.onResize.call(void 0,Le(Le({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Te(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-widget k-toolbar",this.props.className),style:this.props.style,role:void 0!==this.props.role?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var o=this.props.tabIndex,r=void 0===o?t.defaultProps.tabIndex:o,i=this.buttons[n];if(i){i.tabIndex=r,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,role:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Be(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("span",{id:this.props.id,className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(r.PureComponent),We=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){return r.createElement(ze,{className:"k-separator"})},t}(r.PureComponent),Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null);r.useImperativeHandle(o,(function(){return{element:n.current}})),r.useImperativeHandle(t,(function(){return{element:n.current}}));var i=r.useMemo((function(){return(0,a.A)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ue.displayName="KendoReactToolbarSpacer",Ue.propTypes={className:i.string};var Ke,He,Xe,Ze,Ye=n(199),Ge=n(659),Ve=n(322),qe=n(703),$e=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(Ke||(Ke={})),function(e){e.toggle="toggle",e.remove="remove"}(He||(He={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Xe||(Xe={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ze||(Ze={}));var Je=function(){return Je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Je.apply(this,arguments)},Qe=r.createContext([null,function(e){}]),et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ye.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,g=e.size,v=e.className,y=e.ariaDescribedBy,b=e.ariaLabelledBy,w=e.selection,C=void 0===w?rt.selection:w,k=e.value,O=void 0===k?rt.defaultValue:k,E=e.defaultData,x=void 0===E?rt.defaultData:E,D=e.valueField,I=void 0===D?rt.valueField:D,S=e.textField,_=void 0===S?rt.textField:S,P=e.onChange,N=e.onDataChange,R=r.useMemo((function(){return p||at}),[p,at]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var M=r.useCallback((function(e,t){P&&o.current&&P.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[P]),A=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case Ke.single:switch(t.type){case He.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case He.remove:return t.payload===e?null:e;default:return e}case Ke.multiple:switch(t.type){case He.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):$e($e([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case He.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):$e($e([],e,!0),[t.payload],!1):e;default:return e}case Ke.none:return null;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:C,state:O},M),T=A[0],L=A[1],j=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),B=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case Ze.add:break;case Ze.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Ze.reorder:break;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(e.data||x,{state:e.data,valueField:I},j),z=B[0],W=B[1],F=r.useCallback((function(e,t){return e.push(t[I]),e}),[I]),U=r.useMemo((function(){return e.data||z}),[e.data,z]),K=r.useMemo((function(){return O||T}),[O,T]),H=r.useMemo((function(){return U.reduce(F,[])}),[U,F]),X=r.useCallback((function(e){return(0,Ge.Y)(I)(e)}),[I]),Z=r.useCallback((function(e){return(0,Ge.Y)(_)(e)}),[_]),Y=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Xe.next:return n===t.items.length-1?e:t.items[n+1];case Xe.prev:return 0===n?e:t.items[n-1];case Xe.current:return t.payload;case Xe.reset:return null;default:return e}}(t.payload,Je(Je({},t),e));o(n)}]}({items:H}),G=Y[0],V=Y[1],q=(0,Ve.i)(e,o);return r.createElement(Qe.Provider,{value:[K,L]},r.createElement(et.Provider,{value:[G,V]},r.createElement(tt.Provider,{value:[U,W]},r.createElement("div",Je({ref:i},q,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,qe.p)(h,m,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":m},n["k-chip-list-".concat(s.G.sizeMap[g]||g)]=g,n),v),"aria-labelledby":b,"aria-describedby":y}),U.map((function(e,t){return r.createElement(R,{role:"option",dataItem:e,size:g,key:[X(e),t].join("-"),text:Z(e),value:X(e)})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},rt={chip:at,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},it.apply(this,arguments)},at=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ye.n)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(Qe),d=p[0],f=p[1],h=r.useContext(et),m=h[0],g=h[1],v=r.useContext(tt)[1],y=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return m===e.value}),[e.value,m]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var C=r.useCallback((function(t){f({type:He.toggle,payload:e.value,event:t})}),[f,e.value]),k=r.useCallback((function(t){e.removable&&(v({type:Ze.remove,payload:e.value,event:t}),g({type:Xe.reset,payload:e.value,event:t}),f({type:He.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,v,g,f]),O=r.useCallback((function(t){switch(t.keyCode){case w.R.left:g({type:Xe.prev,payload:e.value,event:t});break;case w.R.right:g({type:Xe.next,payload:e.value,event:t});break;case w.R.enter:f({type:He.toggle,payload:e.value,event:t});break;case w.R.delete:k(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,g,f,k]),E=r.useCallback((function(t){g({payload:e.value,type:Xe.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,g]),x=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),D=(0,Ve.i)(e,o,{onClick:C});return r.createElement("div",it({},D,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,qe.p)(e.tabIndex,e.disabled,void 0),className:(0,a.A)("k-chip",(n={"k-rtl":"rtl"===u,"k-disabled":e.disabled,"k-selected":y,"k-focus":b},n["k-chip-".concat(s.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(s.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":y,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:E,onBlur:x,onKeyDown:O}),y&&e.selectedIcon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:(0,a.A)("k-chip-action","k-chip-remove-action")},r.createElement("span",{className:(0,a.A)("k-icon",e.removeIcon),onClick:k}))))})),st={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};at.displayName="KendoReactChip",at.propTypes=st,at.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},lt.apply(this,arguments)},ct=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,g=e.onClick,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=r.useRef(null),b=r.useCallback((function(){y.current&&y.current.focus()}),[]),w=r.useCallback((function(){return{element:y.current,focus:b}}),[b]);r.useImperativeHandle(t,w);var C=r.useCallback((function(e){g&&void 0!==d&&!o&&g(e,d)}),[g,d]),k=r.useMemo((function(){return(0,a.A)("k-fab-item",{"k-focus":u,"k-disabled":o},n)}),[n,o,u]),O=h;return r.createElement("li",lt({ref:y,id:c,className:k,style:l,role:"menuitem",tabIndex:(0,qe.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:C,onMouseDown:m,onPointerDown:m},v),O?r.createElement(O,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:(0,a.A)("k-fab-item-icon k-icon k-i-".concat(s))})))}));ct.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ct.displayName="KendoFloatingActionButtonItem";var ut="16px",pt=function(e){return"number"==typeof e?e+"px":e},dt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ht=function(){return ht=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ht.apply(this,arguments)},mt=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?gt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,g=e.item,v=e.text,y=e.positionMode,k=void 0===y?gt.positionMode:y,O=e.shape,E=void 0===O?gt.shape:O,x=e.size,D=void 0===x?gt.size:x,I=e.style,S=e.rounded,_=void 0===S?gt.rounded:S,N=e.themeColor,R=void 0===N?gt.themeColor:N,M=e.overlayStyle,A=e.tabIndex,T=e.accessKey,L=e.popupSettings,j=void 0===L?{}:L,B=e.modal,z=e.onClick,W=e.onItemClick,F=e.onFocus,U=e.onBlur,K=e.onKeyDown,H=e.onOpen,X=e.onClose,Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),Y=(0,P.u)(),G=Y?Y+2:100,V=r.useRef(null),q=r.useRef(null),$=r.useRef(null),J=r.useRef(null),Q=r.useCallback((function(){q.current&&q.current.focus()}),[]),ee=r.useCallback((function(){return{element:q.current,focus:Q}}),[Q]);r.useImperativeHandle(V,ee),r.useImperativeHandle(t,(function(){return V.current}));var te=r.useState(!1),ne=te[0],oe=te[1],re=r.useState(!1),ie=re[0],ae=re[1],se=r.useState(-1),le=se[0],ce=se[1],ue=r.useMemo((function(){return(0,b.M)()}),[]),pe=(0,Ye.n)(q,e.dir),de="rtl"===pe,fe=r.useMemo((function(){return(0,b.M)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pt(n.x):ut,s=n&&void 0!==n.x?"calc(50% + ".concat(pt(n.x),")"):"50%",l=n&&void 0!==n.y?pt(n.y):ut,c=n&&void 0!==n.y?"calc(50% + ".concat(pt(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,o),"center"===r?s:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?c:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(q,o,i,de)}),[q,o,i,de]),r.useEffect((function(){ie&&q&&q.current&&q.current.focus()}),[ie,q]);var he=r.useCallback((function(e,t){m&&(0,C.N)(t?H:X,e,ee(),void 0)}),[H,X,m]),me=r.useCallback((function(e){e.target&&!p&&(!m&&z?(0,C.N)(z,e,ee(),void 0):(oe(!ne),ae(!0),ce(ne?-1:0),he(e,!ne)))}),[oe,ae,ce,z,he,ne,m,p]),ge=r.useCallback((function(e){ae(!0),ce(ne?0:-1),F&&(0,C.N)(F,e,ee(),void 0)}),[F,ae,ce]),ve=r.useCallback((function(e){ae(!1),oe(!1),ce(-1),(0,C.N)(U,e,ee(),void 0),ne&&he(e,!1)}),[U,ae,oe,ce,he]),ye=r.useCallback((function(e){e.preventDefault()}),[]),be=r.useCallback((function(e,t){m&&(m[t].disabled||(0,C.N)(W,e,ee(),{itemProps:m[t],itemIndex:t}))}),[W]),we=r.useCallback((function(e,t){e.target&&m&&(ce(t),oe(!1),be(e,t),he(e,!1))}),[ce,oe,be,he]),Ce=r.useCallback((function(e){document.activeElement===q.current&&e.preventDefault()}),[q,document.activeElement]),ke=r.useCallback((function(e){var t=le,n=m?m.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case w.R.enter:case w.R.space:t>=0&&be(e,t),e.preventDefault(),oe(!ne),ce(ne?-1:0);break;case w.R.esc:e.preventDefault(),oe(!1),ce(-1);break;case w.R.home:e.preventDefault(),ce(0);break;case w.R.end:e.preventDefault(),ce(n);break;case w.R.down:case w.R.right:e.preventDefault(),t<n&&!r&&ce(t+1),t>0&&r&&ce(t-1);break;case w.R.up:case w.R.left:e.preventDefault(),t>0&&!r&&ce(t-1),t<n&&r&&ce(t+1)}(0,C.N)(K,e,ee(),void 0)}),[K,le,ce,de,oe]),Oe=r.useMemo((function(){var e;return(0,a.A)("k-fab k-fab-solid",((e={})["k-fab-".concat(E)]=E,e["k-fab-sm"]="small"===D,e["k-fab-md"]="medium"===D,e["k-fab-lg"]="large"===D,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===k,e["k-pos-fixed"]="fixed"===k,e["k-focus"]=ie,e["k-rounded-".concat(s.G.roundedMap[_]||_)]=_,e["k-fab-solid-".concat(R)]=R,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[R,D,_,E,p,k,o,ie,u]),Ee=m&&m.map((function(e,t){return r.createElement(ct,ht({},e,{key:t,index:t,id:"".concat(fe,"-").concat(t),disabled:p||e.disabled,focused:le===t,dataItem:e,item:g,className:(0,a.A)(e.className,(n=pe||"ltr",i=o.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:we,onDown:Ce}));var n,i})),De=d&&!v,Ie=(q.current?q.current.offsetWidth:0)/2-16;return r.createElement(P.$.Provider,{value:G},r.createElement(r.Fragment,null,r.createElement("button",ht({ref:q,id:h||ue,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?ne:void 0,"aria-haspopup":!!m,"aria-label":"".concat(v||""," floatingactionbutton"),"aria-owns":m?fe:void 0,"aria-activedescendant":le>=0&&m?"".concat(fe,"-").concat(le):void 0,tabIndex:(0,qe.p)(A,p),accessKey:T,dir:pe,disabled:p,className:Oe,style:I,onClick:me,onMouseDown:ye,onFocus:ge,onBlur:ve,onKeyDown:ke},Z),d?r.createElement("span",{role:"presentation",className:(0,a.A)("k-fab-icon k-icon k-i-".concat(d))}):f?r.createElement("span",{role:"presentation",className:f}):null,v&&r.createElement("span",{className:"k-fab-text"},v)),B&&ne&&r.createElement("div",{className:"k-overlay",style:ht({zIndex:G},M)}),r.createElement(xe,{ref:J,anchor:q.current,show:ne,animate:j.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",j.popupClass),anchorAlign:j.anchorAlign||dt(o,de),popupAlign:j.popupAlign||ft(o,de),style:{boxShadow:"none"}},r.createElement("ul",{ref:$,role:"menu","aria-labelledby":h,id:fe,className:(0,a.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:De?Ie:void 0,paddingRight:De?Ie:void 0}},Ee))))}));mt.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf([null,"rectangle","square"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:i.bool,overlayStyle:i.object};var gt={align:{vertical:"bottom",horizontal:"end"},shape:null,size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};mt.displayName="KendoFloatingActionButton"},827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},47:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},407:(e,t,n)=>{function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,{N:()=>o})},100:(e,t,n)=>{n.d(t,{E:()=>r});var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},703:(e,t,n)=>{n.d(t,{p:()=>o});var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},659:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(100),r={};function i(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},198:(e,t,n)=>{n.d(t,{M:()=>o});var o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},199:(e,t,n)=>{n.d(t,{n:()=>r});var o=n(899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},322:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(899),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},493:(e,t,n)=>{n.d(t,{R:()=>o});var o={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},556:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>V,DragAndDrop:()=>De,Draggable:()=>Be,Droppable:()=>We,FormComponent:()=>g,Icon:()=>re,Keys:()=>w.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>h,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>X,dispatchEvent:()=>B.N,extendDataItem:()=>A,focusFirstFocusableChild:()=>m,getItemPath:()=>T,getScrollbarWidth:()=>k,getTabIndex:()=>v.p,getter:()=>y.Y,guid:()=>b.M,hasRelativeStackingContext:()=>j,kendoThemeMaps:()=>Fe.G,mapTree:()=>R,mapTreeItem:()=>M,memoizeOne:()=>Ke,noop:()=>C,setScrollbarWidth:()=>O,setter:()=>I,useAsyncFocusBlur:()=>W,useCollection:()=>J,useCustomComponent:()=>$,useDir:()=>Y.n,useDocument:()=>Q,useDraggable:()=>je,useDroppable:()=>ze,useMouse:()=>q.i,usePropsContext:()=>K,useRtl:()=>G,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>L.s,withPropsContext:()=>Z});var o=n(259),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),a=n(827),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},l=n(47),c=n(899),u=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return u(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function h(e){return e.map((function(e){return f(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},v=n(703),y=n(659),b=n(198),w=n(493),C=function(){},k=function(){return!(!a.N||!document.body)&&(new i).scrollbarWidth},O=function(){if(!a.N||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},E=n(100),x={undefined:function(e){return e}},D=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(e){if(x[e])return x[e];var t=(0,E.E)(e);return x[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||D(t[a+1],o);r[t[i]]=n},x[e]}var S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},_=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function P(e,t,n){var o;return n?S(S({},e),((o={})[t]=n.length?_([],n,!0):void 0,o)):e&&e[t]?_([],e[t],!0):[]}function N(e,t,n){if(e[t]){var o=P(e,t).map((function(e){return N(e,t,n)}));return n(P(e,t,o))}return n(e)}var R=function(e,t,n){return _([],e.map((function(e){return N(e,t,n)})),!0)},M=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],c=o(s[l]);s.splice(l,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},T=function(e,t,n){var o=[],r=_([],t,!0);if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},L=n(6),j=function(e){if(!a.N)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r},B=n(407),z=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function W(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call(void 0,e[0]),i.current||(i.current=!0,t&&t.call.apply(t,z([void 0],e,!1)))}),[i,t,o]),u=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call(void 0,e[0]),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,z([void 0],e,!1)))}))}),[i,s,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var F=function(){return F=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},F.apply(this,arguments)},U=function(e){var t=e.children,n=W({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return c.createElement(c.Fragment,null,t.call(void 0,F({},n)))},K=function(e,t){return c.useContext(e)(t)},H=function(){return H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},H.apply(this,arguments)},X=function(){return c.createContext((function(e){return e}))},Z=function(e,t){return c.forwardRef((function(n,o){var r=K(e,n);return c.createElement(t,H({},r,{ref:o}))}))},Y=n(199);function G(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var V,q=n(322),$=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(V||(V={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case V.add:t.current.push(e.item);break;case V.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Q=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},ee=function(e){var t=Q(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},te=n(189),ne={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oe.apply(this,arguments)},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,u=e.id,p=e.tabIndex,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:h.current}})),c.useImperativeHandle(t,(function(){return f.current}));var m=c.useMemo((function(){return i||ie.size}),[i]),g=c.useMemo((function(){return a||ie.flip}),[a]),v=c.useMemo((function(){var e;return(0,l.A)("k-icon","k-i-"+o,((e={})["k-color-".concat(r)]=r,e["k-flip-h"]="horizontal"===g||"both"===g,e["k-flip-v"]="vertical"===g||"both"===g,e),ne[m],n)}),[o,r,m,g,n]),y=(0,q.i)(e,f);return c.createElement("span",oe({ref:h},d,y,{className:v,id:u,tabIndex:p,style:s,role:"presentation"}))}));re.propTypes={style:te.object,classNames:te.string,name:te.string,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ae.apply(this,arguments)},se=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.id,u=e.tabIndex,p=e.size,d=e.style,f=e.svgStyle,h=e.themeColor,m=e.viewBox,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:v.current}}));var y=c.useMemo((function(){return i?i.name:le.icon}),[i]),b=c.useMemo((function(){return p||le.size}),[p]),w=c.useMemo((function(){return a||le.flip}),[a]),C=c.useMemo((function(){return m||le.viewBox}),[m]),k=c.useMemo((function(){var e;return(0,l.A)("k-svg-icon","k-svg-i-"+y,((e={})["k-color-".concat(h)]=h,e["k-flip-h"]="horizontal"===w||"both"===w,e["k-flip-v"]="vertical"===w||"both"===w,e),ne[b],o)}),[y,h,b,w,o]),O=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},d):e.width?ae({width:e.width,height:e.width},d):e.height?ae({width:e.height,height:e.height},d):ae({},d)}),[e.width,e.height,d]);return c.createElement("span",{className:k,style:O,ref:v},c.createElement("svg",ae({id:s,className:r,style:f,"aria-hidden":!0,tabIndex:u,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:C,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},g),i?void 0:n))}));se.propTypes={style:te.object,classNames:te.string,children:te.any,icon:te.object,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var ce={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ue={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},fe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},he={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ve=function(){return ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve.apply(this,arguments)},ye=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,s=t.fontWeight,l=t.textAlign,u=t.textTransform,p=t.themeColor,d=t.margin,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var g=e;return c.createElement(g,ve({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],he[l],me[u],ge[p],function(){if(void 0!==d){if("string"==typeof d)return[pe[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,o,r;null!==d[t]&&void 0!==d[t]&&e.push((n=t,r="string"==typeof(o=d[t])?de[o]:o,"".concat(fe[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},f),t.children)}));return t.propTypes={style:te.object,className:te.string,fontSize:te.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:te.oneOf(["light","normal","bold"]),margin:te.oneOfType([te.number,te.object,te.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:te.oneOf(["left","right","center","justify"]),textTransform:te.oneOf(["lowercase","uppercase","capitalize"]),themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},be={h1:ye("h1"),h2:ye("h2"),h3:ye("h3"),h4:ye("h4"),h5:ye("h5"),h6:ye("h6"),p:ye("p"),code:ye("code"),pre:ye("pre")},we=function(){return we=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},we.apply(this,arguments)},Ce=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,we(we({},t),{value:e}))}),[n,i])]},ke=c.createContext([void 0,C]),Oe=c.createContext([void 0,C]),Ee=c.createContext([[],C,C]),xe=c.createContext([[],C,C]),De=function(e){var t=Ce(null,void 0),n=t[0],o=t[1],r=Ce(null,void 0),i=r[0],a=r[1],s=J([]),l=s[0],u=s[1],p=J([]),d=p[0],f=p[1];return c.createElement(ke.Provider,{value:[n,o]},c.createElement(Oe.Provider,{value:[i,a]},c.createElement(Ee.Provider,{value:[l,function(e){u({type:V.add,item:e})},function(e){u({type:V.remove,item:e})}]},c.createElement(xe.Provider,{value:[d,function(e){f({type:V.add,item:e})},function(e){f({type:V.remove,item:e})}]},e.children))))};De.displayName="KendoReactDragAndDrop";var Ie,Se=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Pe=function(e){var t=Se(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Ne=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Re=function(e){var t=Pe(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Ne(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Ie||(Ie={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Me:l,u=n.onIsScrollingChange,p=void 0===u?Me:u,d=n.onVelocityChange,f=void 0===d?Me:d,h=n.onOffsetChange,m=void 0===h?Me:h,g=n.onPageOffsetChange,v=void 0===g?Me:g,y=n.onClientOffsetChange,b=void 0===y?Me:y,w=n.onScrollOffsetChange,C=void 0===w?Me:w,k=n.onInitialScrollOffsetChange,O=void 0===k?Me:k,E=t.payload,x=E.element,D=E.hint,I=e.autoScrollDirection,S=e.scrollableParent,_=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(_.type){case Ie.POINTER_DOWN:if(_.type===Ie.POINTER_DOWN&&(!_.originalEvent.isPrimary||0!==_.originalEvent.button))break;case Ie.MOUSE_DOWN:if(_.type===Ie.MOUSE_DOWN&&_.originalEvent.which&&_.originalEvent.which>1||e.ignoreMouse)break;case Ie.TOUCH_START:if(_.type===Ie.TOUCH_START&&1!==_.originalEvent.touches.length)break;case Ie.START:var P=S||Re(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),b({x:_.clientX,y:_.clientY}),v({x:_.pageX,y:_.pageY}),m({x:_.offsetX,y:_.offsetY}),c(!0),E.onPress&&E.onPress(_);break;case Ie.SCROLL:if(_.type===Ie.SCROLL&&!e.pressed)break;var N=S||Re(x),R=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};_.scrollX=R.x-e.initialScrollOffset.x,_.scrollY=R.y-e.initialScrollOffset.y,C({x:_.scrollX,y:_.scrollY});case Ie.POINTER_MOVE:if(_.type===Ie.POINTER_MOVE&&!_.originalEvent.isPrimary)break;case Ie.MOUSE_MOVE:case Ie.TOUCH_MOVE:if(_.type===Ie.TOUCH_MOVE&&1!==_.originalEvent.touches.length)break;case Ie.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==_.originalEvent.type&&x){var M=_e(x),A=S||Re(M.elementFromPoint(_.clientX,_.clientY)),T=(o=_.clientX,r=_.clientY,i=function(e,t){var n=Pe(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(A,function(e){var t=_e(e);return t&&t.defaultView||window}(x)),a={x:0,y:0},s=50,o-i.left<s?a.x=-(s-(o-i.left)):i.right-o<s&&(a.x=s-(i.right-o)),r-i.top<s?a.y=-(s-(r-i.top)):i.bottom-r<s&&(a.y=s-(i.bottom-r)),a);f({x:I&&!1===I.horizontal?0:T.x,y:I&&!1===I.vertical?0:T.y}),p(0!==T.y||0!==T.x)}!e.drag&&E.onDragStart&&E.onDragStart(_),E.onDrag&&E.onDrag(_);var L=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,c=s-r;if(i<a&&r<s){var u=o.width*o.height,p=n.width*n.height,d=l*c;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(D||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||x)}))),j=e.drops.find((function(e){return e.element===L}));j&&L&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(_.clientX,_.clientY,S||Re(L))&&L!==x?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_),j.onDragEnter&&j.onDragEnter(_)):j.onDragOver&&j.onDragOver(_):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}b({x:_.clientX,y:_.clientY}),v({x:_.pageX,y:_.pageY});break;case Ie.POINTER_UP:if(_.type===Ie.POINTER_UP&&!_.originalEvent.isPrimary)break;case Ie.MOUSE_UP:case Ie.TOUCH_END:if(_.type===Ie.TOUCH_END&&1!==_.originalEvent.touches.length)break;case Ie.END:c(!1),p(!1),C({x:0,y:0}),E.onRelease&&E.onRelease(_),e.drop&&e.drop.onDrop&&e.drop.onDrop(_),e.drag&&E.onDragEnd&&E.onDragEnd(_);break;case Ie.POINTER_CANCEL:case Ie.CONTEXT_MENU:case Ie.TOUCH_CANCEL:case Ie.CANCEL:c(!1),p(!1),C({x:0,y:0}),E.onDragEnd&&E.onDragEnd(_),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}},Te=function(e,t){if(e){var n,o;e===Pe(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Le=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function je(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?C:o,i=t.onRelease,a=void 0===i?C:i,s=t.onDragStart,l=void 0===s?C:s,u=t.onDrag,p=void 0===u?C:u,d=t.onDragEnd,f=void 0===d?C:d,h=n.hint,m=void 0===h?null:h,g=n.mouseOnly,v=void 0!==g&&g,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,k=void 0===w?null:w,O=c.useState(!1),E=O[0],x=O[1],D=c.useState(!1),I=D[0],S=D[1],_=Le(Oe)[0],P=Le(ke),N=P[0],R=P[1],M=c.useContext(xe)[0],A=c.useContext(Ee),T=A[0],L=A[1],j=A[2],B=c.useRef({x:0,y:0}),z=c.useRef(),W=c.useRef(!1),F=c.useRef(),U=c.useRef(null),K=c.useRef(!1),H=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),Z=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),q=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!v&&q,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=c.useCallback((function(){return k&&k.current&&k.current.element?k.current.element:k?k.current:null}),[k]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ve,onDrag:ye,onDragEnd:be,onRelease:ge,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:N?N.current:null,drop:_?_.current:null,drags:T.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:E,ignoreMouse:W.current,scrollOffset:G.current,offset:H.current,pageOffset:X.current,initialScrollOffset:V.current,clientOffset:Z.current,initialClientOffset:Y.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[N,_,T,M,E,b,te,I]),ae=c.useCallback((function(e){x(e)}),[]),se=c.useCallback((function(e){S(e)}),[]),le=c.useCallback((function(e){B.current=e}),[]),ce=c.useCallback((function(e){H.current=e}),[]),ue=c.useCallback((function(e){Z.current=e}),[]),pe=c.useCallback((function(e){X.current=e}),[]),de=c.useCallback((function(e){Y.current=e}),[]),fe=c.useCallback((function(e){G.current=e}),[]),he=c.useCallback((function(e){V.current=e}),[]),me=c.useCallback((function(e){r(e)}),[r]),ge=c.useCallback((function(e){a(e)}),[a]),ve=c.useCallback((function(t){R(ne,{target:e.current,event:t}),l(t)}),[R,e,l]),ye=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){K.current||(R(null,{target:e.current,event:t}),f(t))}),[f,R,e]),we=c.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,he,ae,fe,se]),Ce=c.useCallback((function(e){we(e)}),[we]),De=c.useCallback((function(e){we(e)}),[we]),Ie=c.useCallback((function(e){we(e)}),[we]),Se=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){we(e)}),[we]),Pe=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),je=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Be=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),ze=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();W.current=!0,F.current=t.setTimeout((function(){W.current=!1}),2e3)}we(e)}),[we,re]),We=c.useCallback((function(e){we(e)}),[we]),Fe=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=c.useCallback((function(){return L(ne),function(){j(ne)}}),[j,L]);c.useEffect((function(){var e=re();if(I){var t=ee()||Re(document.elementFromPoint(Z.current.x,Z.current.y));e.clearInterval(z.current),z.current=e.setInterval((function(){Te(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(z.current)}}),[J,ee,re,I]),c.useEffect(Fe,[Fe]),c.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(U.current=Re(t),U.current&&U.current.addEventListener("scroll",We,{passive:!0}),t.addEventListener("pointerdown",Ce,{passive:!0})),E&&(n.addEventListener("pointermove",De),n.addEventListener("pointerup",Se,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",C,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",_e,{passive:!0}),v||(t.addEventListener("touchstart",je,{passive:!0}),E&&(t.addEventListener("touchmove",Be,{passive:!0}),t.addEventListener("touchend",ze,{passive:!0})))),E&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",We),t&&(t.removeEventListener("pointerdown",Ce),t.removeEventListener("mousedown",_e),t.removeEventListener("touchstart",je),t.removeEventListener("touchmove",Be),t.removeEventListener("touchend",ze)),n.removeEventListener("pointermove",De),n.removeEventListener("pointerup",Se,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",C),e.clearTimeout(F.current)}}),[E,re,J,oe,v,$,Me,_e,Pe,Ne,Ie,Ce,De,Se,ze,Be,je,We]),c.useEffect((function(){return function(){K.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),l=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),u=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return je(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function ze(e,t){void 0===t&&(t={onDragEnter:C,onDragOver:C,onDragLeave:C,onDrop:C});var n=t.onDragEnter,o=void 0===n?C:n,r=t.onDragOver,i=void 0===r?C:r,a=t.onDragLeave,s=void 0===a?C:a,l=t.onDrop,u=void 0===l?C:l,p=Le(Oe)[1],d=c.useContext(xe),f=d[1],h=d[2],m=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=c.useRef(null);c.useImperativeHandle(g,(function(){return{element:m(),onDragEnter:v,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var v=c.useCallback((function(t){p(g,{target:e.current,event:t}),o(t)}),[p,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),w=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),k=c.useCallback((function(){return f(g),function(){h(g)}}),[h,f]);c.useLayoutEffect(k,[k])}Be.displayName="KendoReactDraggable";var We=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),l=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return ze(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));We.displayName="KendoReactDroppable";var Fe=n(697);function Ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function Ke(e,t){void 0===t&&(t=Ue);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}},697:(e,t,n)=>{n.d(t,{G:()=>o});var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},6:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(302);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},302:e=>{e.exports=o},499:e=>{e.exports=r},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=t}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{var e=l;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0;var t=s(580);Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}});var n=s(379);Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return n.DialogActionsBar}});var o=s(891);Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return o.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return o.WindowPropsContext}});var r=s(617);Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return r.WindowActionsBar}})})(),l})()}));
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-dialogs',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1672914367,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dialogs',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1672914367,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-dialogs",["react","react-dom","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-licensing"],function(e,t){var u={},d={},c={},p={},m={},f={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(f,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={580:function(e,t,n){var r,i,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__assign||function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0,n(954)),y=n(493),a=n(895),w=n(348),s=n(379),v=n(811),l=n(811),u=n(363),d=n(147),M=n(56),n=(i=h.Component,o(c,i),c.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},c.prototype.render=function(){var t=this,e=void 0!==this.props.id?this.props.id:this.titleId,n=this.props,r=n.title,o=n.width,i=n.height,a=n.children,s=n.minWidth,l=n.dir,u=n.style,n=n.contentStyle,a=h.Children.toArray(a),d=this.getContent(a),a=this.getActionBar(a),c=r?{"aria-labelledby":e}:null,p=void 0===this.props.closeIcon||this.props.closeIcon,m=this.getCurrentZIndex(),f=h.createElement(v.ZIndexContext.Provider,{value:m},h.createElement("div",g({},((f={})[M.DATA_DIALOGS_ID]=this._id,f),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:l,style:g({zIndex:m},u),ref:function(e){return t.element=e}}),h.createElement("div",{className:"k-overlay"}),h.createElement("div",g({},c,{className:"k-widget k-window k-dialog",role:"dialog","aria-modal":!0,"aria-describedby":this.contentId,style:{width:o,height:i,minWidth:s}}),this.props.title&&h.createElement(w.DialogTitleBar,{closeIcon:p,onCloseButtonClick:this.onCloseDialog,id:e},r),h.createElement("div",{className:"k-window-content k-dialog-content",style:n,id:this.contentId},d),a)));return v.canUseDOM?null!==this.props.appendTo?y.createPortal(f,this.props.appendTo||document.body):f:null},c.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===s.DialogActionsBar})},c.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==s.DialogActionsBar})},c.prototype.generateTitleId=function(){return"dialog-title"+this._id},c.prototype.generateContentId=function(){return"dialog-content"+this._id},c.displayName="Dialog",c.propTypes={title:a.any,id:a.string,dir:a.string,style:a.object,closeIcon:a.bool,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string]),autoFocus:a.bool},c.defaultProps={autoFocus:!1},c.contextType=v.ZIndexContext,c);function c(e){var o=i.call(this,e)||this;return o.context=0,o._id=(0,v.guid)(),o.titleId=o.generateTitleId(),o.contentId=o.generateContentId(),o.onCloseDialog=function(e){e.preventDefault(),(0,v.dispatchEvent)(o.props.onClose,e,o,void 0)},o.onKeyDown=function(e){e.keyCode===v.Keys.esc&&o.props.onClose&&(e.preventDefault(),o.onCloseDialog(e));var t,n,r=o.element;r&&e.keyCode===v.Keys.tab&&(t=(r=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))[0],r=r[r.length-1],n=o.getDocument(),e.shiftKey?(n&&n.activeElement===t||n&&n.activeElement===o.element)&&(r.focus(),e.preventDefault()):n&&n.activeElement===r&&(t.focus(),e.preventDefault()))},o.getCurrentZIndex=function(){return o.state&&void 0!==o.context?o.state.zIndex>(o.context?o.context+M.ZINDEX_DIALOGS_STEP:0)?o.state.zIndex:o.context+M.ZINDEX_DIALOGS_STEP:o.context||M.DEFAULT_DIALOGS_ZINDEX},o.getDocument=function(){return o.props.appendTo?o.props.appendTo.ownerDocument:document},(0,l.validatePackage)(u.packageMetadata),o.state={zIndex:(0,d.getMaxZIndex)(o.getCurrentZIndex(),o.getDocument(),o._id)},o}t.DialogPropsContext=(0,v.createPropsContext)(),t.Dialog=(0,v.withPropsContext)(t.DialogPropsContext,n),t.Dialog.displayName="KendoReactDialog"},379:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.DialogActionsBar=function(e){var t,n=e.layout,n=void 0===n?a.layout:n,e=e.children,n=(0,i.classNames)("k-dialog-buttongroup","k-actions",((t={})["k-actions-".concat(n)]=n,t));return r.createElement("div",{className:n},e)},t.DialogActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"stretched"})},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var o=n(954),i=n(536);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.id,e=e.closeIcon;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:r},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},e&&o.createElement(i.Button,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action"})))}},522:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0,o=n(954).Component,i(a,o),a.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},a.prototype.render=function(){return this.props.children},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.MiddleLayerOptimization=n},259:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(t=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",t.FULLSCREEN="FULLSCREEN",t.MINIMIZED="MINIMIZED"},891:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0,n(954)),l=n(493),u=n(895),d=n(583),c=n(811),p=n(811),m=n(151),f=n(522),g=n(259),h=n(811),y=n(363),w=n(617),v=n(56),M=n(147),n=(o=s.Component,i(b,o),b.prototype.componentDidMount=function(){var e,t=this.getWindow(),t=(t&&t.addEventListener("resize",this.handleBrowserWindowResize),this.getDocument());this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},b.prototype.componentDidUpdate=function(){var e,t=this.getDocument();this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.render=function(){var t=this,e=s.Children.toArray(this.props.children),n=this.getContent(e),e=this.getActionBar(e),r=this.getCurrentZIndex(),o=(0,c.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),i=s.createElement(c.ZIndexContext.Provider,{value:r},s.createElement(s.Fragment,null,this.props.modal&&s.createElement("div",{className:"k-overlay",style:a({zIndex:r},this.props.overlayStyle)}),s.createElement("div",a({},((i={})[v.DATA_DIALOGS_ID]=this._id,i),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:o,style:a({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:r},this.props.style)}),s.createElement(f.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},s.createElement(p.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},s.createElement(d.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==g.windowStage.MINIMIZED?s.createElement(s.Fragment,null,s.createElement("div",{className:"k-window-content"},n),e):null,this.windowStage===g.windowStage.DEFAULT&&this.props.resizable?s.createElement(m.ResizeHandlers,{onResize:this.handleResize}):null))));return c.canUseDOM?null!==this.props.appendTo?l.createPortal(i,this.props.appendTo||document.body):i:null},Object.defineProperty(b.prototype,"top",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"left",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow(),e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow(),e=t?t.innerHeight:0}else this.windowStage===g.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),b.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===w.WindowActionsBar})},b.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==w.WindowActionsBar})},b.prototype.generateTitleId=function(){return"window-title-"+this._id},b.displayName="Window",b.propTypes={width:u.number,height:u.number,left:u.number,top:u.number,initialWidth:u.number,initialHeight:u.number,initialLeft:u.number,initialTop:u.number,minWidth:u.number,minHeight:u.number,resizable:u.bool,draggable:u.bool,title:u.any,shouldUpdateOnDrag:u.bool,stage:u.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:u.string,style:u.object,overlayStyle:u.object},b.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},b.contextType=c.ZIndexContext,b);function b(e){var m=o.call(this,e)||this;return m.context=0,m.draggable=null,m.offSetCoordinates={x:0,y:0},m._id=(0,c.guid)(),m.titleId=m.generateTitleId(),m.onKeyDown=function(e){if(e.target===e.currentTarget){var t=m.props.minWidth||120,n=m.props.minHeight||100;if(e.ctrlKey&&m.props.resizable){switch(e.keyCode){case c.Keys.up:e.preventDefault(),n<=m.height-5&&m.setState({height:m.height-5});break;case c.Keys.down:e.preventDefault(),m.setState({height:m.height+5});break;case c.Keys.left:t<=m.width-5&&m.setState({width:m.width-5});break;case c.Keys.right:m.setState({width:m.width+5});break;default:return}m.dispatchMoveEvent(m.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case c.Keys.up:m.windowStage===g.windowStage.MINIMIZED?(m.handleRestore(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})):m.windowStage===g.windowStage.DEFAULT&&(m.handleFullscreen(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.FULLSCREEN}));break;case c.Keys.down:m.windowStage===g.windowStage.FULLSCREEN?(m.handleRestore(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})):m.windowStage===g.windowStage.DEFAULT&&(m.handleMinimize(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case c.Keys.esc:return void(m.props.onClose&&m.handleCloseWindow(e));case c.Keys.up:m.setState({top:m.state.top-5});break;case c.Keys.down:m.setState({top:m.state.top+5});break;case c.Keys.left:m.setState({left:m.state.left-5});break;case c.Keys.right:m.setState({left:m.state.left+5});break;default:return}m.dispatchMoveEvent(m.props.onMove,e,!1,void 0)}}},m.onPress=function(e){e=e.event;m.windowCoordinatesState.differenceLeft=e.pageX-m.left,m.windowCoordinatesState.differenceTop=e.pageY-m.top},m.onDrag=function(e){e=e.event;e.originalEvent.preventDefault(),m.windowStage!==g.windowStage.FULLSCREEN&&m.props.draggable&&(m.setState({top:Math.max(e.pageY-m.windowCoordinatesState.differenceTop,0),left:e.pageX-m.windowCoordinatesState.differenceLeft,isDragging:!0}),m.props.onMove)&&m.dispatchMoveEvent(m.props.onMove,e,!0,!1)},m.onRelease=function(e){e=e.event;m.windowStage!==g.windowStage.FULLSCREEN&&m.props.draggable&&m.props.onMove&&m.dispatchMoveEvent(m.props.onMove,e,!0,!0),m.setState({isDragging:!1})},m.onFocus=function(){m._blurTimeout?(clearTimeout(m._blurTimeout),m._blurTimeout=void 0):m.setState({focused:!0,zIndex:(0,M.getMaxZIndex)(m.getCurrentZIndex(),m.getDocument(),m._id)})},m.onBlur=function(){clearTimeout(m._blurTimeout);var e=m.getWindow();e&&(m._blurTimeout=e.setTimeout(function(){m.setState({focused:!1}),m._blurTimeout=void 0}))},m.getInitialTop=function(){var e,t;return void 0!==m.props.top?m.props.top:void 0!==m.props.initialTop?m.props.initialTop:(e=300,void 0!==m.props.height?e=m.props.height:void 0!==m.props.initialHeight&&(e=m.props.initialHeight),m.props.appendTo?m.props.appendTo.offsetHeight/2-e/2:(t=m.getWindow())?t.innerHeight/2-e/2:0)},m.getInitialLeft=function(){var e,t;return void 0!==m.props.left?m.props.left:void 0!==m.props.initialLeft?m.props.initialLeft:(e=300,void 0!==m.props.width?e=m.props.width:void 0!==m.props.initialWidth&&(e=m.props.initialWidth),m.props.appendTo?m.props.appendTo.offsetWidth/2-e/2:(t=m.getWindow())?t.innerWidth/2-e/2:0)},m.getInitialWidth=function(){var e=300;return void 0!==m.props.width?e=m.props.width:void 0!==m.props.initialWidth&&(e=m.props.initialWidth),e},m.getInitialHeight=function(){var e=300;return void 0!==m.props.height?e=m.props.height:void 0!==m.props.initialHeight&&(e=m.props.initialHeight),e},m.handleMinimize=function(e){e.preventDefault(),m.windowCoordinatesState.leftBeforeAction=m.left,m.windowCoordinatesState.topBeforeAction=m.top,m.windowCoordinatesState.widthBeforeAction=m.width,m.windowCoordinatesState.heightBeforeAction=m.height,m.setState({stage:g.windowStage.MINIMIZED,height:0}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.MINIMIZED})},m.handleFullscreen=function(e){e.preventDefault(),m.windowCoordinatesState.leftBeforeAction=m.left,m.windowCoordinatesState.topBeforeAction=m.top,m.windowCoordinatesState.widthBeforeAction=m.width,m.windowCoordinatesState.heightBeforeAction=m.height;var t=m.getWindow(),n=t?t.innerWidth:0,t=t?t.innerHeight:0;m.setState({left:0,top:0,width:m.props.appendTo?m.props.appendTo.offsetWidth:n,height:m.props.appendTo?m.props.appendTo.offsetHeight:t,stage:g.windowStage.FULLSCREEN}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.FULLSCREEN})},m.handleRestore=function(e){e.preventDefault(),m.windowStage===g.windowStage.FULLSCREEN?m.setState({stage:g.windowStage.DEFAULT,left:m.windowCoordinatesState.leftBeforeAction,top:m.windowCoordinatesState.topBeforeAction,width:m.windowCoordinatesState.widthBeforeAction,height:m.windowCoordinatesState.heightBeforeAction}):m.windowStage===g.windowStage.MINIMIZED&&m.setState({stage:g.windowStage.DEFAULT,height:m.windowCoordinatesState.heightBeforeAction}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})},m.handleCloseWindow=function(e){e.preventDefault(),(0,c.dispatchEvent)(m.props.onClose,e,m,{state:void 0})},m.handleDoubleClick=function(e){m.windowStage===g.windowStage.FULLSCREEN||m.windowStage===g.windowStage.MINIMIZED?m.handleRestore(e):m.handleFullscreen(e)},m.handleResize=function(e,t){var n=m.props.appendTo?e.pageX-m.offSetCoordinates.x:e.pageX,r=m.props.appendTo?e.pageY-m.offSetCoordinates.y:e.pageY,o=m.width,i=m.height,a=m.props.minWidth||120,s=m.props.minHeight||100,l=m.top-r,u=m.left-n,d=n-m.left,c=r-m.top,p=Object.assign({},m.state,{isDragging:!t.end});0<=t.direction.indexOf("n")&&s-(i+l)<0&&(0<m.top&&(p.height=i+l),p.top=r),0<=t.direction.indexOf("s")&&s-c<0&&(p.height=c),0<=t.direction.indexOf("w")&&a-(o+u)<0&&(0<m.left&&(p.width=o+u),p.left=n),0<=t.direction.indexOf("e")&&a-d<0&&(p.width=d),m.setState(p),m.dispatchMoveEvent(m.props.onResize,e,!0,t.end)},m.dispatchMoveEvent=function(e,t,n,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent||t.originalEvent,drag:n,end:r,target:m,left:m.state.left,top:m.state.top,width:m.state.width,hight:m.state.height,height:m.state.height})},m.handleBrowserWindowResize=function(){var e,t;m.windowStage===g.windowStage.FULLSCREEN&&(e=(t=m.getWindow())?t.innerWidth:0,t=t?t.innerHeight:0,m.setState({width:m.props.appendTo?m.props.appendTo.offsetWidth:e,height:m.props.appendTo?m.props.appendTo.offsetHeight:t}))},m.getCurrentZIndex=function(){return m.state&&void 0!==m.context?m.state.zIndex>(m.context?m.context+v.ZINDEX_DIALOGS_STEP:0)?m.state.zIndex:m.context+v.ZINDEX_DIALOGS_STEP:m.context||v.DEFAULT_DIALOGS_ZINDEX},m.getDocument=function(){return m.props.appendTo?m.props.appendTo.ownerDocument:document},m.getWindow=function(){var e=m.getDocument();return e&&e.defaultView},(0,h.validatePackage)(y.packageMetadata),m.state={stage:m.props.stage||g.windowStage.DEFAULT,isDragging:!1,top:m.getInitialTop(),left:m.getInitialLeft(),width:m.getInitialWidth(),height:m.getInitialHeight(),focused:!0,zIndex:(0,M.getMaxZIndex)(m.getCurrentZIndex(),m.getDocument(),m._id)},m.windowCoordinatesState={leftBeforeAction:m.getInitialLeft(),topBeforeAction:m.getInitialTop(),widthBeforeAction:m.getInitialWidth(),heightBeforeAction:m.getInitialHeight()},m}t.WindowPropsContext=(0,p.createPropsContext)(),t.Window=(0,p.withPropsContext)(t.WindowPropsContext,n),t.Window.displayName="KendoReactWindow"},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.WindowActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,i.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return r.createElement("div",{className:t},e)},t.WindowActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"end"})},151:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0,n(954)),s=n(811),l=["n","e","s","w","se","sw","ne","nw"],n=(o=a.Component,i(u,o),u.prototype.render=function(){var n=this;return a.createElement("div",null," ",l.map(function(t,e){return a.createElement(s.Draggable,{key:e,onDrag:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!1,direction:t})},onRelease:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!0,direction:t})}},a.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))}))},u);function u(){return null!==o&&o.apply(this,arguments)||this}t.ResizeHandlers=n},583:function(e,t,n){function r(e){var t=e.children,n=e.onCloseButtonClick,r=e.onMinimizeButtonClick,o=e.onFullScreenButtonClick,i=e.onRestoreButtonClick,a=e.onDoubleClick,s=e.stage,l=e.forwardedRef,u=e.id,d=(0,f.useLocalization)(),r=e.minimizeButton?c.createElement(e.minimizeButton,{onClick:r,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-minimize",className:"k-window-action",onClick:r,"aria-label":d.toLanguageString(g.dialogsWindowMinimizeButton,g.messages[g.dialogsWindowMinimizeButton])}),o=e.maximizeButton?c.createElement(e.maximizeButton,{onClick:o,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-maximize",className:"k-window-action",onClick:o,"aria-label":d.toLanguageString(g.dialogsWindowMaximizeButton,g.messages[g.dialogsWindowMaximizeButton])}),i=e.restoreButton?c.createElement(e.restoreButton,{onClick:i,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-restore",className:"k-window-action",onClick:i,"aria-label":d.toLanguageString(g.dialogsWindowRestoreButton,g.messages[g.dialogsWindowRestoreButton])}),e=e.closeButton?c.createElement(e.closeButton,{onClick:n,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"close",className:"k-window-action",onClick:n,"aria-label":d.toLanguageString(g.dialogsWindowCloseButton,g.messages[g.dialogsWindowCloseButton])});return c.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:l,onDoubleClick:a},c.createElement("div",{className:"k-window-title",id:u},t||""),c.createElement("div",{className:"k-window-actions"},s===p.windowStage.DEFAULT&&r,s===p.windowStage.DEFAULT&&o,s!==p.windowStage.DEFAULT&&i,e))}var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0,n(954)),p=n(259),m=n(536),f=n(603),g=n(364);t.WindowTitleBar=c.forwardRef(function(e,t){return c.createElement(r,o({},e,{forwardedRef:t}))})},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.dialogsWindowCloseButton=t.dialogsWindowRestoreButton=t.dialogsWindowMinimizeButton=t.dialogsWindowMaximizeButton=void 0,t.dialogsWindowMaximizeButton="dialogs.windowMaximizeButton",t.dialogsWindowMinimizeButton="dialogs.windowMinimizeButton",t.dialogsWindowRestoreButton="dialogs.windowRestoreButton",t.dialogsWindowCloseButton="dialogs.windowCloseButton",t.messages=((n={})[t.dialogsWindowMaximizeButton]="maximize",n[t.dialogsWindowMinimizeButton]="minimize",n[t.dialogsWindowRestoreButton]="restore",n[t.dialogsWindowCloseButton]="close",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672762145,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var a=n(56);t.getMaxZIndex=function(e,n,r){var o,i=e;return n&&n.defaultView&&(e=n.querySelectorAll(a.DIALOGS_SELECTOR),o=!1,e.forEach(function(e){var t=n.defaultView.getComputedStyle(e,null);e.getAttribute(a.DATA_DIALOGS_ID)!==r&&null!==t.zIndex&&(e=parseInt(t.zIndex,10),i<=e)&&(i=e,o=!0)}),o)?i+a.ZINDEX_DIALOGS_STEP:i}},603:(D,e,t)=>{t.r(e),t.d(e,{IntlProvider:()=>Bt,IntlService:()=>Nt,LocalizationProvider:()=>Ut,LocalizationService:()=>At,load:()=>function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var r,o,i,a=e[n];a.main?(r=Object.keys(a.main)[0],o=a.main[r],i=_[r]=_[r]||{},o.units?function(e,t){e.calendar.dateFields.millisecond={narrow:re(t.narrow[te]),short:re(t.short[te]),wide:re(t.long[te])}}(i,o.units):(i.name=i.name||r,i.identity=i.identity||o.identity,ee(i),function(e,t){for(var n in t)"numbers"===n?function(e,t){var n,e=_[e],r=e.numbers=e.numbers||{};for(n in r.symbols=r.symbols||{},t){var o,i;"symbols-numberSystem-latn"===n?Object.assign(r.symbols,t[n]):n.includes(T)?(o=n.substr(0,n.indexOf(T)),i=t[n].standard,r[o]={patterns:K(i)},o===N?(r[o].groupSize=q((t[Z+T]||t[n]).standard),function(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}",B).replace("{1}",L))}(r[o],t[n]),r.accounting={patterns:K(t[n].accounting),groupSize:r[o].groupSize}):r[o].groupSize=q(i)):"currencies"===n&&(r.currencies=t[n])}}(e,t[n]):"dates"===n&&function(e,t){var n,r=_[e].calendar=_[e].calendar||{};for(n in t)"timeZoneNames"===n?(r.gmtFormat=t[n].gmtFormat,r.gmtZeroFormat=t[n].gmtZeroFormat):"calendars"===n&&t[n].gregorian?(function(e,t){var n,r,e=_[e].calendar,o=e.patterns={};for(n in o.d=V(Y,t).replace(J,"y"),$)o[n]=V($[n],t);for(r in Q)o[r]=Q[r];var i=t.dateTimeFormats;e.dateTimeFormats={full:i.full,long:i.long,medium:i.medium,short:i.short,availableFormats:i.availableFormats},e.timeFormats=t.timeFormats,e.dateFormats=t.dateFormats}(e,t[n].gregorian),function(e,t){e=_[e].calendar;e.days=l(t.days),e.months=l(t.months),e.quarters=l(t.quarters),e.dayPeriods=l(t.dayPeriods,!0),e.eras=function(e){var t,n={},r=n.format={},o={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(t in e)r[o[t]]=e[t];return n}(t.eras)}(e,t[n].gregorian)):"fields"===n&&function(e,t){var n,e=_[e].calendar,r={};for(n in t){var o=n.split("-"),i=o[0],o=o[1],a=(void 0===o&&(o="wide"),r[i]||{}),s=t[n].displayName;s&&(a[o]=s,r[i]=a)}e.dateFields=r}(e,t.fields)}(e,t[n])}(r,o))):a.supplemental&&(a.supplemental.weekData?_.supplemental.weekData={firstDay:a.supplemental.weekData.firstDay,weekendStart:a.supplemental.weekData.weekendStart,weekendEnd:a.supplemental.weekData.weekendEnd}:a.supplemental.likelySubtags?_.supplemental.likelySubtags=Object.assign(_.supplemental.likelySubtags,a.supplemental.likelySubtags):a.supplemental.currencyData&&((i=_.supplemental.currencyData).region=Object.assign(i.region||{},a.supplemental.currencyData.region),i.fractions=Object.assign(i.fractions||{},a.supplemental.currencyData.fractions)))}},loadMessages:()=>function(e,t){t=r[t]=r[t]||{};Pt(e,t,[])},provideIntlService:()=>function(e){e=e.context;return e&&e.intl?e.intl:new Nt("en")},provideLocalizationService:()=>function(e){e=e.context;return e&&e.localization?e.localization:new At},registerForIntl:()=>function(e){e.contextType=v},registerForLocalization:()=>function(e){e.contextType=v},useInternationalization:()=>Rt,useLocalization:()=>Zt});var i=t(954),E=t(895);function s(e){return"string"==typeof e}function x(e){var t=e.name,e=e.message;if(!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}var C,O=/\{(\d+)}?\}/g,k=(x.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=k(e),r=this.message.replace(O,function(e,t){return n[parseInt(t,10)]});return this.name+": "+r},x.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))},function(e){return e.reduce(function(e,t){return e.concat(t)},[])}),d=(C={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(C).reduce(function(e,t){return e[t]=new x({name:t,message:C[t]}),e},{})),_={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function a(e){return s(e)?F(e):e}function F(e){if(_[e])return _[e];if(_.supplemental.likelySubtags){var t=e.split("-"),n=t[0],t=t.slice(1),n=function(e,t){for(var n=_.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,t),n=n?(t=t,r=(n=n).split("-"),o=r[0],i=r[1],r=r[2],_[n]||-1!==t.indexOf(r)&&_[o+"-"+r]||-1!==t.indexOf(i)&&_[o+"-"+i]||_[o]):null;if(n)return n}var r,o,i;throw d.NoLocale.error(e)}var Z="decimal",N="currency",I="accounting",A="percent",G="scientific",L="$",B="n",P=".",z="",H="en",T="Formats-numberSystem-latn",n=/([#,0.]+)/g,X=/¤/g;function K(e){return n.lastIndex=0,e.replace(X,L).replace(n,B).split(";")}function q(e){return n.lastIndex=0,n.exec(e.split(";")[0])[0].split(P)[0].split(",").slice(1).map(function(e){return e.length}).reverse()}var Q={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},J=/y+/g,Y=[["dateFormats","short"]],$={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function l(e,t){var n,r={};for(n in e){var o,i=r[n]={};for(o in e[n]){var a=e[n][o];i[o]=t?a:function(e){for(var t=[],n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=e[n[r]];t.push(o)}return t}(a)}}return r}function V(e,t){for(var n=[],r=0;r<e.length;r++){for(var o=e[r],i=t,a=0;a<o.length;a++)i=i[o[a]];n.push(i)}return n.join(" ")}function ee(e){var t,n;return e.territory||(n=e.name,n=(t=e.identity)&&t.territory?t.territory:function(e,t){var n=_.supplemental.likelySubtags,r=e.split("-");if(n&&(e=n[e]||n[r[0]])&&(r=e.split("-")),t)for(var o=r.length-1;1<=o;o--){var i=r[o];i!==t.variant&&i!==t.script||r.splice(o,1)}n=r.length;if(1<n)return r[n-1].toUpperCase()}(n,t),e.territory=n)}var te="duration-millisecond",ne=/\{0\}\s?/;function re(e){return(e["unitPattern-count-one"]||e["unitPattern-count-other"]).replace(ne,"")}function oe(e,t){var n=t.type,r=t.nameType,o=t.standAlone,t=t.lower,e=a(e),i=(t?"lower-":z)+r,e=e.calendar[n][o?"stand-alone":"format"],n=e[i];return n=!n&&t?e[i]=(o=e[r],(Array.isArray(o)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}:function(e){var t,n={};for(t in e)n[t]=e[t].toLowerCase();return n})(o)):n}function ie(e){var e=e.split("-"),t=parseInt(e[0],10),n=parseInt(e[1],10)-1,e=parseInt(e[2],10);return new Date(t,n,e)}var ae=d.NoCurrency,se=d.NoCurrencyDisplay,le=d.NoSupplementalCurrency,ue=d.NoCurrencyRegion,de=d.NoValidCurrency,ce="symbol",pe={"001":"USD",150:"EUR"};function me(e,t,n){e=a(e).numbers.currencies;if(e){e=e[t];if(e)return e;if(n)throw se.error()}else if(n)throw ae.error()}function fe(e,t){return t.length-e.length}function ge(e,t){var e=a(e),n=e.numbers;if(!n.localeCurrency){var r=function(e,t){if(void 0===t&&(t=!0),pe[e])return pe[e];var n=_.supplemental.currencyData;if(n){n=n.region[e];if(n){for(var r,o,i,a,s=n,l=0;l<s.length;l++){var u,d,c=s[l],p=Object.keys(c)[0],c=c[p];"XXX"!==p&&"false"!==c._tender&&c._from&&(c._to?!i&&(d=ie(c._from),u=ie(c._to),!o||o.to<u||o.from<d)&&(r=p,o={from:d,to:u}):(d=ie(c._from),(!a||a<d)&&(i=p,a=d)))}return i||r}if(t)throw ue.error(e)}else if(t)throw le.error()}(ee(e),t);if(!r&&t)throw de.error(e.name);n.localeCurrency=r}return n.localeCurrency}var he=["sun","mon","tue","wed","thu","fri","sat"],ye=d.NoWeekData,we=d.NoFirstDay;function ve(e){e=a(e);if(!isNaN(e.firstDay))return e.firstDay;var t=_.supplemental.weekData;if(!t)throw ye.error();t=t.firstDay[ee(e)]||t.firstDay["001"];if(t)return e.firstDay=he.indexOf(t),e.firstDay;throw we.error()}function Me(e){return 1/e==-1/0}function be(e,t){var n,r;return(t=void 0===t?{}:t).currency||(t.currency=ge(e,!0)),n=(t=t).value,r=t.currency,"code"===(t=void 0===(t=t.currencyDisplay)?ce:t)?r:(r=me(e,r,!0),t===ce?r["symbol-alt-narrow"]||r.symbol:void 0===n||1!==n?r["displayName-count-other"]:r["displayName-count-one"])}function Se(e,t,n,r,o){var o=o.numbers.symbols,i=e.indexOf(o.decimal),a=r.groupSize.slice(),s=a.shift(),r=-1!==i?i:n+1,l=e.substring(t,r),i=e,n=l.length;if(s<=n){for(var u=n,d=[];-1<u;){var c=l.substring(u-s,u),p=(c&&d.push(c),u-=s,a.shift());if(0===(s=void 0!==p?p:s)){(c=l.substring(0,u))&&d.push(c);break}}l=d.reverse().join(o.group),i=e.substring(0,t)+l+e.substring(r)}return i}function De(e){return e===N||e===I}function W(e,t,n){void 0===n&&(n=!1);var t=(t=void 0===t?2:t)-String(e).length,r=e;return 0<t&&(t=new Array(1+t).join("0"),r=n?e+t:t+e),r}function j(e,t){t=t||0,e=(e=e).toString().split("e");return e=(e=Math.round(Number(e[0]+"e"+(e[1]?Number(e[1])+t:t)))).toString().split("e"),(e=Number(e[0]+"e"+(e[1]?Number(e[1])-t:-t))).toFixed(Math.min(t,20))}d.NoWeekData;var Ee=/0+$/;var xe=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Ce="__??__";function Oe(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style=A,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf(L)&&(e.style=N,e.symbol=be(t))}function ke(e){var n,t=e.format;(-1<t.indexOf("'")||-1<t.indexOf('"')||-1<t.indexOf("\\"))&&(n=e.literals=[],e.format=t.replace(xe,function(e){var t=e.charAt(0).replace("\\",z),e=e.slice(1).replace(t,z);return n.push(e),Ce}))}var U="#",R="0",Ie=/(\.(?:[0-9]*[1-9])?)0+$/g,Te=/\.$/,_e=/,/g;function Fe(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}var Ne=/^(n|c|p|e|a)(\d*)$/i;function Ae(e){{var t,n,r;if(s(e))return(r=Ne.exec(e))?(t={style:Z},"c"===(n=r[1].toLowerCase())?t.style=N:"a"===n?t.style=I:"p"===n?t.style=A:"e"===n&&(t.style=G),r[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(r[2],10)),t):void 0}return e}function Le(e,t,n){if(void 0===t&&(t=B),void 0===n&&(n=H),null==e)return z;var v,r,o,i,a,s,l;if(isFinite(e))if(n=F(n),c=Ae(t)){var u=c.style||Z,d=e,u=Object.assign({},n.numbers[u],c),c=n,p=c.numbers.symbols,m=u.style,f=De(m);if(m===G)return(void 0!==u.minimumFractionDigits?d.toExponential(u.minimumFractionDigits):d.toExponential()).replace(P,p.decimal);var g,h,y=d,w=(f&&(u.value=y,g=be(c,u)),m===A&&(y*=100,g=p.percentSign),m=u.minimumFractionDigits,D=u.maximumFractionDigits,b=u.style,(S=De(b))&&(h=u.currency,M=w=2,(h=((_.supplemental.currencyData||{}).fractions||{})[h])&&h._digits&&(M=w=parseInt(h._digits,10)),h={minimumFractionDigits:w,maximumFractionDigits:M}),{minimumFractionDigits:m=void 0===m?S?h.minimumFractionDigits:0:m,maximumFractionDigits:D=void 0===D?b===A?Math.max(m,0):S?Math.max(m,h.maximumFractionDigits):Math.max(m,3):D}),M=w.minimumFractionDigits,b=(y=j(y,w.maximumFractionDigits))<0,S=Me(d),D=(m=y.split(P))[0],y=W(m[1]?m[1].replace(Ee,z):z,M,!0);if(b&&(D=D.substring(1)),u.minimumIntegerDigits&&(D=W(D,u.minimumIntegerDigits)),m=!1!==u.useGrouping?Se(D,0,D.length,u,c):D,y&&(m+=p.decimal+y),(y=f&&"name"===u.currencyDisplay?(D=c.numbers.currency,D=1!==d?D["unitPattern-count-other"]:D["unitPattern-count-one"],D=d<0?D.replace(B,"-n"):D):(p=u.patterns,b||S?p[1]||"-"+p[0]:p[0]))!==B||b){for(var E=m,x=y,C=g,O=z,k=0,I=x.length;k<I;k++){var T=x.charAt(k);O+=T===B?E:T===L||"%"===T?C:T}return O}return m}else return f=t,c=n,d={negative:(d=e)<0,number:Math.abs(d),negativeZero:Me(d),format:f},D=(f=d).number,u=(u=f.format).split(";"),(f.negative||f.negativeZero)&&u[1]?(u=u[1],f.hasNegativeFormat=!0):0===D?(u=(D=u[2])||u[0],D&&-1===(l=D).indexOf(U)&&-1===l.indexOf(R)&&(f.constant=D)):u=u[0],f.format=u,d.constant||(ke(d),Oe(d,c),(l=d).hasGroup=-1<l.format.indexOf(","),l.hasGroup&&(l.format=l.format.replace(_e,z)),f=(D=d).number,u=D.format,-1!==(S=u.indexOf(P))?(o=-1<(r=u.lastIndexOf(R)-S),i=-1<(p=u.lastIndexOf(U)-S),a=(a=(a=(a=f.toString().split("e"))[1]?j(f,Math.abs(a[1])):a[0]).split(P)[1]||z).length,s=-1,o||i?o&&p<r?a=r:r<p&&(i&&p<a?a=p:o&&a<r&&(a=r),s=o?r:0):(D.format=u.substring(0,S)+u.substring(S+1),S=-1,a=0),-1<a&&(f=j(f,a),-1<s)&&(i=f,p=0===s?Ie:new RegExp("(\\.[0-9]{"+s+"}[1-9]*)0+$","g"),f=i.replace(p,"$1").replace(Te,z))):f=j(f),D.negative&&0<=-1*f&&!D.negativeZero&&(D.negative=!1),D.number=f,D.decimalIndex=S,r=(o=d).format,u=Fe(r.indexOf(U),r.indexOf(R),!0),s=Fe(r.lastIndexOf(U),a=r.lastIndexOf(R)),u===r.length&&(s=u),o.start=u,o.end=s,o.lastZeroIndex=a,i=(v=d).number,i=-1!==v.start?function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace(Ce,t[o]);return n}(i=function(e,t,n){var r=e;if(t===N||t===A)for(var r=z,o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+=a===L||"%"===a?n:a}return r}(i=function(e){var t=v.start,n=v.end,r=v.negative,o=v.negativeZero,i=v.format,a=v.decimalIndex,s=v.lastZeroIndex,l=v.hasNegativeFormat,u=v.hasGroup,d=(h=v.number).toString().split(P),c=i.length,p=d[0],m=d[1]||z,f=p.length,g=z,h=i.substring(0,t);!r&&!o||l||(h+="-");for(var y=t;y<c;y++){var w=i.charAt(y);if(-1===a){if(n-y<f){h+=p;break}}else if(-1!==s&&s<y&&(g=z),a-y<=f&&-1<a-y&&(h+=p,y=a),a===y){h+=(m?e.numbers.symbols.decimal:z)+m,y+=n-a+1;continue}w===R?(h+=w,g=w):w===U&&(h+=g)}return u&&(h=Se(h,t+(r&&!l?1:0),Math.max(n,f+t),e.numbers.decimal,e)),t<=n&&(h+=i.substring(n+1)),h}(c),v.style,v.symbol),v.literals):i);return String(e)}function Be(e){return"number"==typeof e}var Pe=/[eE][-+]?[0-9]+/,ze=/\u00A0/g;function He(e,t){if(1<t.length){t=(t[1]||z).replace(L,z).split(B);if(-1<e.indexOf(t[0])&&-1<e.indexOf(t[1]))return e.replace(t[0],z).replace(t[1],z)}}var We=/\{(\d+)}/g;function je(e){var n=arguments;return e.replace(We,function(e,t){return n[parseInt(t,10)+1]})}var Ue=[2,1,5,3,4],g={},Re=(g[(-2).toString()]=8,g[(-1).toString()]=6,g[2..toString()]=6,{numeric:1,"2-digit":2,short:g[1..toString()]=3,long:4,narrow:5}),Ze=/[hHmsSzZoOvVxX]/,Ge=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Xe={e:"c",E:"c",M:"L",Q:"q"},Ke={},u={};function qe(e){return Ke[e]||(Ke[e]=new RegExp(e+"+")),Ke[e]}function h(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function Qe(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(r in t){for(var a=[],s=r.replace("v","z"),l=0,u=0;u<o;u++){var d=e[u],c=(qe(d[0]).exec(s)||[])[0];if(c?(s=s.replace(c,z),c.length!==d.length&&(d=Math.max(Math.min(Ue[c.length]-Ue[d.length],2),-2),l-=g[d])):l-=120,a.push(c),l<i)break}s.length&&(l-=20*h(s).length),i<l&&(i=l,n=a,m=t[r])}m=m.replace("v","z");for(var p=0;p<o;p++){var m,f=n[p];f&&f!==e[p]&&(f=n[p][0],m=m.replace(qe(f),e[p]),Xe[f])&&(m=m.replace(qe(Xe[f]),e[p]))}return m}function Je(e,t){var n,r,o,i=t.calendar;if(s(e))n=i.patterns[e]||e;else if(e){if(e.pattern)return e.pattern;var a=e.skeleton;a||(e.datetime?n=je(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:a=function(e){for(var t=[],n=0;n<Ge.length;n++){var r=Ge[n],o=e[r.key];o&&(r=r.specifier||r.getSpecifier(e),t.push(r.repeat(Re[o])))}return t.join(z)}(e)),a&&(e=a,n=(t=(a=t).calendar.dateTimeFormats.availableFormats)[e]||(u[a.name]&&u[a.name][e]?u[a.name][e]:(r=0<(r=e.search(Ze))?(o=e.substr(0,r),r=e.substr(r),je(a.calendar.dateTimeFormats.short,t[r]||Qe(h(r),t),t[o]||Qe(h(o),t))):Qe(h(e),t),o=e,t=r,e=a.name,u[e]||(u[e]={}),u[e][o]=t,r)))}return n=n||i.patterns.d}function Ye(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function c(e,t,n,r,o){return oe(e,{type:t,nameType:Ye(n),standAlone:r,lower:o})}function $e(e){return"function"==typeof e}function Ve(e){return Boolean(e)&&$e(e.getTime)&&$e(e.getMonth)}var e="hour",et="zone",tt="weekday",nt="quarter",rt={G:"era",y:"year",q:nt,Q:nt,M:"month",L:"month",d:"day",E:tt,c:tt,e:tt,h:e,H:e,k:e,K:e,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:et,X:et,z:et,Z:et},p=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ot(e,t,n,r){return t<=2?W(e+1,t):c(n,"months",t,r)[e]}function it(e,t,n,r){e=Math.floor(e.getMonth()/3);return t<3?e+1:c(n,"quarters",t,r)[e]}function at(e,t,n){var r,o,i=n.shortHours,a=n.optionalMinutes,s=n.separator,l=n.localizedName,n=n.zZeroOffset,e=e.getTimezoneOffset()/60;return 0==e&&n?"Z":(n=e<=0?"+":"-",o=(r=Math.abs(e).toString().split("."))[1]||0,n=n+(i?r[0]:W(r[0],2)),!o&&a||(n+=(s?":":z)+W(o,2)),l?je(0==e?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,n):n)}function st(e,t,n,r){var o,i;return t<3?(o=e.getDay(),i=ve(n),(o<i?7-i+o:o-i)+1):c(n,"days",t,r)[e.getDay()]}var o={};function lt(n,e,t){var r;return void 0===t&&(t=H),Ve(n)?Je(e,r=F(t)).replace(p,function(e){var t=e.length;return e.includes("'")||e.includes('"')?e.slice(1,t-1):o[e[0]](n,t,r)}):null==n?z:n}function ut(e,t,n){var r=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),t=e.getTimezoneOffset();return new Date(e.getTime()+6e4*(t-r))}o.d=function(e,t){return W(e.getDate(),t)},o.E=function(e,t,n){return c(n,"days",t)[e.getDay()]},o.M=function(e,t,n){return ot(e.getMonth(),t,n,!1)},o.L=function(e,t,n){return ot(e.getMonth(),t,n,!0)},o.y=function(e,t){e=e.getFullYear();return 2===t&&(e%=100),W(e,t)},o.h=function(e,t){return W(e.getHours()%12||12,t)},o.H=function(e,t){return W(e.getHours(),t)},o.k=function(e,t){return W(e.getHours()||24,t)},o.K=function(e,t){return W(e.getHours()%12,t)},o.m=function(e,t){return W(e.getMinutes(),t)},o.s=function(e,t){return W(e.getSeconds(),t)},o.S=function(e,t){e=e.getMilliseconds();return 0!==e?W(String(e/1e3).split(".")[1].substr(0,t),t,!0):W(z,t)},o.a=function(e,t,n){return c(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},o.z=function(e,t,n){return at(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},o.Z=function(e,t,n){return at(e,n,{separator:3<t,localizedName:4===t,zZeroOffset:5===t})},o.x=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},o.X=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},o.G=function(e,t,n){e=0<=e.getFullYear()?1:0;return c(n,"eras",t)[e]},o.e=st,o.c=function(e,t,n){return st(e,t,n,!0)},o.q=function(e,t,n){return it(e,t,n,!0)},o.Q=it;var dt=/([+|-]\d{1,2})(:?)(\d{2})?/,ct=/^\/Date\((.*?)\)\/$/,pt=/[+-]\d*/,mt={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},ft=/\d+/,gt=/^ */,ht=/ *$/,yt=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],wt=["G","g","F","Y","y","M","m","D","d","y","T","t"];function m(e,t,n){return!(t<=e&&e<=n)}function f(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return 0<o&&--r,t.idx=r,o}function y(e,t){var n=e?mt[e]||new RegExp("^\\d{1,"+e+"}"):ft,e=t.value.substr(t.valueIdx,e).match(n);return e?(e=e[0],t.valueIdx+=e.length,parseInt(e,10)):null}function w(e,t,n){for(var r,o,i,a=0,s=e.length,l=0,u=0;a<s;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),(i=n?i.toLowerCase():i)===r&&l<o&&(l=o,u=a);return l?(t.valueIdx+=l,u+1):null}function vt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Mt(e,t,n){var r,o,i,a=n.shortHours,s=n.noSeparator,l=n.optionalMinutes,u=n.localizedName,n=n.zLiteral;return e.UTC=!0,n&&"Z"===e.value.charAt(e.valueIdx)?(e.valueIdx++,!1):!(!u||w(function(e){var t=e.gmtFormat,e=e.gmtZeroFormat;if(t)return[t.replace("{0}",z).toLowerCase(),e.replace("{0}",z).toLowerCase()];throw d.NoGMTInfo.error()}(t.calendar),e,!0))||((n=dt.exec(e.value.substr(e.valueIdx,6)))?(t=n[1],i=n[3],r=parseInt(t,10),o=n[2],i=parseInt(i,10),!!(isNaN(r)||!a&&3!==t.length||!l&&isNaN(i)||s&&o)||(isNaN(i)&&(i=null),!!(m(r,-12,13)||i&&m(i,0,59)))||(e.valueIdx+=n[0].length,e.hoursOffset=r,void(e.minutesOffset=i))):!u)}function bt(e,t,n){var r=f(e,t),n=c(n,"months",r,"L"===e,!0),e=r<3?y(2,t):w(n,t,!0);if(null===e||m(e,1,12))return!0;t.month=e-1}function St(e,t,n){var r=f(e,t),n=c(n,"days",r,"c"===e,!0),e=r<3?y(1,t):w(n,t,!0);if(!e&&0!==e||m(e,1,7))return!0}var M={};function Dt(e,t,n){for(var r,o,i,a,s,l,u,d,c,p,m,f,g=Je(t,n).split(z),h={format:g,idx:0,value:(o=e,t=t,""+gt.exec(t)[0]+o+ht.exec(t)[0]),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},y=g.length,w=!1;h.idx<y;h.idx++){var v=g[h.idx];if(w)"'"===v&&(w=!1),vt(h);else if(M[v]){if(M[v](h,n))return null}else if("'"===v)w=!0,vt(h);else if(!vt(h))return null}return!(h.valueIdx<e.length)&&(o=h.year,t=h.month,e=h.day,i=h.hours,a=h.minutes,s=h.seconds,l=h.milliseconds,u=h.pmHour,d=h.UTC,c=h.hoursOffset,p=h.minutesOffset,m=null!==i||null!==a||s||null,f=new Date,null===o&&null===t&&null===e&&m?(o=f.getFullYear(),t=f.getMonth(),e=f.getDate()):(null===o&&(o=f.getFullYear()),null===e&&(e=1)),u&&i<12&&(i+=12),d?(c&&(i+=-c),p&&(a+=-p*(c<0?-1:1)),r=new Date(Date.UTC(o,t,e,i,a,s,l))):(m=r=new Date(o,t,e,i,a,s,l),i||23!==m.getHours()||m.setHours(m.getHours()+2)),o<100&&r.setFullYear(o),r.getDate()!==e&&void 0===d?null:r)||null}M.d=function(e){f("d",e);var t=y(2,e);if(null===t||m(t,1,31))return!0;null===e.day&&(e.day=t)},M.E=function(e,t){if(null===w(c(t,"days",f("E",e),!1,!0),e,!0))return!0},M.M=function(e,t){return bt("M",e,t)},M.L=function(e,t){return bt("L",e,t)},M.y=function(e){var t=f("y",e),n=y(1===t?void 0:t,e);if(null===n)return!0;2===t&&2029<(n=(t=(new Date).getFullYear())-t%100+n)&&(n-=100),e.year=n},M.h=function(e){f("h",e);var t=y(2,e);if(null===(t=12===t?0:t)||m(t,0,11))return!0;e.hours=t},M.K=function(e){f("K",e);var t=y(2,e);if(null===t||m(t,0,11))return!0;e.hours=t},M.a=function(e,t){var t=c(t,"dayPeriods",f("a",e),!1,!0),n=w([t.pm],e,!0);if(!n&&!w([t.am],e,!0))return!0;e.pmHour=n},M.H=function(e){f("H",e);var t=y(2,e);if(null===t||m(t,0,23))return!0;e.hours=t},M.k=function(e){f("k",e);var t=y(2,e);if(null===t||m(t,1,24))return!0;e.hours=24===t?0:t},M.m=function(e){f("m",e);var t=y(2,e);if(null===t||m(t,0,59))return!0;e.minutes=t},M.s=function(e){f("s",e);var t=y(2,e);if(null===t||m(t,0,59))return!0;e.seconds=t},M.S=function(e){var t=f("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=j(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||m(r,0,999))return!0;e.milliseconds=r},M.z=function(e,t){var n=f("z",e)<4,e=Mt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(e)return e},M.Z=function(e,t){var n=f("Z",e),e=Mt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(e)return e},M.x=function(e,t){var n=f("x",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(e)return e},M.X=function(e,t){var n=f("X",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(e)return e},M.G=function(e,t){t=c(t,"eras",f("G",e),!1,!0);if(null===w([t[0],t[1]],e,!0))return!0},M.e=function(e,t){return St("e",e,t)},M.c=function(e,t){return St("c",e,t)};var Et={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},xt="literal";function Ct(e,t){var n=e[e.length-1];n&&n.type===xt?n.pattern+=t:e.push({type:xt,pattern:t})}var Ot=/\{(\d+)(:[^}]+)?\}/g;function kt(e,t,n){if(t){if(Ve(e))return lt(e,t,n);if(Be(e))return Le(e,t,n)}return null!=e?e:z}function It(e,r,o){return e.replace(Ot,function(e,t,n){return kt(r[parseInt(t,10)],n?n.substring(1):z,o)})}var Tt,_t=t(527),Ft={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672761705,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},Nt=(b.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&Array.isArray(t[0])?It(e,t[0],this.locale):It(e,t,this.locale)},b.prototype.formatDate=function(e,t){return lt(e,t,this.locale)},b.prototype.toString=function(e,t){return kt(e,t,this.locale)},b.prototype.parseNumber=function(e,t){return e=e,n=this.locale,void 0===(t=t)&&(t={}),e||0===e?Be(e)?e:(i=(n=F(n=void 0===n?H:n)).numbers.symbols,e=e.toString(),o=t||{},s(t)&&(ke(o={format:t}),e=function(e){var t=o.literals,n=e;if(t)for(var r=0;r<t.length;r++)n=n.replace(t[r],z);return n}(e),Oe(o,n)),(o.style===A||-1<e.indexOf(i.percentSign))&&(e=e.replace(i.percentSign,z),r=!0),Pe.test(e)?(e=parseFloat(e.replace(i.decimal,P)),isNaN(e)?null:e):(n=(t=function(e,o,t){var n,i=De((t=Ae(t)||{}).style),r=e;if(e=t.currency||ge(o,i)){var a=function(e){var t=me(o,e,void 0===i?!0:i);if(t){if(!t.displays){var n,r=[e];for(n in t)r.push(t[n]);r.sort(fe),t.displays=r}return t.displays}}(e);if(a)for(var s=0;s<a.length;s++){var l=a[s];if(r.includes(l)){r=r.replace(l,z),i=!0;break}}i&&(t=He(r,o.numbers.currency.patterns)||He(r,o.numbers.accounting.patterns))&&(n=!0,r=t)}return{number:r,negative:n}}(e,n,o)).negative,t=t.number,0<(t=(e=String(t).trim()).indexOf("-"))?null:(t=-1<t,t=void 0!==n?n:t,e=e.replace("-",z).replace(ze," ").split(i.group.replace(ze," ")).join(z).replace(i.decimal,P),e=parseFloat(e),isNaN(e)?e=null:t&&(e*=-1),e&&r&&(n=e,i=String(n),t=i.indexOf(P),n/=Math.pow(10,2),e=-1===t||String(n).length<=i.length+2?n:(i=i.length-t+1+2,parseFloat(n.toFixed(i)))),e))):null;var n,r,o,i},b.prototype.parseDate=function(e,t){var n=this.locale;if(void 0===n&&(n=H),!e)return null;if(Ve(e))return e;var r=String(e).trim(),o=function(e){if(e&&0===e.indexOf("/D")){var t,e=ct.exec(e);if(e)return e=e[1],t=pt.exec(e.substring(1)),e=new Date(parseInt(e,10)),t&&(n="-"===(r=t[0]).substr(0,1)?-1:1,r=r.substring(1),t=n*(60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),e=ut(e,e.getTimezoneOffset(),0),e=ut(e,0,-1*t)),e}var n,r}(r);if(!o)for(var i=F(n),a=t||function(){for(var e=[],t=i.calendar.patterns,n=wt.length,r=0;r<n;r++)e.push(t[wt[r]]);return e.concat(yt)}(),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(o=Dt(r,a[l],i))return o;return o},b.prototype.formatNumber=function(e,t){return Le(e,t,this.locale)},b.prototype.dateFieldName=function(e){var t=this.locale;if(t=F(t=void 0===t?H:t).calendar.dateFields)return(t=t[e.type]||{})[e.nameType]||t.wide;throw d.NoDateFieldNames.error()},b.prototype.dateFormatNames=function(e){return oe(this.locale,e)},b.prototype.splitDateFormat=function(e){for(var t=this.locale,n=Je(e,F(t=void 0===t?H:t)),r=[],o=p.lastIndex=0,i=p.exec(n);i;){var a,s,l,u,d=i[0];o<i.index&&Ct(r,n.substring(o,i.index)),d.startsWith('"')||d.startsWith("'")?Ct(r,d):(a=d[0],s={type:u=rt[a],pattern:d},"hour"===u&&(s.hour12="h"===(l=d)||"K"===l),(l=Et[u])&&(Be(l.minLength)?l.minLength:l.minLength[a])<=(u=d.length)&&(s.names={type:l.type,nameType:Ye(u),standAlone:l.standAlone===a}),r.push(s)),o=p.lastIndex,i=p.exec(n)}return o<n.length&&Ct(r,n.substring(o)),r},b.prototype.numberSymbols=function(){return a(this.locale).numbers.symbols},b.prototype.firstDay=function(){return ve(this.locale)},b),r=Object.create({}),At=(zt.prototype.toLanguageString=function(e,t){return this.language&&r[this.language]&&r[this.language].hasOwnProperty(e)?r[this.language][e]:t},zt),v=i.createContext({intl:new Nt("en"),localization:new At}),Lt=(Tt=function(e,t){return(Tt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n=t,r=e;if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=n}return Tt(n,r),n.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o),t.prototype.getIntlService=function(){return new Nt(this.props.locale)},t.prototype.render=function(){var t=this;return i.createElement(v.Consumer,null,function(e){return i.createElement(v.Provider,{value:Lt(Lt({},e),{intl:t.getIntlService()})},t.props.children)})},t.propTypes={locale:E.string},t}(i.Component),Pt=function(e,t,n){for(var r in e){var o;e.hasOwnProperty(r)&&((o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],n,!0)).push(r),"string"!=typeof e[r]?Pt(e[r],t,o):(r=e[r],Object.defineProperty(t,o.join("."),{value:r})))}};function zt(e){this.language=e}function b(e){this.locale=e,void 0!==_t?_t.validatePackage(Ft):(e="License activation failed for ".concat(Ft.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(Ft.licensingDocsUrl," for more information.\n"),console.warn(e))}Wt=function(e,t){return(Wt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Ht,Wt,nt=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ut=(Ht=i.Component,nt(S,Ht),S.prototype.getLocalizationService=function(){return new At(this.props.language)},S.prototype.render=function(){var t=this;return i.createElement(v.Consumer,null,function(e){return i.createElement(v.Provider,{value:jt(jt({},e),{localization:t.getLocalizationService()})},t.props.children)})},S.propTypes={language:E.string},S);function S(){return null!==Ht&&Ht.apply(this,arguments)||this}var Rt=function(){return i.useContext(v).intl},Zt=function(){return i.useContext(v).localization}},527:e=>{e.exports=f},536:e=>{e.exports=p},811:e=>{e.exports=m},895:e=>{e.exports=c},954:e=>{e.exports=u},493:e=>{e.exports=d}},r={};function o(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},n[e].call(t.exports,t,t.exports,o)),t.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e,t,i,a,s,l={};return e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0,t=o(580),Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}}),i=o(379),Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return i.DialogActionsBar}}),a=o(891),Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return a.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return a.WindowPropsContext}}),s=o(617),Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return s.WindowActionsBar}}),l})())}}});
|
|
1
|
+
System.register("@progress/kendo-react-dialogs",["react","react-dom","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-licensing"],function(e,t){var u={},d={},c={},p={},m={},f={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(f,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={580:function(e,t,n){var r,i,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__assign||function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0,n(954)),y=n(493),a=n(895),w=n(348),s=n(379),v=n(811),l=n(811),u=n(363),d=n(147),M=n(56),n=(i=h.Component,o(c,i),c.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},c.prototype.render=function(){var t=this,e=void 0!==this.props.id?this.props.id:this.titleId,n=this.props,r=n.title,o=n.width,i=n.height,a=n.children,s=n.minWidth,l=n.dir,u=n.style,n=n.contentStyle,a=h.Children.toArray(a),d=this.getContent(a),a=this.getActionBar(a),c=r?{"aria-labelledby":e}:null,p=void 0===this.props.closeIcon||this.props.closeIcon,m=this.getCurrentZIndex(),f=h.createElement(v.ZIndexContext.Provider,{value:m},h.createElement("div",g({},((f={})[M.DATA_DIALOGS_ID]=this._id,f),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:l,style:g({zIndex:m},u),ref:function(e){return t.element=e}}),h.createElement("div",{className:"k-overlay"}),h.createElement("div",g({},c,{className:"k-widget k-window k-dialog",role:"dialog","aria-modal":!0,"aria-describedby":this.contentId,style:{width:o,height:i,minWidth:s}}),this.props.title&&h.createElement(w.DialogTitleBar,{closeIcon:p,onCloseButtonClick:this.onCloseDialog,id:e},r),h.createElement("div",{className:"k-window-content k-dialog-content",style:n,id:this.contentId},d),a)));return v.canUseDOM?null!==this.props.appendTo?y.createPortal(f,this.props.appendTo||document.body):f:null},c.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===s.DialogActionsBar})},c.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==s.DialogActionsBar})},c.prototype.generateTitleId=function(){return"dialog-title"+this._id},c.prototype.generateContentId=function(){return"dialog-content"+this._id},c.displayName="Dialog",c.propTypes={title:a.any,id:a.string,dir:a.string,style:a.object,closeIcon:a.bool,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string]),autoFocus:a.bool},c.defaultProps={autoFocus:!1},c.contextType=v.ZIndexContext,c);function c(e){var o=i.call(this,e)||this;return o.context=0,o._id=(0,v.guid)(),o.titleId=o.generateTitleId(),o.contentId=o.generateContentId(),o.onCloseDialog=function(e){e.preventDefault(),(0,v.dispatchEvent)(o.props.onClose,e,o,void 0)},o.onKeyDown=function(e){e.keyCode===v.Keys.esc&&o.props.onClose&&(e.preventDefault(),o.onCloseDialog(e));var t,n,r=o.element;r&&e.keyCode===v.Keys.tab&&(t=(r=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))[0],r=r[r.length-1],n=o.getDocument(),e.shiftKey?(n&&n.activeElement===t||n&&n.activeElement===o.element)&&(r.focus(),e.preventDefault()):n&&n.activeElement===r&&(t.focus(),e.preventDefault()))},o.getCurrentZIndex=function(){return o.state&&void 0!==o.context?o.state.zIndex>(o.context?o.context+M.ZINDEX_DIALOGS_STEP:0)?o.state.zIndex:o.context+M.ZINDEX_DIALOGS_STEP:o.context||M.DEFAULT_DIALOGS_ZINDEX},o.getDocument=function(){return o.props.appendTo?o.props.appendTo.ownerDocument:document},(0,l.validatePackage)(u.packageMetadata),o.state={zIndex:(0,d.getMaxZIndex)(o.getCurrentZIndex(),o.getDocument(),o._id)},o}t.DialogPropsContext=(0,v.createPropsContext)(),t.Dialog=(0,v.withPropsContext)(t.DialogPropsContext,n),t.Dialog.displayName="KendoReactDialog"},379:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.DialogActionsBar=function(e){var t,n=e.layout,n=void 0===n?a.layout:n,e=e.children,n=(0,i.classNames)("k-dialog-buttongroup","k-actions",((t={})["k-actions-".concat(n)]=n,t));return r.createElement("div",{className:n},e)},t.DialogActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"stretched"})},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var o=n(954),i=n(536);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.id,e=e.closeIcon;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:r},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},e&&o.createElement(i.Button,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action"})))}},522:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0,o=n(954).Component,i(a,o),a.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},a.prototype.render=function(){return this.props.children},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.MiddleLayerOptimization=n},259:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(t=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",t.FULLSCREEN="FULLSCREEN",t.MINIMIZED="MINIMIZED"},891:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0,n(954)),l=n(493),u=n(895),d=n(583),c=n(811),p=n(811),m=n(151),f=n(522),g=n(259),h=n(811),y=n(363),w=n(617),v=n(56),M=n(147),n=(o=s.Component,i(b,o),b.prototype.componentDidMount=function(){var e,t=this.getWindow(),t=(t&&t.addEventListener("resize",this.handleBrowserWindowResize),this.getDocument());this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},b.prototype.componentDidUpdate=function(){var e,t=this.getDocument();this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.render=function(){var t=this,e=s.Children.toArray(this.props.children),n=this.getContent(e),e=this.getActionBar(e),r=this.getCurrentZIndex(),o=(0,c.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),i=s.createElement(c.ZIndexContext.Provider,{value:r},s.createElement(s.Fragment,null,this.props.modal&&s.createElement("div",{className:"k-overlay",style:a({zIndex:r},this.props.overlayStyle)}),s.createElement("div",a({},((i={})[v.DATA_DIALOGS_ID]=this._id,i),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:o,style:a({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:r},this.props.style)}),s.createElement(f.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},s.createElement(p.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},s.createElement(d.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==g.windowStage.MINIMIZED?s.createElement(s.Fragment,null,s.createElement("div",{className:"k-window-content"},n),e):null,this.windowStage===g.windowStage.DEFAULT&&this.props.resizable?s.createElement(m.ResizeHandlers,{onResize:this.handleResize}):null))));return c.canUseDOM?null!==this.props.appendTo?l.createPortal(i,this.props.appendTo||document.body):i:null},Object.defineProperty(b.prototype,"top",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"left",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow(),e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow(),e=t?t.innerHeight:0}else this.windowStage===g.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),b.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===w.WindowActionsBar})},b.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==w.WindowActionsBar})},b.prototype.generateTitleId=function(){return"window-title-"+this._id},b.displayName="Window",b.propTypes={width:u.number,height:u.number,left:u.number,top:u.number,initialWidth:u.number,initialHeight:u.number,initialLeft:u.number,initialTop:u.number,minWidth:u.number,minHeight:u.number,resizable:u.bool,draggable:u.bool,title:u.any,shouldUpdateOnDrag:u.bool,stage:u.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:u.string,style:u.object,overlayStyle:u.object},b.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},b.contextType=c.ZIndexContext,b);function b(e){var m=o.call(this,e)||this;return m.context=0,m.draggable=null,m.offSetCoordinates={x:0,y:0},m._id=(0,c.guid)(),m.titleId=m.generateTitleId(),m.onKeyDown=function(e){if(e.target===e.currentTarget){var t=m.props.minWidth||120,n=m.props.minHeight||100;if(e.ctrlKey&&m.props.resizable){switch(e.keyCode){case c.Keys.up:e.preventDefault(),n<=m.height-5&&m.setState({height:m.height-5});break;case c.Keys.down:e.preventDefault(),m.setState({height:m.height+5});break;case c.Keys.left:t<=m.width-5&&m.setState({width:m.width-5});break;case c.Keys.right:m.setState({width:m.width+5});break;default:return}m.dispatchMoveEvent(m.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case c.Keys.up:m.windowStage===g.windowStage.MINIMIZED?(m.handleRestore(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})):m.windowStage===g.windowStage.DEFAULT&&(m.handleFullscreen(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.FULLSCREEN}));break;case c.Keys.down:m.windowStage===g.windowStage.FULLSCREEN?(m.handleRestore(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})):m.windowStage===g.windowStage.DEFAULT&&(m.handleMinimize(e),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case c.Keys.esc:return void(m.props.onClose&&m.handleCloseWindow(e));case c.Keys.up:m.setState({top:m.state.top-5});break;case c.Keys.down:m.setState({top:m.state.top+5});break;case c.Keys.left:m.setState({left:m.state.left-5});break;case c.Keys.right:m.setState({left:m.state.left+5});break;default:return}m.dispatchMoveEvent(m.props.onMove,e,!1,void 0)}}},m.onPress=function(e){e=e.event;m.windowCoordinatesState.differenceLeft=e.pageX-m.left,m.windowCoordinatesState.differenceTop=e.pageY-m.top},m.onDrag=function(e){e=e.event;e.originalEvent.preventDefault(),m.windowStage!==g.windowStage.FULLSCREEN&&m.props.draggable&&(m.setState({top:Math.max(e.pageY-m.windowCoordinatesState.differenceTop,0),left:e.pageX-m.windowCoordinatesState.differenceLeft,isDragging:!0}),m.props.onMove)&&m.dispatchMoveEvent(m.props.onMove,e,!0,!1)},m.onRelease=function(e){e=e.event;m.windowStage!==g.windowStage.FULLSCREEN&&m.props.draggable&&m.props.onMove&&m.dispatchMoveEvent(m.props.onMove,e,!0,!0),m.setState({isDragging:!1})},m.onFocus=function(){m._blurTimeout?(clearTimeout(m._blurTimeout),m._blurTimeout=void 0):m.setState({focused:!0,zIndex:(0,M.getMaxZIndex)(m.getCurrentZIndex(),m.getDocument(),m._id)})},m.onBlur=function(){clearTimeout(m._blurTimeout);var e=m.getWindow();e&&(m._blurTimeout=e.setTimeout(function(){m.setState({focused:!1}),m._blurTimeout=void 0}))},m.getInitialTop=function(){var e,t;return void 0!==m.props.top?m.props.top:void 0!==m.props.initialTop?m.props.initialTop:(e=300,void 0!==m.props.height?e=m.props.height:void 0!==m.props.initialHeight&&(e=m.props.initialHeight),m.props.appendTo?m.props.appendTo.offsetHeight/2-e/2:(t=m.getWindow())?t.innerHeight/2-e/2:0)},m.getInitialLeft=function(){var e,t;return void 0!==m.props.left?m.props.left:void 0!==m.props.initialLeft?m.props.initialLeft:(e=300,void 0!==m.props.width?e=m.props.width:void 0!==m.props.initialWidth&&(e=m.props.initialWidth),m.props.appendTo?m.props.appendTo.offsetWidth/2-e/2:(t=m.getWindow())?t.innerWidth/2-e/2:0)},m.getInitialWidth=function(){var e=300;return void 0!==m.props.width?e=m.props.width:void 0!==m.props.initialWidth&&(e=m.props.initialWidth),e},m.getInitialHeight=function(){var e=300;return void 0!==m.props.height?e=m.props.height:void 0!==m.props.initialHeight&&(e=m.props.initialHeight),e},m.handleMinimize=function(e){e.preventDefault(),m.windowCoordinatesState.leftBeforeAction=m.left,m.windowCoordinatesState.topBeforeAction=m.top,m.windowCoordinatesState.widthBeforeAction=m.width,m.windowCoordinatesState.heightBeforeAction=m.height,m.setState({stage:g.windowStage.MINIMIZED,height:0}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.MINIMIZED})},m.handleFullscreen=function(e){e.preventDefault(),m.windowCoordinatesState.leftBeforeAction=m.left,m.windowCoordinatesState.topBeforeAction=m.top,m.windowCoordinatesState.widthBeforeAction=m.width,m.windowCoordinatesState.heightBeforeAction=m.height;var t=m.getWindow(),n=t?t.innerWidth:0,t=t?t.innerHeight:0;m.setState({left:0,top:0,width:m.props.appendTo?m.props.appendTo.offsetWidth:n,height:m.props.appendTo?m.props.appendTo.offsetHeight:t,stage:g.windowStage.FULLSCREEN}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.FULLSCREEN})},m.handleRestore=function(e){e.preventDefault(),m.windowStage===g.windowStage.FULLSCREEN?m.setState({stage:g.windowStage.DEFAULT,left:m.windowCoordinatesState.leftBeforeAction,top:m.windowCoordinatesState.topBeforeAction,width:m.windowCoordinatesState.widthBeforeAction,height:m.windowCoordinatesState.heightBeforeAction}):m.windowStage===g.windowStage.MINIMIZED&&m.setState({stage:g.windowStage.DEFAULT,height:m.windowCoordinatesState.heightBeforeAction}),(0,c.dispatchEvent)(m.props.onStageChange,e,m,{state:g.windowStage.DEFAULT})},m.handleCloseWindow=function(e){e.preventDefault(),(0,c.dispatchEvent)(m.props.onClose,e,m,{state:void 0})},m.handleDoubleClick=function(e){m.windowStage===g.windowStage.FULLSCREEN||m.windowStage===g.windowStage.MINIMIZED?m.handleRestore(e):m.handleFullscreen(e)},m.handleResize=function(e,t){var n=m.props.appendTo?e.pageX-m.offSetCoordinates.x:e.pageX,r=m.props.appendTo?e.pageY-m.offSetCoordinates.y:e.pageY,o=m.width,i=m.height,a=m.props.minWidth||120,s=m.props.minHeight||100,l=m.top-r,u=m.left-n,d=n-m.left,c=r-m.top,p=Object.assign({},m.state,{isDragging:!t.end});0<=t.direction.indexOf("n")&&s-(i+l)<0&&(0<m.top&&(p.height=i+l),p.top=r),0<=t.direction.indexOf("s")&&s-c<0&&(p.height=c),0<=t.direction.indexOf("w")&&a-(o+u)<0&&(0<m.left&&(p.width=o+u),p.left=n),0<=t.direction.indexOf("e")&&a-d<0&&(p.width=d),m.setState(p),m.dispatchMoveEvent(m.props.onResize,e,!0,t.end)},m.dispatchMoveEvent=function(e,t,n,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent||t.originalEvent,drag:n,end:r,target:m,left:m.state.left,top:m.state.top,width:m.state.width,hight:m.state.height,height:m.state.height})},m.handleBrowserWindowResize=function(){var e,t;m.windowStage===g.windowStage.FULLSCREEN&&(e=(t=m.getWindow())?t.innerWidth:0,t=t?t.innerHeight:0,m.setState({width:m.props.appendTo?m.props.appendTo.offsetWidth:e,height:m.props.appendTo?m.props.appendTo.offsetHeight:t}))},m.getCurrentZIndex=function(){return m.state&&void 0!==m.context?m.state.zIndex>(m.context?m.context+v.ZINDEX_DIALOGS_STEP:0)?m.state.zIndex:m.context+v.ZINDEX_DIALOGS_STEP:m.context||v.DEFAULT_DIALOGS_ZINDEX},m.getDocument=function(){return m.props.appendTo?m.props.appendTo.ownerDocument:document},m.getWindow=function(){var e=m.getDocument();return e&&e.defaultView},(0,h.validatePackage)(y.packageMetadata),m.state={stage:m.props.stage||g.windowStage.DEFAULT,isDragging:!1,top:m.getInitialTop(),left:m.getInitialLeft(),width:m.getInitialWidth(),height:m.getInitialHeight(),focused:!0,zIndex:(0,M.getMaxZIndex)(m.getCurrentZIndex(),m.getDocument(),m._id)},m.windowCoordinatesState={leftBeforeAction:m.getInitialLeft(),topBeforeAction:m.getInitialTop(),widthBeforeAction:m.getInitialWidth(),heightBeforeAction:m.getInitialHeight()},m}t.WindowPropsContext=(0,p.createPropsContext)(),t.Window=(0,p.withPropsContext)(t.WindowPropsContext,n),t.Window.displayName="KendoReactWindow"},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.WindowActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,i.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return r.createElement("div",{className:t},e)},t.WindowActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"end"})},151:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0,n(954)),s=n(811),l=["n","e","s","w","se","sw","ne","nw"],n=(o=a.Component,i(u,o),u.prototype.render=function(){var n=this;return a.createElement("div",null," ",l.map(function(t,e){return a.createElement(s.Draggable,{key:e,onDrag:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!1,direction:t})},onRelease:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!0,direction:t})}},a.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))}))},u);function u(){return null!==o&&o.apply(this,arguments)||this}t.ResizeHandlers=n},583:function(e,t,n){function r(e){var t=e.children,n=e.onCloseButtonClick,r=e.onMinimizeButtonClick,o=e.onFullScreenButtonClick,i=e.onRestoreButtonClick,a=e.onDoubleClick,s=e.stage,l=e.forwardedRef,u=e.id,d=(0,f.useLocalization)(),r=e.minimizeButton?c.createElement(e.minimizeButton,{onClick:r,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-minimize",className:"k-window-action",onClick:r,"aria-label":d.toLanguageString(g.dialogsWindowMinimizeButton,g.messages[g.dialogsWindowMinimizeButton])}),o=e.maximizeButton?c.createElement(e.maximizeButton,{onClick:o,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-maximize",className:"k-window-action",onClick:o,"aria-label":d.toLanguageString(g.dialogsWindowMaximizeButton,g.messages[g.dialogsWindowMaximizeButton])}),i=e.restoreButton?c.createElement(e.restoreButton,{onClick:i,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"window-restore",className:"k-window-action",onClick:i,"aria-label":d.toLanguageString(g.dialogsWindowRestoreButton,g.messages[g.dialogsWindowRestoreButton])}),e=e.closeButton?c.createElement(e.closeButton,{onClick:n,stage:s}):c.createElement(m.Button,{fillMode:"flat",icon:"close",className:"k-window-action",onClick:n,"aria-label":d.toLanguageString(g.dialogsWindowCloseButton,g.messages[g.dialogsWindowCloseButton])});return c.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:l,onDoubleClick:a},c.createElement("div",{className:"k-window-title",id:u},t||""),c.createElement("div",{className:"k-window-actions"},s===p.windowStage.DEFAULT&&r,s===p.windowStage.DEFAULT&&o,s!==p.windowStage.DEFAULT&&i,e))}var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0,n(954)),p=n(259),m=n(536),f=n(603),g=n(364);t.WindowTitleBar=c.forwardRef(function(e,t){return c.createElement(r,o({},e,{forwardedRef:t}))})},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.dialogsWindowCloseButton=t.dialogsWindowRestoreButton=t.dialogsWindowMinimizeButton=t.dialogsWindowMaximizeButton=void 0,t.dialogsWindowMaximizeButton="dialogs.windowMaximizeButton",t.dialogsWindowMinimizeButton="dialogs.windowMinimizeButton",t.dialogsWindowRestoreButton="dialogs.windowRestoreButton",t.dialogsWindowCloseButton="dialogs.windowCloseButton",t.messages=((n={})[t.dialogsWindowMaximizeButton]="maximize",n[t.dialogsWindowMinimizeButton]="minimize",n[t.dialogsWindowRestoreButton]="restore",n[t.dialogsWindowCloseButton]="close",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672914367,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var a=n(56);t.getMaxZIndex=function(e,n,r){var o,i=e;return n&&n.defaultView&&(e=n.querySelectorAll(a.DIALOGS_SELECTOR),o=!1,e.forEach(function(e){var t=n.defaultView.getComputedStyle(e,null);e.getAttribute(a.DATA_DIALOGS_ID)!==r&&null!==t.zIndex&&(e=parseInt(t.zIndex,10),i<=e)&&(i=e,o=!0)}),o)?i+a.ZINDEX_DIALOGS_STEP:i}},603:(D,e,t)=>{t.r(e),t.d(e,{IntlProvider:()=>Bt,IntlService:()=>Nt,LocalizationProvider:()=>Ut,LocalizationService:()=>At,load:()=>function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var r,o,i,a=e[n];a.main?(r=Object.keys(a.main)[0],o=a.main[r],i=_[r]=_[r]||{},o.units?function(e,t){e.calendar.dateFields.millisecond={narrow:re(t.narrow[te]),short:re(t.short[te]),wide:re(t.long[te])}}(i,o.units):(i.name=i.name||r,i.identity=i.identity||o.identity,ee(i),function(e,t){for(var n in t)"numbers"===n?function(e,t){var n,e=_[e],r=e.numbers=e.numbers||{};for(n in r.symbols=r.symbols||{},t){var o,i;"symbols-numberSystem-latn"===n?Object.assign(r.symbols,t[n]):n.includes(T)?(o=n.substr(0,n.indexOf(T)),i=t[n].standard,r[o]={patterns:K(i)},o===N?(r[o].groupSize=q((t[Z+T]||t[n]).standard),function(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}",B).replace("{1}",L))}(r[o],t[n]),r.accounting={patterns:K(t[n].accounting),groupSize:r[o].groupSize}):r[o].groupSize=q(i)):"currencies"===n&&(r.currencies=t[n])}}(e,t[n]):"dates"===n&&function(e,t){var n,r=_[e].calendar=_[e].calendar||{};for(n in t)"timeZoneNames"===n?(r.gmtFormat=t[n].gmtFormat,r.gmtZeroFormat=t[n].gmtZeroFormat):"calendars"===n&&t[n].gregorian?(function(e,t){var n,r,e=_[e].calendar,o=e.patterns={};for(n in o.d=V(Y,t).replace(J,"y"),$)o[n]=V($[n],t);for(r in Q)o[r]=Q[r];var i=t.dateTimeFormats;e.dateTimeFormats={full:i.full,long:i.long,medium:i.medium,short:i.short,availableFormats:i.availableFormats},e.timeFormats=t.timeFormats,e.dateFormats=t.dateFormats}(e,t[n].gregorian),function(e,t){e=_[e].calendar;e.days=l(t.days),e.months=l(t.months),e.quarters=l(t.quarters),e.dayPeriods=l(t.dayPeriods,!0),e.eras=function(e){var t,n={},r=n.format={},o={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(t in e)r[o[t]]=e[t];return n}(t.eras)}(e,t[n].gregorian)):"fields"===n&&function(e,t){var n,e=_[e].calendar,r={};for(n in t){var o=n.split("-"),i=o[0],o=o[1],a=(void 0===o&&(o="wide"),r[i]||{}),s=t[n].displayName;s&&(a[o]=s,r[i]=a)}e.dateFields=r}(e,t.fields)}(e,t[n])}(r,o))):a.supplemental&&(a.supplemental.weekData?_.supplemental.weekData={firstDay:a.supplemental.weekData.firstDay,weekendStart:a.supplemental.weekData.weekendStart,weekendEnd:a.supplemental.weekData.weekendEnd}:a.supplemental.likelySubtags?_.supplemental.likelySubtags=Object.assign(_.supplemental.likelySubtags,a.supplemental.likelySubtags):a.supplemental.currencyData&&((i=_.supplemental.currencyData).region=Object.assign(i.region||{},a.supplemental.currencyData.region),i.fractions=Object.assign(i.fractions||{},a.supplemental.currencyData.fractions)))}},loadMessages:()=>function(e,t){t=r[t]=r[t]||{};Pt(e,t,[])},provideIntlService:()=>function(e){e=e.context;return e&&e.intl?e.intl:new Nt("en")},provideLocalizationService:()=>function(e){e=e.context;return e&&e.localization?e.localization:new At},registerForIntl:()=>function(e){e.contextType=v},registerForLocalization:()=>function(e){e.contextType=v},useInternationalization:()=>Rt,useLocalization:()=>Zt});var i=t(954),E=t(895);function s(e){return"string"==typeof e}function x(e){var t=e.name,e=e.message;if(!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}var C,O=/\{(\d+)}?\}/g,k=(x.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=k(e),r=this.message.replace(O,function(e,t){return n[parseInt(t,10)]});return this.name+": "+r},x.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))},function(e){return e.reduce(function(e,t){return e.concat(t)},[])}),d=(C={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(C).reduce(function(e,t){return e[t]=new x({name:t,message:C[t]}),e},{})),_={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function a(e){return s(e)?F(e):e}function F(e){if(_[e])return _[e];if(_.supplemental.likelySubtags){var t=e.split("-"),n=t[0],t=t.slice(1),n=function(e,t){for(var n=_.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,t),n=n?(t=t,r=(n=n).split("-"),o=r[0],i=r[1],r=r[2],_[n]||-1!==t.indexOf(r)&&_[o+"-"+r]||-1!==t.indexOf(i)&&_[o+"-"+i]||_[o]):null;if(n)return n}var r,o,i;throw d.NoLocale.error(e)}var Z="decimal",N="currency",I="accounting",A="percent",G="scientific",L="$",B="n",P=".",z="",H="en",T="Formats-numberSystem-latn",n=/([#,0.]+)/g,X=/¤/g;function K(e){return n.lastIndex=0,e.replace(X,L).replace(n,B).split(";")}function q(e){return n.lastIndex=0,n.exec(e.split(";")[0])[0].split(P)[0].split(",").slice(1).map(function(e){return e.length}).reverse()}var Q={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},J=/y+/g,Y=[["dateFormats","short"]],$={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function l(e,t){var n,r={};for(n in e){var o,i=r[n]={};for(o in e[n]){var a=e[n][o];i[o]=t?a:function(e){for(var t=[],n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=e[n[r]];t.push(o)}return t}(a)}}return r}function V(e,t){for(var n=[],r=0;r<e.length;r++){for(var o=e[r],i=t,a=0;a<o.length;a++)i=i[o[a]];n.push(i)}return n.join(" ")}function ee(e){var t,n;return e.territory||(n=e.name,n=(t=e.identity)&&t.territory?t.territory:function(e,t){var n=_.supplemental.likelySubtags,r=e.split("-");if(n&&(e=n[e]||n[r[0]])&&(r=e.split("-")),t)for(var o=r.length-1;1<=o;o--){var i=r[o];i!==t.variant&&i!==t.script||r.splice(o,1)}n=r.length;if(1<n)return r[n-1].toUpperCase()}(n,t),e.territory=n)}var te="duration-millisecond",ne=/\{0\}\s?/;function re(e){return(e["unitPattern-count-one"]||e["unitPattern-count-other"]).replace(ne,"")}function oe(e,t){var n=t.type,r=t.nameType,o=t.standAlone,t=t.lower,e=a(e),i=(t?"lower-":z)+r,e=e.calendar[n][o?"stand-alone":"format"],n=e[i];return n=!n&&t?e[i]=(o=e[r],(Array.isArray(o)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}:function(e){var t,n={};for(t in e)n[t]=e[t].toLowerCase();return n})(o)):n}function ie(e){var e=e.split("-"),t=parseInt(e[0],10),n=parseInt(e[1],10)-1,e=parseInt(e[2],10);return new Date(t,n,e)}var ae=d.NoCurrency,se=d.NoCurrencyDisplay,le=d.NoSupplementalCurrency,ue=d.NoCurrencyRegion,de=d.NoValidCurrency,ce="symbol",pe={"001":"USD",150:"EUR"};function me(e,t,n){e=a(e).numbers.currencies;if(e){e=e[t];if(e)return e;if(n)throw se.error()}else if(n)throw ae.error()}function fe(e,t){return t.length-e.length}function ge(e,t){var e=a(e),n=e.numbers;if(!n.localeCurrency){var r=function(e,t){if(void 0===t&&(t=!0),pe[e])return pe[e];var n=_.supplemental.currencyData;if(n){n=n.region[e];if(n){for(var r,o,i,a,s=n,l=0;l<s.length;l++){var u,d,c=s[l],p=Object.keys(c)[0],c=c[p];"XXX"!==p&&"false"!==c._tender&&c._from&&(c._to?!i&&(d=ie(c._from),u=ie(c._to),!o||o.to<u||o.from<d)&&(r=p,o={from:d,to:u}):(d=ie(c._from),(!a||a<d)&&(i=p,a=d)))}return i||r}if(t)throw ue.error(e)}else if(t)throw le.error()}(ee(e),t);if(!r&&t)throw de.error(e.name);n.localeCurrency=r}return n.localeCurrency}var he=["sun","mon","tue","wed","thu","fri","sat"],ye=d.NoWeekData,we=d.NoFirstDay;function ve(e){e=a(e);if(!isNaN(e.firstDay))return e.firstDay;var t=_.supplemental.weekData;if(!t)throw ye.error();t=t.firstDay[ee(e)]||t.firstDay["001"];if(t)return e.firstDay=he.indexOf(t),e.firstDay;throw we.error()}function Me(e){return 1/e==-1/0}function be(e,t){var n,r;return(t=void 0===t?{}:t).currency||(t.currency=ge(e,!0)),n=(t=t).value,r=t.currency,"code"===(t=void 0===(t=t.currencyDisplay)?ce:t)?r:(r=me(e,r,!0),t===ce?r["symbol-alt-narrow"]||r.symbol:void 0===n||1!==n?r["displayName-count-other"]:r["displayName-count-one"])}function Se(e,t,n,r,o){var o=o.numbers.symbols,i=e.indexOf(o.decimal),a=r.groupSize.slice(),s=a.shift(),r=-1!==i?i:n+1,l=e.substring(t,r),i=e,n=l.length;if(s<=n){for(var u=n,d=[];-1<u;){var c=l.substring(u-s,u),p=(c&&d.push(c),u-=s,a.shift());if(0===(s=void 0!==p?p:s)){(c=l.substring(0,u))&&d.push(c);break}}l=d.reverse().join(o.group),i=e.substring(0,t)+l+e.substring(r)}return i}function De(e){return e===N||e===I}function W(e,t,n){void 0===n&&(n=!1);var t=(t=void 0===t?2:t)-String(e).length,r=e;return 0<t&&(t=new Array(1+t).join("0"),r=n?e+t:t+e),r}function j(e,t){t=t||0,e=(e=e).toString().split("e");return e=(e=Math.round(Number(e[0]+"e"+(e[1]?Number(e[1])+t:t)))).toString().split("e"),(e=Number(e[0]+"e"+(e[1]?Number(e[1])-t:-t))).toFixed(Math.min(t,20))}d.NoWeekData;var Ee=/0+$/;var xe=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Ce="__??__";function Oe(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style=A,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf(L)&&(e.style=N,e.symbol=be(t))}function ke(e){var n,t=e.format;(-1<t.indexOf("'")||-1<t.indexOf('"')||-1<t.indexOf("\\"))&&(n=e.literals=[],e.format=t.replace(xe,function(e){var t=e.charAt(0).replace("\\",z),e=e.slice(1).replace(t,z);return n.push(e),Ce}))}var U="#",R="0",Ie=/(\.(?:[0-9]*[1-9])?)0+$/g,Te=/\.$/,_e=/,/g;function Fe(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}var Ne=/^(n|c|p|e|a)(\d*)$/i;function Ae(e){{var t,n,r;if(s(e))return(r=Ne.exec(e))?(t={style:Z},"c"===(n=r[1].toLowerCase())?t.style=N:"a"===n?t.style=I:"p"===n?t.style=A:"e"===n&&(t.style=G),r[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(r[2],10)),t):void 0}return e}function Le(e,t,n){if(void 0===t&&(t=B),void 0===n&&(n=H),null==e)return z;var v,r,o,i,a,s,l;if(isFinite(e))if(n=F(n),c=Ae(t)){var u=c.style||Z,d=e,u=Object.assign({},n.numbers[u],c),c=n,p=c.numbers.symbols,m=u.style,f=De(m);if(m===G)return(void 0!==u.minimumFractionDigits?d.toExponential(u.minimumFractionDigits):d.toExponential()).replace(P,p.decimal);var g,h,y=d,w=(f&&(u.value=y,g=be(c,u)),m===A&&(y*=100,g=p.percentSign),m=u.minimumFractionDigits,D=u.maximumFractionDigits,b=u.style,(S=De(b))&&(h=u.currency,M=w=2,(h=((_.supplemental.currencyData||{}).fractions||{})[h])&&h._digits&&(M=w=parseInt(h._digits,10)),h={minimumFractionDigits:w,maximumFractionDigits:M}),{minimumFractionDigits:m=void 0===m?S?h.minimumFractionDigits:0:m,maximumFractionDigits:D=void 0===D?b===A?Math.max(m,0):S?Math.max(m,h.maximumFractionDigits):Math.max(m,3):D}),M=w.minimumFractionDigits,b=(y=j(y,w.maximumFractionDigits))<0,S=Me(d),D=(m=y.split(P))[0],y=W(m[1]?m[1].replace(Ee,z):z,M,!0);if(b&&(D=D.substring(1)),u.minimumIntegerDigits&&(D=W(D,u.minimumIntegerDigits)),m=!1!==u.useGrouping?Se(D,0,D.length,u,c):D,y&&(m+=p.decimal+y),(y=f&&"name"===u.currencyDisplay?(D=c.numbers.currency,D=1!==d?D["unitPattern-count-other"]:D["unitPattern-count-one"],D=d<0?D.replace(B,"-n"):D):(p=u.patterns,b||S?p[1]||"-"+p[0]:p[0]))!==B||b){for(var E=m,x=y,C=g,O=z,k=0,I=x.length;k<I;k++){var T=x.charAt(k);O+=T===B?E:T===L||"%"===T?C:T}return O}return m}else return f=t,c=n,d={negative:(d=e)<0,number:Math.abs(d),negativeZero:Me(d),format:f},D=(f=d).number,u=(u=f.format).split(";"),(f.negative||f.negativeZero)&&u[1]?(u=u[1],f.hasNegativeFormat=!0):0===D?(u=(D=u[2])||u[0],D&&-1===(l=D).indexOf(U)&&-1===l.indexOf(R)&&(f.constant=D)):u=u[0],f.format=u,d.constant||(ke(d),Oe(d,c),(l=d).hasGroup=-1<l.format.indexOf(","),l.hasGroup&&(l.format=l.format.replace(_e,z)),f=(D=d).number,u=D.format,-1!==(S=u.indexOf(P))?(o=-1<(r=u.lastIndexOf(R)-S),i=-1<(p=u.lastIndexOf(U)-S),a=(a=(a=(a=f.toString().split("e"))[1]?j(f,Math.abs(a[1])):a[0]).split(P)[1]||z).length,s=-1,o||i?o&&p<r?a=r:r<p&&(i&&p<a?a=p:o&&a<r&&(a=r),s=o?r:0):(D.format=u.substring(0,S)+u.substring(S+1),S=-1,a=0),-1<a&&(f=j(f,a),-1<s)&&(i=f,p=0===s?Ie:new RegExp("(\\.[0-9]{"+s+"}[1-9]*)0+$","g"),f=i.replace(p,"$1").replace(Te,z))):f=j(f),D.negative&&0<=-1*f&&!D.negativeZero&&(D.negative=!1),D.number=f,D.decimalIndex=S,r=(o=d).format,u=Fe(r.indexOf(U),r.indexOf(R),!0),s=Fe(r.lastIndexOf(U),a=r.lastIndexOf(R)),u===r.length&&(s=u),o.start=u,o.end=s,o.lastZeroIndex=a,i=(v=d).number,i=-1!==v.start?function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace(Ce,t[o]);return n}(i=function(e,t,n){var r=e;if(t===N||t===A)for(var r=z,o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+=a===L||"%"===a?n:a}return r}(i=function(e){var t=v.start,n=v.end,r=v.negative,o=v.negativeZero,i=v.format,a=v.decimalIndex,s=v.lastZeroIndex,l=v.hasNegativeFormat,u=v.hasGroup,d=(h=v.number).toString().split(P),c=i.length,p=d[0],m=d[1]||z,f=p.length,g=z,h=i.substring(0,t);!r&&!o||l||(h+="-");for(var y=t;y<c;y++){var w=i.charAt(y);if(-1===a){if(n-y<f){h+=p;break}}else if(-1!==s&&s<y&&(g=z),a-y<=f&&-1<a-y&&(h+=p,y=a),a===y){h+=(m?e.numbers.symbols.decimal:z)+m,y+=n-a+1;continue}w===R?(h+=w,g=w):w===U&&(h+=g)}return u&&(h=Se(h,t+(r&&!l?1:0),Math.max(n,f+t),e.numbers.decimal,e)),t<=n&&(h+=i.substring(n+1)),h}(c),v.style,v.symbol),v.literals):i);return String(e)}function Be(e){return"number"==typeof e}var Pe=/[eE][-+]?[0-9]+/,ze=/\u00A0/g;function He(e,t){if(1<t.length){t=(t[1]||z).replace(L,z).split(B);if(-1<e.indexOf(t[0])&&-1<e.indexOf(t[1]))return e.replace(t[0],z).replace(t[1],z)}}var We=/\{(\d+)}/g;function je(e){var n=arguments;return e.replace(We,function(e,t){return n[parseInt(t,10)+1]})}var Ue=[2,1,5,3,4],g={},Re=(g[(-2).toString()]=8,g[(-1).toString()]=6,g[2..toString()]=6,{numeric:1,"2-digit":2,short:g[1..toString()]=3,long:4,narrow:5}),Ze=/[hHmsSzZoOvVxX]/,Ge=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Xe={e:"c",E:"c",M:"L",Q:"q"},Ke={},u={};function qe(e){return Ke[e]||(Ke[e]=new RegExp(e+"+")),Ke[e]}function h(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function Qe(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(r in t){for(var a=[],s=r.replace("v","z"),l=0,u=0;u<o;u++){var d=e[u],c=(qe(d[0]).exec(s)||[])[0];if(c?(s=s.replace(c,z),c.length!==d.length&&(d=Math.max(Math.min(Ue[c.length]-Ue[d.length],2),-2),l-=g[d])):l-=120,a.push(c),l<i)break}s.length&&(l-=20*h(s).length),i<l&&(i=l,n=a,m=t[r])}m=m.replace("v","z");for(var p=0;p<o;p++){var m,f=n[p];f&&f!==e[p]&&(f=n[p][0],m=m.replace(qe(f),e[p]),Xe[f])&&(m=m.replace(qe(Xe[f]),e[p]))}return m}function Je(e,t){var n,r,o,i=t.calendar;if(s(e))n=i.patterns[e]||e;else if(e){if(e.pattern)return e.pattern;var a=e.skeleton;a||(e.datetime?n=je(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:a=function(e){for(var t=[],n=0;n<Ge.length;n++){var r=Ge[n],o=e[r.key];o&&(r=r.specifier||r.getSpecifier(e),t.push(r.repeat(Re[o])))}return t.join(z)}(e)),a&&(e=a,n=(t=(a=t).calendar.dateTimeFormats.availableFormats)[e]||(u[a.name]&&u[a.name][e]?u[a.name][e]:(r=0<(r=e.search(Ze))?(o=e.substr(0,r),r=e.substr(r),je(a.calendar.dateTimeFormats.short,t[r]||Qe(h(r),t),t[o]||Qe(h(o),t))):Qe(h(e),t),o=e,t=r,e=a.name,u[e]||(u[e]={}),u[e][o]=t,r)))}return n=n||i.patterns.d}function Ye(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function c(e,t,n,r,o){return oe(e,{type:t,nameType:Ye(n),standAlone:r,lower:o})}function $e(e){return"function"==typeof e}function Ve(e){return Boolean(e)&&$e(e.getTime)&&$e(e.getMonth)}var e="hour",et="zone",tt="weekday",nt="quarter",rt={G:"era",y:"year",q:nt,Q:nt,M:"month",L:"month",d:"day",E:tt,c:tt,e:tt,h:e,H:e,k:e,K:e,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:et,X:et,z:et,Z:et},p=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ot(e,t,n,r){return t<=2?W(e+1,t):c(n,"months",t,r)[e]}function it(e,t,n,r){e=Math.floor(e.getMonth()/3);return t<3?e+1:c(n,"quarters",t,r)[e]}function at(e,t,n){var r,o,i=n.shortHours,a=n.optionalMinutes,s=n.separator,l=n.localizedName,n=n.zZeroOffset,e=e.getTimezoneOffset()/60;return 0==e&&n?"Z":(n=e<=0?"+":"-",o=(r=Math.abs(e).toString().split("."))[1]||0,n=n+(i?r[0]:W(r[0],2)),!o&&a||(n+=(s?":":z)+W(o,2)),l?je(0==e?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,n):n)}function st(e,t,n,r){var o,i;return t<3?(o=e.getDay(),i=ve(n),(o<i?7-i+o:o-i)+1):c(n,"days",t,r)[e.getDay()]}var o={};function lt(n,e,t){var r;return void 0===t&&(t=H),Ve(n)?Je(e,r=F(t)).replace(p,function(e){var t=e.length;return e.includes("'")||e.includes('"')?e.slice(1,t-1):o[e[0]](n,t,r)}):null==n?z:n}function ut(e,t,n){var r=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),t=e.getTimezoneOffset();return new Date(e.getTime()+6e4*(t-r))}o.d=function(e,t){return W(e.getDate(),t)},o.E=function(e,t,n){return c(n,"days",t)[e.getDay()]},o.M=function(e,t,n){return ot(e.getMonth(),t,n,!1)},o.L=function(e,t,n){return ot(e.getMonth(),t,n,!0)},o.y=function(e,t){e=e.getFullYear();return 2===t&&(e%=100),W(e,t)},o.h=function(e,t){return W(e.getHours()%12||12,t)},o.H=function(e,t){return W(e.getHours(),t)},o.k=function(e,t){return W(e.getHours()||24,t)},o.K=function(e,t){return W(e.getHours()%12,t)},o.m=function(e,t){return W(e.getMinutes(),t)},o.s=function(e,t){return W(e.getSeconds(),t)},o.S=function(e,t){e=e.getMilliseconds();return 0!==e?W(String(e/1e3).split(".")[1].substr(0,t),t,!0):W(z,t)},o.a=function(e,t,n){return c(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},o.z=function(e,t,n){return at(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},o.Z=function(e,t,n){return at(e,n,{separator:3<t,localizedName:4===t,zZeroOffset:5===t})},o.x=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},o.X=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},o.G=function(e,t,n){e=0<=e.getFullYear()?1:0;return c(n,"eras",t)[e]},o.e=st,o.c=function(e,t,n){return st(e,t,n,!0)},o.q=function(e,t,n){return it(e,t,n,!0)},o.Q=it;var dt=/([+|-]\d{1,2})(:?)(\d{2})?/,ct=/^\/Date\((.*?)\)\/$/,pt=/[+-]\d*/,mt={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},ft=/\d+/,gt=/^ */,ht=/ *$/,yt=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],wt=["G","g","F","Y","y","M","m","D","d","y","T","t"];function m(e,t,n){return!(t<=e&&e<=n)}function f(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return 0<o&&--r,t.idx=r,o}function y(e,t){var n=e?mt[e]||new RegExp("^\\d{1,"+e+"}"):ft,e=t.value.substr(t.valueIdx,e).match(n);return e?(e=e[0],t.valueIdx+=e.length,parseInt(e,10)):null}function w(e,t,n){for(var r,o,i,a=0,s=e.length,l=0,u=0;a<s;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),(i=n?i.toLowerCase():i)===r&&l<o&&(l=o,u=a);return l?(t.valueIdx+=l,u+1):null}function vt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Mt(e,t,n){var r,o,i,a=n.shortHours,s=n.noSeparator,l=n.optionalMinutes,u=n.localizedName,n=n.zLiteral;return e.UTC=!0,n&&"Z"===e.value.charAt(e.valueIdx)?(e.valueIdx++,!1):!(!u||w(function(e){var t=e.gmtFormat,e=e.gmtZeroFormat;if(t)return[t.replace("{0}",z).toLowerCase(),e.replace("{0}",z).toLowerCase()];throw d.NoGMTInfo.error()}(t.calendar),e,!0))||((n=dt.exec(e.value.substr(e.valueIdx,6)))?(t=n[1],i=n[3],r=parseInt(t,10),o=n[2],i=parseInt(i,10),!!(isNaN(r)||!a&&3!==t.length||!l&&isNaN(i)||s&&o)||(isNaN(i)&&(i=null),!!(m(r,-12,13)||i&&m(i,0,59)))||(e.valueIdx+=n[0].length,e.hoursOffset=r,void(e.minutesOffset=i))):!u)}function bt(e,t,n){var r=f(e,t),n=c(n,"months",r,"L"===e,!0),e=r<3?y(2,t):w(n,t,!0);if(null===e||m(e,1,12))return!0;t.month=e-1}function St(e,t,n){var r=f(e,t),n=c(n,"days",r,"c"===e,!0),e=r<3?y(1,t):w(n,t,!0);if(!e&&0!==e||m(e,1,7))return!0}var M={};function Dt(e,t,n){for(var r,o,i,a,s,l,u,d,c,p,m,f,g=Je(t,n).split(z),h={format:g,idx:0,value:(o=e,t=t,""+gt.exec(t)[0]+o+ht.exec(t)[0]),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},y=g.length,w=!1;h.idx<y;h.idx++){var v=g[h.idx];if(w)"'"===v&&(w=!1),vt(h);else if(M[v]){if(M[v](h,n))return null}else if("'"===v)w=!0,vt(h);else if(!vt(h))return null}return!(h.valueIdx<e.length)&&(o=h.year,t=h.month,e=h.day,i=h.hours,a=h.minutes,s=h.seconds,l=h.milliseconds,u=h.pmHour,d=h.UTC,c=h.hoursOffset,p=h.minutesOffset,m=null!==i||null!==a||s||null,f=new Date,null===o&&null===t&&null===e&&m?(o=f.getFullYear(),t=f.getMonth(),e=f.getDate()):(null===o&&(o=f.getFullYear()),null===e&&(e=1)),u&&i<12&&(i+=12),d?(c&&(i+=-c),p&&(a+=-p*(c<0?-1:1)),r=new Date(Date.UTC(o,t,e,i,a,s,l))):(m=r=new Date(o,t,e,i,a,s,l),i||23!==m.getHours()||m.setHours(m.getHours()+2)),o<100&&r.setFullYear(o),r.getDate()!==e&&void 0===d?null:r)||null}M.d=function(e){f("d",e);var t=y(2,e);if(null===t||m(t,1,31))return!0;null===e.day&&(e.day=t)},M.E=function(e,t){if(null===w(c(t,"days",f("E",e),!1,!0),e,!0))return!0},M.M=function(e,t){return bt("M",e,t)},M.L=function(e,t){return bt("L",e,t)},M.y=function(e){var t=f("y",e),n=y(1===t?void 0:t,e);if(null===n)return!0;2===t&&2029<(n=(t=(new Date).getFullYear())-t%100+n)&&(n-=100),e.year=n},M.h=function(e){f("h",e);var t=y(2,e);if(null===(t=12===t?0:t)||m(t,0,11))return!0;e.hours=t},M.K=function(e){f("K",e);var t=y(2,e);if(null===t||m(t,0,11))return!0;e.hours=t},M.a=function(e,t){var t=c(t,"dayPeriods",f("a",e),!1,!0),n=w([t.pm],e,!0);if(!n&&!w([t.am],e,!0))return!0;e.pmHour=n},M.H=function(e){f("H",e);var t=y(2,e);if(null===t||m(t,0,23))return!0;e.hours=t},M.k=function(e){f("k",e);var t=y(2,e);if(null===t||m(t,1,24))return!0;e.hours=24===t?0:t},M.m=function(e){f("m",e);var t=y(2,e);if(null===t||m(t,0,59))return!0;e.minutes=t},M.s=function(e){f("s",e);var t=y(2,e);if(null===t||m(t,0,59))return!0;e.seconds=t},M.S=function(e){var t=f("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=j(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||m(r,0,999))return!0;e.milliseconds=r},M.z=function(e,t){var n=f("z",e)<4,e=Mt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(e)return e},M.Z=function(e,t){var n=f("Z",e),e=Mt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(e)return e},M.x=function(e,t){var n=f("x",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(e)return e},M.X=function(e,t){var n=f("X",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(e)return e},M.G=function(e,t){t=c(t,"eras",f("G",e),!1,!0);if(null===w([t[0],t[1]],e,!0))return!0},M.e=function(e,t){return St("e",e,t)},M.c=function(e,t){return St("c",e,t)};var Et={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},xt="literal";function Ct(e,t){var n=e[e.length-1];n&&n.type===xt?n.pattern+=t:e.push({type:xt,pattern:t})}var Ot=/\{(\d+)(:[^}]+)?\}/g;function kt(e,t,n){if(t){if(Ve(e))return lt(e,t,n);if(Be(e))return Le(e,t,n)}return null!=e?e:z}function It(e,r,o){return e.replace(Ot,function(e,t,n){return kt(r[parseInt(t,10)],n?n.substring(1):z,o)})}var Tt,_t=t(527),Ft={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1672914059,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},Nt=(b.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&Array.isArray(t[0])?It(e,t[0],this.locale):It(e,t,this.locale)},b.prototype.formatDate=function(e,t){return lt(e,t,this.locale)},b.prototype.toString=function(e,t){return kt(e,t,this.locale)},b.prototype.parseNumber=function(e,t){return e=e,n=this.locale,void 0===(t=t)&&(t={}),e||0===e?Be(e)?e:(i=(n=F(n=void 0===n?H:n)).numbers.symbols,e=e.toString(),o=t||{},s(t)&&(ke(o={format:t}),e=function(e){var t=o.literals,n=e;if(t)for(var r=0;r<t.length;r++)n=n.replace(t[r],z);return n}(e),Oe(o,n)),(o.style===A||-1<e.indexOf(i.percentSign))&&(e=e.replace(i.percentSign,z),r=!0),Pe.test(e)?(e=parseFloat(e.replace(i.decimal,P)),isNaN(e)?null:e):(n=(t=function(e,o,t){var n,i=De((t=Ae(t)||{}).style),r=e;if(e=t.currency||ge(o,i)){var a=function(e){var t=me(o,e,void 0===i?!0:i);if(t){if(!t.displays){var n,r=[e];for(n in t)r.push(t[n]);r.sort(fe),t.displays=r}return t.displays}}(e);if(a)for(var s=0;s<a.length;s++){var l=a[s];if(r.includes(l)){r=r.replace(l,z),i=!0;break}}i&&(t=He(r,o.numbers.currency.patterns)||He(r,o.numbers.accounting.patterns))&&(n=!0,r=t)}return{number:r,negative:n}}(e,n,o)).negative,t=t.number,0<(t=(e=String(t).trim()).indexOf("-"))?null:(t=-1<t,t=void 0!==n?n:t,e=e.replace("-",z).replace(ze," ").split(i.group.replace(ze," ")).join(z).replace(i.decimal,P),e=parseFloat(e),isNaN(e)?e=null:t&&(e*=-1),e&&r&&(n=e,i=String(n),t=i.indexOf(P),n/=Math.pow(10,2),e=-1===t||String(n).length<=i.length+2?n:(i=i.length-t+1+2,parseFloat(n.toFixed(i)))),e))):null;var n,r,o,i},b.prototype.parseDate=function(e,t){var n=this.locale;if(void 0===n&&(n=H),!e)return null;if(Ve(e))return e;var r=String(e).trim(),o=function(e){if(e&&0===e.indexOf("/D")){var t,e=ct.exec(e);if(e)return e=e[1],t=pt.exec(e.substring(1)),e=new Date(parseInt(e,10)),t&&(n="-"===(r=t[0]).substr(0,1)?-1:1,r=r.substring(1),t=n*(60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),e=ut(e,e.getTimezoneOffset(),0),e=ut(e,0,-1*t)),e}var n,r}(r);if(!o)for(var i=F(n),a=t||function(){for(var e=[],t=i.calendar.patterns,n=wt.length,r=0;r<n;r++)e.push(t[wt[r]]);return e.concat(yt)}(),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(o=Dt(r,a[l],i))return o;return o},b.prototype.formatNumber=function(e,t){return Le(e,t,this.locale)},b.prototype.dateFieldName=function(e){var t=this.locale;if(t=F(t=void 0===t?H:t).calendar.dateFields)return(t=t[e.type]||{})[e.nameType]||t.wide;throw d.NoDateFieldNames.error()},b.prototype.dateFormatNames=function(e){return oe(this.locale,e)},b.prototype.splitDateFormat=function(e){for(var t=this.locale,n=Je(e,F(t=void 0===t?H:t)),r=[],o=p.lastIndex=0,i=p.exec(n);i;){var a,s,l,u,d=i[0];o<i.index&&Ct(r,n.substring(o,i.index)),d.startsWith('"')||d.startsWith("'")?Ct(r,d):(a=d[0],s={type:u=rt[a],pattern:d},"hour"===u&&(s.hour12="h"===(l=d)||"K"===l),(l=Et[u])&&(Be(l.minLength)?l.minLength:l.minLength[a])<=(u=d.length)&&(s.names={type:l.type,nameType:Ye(u),standAlone:l.standAlone===a}),r.push(s)),o=p.lastIndex,i=p.exec(n)}return o<n.length&&Ct(r,n.substring(o)),r},b.prototype.numberSymbols=function(){return a(this.locale).numbers.symbols},b.prototype.firstDay=function(){return ve(this.locale)},b),r=Object.create({}),At=(zt.prototype.toLanguageString=function(e,t){return this.language&&r[this.language]&&r[this.language].hasOwnProperty(e)?r[this.language][e]:t},zt),v=i.createContext({intl:new Nt("en"),localization:new At}),Lt=(Tt=function(e,t){return(Tt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n=t,r=e;if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=n}return Tt(n,r),n.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o),t.prototype.getIntlService=function(){return new Nt(this.props.locale)},t.prototype.render=function(){var t=this;return i.createElement(v.Consumer,null,function(e){return i.createElement(v.Provider,{value:Lt(Lt({},e),{intl:t.getIntlService()})},t.props.children)})},t.propTypes={locale:E.string},t}(i.Component),Pt=function(e,t,n){for(var r in e){var o;e.hasOwnProperty(r)&&((o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],n,!0)).push(r),"string"!=typeof e[r]?Pt(e[r],t,o):(r=e[r],Object.defineProperty(t,o.join("."),{value:r})))}};function zt(e){this.language=e}function b(e){this.locale=e,void 0!==_t?_t.validatePackage(Ft):(e="License activation failed for ".concat(Ft.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(Ft.licensingDocsUrl," for more information.\n"),console.warn(e))}Wt=function(e,t){return(Wt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Ht,Wt,nt=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ut=(Ht=i.Component,nt(S,Ht),S.prototype.getLocalizationService=function(){return new At(this.props.language)},S.prototype.render=function(){var t=this;return i.createElement(v.Consumer,null,function(e){return i.createElement(v.Provider,{value:jt(jt({},e),{localization:t.getLocalizationService()})},t.props.children)})},S.propTypes={language:E.string},S);function S(){return null!==Ht&&Ht.apply(this,arguments)||this}var Rt=function(){return i.useContext(v).intl},Zt=function(){return i.useContext(v).localization}},527:e=>{e.exports=f},536:e=>{e.exports=p},811:e=>{e.exports=m},895:e=>{e.exports=c},954:e=>{e.exports=u},493:e=>{e.exports=d}},r={};function o(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},n[e].call(t.exports,t,t.exports,o)),t.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e,t,i,a,s,l={};return e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0,t=o(580),Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}}),i=o(379),Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return i.DialogActionsBar}}),a=o(891),Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return a.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return a.WindowPropsContext}}),s=o(617),Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return s.WindowActionsBar}}),l})())}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dialogs",
|
|
3
|
-
"version": "5.10.0-dev.
|
|
3
|
+
"version": "5.10.0-dev.202301051045",
|
|
4
4
|
"description": "React Dialogs provide modal and non-modal windows for showing additional information to the user. KendoReact Dialogs package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@progress/kendo-react-common": "5.10.0-dev.
|
|
40
|
+
"@progress/kendo-react-common": "5.10.0-dev.202301051045",
|
|
41
41
|
"prop-types": "^15.6.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@progress/kendo-react-buttons": "5.10.0-dev.
|
|
45
|
-
"@progress/kendo-react-dropdowns": "5.10.0-dev.
|
|
46
|
-
"@progress/kendo-react-intl": "5.10.0-dev.
|
|
47
|
-
"@progress/kendo-react-tooltip": "5.10.0-dev.
|
|
44
|
+
"@progress/kendo-react-buttons": "5.10.0-dev.202301051045",
|
|
45
|
+
"@progress/kendo-react-dropdowns": "5.10.0-dev.202301051045",
|
|
46
|
+
"@progress/kendo-react-intl": "5.10.0-dev.202301051045",
|
|
47
|
+
"@progress/kendo-react-tooltip": "5.10.0-dev.202301051045"
|
|
48
48
|
},
|
|
49
49
|
"@progress": {
|
|
50
50
|
"friendlyName": "Dialogs",
|