From fa30dea523abf959b129a63132e2eae8be491447 Mon Sep 17 00:00:00 2001 From: gabek Date: Fri, 18 Nov 2022 04:57:50 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../{7815.e788ec7ede87bee5.js => 7815.a5ba9866ba6f0cd4.js} | 2 +- .../{_app-217f08a32d199d2d.js => _app-0ddaf79b104dceaf.js} | 2 +- ...ebpack-d9f1581428206e85.js => webpack-9dc50f38fd018b1f.js} | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/config/appearance/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 4 ++-- 34 files changed, 35 insertions(+), 35 deletions(-) rename static/web/_next/static/chunks/{7815.e788ec7ede87bee5.js => 7815.a5ba9866ba6f0cd4.js} (93%) rename static/web/_next/static/chunks/pages/{_app-217f08a32d199d2d.js => _app-0ddaf79b104dceaf.js} (63%) rename static/web/_next/static/chunks/{webpack-d9f1581428206e85.js => webpack-9dc50f38fd018b1f.js} (99%) rename static/web/_next/static/{lW1Nfq3K-e4QSQdwGn9gG => ph4_mrbl0ZrGoQjlOANsh}/_buildManifest.js (100%) rename static/web/_next/static/{lW1Nfq3K-e4QSQdwGn9gG => ph4_mrbl0ZrGoQjlOANsh}/_ssgManifest.js (100%) diff --git a/static/web/404.html b/static/web/404.html index 3ae8abec0..7ee19c27b 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index 3ae8abec0..7ee19c27b 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/chunks/7815.e788ec7ede87bee5.js b/static/web/_next/static/chunks/7815.a5ba9866ba6f0cd4.js similarity index 93% rename from static/web/_next/static/chunks/7815.e788ec7ede87bee5.js rename to static/web/_next/static/chunks/7815.a5ba9866ba6f0cd4.js index e1302e6c2..78c8cbf44 100644 --- a/static/web/_next/static/chunks/7815.e788ec7ede87bee5.js +++ b/static/web/_next/static/chunks/7815.a5ba9866ba6f0cd4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{17815:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NotifyReminderPopup:function(){return NotifyReminderPopup}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),antd__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(55241),_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(97937),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(93162),_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2__);let NotifyReminderPopup=param=>{let{children,open,notificationClicked,notificationClosed}=param,[openPopup,setOpenPopup]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(open),[mounted,setMounted]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1);(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{setOpenPopup(open)},[open]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{setMounted(!0)},[]);let title=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().title,children:"Stay updated!"}),popupClicked=e=>{e.stopPropagation(),notificationClicked()},popupClosed=e=>{e.stopPropagation(),setOpenPopup(!1),notificationClosed()},content=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{onClick:popupClicked,onKeyDown:popupClicked,role:"menuitem",tabIndex:0,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"button",className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().closebutton,onClick:popupClosed,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.Z,{})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().contentbutton,children:["Click and never miss",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("br",{}),"future streams!"]})]});return mounted&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__.Z,{placement:"topLeft",defaultOpen:openPopup,open:openPopup,destroyTooltipOnHide:!0,title:title,content:content,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},color:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().popupBackgroundColor,children:children})}},93162:function(module){module.exports={popupBackgroundColor:"var(--theme-color-palette-7)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{17815:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NotifyReminderPopup:function(){return NotifyReminderPopup}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),antd__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(55241),_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(97937),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(93162),_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2__);let NotifyReminderPopup=param=>{let{children,open,notificationClicked,notificationClosed}=param,[openPopup,setOpenPopup]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(open),[mounted,setMounted]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1);(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{setOpenPopup(open)},[open]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{setMounted(!0)},[]);let title=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().title,children:"Stay updated!"}),popupClicked=e=>{e.stopPropagation(),notificationClicked()},popupClosed=e=>{e.stopPropagation(),setOpenPopup(!1),notificationClosed()},content=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{onClick:popupClicked,onKeyDown:popupClicked,role:"menuitem",tabIndex:0,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"button",className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().closebutton,onClick:popupClosed,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.Z,{})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().contentbutton,children:["Click and never miss",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("br",{}),"future streams!"]})]});return mounted&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__.Z,{placement:"topLeft",defaultOpen:openPopup,open:openPopup,destroyTooltipOnHide:!0,title:title,content:content,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},color:_NotifyReminderPopup_module_scss__WEBPACK_IMPORTED_MODULE_2___default().popupBackgroundColor,children:children})}},93162:function(module){module.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/_app-217f08a32d199d2d.js b/static/web/_next/static/chunks/pages/_app-0ddaf79b104dceaf.js similarity index 63% rename from static/web/_next/static/chunks/pages/_app-217f08a32d199d2d.js rename to static/web/_next/static/chunks/pages/_app-0ddaf79b104dceaf.js index 494795c8a..f8c3e68be 100644 --- a/static/web/_next/static/chunks/pages/_app-217f08a32d199d2d.js +++ b/static/web/_next/static/chunks/pages/_app-0ddaf79b104dceaf.js @@ -2,7 +2,7 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/ !function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i1?"s":"")+" required, but only "+args.length+" present")}__webpack_require__.d(__webpack_exports__,{Z:function(){return requiredArgs}})},93645:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return getRoundingMethod}});var roundingMap={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(value){return value<0?Math.ceil(value):Math.floor(value)}};function getRoundingMethod(method){return method?roundingMap[method]:roundingMap.trunc}},59910:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return differenceInMilliseconds}});var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19013),_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function differenceInMilliseconds(dateLeft,dateRight){return(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(2,arguments),(0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateLeft).getTime()-(0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateRight).getTime()}},11699:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return differenceInSeconds}});var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(59910),_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882),_lib_roundingMethods_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(93645);function differenceInSeconds(dateLeft,dateRight,options){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(2,arguments);var diff=(0,_differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateLeft,dateRight)/1e3;return(0,_lib_roundingMethods_index_js__WEBPACK_IMPORTED_MODULE_2__.u)(null==options?void 0:options.roundingMethod)(diff)}},19013:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return toDate}});var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function toDate(argument){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(1,arguments);var argStr=Object.prototype.toString.call(argument);return argument instanceof Date||"object"===_typeof(argument)&&"[object Date]"===argStr?new Date(argument.getTime()):"number"==typeof argument||"[object Number]"===argStr?new Date(argument):(("string"==typeof argument||"[object String]"===argStr)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},18552:function(module,__unused_webpack_exports,__webpack_require__){var DataView=__webpack_require__(10852)(__webpack_require__(55639),"DataView");module.exports=DataView},1989:function(module,__unused_webpack_exports,__webpack_require__){var hashClear=__webpack_require__(51789),hashDelete=__webpack_require__(80401),hashGet=__webpack_require__(57667),hashHas=__webpack_require__(21327),hashSet=__webpack_require__(81866);function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1}},54705:function(module,__unused_webpack_exports,__webpack_require__){var assocIndexOf=__webpack_require__(18470);module.exports=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}},24785:function(module,__unused_webpack_exports,__webpack_require__){var Hash=__webpack_require__(1989),ListCache=__webpack_require__(38407),Map1=__webpack_require__(57071);module.exports=function(){this.size=0,this.__data__={hash:new Hash,map:new(Map1||ListCache),string:new Hash}}},11285:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result}},96e3:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){return getMapData(this,key).get(key)}},49916:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){return getMapData(this,key).has(key)}},95265:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}},68776:function(module){module.exports=function(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}},94536:function(module,__unused_webpack_exports,__webpack_require__){var nativeCreate=__webpack_require__(10852)(Object,"create");module.exports=nativeCreate},86916:function(module,__unused_webpack_exports,__webpack_require__){var nativeKeys=__webpack_require__(5569)(Object.keys,Object);module.exports=nativeKeys},31167:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var freeGlobal=__webpack_require__(31957),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types)return types;return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil},2333:function(module){var nativeObjectToString=Object.prototype.toString;module.exports=function(value){return nativeObjectToString.call(value)}},5569:function(module){module.exports=function(func,transform){return function(arg){return func(transform(arg))}}},55639:function(module,__unused_webpack_exports,__webpack_require__){var freeGlobal=__webpack_require__(31957),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},90619:function(module){module.exports=function(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this}},72385:function(module){module.exports=function(value){return this.__data__.has(value)}},21814:function(module){module.exports=function(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}},37465:function(module,__unused_webpack_exports,__webpack_require__){var ListCache=__webpack_require__(38407);module.exports=function(){this.__data__=new ListCache,this.size=0}},63779:function(module){module.exports=function(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}},67599:function(module){module.exports=function(key){return this.__data__.get(key)}},44758:function(module){module.exports=function(key){return this.__data__.has(key)}},34309:function(module,__unused_webpack_exports,__webpack_require__){var ListCache=__webpack_require__(38407),Map1=__webpack_require__(57071),MapCache=__webpack_require__(83369);module.exports=function(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map1||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}},80346:function(module){var funcToString=Function.prototype.toString;module.exports=function(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e1){}}return""}},77813:function(module){module.exports=function(value,other){return value===other||value!=value&&other!=other}},35694:function(module,__unused_webpack_exports,__webpack_require__){var baseIsArguments=__webpack_require__(9454),isObjectLike=__webpack_require__(37005),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,propertyIsEnumerable=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},1469:function(module){var isArray=Array.isArray;module.exports=isArray},98612:function(module,__unused_webpack_exports,__webpack_require__){var isFunction=__webpack_require__(23560),isLength=__webpack_require__(41780);module.exports=function(value){return null!=value&&isLength(value.length)&&!isFunction(value)}},44144:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var root=__webpack_require__(55639),stubFalse=__webpack_require__(95062),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0;module.exports=nativeIsBuffer||stubFalse},18446:function(module,__unused_webpack_exports,__webpack_require__){var baseIsEqual=__webpack_require__(90939);module.exports=function(value,other){return baseIsEqual(value,other)}},23560:function(module,__unused_webpack_exports,__webpack_require__){var baseGetTag=__webpack_require__(44239),isObject=__webpack_require__(13218);module.exports=function(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}},41780:function(module){module.exports=function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}},13218:function(module){module.exports=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},37005:function(module){module.exports=function(value){return null!=value&&"object"==typeof value}},36719:function(module,__unused_webpack_exports,__webpack_require__){var baseIsTypedArray=__webpack_require__(38749),baseUnary=__webpack_require__(7518),nodeUtil=__webpack_require__(31167),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},3674:function(module,__unused_webpack_exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(14636),baseKeys=__webpack_require__(280),isArrayLike=__webpack_require__(98612);module.exports=function(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},70479:function(module){module.exports=function(){return[]}},95062:function(module){module.exports=function(){return!1}},6840:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return __webpack_require__(6462)}])},50738:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return OwncastLogo}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893);__webpack_require__(67294);var classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(29403),_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3__);let OwncastLogo=param=>{let{variant="simple"}=param,rootClassName=classnames__WEBPACK_IMPORTED_MODULE_2___default()(_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().root,{[_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().simple]:"simple"===variant,[_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().contrast]:"contrast"===variant});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:rootClassName,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.68623352050781 104.46271514892578",className:"logo-svg",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{transform:"matrix(1 0 0 1 -37.08803939819336 -18.940391540527344)",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1.0445680396949917 0 0 1.0445679172996596 36.34559138380523 18.877718021903796)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient120",gradientTransform:"rotate(-90 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#1f2022",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#635e69",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient120)",d:"M91.5 75.35Q93.05 71.15 91.65 67.7 90.35 64.5 86.65 62.3 83.2 60.3 78.3 59.4 73.85 58.6 68.6 58.7 63.55 58.85 58.8 59.8 54.25 60.75 50.8 62.2 47.4 63.65 45.5 65.35 43.6 67.15 43.5 69.05 43.35 71.3 45.8 73.9 48.05 76.3 52.1 78.6 56.15 80.9 61.05 82.55 66.3 84.3 71.4 84.8 74.7 85.1 77.55 84.9 80.65 84.6 83.3 83.6 86.15 82.5 88.15 80.55 90.4 78.4 91.5 75.35M70.6 67.5Q72.3 68.4 73.1 69.7 73.9 71.15 73.45 73 73.1 74.3 72.3 75.25 71.55 76.1 70.3 76.6 69.25 77.05 67.75 77.25 66.3 77.4 64.85 77.3 62.3 77.15 59.25 76.3 56.6 75.5 54.15 74.3 51.9 73.2 50.45 72 49.05 70.75 49.1 69.8 49.2 69 50.25 68.25 51.3 67.55 53.15 67 55 66.4 57.25 66.1 59.8 65.8 62.1 65.8 64.65 65.85 66.7 66.2 68.9 66.65 70.6 67.5Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient121",gradientTransform:"rotate(-180 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#2087e2",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#b63fff",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient121)",d:"M66.6 15.05Q66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.75 18.45 32.7 23.4 31.7 28.05 31.35 32.85 31.05 37.2 31.3 41.2 31.6 45.15 32.4 48.35 34 54.9 37.3 56.4 37.6 56.55 37.9 56.65L39.2 56.85Q39.45 56.85 39.95 56.8 42.05 56.6 44.7 55.05 47.25 53.5 50.05 50.8 53.05 47.9 55.85 44.05 58.8 40.05 61.1 35.6 63.8 30.35 65.25 25.3 66.75 19.75 66.6 15.05M47.55 23.15Q48.05 23.25 48.4 23.4 52.45 24.8 52.55 29.85 52.6 34 50 39.4 47.85 43.9 44.85 47.3 42.05 50.5 40.15 50.7L39.9 50.75 39.45 50.7 39.2 50.6Q37.8 49.95 37.25 46.35 36.7 42.7 37.3 38 37.95 32.75 39.75 28.8 41.9 24.1 45.05 23.25 45.6 23.1 45.85 23.1 46.25 23.05 46.65 23.05 47.05 23.05 47.55 23.15Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient122",gradientTransform:"rotate(-90 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#100f0f",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient122)",d:"M2.7 33.6Q2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7 0 42.6 2.2 47.2 4 51 8 54.35 11.55 57.3 16 59.15 20.5 61 23.85 60.85 24.5 60.85 25.25 60.7 26 60.55 26.5 60.3 27 60.05 27.45 59.65 27.9 59.25 28.15 58.75 29.35 56.45 27.5 51.65 25.6 47 21.75 42.1 17.75 37 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6M10.1 43.55Q10.35 43.1 10.6 42.85 10.85 42.6 11.2 42.4 11.6 42.25 11.9 42.2 13.5 41.9 15.95 43.6 18.15 45.05 20.35 47.7 22.35 50.1 23.55 52.4 24.7 54.75 24.25 55.7 24.15 55.9 24 56 23.85 56.2 23.65 56.25 23.55 56.35 23.25 56.4L22.7 56.5Q21.1 56.6 18.55 55.6 16.05 54.6 13.85 52.95 11.5 51.2 10.35 49.15 9.05 46.8 9.75 44.45 9.9 43.95 10.1 43.55Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient123",gradientTransform:"rotate(-180 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#222020",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient123)",d:"M34.95 74.2L34.75 74.2Q33.2 74.15 31.9 75.25 30.7 76.3 29.85 78.25 29.1 80 28.8 82.2 28.5 84.4 28.7 86.65 29.1 91.4 31.5 94.7 34.3 98.5 39.3 99.7L39.4 99.7 39.7 99.8 39.85 99.8Q45.3 100.85 47.15 97.75 48 96.3 48 94.05 47.95 91.9 47.2 89.35 46.45 86.75 45.1 84.15 43.75 81.5 42.05 79.35 40.25 77.1 38.45 75.75 36.55 74.35 34.95 74.2M33.55 80.4Q34.35 78.2 35.6 78.3L35.65 78.3Q36.9 78.45 38.6 80.9 40.3 83.35 41.15 86.05 42.1 89 41.55 90.75 40.9 92.6 38.35 92.25L38.3 92.25 38.25 92.2 38.1 92.2Q35.6 91.7 34.25 89.6 33.1 87.7 32.95 85 32.8 82.35 33.55 80.4Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(0.9999999999999999 0 0 1 0 5.684341886080802e-14)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient124",gradientTransform:"rotate(-180 .5 .5)",children:[" ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#1e1c1c",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient124)",d:"M22.7 69.65Q22.25 69.3 21.6 69.05 20.95 68.8 20.25 68.7 19.6 68.55 18.85 68.5 16.7 68.45 14.65 69.15 12.65 69.8 11.4 71.1 10.15 72.5 10.2 74.2 10.25 76.05 11.95 78.2 12.4 78.75 13.05 79.4 13.55 79.9 14.2 80.3 14.7 80.6 15.3 80.85 16 81.1 16.4 81.1 18.2 81.35 19.9 80.35 21.55 79.4 22.75 77.65 24 75.85 24.3 73.95 24.6 71.85 23.55 70.5 23.15 70 22.7 69.65M21.7 71.7Q22.15 72.3 21.9 73.3 21.7 74.25 21 75.25 20.3 76.2 19.4 76.75 18.45 77.35 17.55 77.25L17 77.15Q16.7 77.05 16.45 76.85 16.25 76.75 15.9 76.45 15.7 76.25 15.4 75.9 14.5 74.75 14.7 73.8 14.8 72.95 15.75 72.3 16.6 71.7 17.8 71.4 19 71.1 20.1 71.15L20.65 71.2 21.1 71.3Q21.3 71.4 21.45 71.5L21.7 71.7Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient125",gradientTransform:"rotate(-360 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient125)",d:"M52.6 19.25Q59.6 19.25 66.2 20.95 66.7 17.8 66.6 15.05 66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.85 18.3 32.8 22.85 42.25 19.25 52.6 19.25Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient126",gradientTransform:"rotate(-360 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient126)",d:"M1.05 37.7Q0 42.6 2.2 47.2 2.95 48.8 4.05 50.25 7.55 41.65 14.4 34.75 14 34.45 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6 2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7Z"})]})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{transform:"matrix(1.219512230276127 0 0 1.2195122143630526 32.82519274395008 88.56945194723018)",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"#000000",fillOpacity:"1",d:""})})]})})})})})}},39664:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return FormStatusIndicator}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893);__webpack_require__(67294);var classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);let FormStatusIndicator=param=>{let{status}=param,{type,icon,message}=status||{},classes=classnames__WEBPACK_IMPORTED_MODULE_2___default()({"status-container":!0,["status-".concat(type)]:type,empty:!message});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:classes,children:[icon?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"status-icon",children:icon}):null,message?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"status-message",children:message}):null]})}},40117:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{mG:function(){return TEXTFIELD_TYPE_NUMBER},A8:function(){return TEXTFIELD_TYPE_PASSWORD},Kx:function(){return TEXTFIELD_TYPE_TEXT},Sk:function(){return TEXTFIELD_TYPE_TEXTAREA},xA:function(){return TEXTFIELD_TYPE_URL},nv:function(){return TextField}});var jsx_runtime=__webpack_require__(85893),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),input=__webpack_require__(69677),esm_extends=__webpack_require__(87462),defineProperty=__webpack_require__(4942),esm_typeof=__webpack_require__(71002),slicedToArray=__webpack_require__(97685),DownOutlined=__webpack_require__(80882),objectSpread2=__webpack_require__(1413),asn_UpOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},AntdIcon=__webpack_require__(42135),UpOutlined_UpOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_UpOutlined}))};UpOutlined_UpOutlined.displayName="UpOutlined";var icons_UpOutlined=react.forwardRef(UpOutlined_UpOutlined),objectWithoutProperties=__webpack_require__(45987),KeyCode=__webpack_require__(15105),useLayoutEffect=__webpack_require__(8410),es_ref=__webpack_require__(42550),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144);function supportBigInt(){return"function"==typeof BigInt}function trimNumber(numStr){var str=numStr.trim(),negative=str.startsWith("-");negative&&(str=str.slice(1)),(str=str.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(str="0".concat(str));var trimStr=str||"0",splitNumber=trimStr.split("."),integerStr=splitNumber[0]||"0",decimalStr=splitNumber[1]||"0";"0"===integerStr&&"0"===decimalStr&&(negative=!1);var negativeStr=negative?"-":"";return{negative:negative,negativeStr:negativeStr,trimStr:trimStr,integerStr:integerStr,decimalStr:decimalStr,fullStr:"".concat(negativeStr).concat(trimStr)}}function isE(number){var str=String(number);return!Number.isNaN(Number(str))&&str.includes("e")}function getNumberPrecision(number){var numStr=String(number);if(isE(number)){var precision=Number(numStr.slice(numStr.indexOf("e-")+2)),decimalMatch=numStr.match(/\.(\d+)/);return(null==decimalMatch?void 0:decimalMatch[1])&&(precision+=decimalMatch[1].length),precision}return numStr.includes(".")&&validateNumber(numStr)?numStr.length-numStr.indexOf(".")-1:0}function num2str(number){var numStr=String(number);if(isE(number)){if(number>Number.MAX_SAFE_INTEGER)return String(supportBigInt()?BigInt(number).toString():Number.MAX_SAFE_INTEGER);if(numberNumber.MAX_SAFE_INTEGER)return new NumberDecimal(Number.MAX_SAFE_INTEGER);if(number=this.add(target.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var safe=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return safe?this.isInvalidate()?"":num2str(this.number):this.origin}}]),NumberDecimal}(),BigIntDecimal=function(){function BigIntDecimal(value){if((0,classCallCheck.Z)(this,BigIntDecimal),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!value&&0!==value||!String(value).trim()){this.empty=!0;return}if(this.origin=String(value),"-"===value){this.nan=!0;return}var mergedValue=value;if(isE(mergedValue)&&(mergedValue=Number(mergedValue)),validateNumber(mergedValue="string"==typeof mergedValue?mergedValue:num2str(mergedValue))){var trimRet=trimNumber(mergedValue);this.negative=trimRet.negative;var numbers=trimRet.trimStr.split(".");this.integer=BigInt(numbers[0]);var decimalStr=numbers[1]||"0";this.decimal=BigInt(decimalStr),this.decimalLen=decimalStr.length}else this.nan=!0}return(0,createClass.Z)(BigIntDecimal,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(decimalLength){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength,"0")))}},{key:"negate",value:function(){var clone=new BigIntDecimal(this.toString());return clone.negative=!clone.negative,clone}},{key:"add",value:function(value){if(this.isInvalidate())return new BigIntDecimal(value);var offset=new BigIntDecimal(value);if(offset.isInvalidate())return this;var maxDecimalLength=Math.max(this.getDecimalStr().length,offset.getDecimalStr().length),_trimNumber=trimNumber((this.alignDecimal(maxDecimalLength)+offset.alignDecimal(maxDecimalLength)).toString()),negativeStr=_trimNumber.negativeStr,trimStr=_trimNumber.trimStr,hydrateValueStr="".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength+1,"0"));return new BigIntDecimal("".concat(hydrateValueStr.slice(0,-maxDecimalLength),".").concat(hydrateValueStr.slice(-maxDecimalLength)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(target){return this.toString()===(null==target?void 0:target.toString())}},{key:"lessEquals",value:function(target){return 0>=this.add(target.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var safe=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return safe?this.isInvalidate()?"":trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),BigIntDecimal}();function getMiniDecimal(value){return supportBigInt()?new BigIntDecimal(value):new NumberDecimal(value)}function toFixed(numStr,separatorStr,precision){var cutOnly=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===numStr)return"";var _trimNumber2=trimNumber(numStr),negativeStr=_trimNumber2.negativeStr,integerStr=_trimNumber2.integerStr,decimalStr=_trimNumber2.decimalStr,precisionDecimalStr="".concat(separatorStr).concat(decimalStr),numberWithoutDecimal="".concat(negativeStr).concat(integerStr);if(precision>=0){var advancedNum=Number(decimalStr[precision]);return advancedNum>=5&&!cutOnly?toFixed(getMiniDecimal(numStr).add("".concat(negativeStr,"0.").concat("0".repeat(precision)).concat(10-advancedNum)).toString(),separatorStr,precision,cutOnly):0===precision?numberWithoutDecimal:"".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision,"0").slice(0,precision))}return".0"===precisionDecimalStr?numberWithoutDecimal:"".concat(numberWithoutDecimal).concat(precisionDecimalStr)}var isMobile=__webpack_require__(31131);function StepHandler(_ref){var prefixCls=_ref.prefixCls,upNode=_ref.upNode,downNode=_ref.downNode,upDisabled=_ref.upDisabled,downDisabled=_ref.downDisabled,onStep=_ref.onStep,stepTimeoutRef=react.useRef(),onStepRef=react.useRef();onStepRef.current=onStep;var onStepMouseDown=function(e,up){e.preventDefault(),onStepRef.current(up),stepTimeoutRef.current=setTimeout(function loopStep(){onStepRef.current(up),stepTimeoutRef.current=setTimeout(loopStep,200)},600)},onStopStep=function(){clearTimeout(stepTimeoutRef.current)};if(react.useEffect(function(){return onStopStep},[]),(0,isMobile.Z)())return null;var handlerClassName="".concat(prefixCls,"-handler"),upClassName=classnames_default()(handlerClassName,"".concat(handlerClassName,"-up"),(0,defineProperty.Z)({},"".concat(handlerClassName,"-up-disabled"),upDisabled)),downClassName=classnames_default()(handlerClassName,"".concat(handlerClassName,"-down"),(0,defineProperty.Z)({},"".concat(handlerClassName,"-down-disabled"),downDisabled)),sharedHandlerProps={unselectable:"on",role:"button",onMouseUp:onStopStep,onMouseLeave:onStopStep};return react.createElement("div",{className:"".concat(handlerClassName,"-wrap")},react.createElement("span",(0,esm_extends.Z)({},sharedHandlerProps,{onMouseDown:function(e){onStepMouseDown(e,!0)},"aria-label":"Increase Value","aria-disabled":upDisabled,className:upClassName}),upNode||react.createElement("span",{unselectable:"on",className:"".concat(prefixCls,"-handler-up-inner")})),react.createElement("span",(0,esm_extends.Z)({},sharedHandlerProps,{onMouseDown:function(e){onStepMouseDown(e,!1)},"aria-label":"Decrease Value","aria-disabled":downDisabled,className:downClassName}),downNode||react.createElement("span",{unselectable:"on",className:"".concat(prefixCls,"-handler-down-inner")})))}var warning=__webpack_require__(80334),raf=__webpack_require__(75164),useFrame=function(){var idRef=(0,react.useRef)(0),cleanUp=function(){raf.Z.cancel(idRef.current)};return(0,react.useEffect)(function(){return cleanUp},[]),function(callback){cleanUp(),idRef.current=(0,raf.Z)(function(){callback()})}},_excluded=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],getDecimalValue=function(stringMode,decimalValue){return stringMode||decimalValue.isEmpty()?decimalValue.toString():decimalValue.toNumber()},getDecimalIfValidate=function(value){var decimal=getMiniDecimal(value);return decimal.isInvalidate()?null:decimal},InputNumber=react.forwardRef(function(props,ref){var input,selectionRef,_classNames,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-input-number":_props$prefixCls,className=props.className,style=props.style,min=props.min,max=props.max,_props$step=props.step,step=void 0===_props$step?1:_props$step,defaultValue=props.defaultValue,value=props.value,disabled=props.disabled,readOnly=props.readOnly,upHandler=props.upHandler,downHandler=props.downHandler,keyboard=props.keyboard,_props$controls=props.controls,stringMode=props.stringMode,parser=props.parser,formatter=props.formatter,precision=props.precision,decimalSeparator=props.decimalSeparator,onChange=props.onChange,onInput=props.onInput,onPressEnter=props.onPressEnter,onStep=props.onStep,inputProps=(0,objectWithoutProperties.Z)(props,_excluded),inputClassName="".concat(prefixCls,"-input"),inputRef=react.useRef(null),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),focus=_React$useState2[0],setFocus=_React$useState2[1],userTypingRef=react.useRef(!1),compositionRef=react.useRef(!1),shiftKeyRef=react.useRef(!1),_React$useState3=react.useState(function(){return getMiniDecimal(null!=value?value:defaultValue)}),_React$useState4=(0,slicedToArray.Z)(_React$useState3,2),decimalValue=_React$useState4[0],setDecimalValue=_React$useState4[1],getPrecision=react.useCallback(function(numStr,userTyping){return userTyping?void 0:precision>=0?precision:Math.max(getNumberPrecision(numStr),getNumberPrecision(step))},[precision,step]),mergedParser=react.useCallback(function(num){var numStr=String(num);if(parser)return parser(numStr);var parsedStr=numStr;return decimalSeparator&&(parsedStr=parsedStr.replace(decimalSeparator,".")),parsedStr.replace(/[^\w.-]+/g,"")},[parser,decimalSeparator]),inputValueRef=react.useRef(""),mergedFormatter=react.useCallback(function(number,userTyping){if(formatter)return formatter(number,{userTyping:userTyping,input:String(inputValueRef.current)});var str="number"==typeof number?num2str(number):number;if(!userTyping){var mergedPrecision=getPrecision(str,userTyping);validateNumber(str)&&(decimalSeparator||mergedPrecision>=0)&&(str=toFixed(str,decimalSeparator||".",mergedPrecision))}return str},[formatter,getPrecision,decimalSeparator]),_React$useState5=react.useState(function(){var initValue=null!=defaultValue?defaultValue:value;return decimalValue.isInvalidate()&&["string","number"].includes((0,esm_typeof.Z)(initValue))?Number.isNaN(initValue)?"":initValue:mergedFormatter(decimalValue.toString(),!1)}),_React$useState6=(0,slicedToArray.Z)(_React$useState5,2),inputValue=_React$useState6[0],setInternalInputValue=_React$useState6[1];function setInputValue(newValue,userTyping){setInternalInputValue(mergedFormatter(newValue.isInvalidate()?newValue.toString(!1):newValue.toString(!userTyping),userTyping))}inputValueRef.current=inputValue;var maxDecimal=react.useMemo(function(){return getDecimalIfValidate(max)},[max,precision]),minDecimal=react.useMemo(function(){return getDecimalIfValidate(min)},[min,precision]),upDisabled=react.useMemo(function(){return!(!maxDecimal||!decimalValue||decimalValue.isInvalidate())&&maxDecimal.lessEquals(decimalValue)},[maxDecimal,decimalValue]),downDisabled=react.useMemo(function(){return!(!minDecimal||!decimalValue||decimalValue.isInvalidate())&&decimalValue.lessEquals(minDecimal)},[minDecimal,decimalValue]),_useCursor=(input=inputRef.current,selectionRef=(0,react.useRef)(null),[function(){try{var start=input.selectionStart,end=input.selectionEnd,value=input.value,beforeTxt=value.substring(0,start),afterTxt=value.substring(end);selectionRef.current={start:start,end:end,value:value,beforeTxt:beforeTxt,afterTxt:afterTxt}}catch(e){}},function(){if(input&&selectionRef.current&&focus)try{var value=input.value,_selectionRef$current=selectionRef.current,beforeTxt=_selectionRef$current.beforeTxt,afterTxt=_selectionRef$current.afterTxt,start=_selectionRef$current.start,startPos=value.length;if(value.endsWith(afterTxt))startPos=value.length-selectionRef.current.afterTxt.length;else if(value.startsWith(beforeTxt))startPos=beforeTxt.length;else{var beforeLastChar=beforeTxt[start-1],newIndex=value.indexOf(beforeLastChar,start-1);-1!==newIndex&&(startPos=newIndex+1)}input.setSelectionRange(startPos,startPos)}catch(e){(0,warning.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),_useCursor2=(0,slicedToArray.Z)(_useCursor,2),recordCursor=_useCursor2[0],restoreCursor=_useCursor2[1],getRangeValue=function(target){return maxDecimal&&!target.lessEquals(maxDecimal)?maxDecimal:minDecimal&&!minDecimal.lessEquals(target)?minDecimal:null},isInRange=function(target){return!getRangeValue(target)},triggerValueUpdate=function(newValue,userTyping){var updateValue=newValue,isRangeValidate=isInRange(updateValue)||updateValue.isEmpty();if(updateValue.isEmpty()||userTyping||(updateValue=getRangeValue(updateValue)||updateValue,isRangeValidate=!0),!readOnly&&!disabled&&isRangeValidate){var newDecimal,numStr=updateValue.toString(),mergedPrecision=getPrecision(numStr,userTyping);return mergedPrecision>=0&&!isInRange(updateValue=getMiniDecimal(toFixed(numStr,".",mergedPrecision)))&&(updateValue=getMiniDecimal(toFixed(numStr,".",mergedPrecision,!0))),updateValue.equals(decimalValue)||(newDecimal=updateValue,void 0===value&&setDecimalValue(newDecimal),null==onChange||onChange(updateValue.isEmpty()?null:getDecimalValue(stringMode,updateValue)),void 0===value&&setInputValue(updateValue,userTyping)),updateValue}return decimalValue},onNextPromise=useFrame(),collectInputValue=function collectInputValue(inputStr){if(recordCursor(),setInternalInputValue(inputStr),!compositionRef.current){var finalDecimal=getMiniDecimal(mergedParser(inputStr));finalDecimal.isNaN()||triggerValueUpdate(finalDecimal,!0)}null==onInput||onInput(inputStr),onNextPromise(function(){var nextInputStr=inputStr;parser||(nextInputStr=inputStr.replace(/。/g,".")),nextInputStr!==inputStr&&collectInputValue(nextInputStr)})},onInternalStep=function(up){if((!up||!upDisabled)&&(up||!downDisabled)){userTypingRef.current=!1;var _inputRef$current,stepDecimal=getMiniDecimal(shiftKeyRef.current?getDecupleSteps(step):step);up||(stepDecimal=stepDecimal.negate());var updatedValue=triggerValueUpdate((decimalValue||getMiniDecimal(0)).add(stepDecimal.toString()),!1);null==onStep||onStep(getDecimalValue(stringMode,updatedValue),{offset:shiftKeyRef.current?getDecupleSteps(step):step,type:up?"up":"down"}),null===(_inputRef$current=inputRef.current)||void 0===_inputRef$current||_inputRef$current.focus()}},flushInputValue=function(userTyping){var parsedValue=getMiniDecimal(mergedParser(inputValue)),formatValue=parsedValue;formatValue=parsedValue.isNaN()?decimalValue:triggerValueUpdate(parsedValue,userTyping),void 0!==value?setInputValue(decimalValue,!1):formatValue.isNaN()||setInputValue(formatValue,!1)};return(0,useLayoutEffect.o)(function(){decimalValue.isInvalidate()||setInputValue(decimalValue,!1)},[precision]),(0,useLayoutEffect.o)(function(){var newValue=getMiniDecimal(value);setDecimalValue(newValue);var currentParsedValue=getMiniDecimal(mergedParser(inputValue));newValue.equals(currentParsedValue)&&userTypingRef.current&&!formatter||setInputValue(newValue,userTypingRef.current)},[value]),(0,useLayoutEffect.o)(function(){formatter&&restoreCursor()},[inputValue]),react.createElement("div",{className:classnames_default()(prefixCls,className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-focused"),focus),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-disabled"),disabled),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-readonly"),readOnly),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-not-a-number"),decimalValue.isNaN()),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-out-of-range"),!decimalValue.isInvalidate()&&!isInRange(decimalValue)),_classNames)),style:style,onFocus:function(){setFocus(!0)},onBlur:function(){flushInputValue(!1),setFocus(!1),userTypingRef.current=!1},onKeyDown:function(event){var which=event.which,shiftKey=event.shiftKey;userTypingRef.current=!0,shiftKey?shiftKeyRef.current=!0:shiftKeyRef.current=!1,which===KeyCode.Z.ENTER&&(compositionRef.current||(userTypingRef.current=!1),flushInputValue(!1),null==onPressEnter||onPressEnter(event)),!1!==keyboard&&!compositionRef.current&&[KeyCode.Z.UP,KeyCode.Z.DOWN].includes(which)&&(onInternalStep(KeyCode.Z.UP===which),event.preventDefault())},onKeyUp:function(){userTypingRef.current=!1,shiftKeyRef.current=!1},onCompositionStart:function(){compositionRef.current=!0},onCompositionEnd:function(){compositionRef.current=!1,collectInputValue(inputRef.current.value)}},(void 0===_props$controls||_props$controls)&&react.createElement(StepHandler,{prefixCls:prefixCls,upNode:upHandler,downNode:downHandler,upDisabled:upDisabled,downDisabled:downDisabled,onStep:onInternalStep}),react.createElement("div",{className:"".concat(inputClassName,"-wrap")},react.createElement("input",(0,esm_extends.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":min,"aria-valuemax":max,"aria-valuenow":decimalValue.isInvalidate()?null:decimalValue.toString(),step:step},inputProps,{ref:(0,es_ref.sQ)(inputRef,ref),className:inputClassName,value:inputValue,onChange:function(e){collectInputValue(e.target.value)},disabled:disabled,readOnly:readOnly}))))});InputNumber.displayName="InputNumber";var context=__webpack_require__(53124),DisabledContext=__webpack_require__(98866),SizeContext=__webpack_require__(97647),form_context=__webpack_require__(65223),Compact=__webpack_require__(4173),reactNode=__webpack_require__(96159),statusUtils=__webpack_require__(9708),__rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&0>e.indexOf(p)&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,p=Object.getOwnPropertySymbols(s);ie.indexOf(p[i])&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},input_number_InputNumber=react.forwardRef(function(props,ref){var _React$useContext=react.useContext(context.E_),getPrefixCls=_React$useContext.getPrefixCls,direction=_React$useContext.direction,size=react.useContext(SizeContext.Z),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),focused=_React$useState2[0],setFocus=_React$useState2[1],inputRef=react.useRef(null);react.useImperativeHandle(ref,function(){return inputRef.current});var className=props.className,customizeSize=props.size,customDisabled=props.disabled,customizePrefixCls=props.prefixCls,addonBefore=props.addonBefore,addonAfter=props.addonAfter,prefix=props.prefix,_props$bordered=props.bordered,bordered=void 0===_props$bordered||_props$bordered,readOnly=props.readOnly,customStatus=props.status,controls=props.controls,others=__rest(props,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),prefixCls=getPrefixCls("input-number",customizePrefixCls),_useCompactItemContex=(0,Compact.ri)(prefixCls,direction),compactSize=_useCompactItemContex.compactSize,compactItemClassnames=_useCompactItemContex.compactItemClassnames,upIcon=react.createElement(icons_UpOutlined,{className:"".concat(prefixCls,"-handler-up-inner")}),downIcon=react.createElement(DownOutlined.Z,{className:"".concat(prefixCls,"-handler-down-inner")});"object"===(0,esm_typeof.Z)(controls)&&(upIcon=void 0===controls.upIcon?upIcon:react.createElement("span",{className:"".concat(prefixCls,"-handler-up-inner")},controls.upIcon),downIcon=void 0===controls.downIcon?downIcon:react.createElement("span",{className:"".concat(prefixCls,"-handler-down-inner")},controls.downIcon));var _useContext=(0,react.useContext)(form_context.aM),hasFeedback=_useContext.hasFeedback,contextStatus=_useContext.status,isFormItemInput=_useContext.isFormItemInput,feedbackIcon=_useContext.feedbackIcon,mergedStatus=(0,statusUtils.F)(contextStatus,customStatus),mergeSize=compactSize||customizeSize||size,disabled=react.useContext(DisabledContext.Z),mergedDisabled=null!=customDisabled?customDisabled:disabled,inputNumberClass=classnames_default()((_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-lg"),"large"===mergeSize),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-sm"),"small"===mergeSize),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-rtl"),"rtl"===direction),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-borderless"),!bordered),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-in-form-item"),isFormItemInput),_classNames),(0,statusUtils.Z)(prefixCls,mergedStatus),compactItemClassnames,className),element=react.createElement(InputNumber,(0,esm_extends.Z)({ref:inputRef,disabled:mergedDisabled,className:inputNumberClass,upHandler:upIcon,downHandler:downIcon,prefixCls:prefixCls,readOnly:readOnly,controls:"boolean"==typeof controls?controls:void 0},others));if(null!=prefix||hasFeedback){var _classNames,_classNames2,affixWrapperCls=classnames_default()("".concat(prefixCls,"-affix-wrapper"),(0,statusUtils.Z)("".concat(prefixCls,"-affix-wrapper"),mergedStatus,hasFeedback),(_classNames2={},(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-focused"),focused),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-disabled"),props.disabled),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-sm"),"small"===size),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-lg"),"large"===size),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-rtl"),"rtl"===direction),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-readonly"),readOnly),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-borderless"),!bordered),(0,defineProperty.Z)(_classNames2,"".concat(className),!(addonBefore||addonAfter)&&className),_classNames2));element=react.createElement("div",{className:affixWrapperCls,style:props.style,onMouseUp:function(){return inputRef.current.focus()}},prefix&&react.createElement("span",{className:"".concat(prefixCls,"-prefix")},prefix),(0,reactNode.Tm)(element,{style:null,value:props.value,onFocus:function(event){var _a;setFocus(!0),null===(_a=props.onFocus)||void 0===_a||_a.call(props,event)},onBlur:function(event){var _a;setFocus(!1),null===(_a=props.onBlur)||void 0===_a||_a.call(props,event)}}),hasFeedback&&react.createElement("span",{className:"".concat(prefixCls,"-suffix")},feedbackIcon))}if(null!=addonBefore||null!=addonAfter){var _classNames4,wrapperClassName="".concat(prefixCls,"-group"),addonClassName="".concat(wrapperClassName,"-addon"),addonBeforeNode=addonBefore?react.createElement("div",{className:addonClassName},addonBefore):null,addonAfterNode=addonAfter?react.createElement("div",{className:addonClassName},addonAfter):null,mergedWrapperClassName=classnames_default()("".concat(prefixCls,"-wrapper"),wrapperClassName,(0,defineProperty.Z)({},"".concat(wrapperClassName,"-rtl"),"rtl"===direction)),mergedGroupClassName=classnames_default()("".concat(prefixCls,"-group-wrapper"),(_classNames4={},(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-sm"),"small"===size),(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-lg"),"large"===size),(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-rtl"),"rtl"===direction),_classNames4),(0,statusUtils.Z)("".concat(prefixCls,"-group-wrapper"),mergedStatus,hasFeedback),className);element=react.createElement("div",{className:mergedGroupClassName,style:props.style},react.createElement("div",{className:mergedWrapperClassName},addonBeforeNode&&react.createElement(form_context.Ux,{status:!0,override:!0},addonBeforeNode),(0,reactNode.Tm)(element,{style:null,disabled:mergedDisabled}),addonAfterNode&&react.createElement(form_context.Ux,{status:!0,override:!0},addonAfterNode)))}return element}),FormStatusIndicator=__webpack_require__(39664);let TEXTFIELD_TYPE_TEXT="default",TEXTFIELD_TYPE_PASSWORD="password",TEXTFIELD_TYPE_NUMBER="numeric",TEXTFIELD_TYPE_TEXTAREA="textarea",TEXTFIELD_TYPE_URL="url",TextField=param=>{let{className,disabled,fieldName,label,maxLength,onBlur,onChange,onPressEnter,pattern,placeholder,required,status,tip,type,useTrim,value}=param,handleChange=e=>{if(onChange){let val=type===TEXTFIELD_TYPE_NUMBER?e:e.target.value;onChange({fieldName,value:useTrim?val.trim():val})}},handleBlur=e=>{let val=e.target.value;onBlur&&onBlur({value:val})},handlePressEnter=()=>{onPressEnter&&onPressEnter()},Field=input.Z,fieldProps={};type===TEXTFIELD_TYPE_TEXTAREA?(Field=input.Z.TextArea,fieldProps={autoSize:!0}):type===TEXTFIELD_TYPE_PASSWORD?(Field=input.Z.Password,fieldProps={visibilityToggle:!0}):type===TEXTFIELD_TYPE_NUMBER?(Field=input_number_InputNumber,fieldProps={type:"number",min:1,max:10**maxLength-1}):type===TEXTFIELD_TYPE_URL&&(fieldProps={type:"url",pattern});let fieldId="field-".concat(fieldName),{type:statusType}=status||{},containerClass=classnames_default()({"formfield-container":!0,"textfield-container":!0,["type-".concat(type)]:!0,required,["status-".concat(statusType)]:status});return(0,jsx_runtime.jsxs)("div",{className:containerClass,children:[label?(0,jsx_runtime.jsx)("div",{className:"label-side",children:(0,jsx_runtime.jsx)("label",{htmlFor:fieldId,className:"formfield-label",children:label})}):null,(0,jsx_runtime.jsxs)("div",{className:"input-side",children:[(0,jsx_runtime.jsx)("div",{className:"input-group",children:(0,jsx_runtime.jsx)(Field,{id:fieldId,className:"field ".concat(className," ").concat(fieldId),...fieldProps,...type!==TEXTFIELD_TYPE_NUMBER&&{allowClear:!0},placeholder:placeholder,maxLength:maxLength,onChange:handleChange,onBlur:handleBlur,onPressEnter:handlePressEnter,disabled:disabled,value:value})}),(0,jsx_runtime.jsx)(FormStatusIndicator.E,{status:status}),(0,jsx_runtime.jsx)("p",{className:"field-tip",children:tip})]})]})};TextField.defaultProps={className:"",disabled:!1,label:"",maxLength:255,placeholder:"",required:!1,status:null,tip:"",type:TEXTFIELD_TYPE_TEXT,value:"",pattern:"",useTrim:!1,useTrimLead:!1,onSubmit(){},onBlur(){},onChange(){},onPressEnter(){}}},10135:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$7:function(){return TextFieldWithSubmit},Kx:function(){return TEXTFIELD_TYPE_TEXT},Sk:function(){return TEXTFIELD_TYPE_TEXTAREA},xA:function(){return TEXTFIELD_TYPE_URL}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),antd__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(71577),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(90745),_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(41983),_utils_server_status_context__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(99519),_FormStatusIndicator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(39664),_TextField__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(40117);let TEXTFIELD_TYPE_TEXT="default",TEXTFIELD_TYPE_TEXTAREA="textarea",TEXTFIELD_TYPE_URL="url",TextFieldWithSubmit=param=>{let{apiPath,configPath="",initialValue,useTrim,useTrimLead,...textFieldProps}=param,[submitStatus,setSubmitStatus]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),[hasChanged,setHasChanged]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),serverStatusData=(0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils_server_status_context__WEBPACK_IMPORTED_MODULE_5__.aC),{setFieldInConfigState}=serverStatusData||{},resetTimer=null,{fieldName,required,tip,status,value,onChange,onSubmit}=textFieldProps,resetStates=()=>{setSubmitStatus(null),setHasChanged(!1),clearTimeout(resetTimer),resetTimer=null};(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{required&&(""===value||null===value)||value===initialValue?setHasChanged(!1):(resetStates(),setHasChanged(!0))},[value]);let handleChange=param=>{let{fieldName:changedFieldName,value:changedValue}=param;if(onChange){let newValue=changedValue;useTrim?newValue=changedValue.trim():useTrimLead&&(newValue=changedValue.replace(/^\s+/g,"")),onChange({fieldName:changedFieldName,value:newValue})}},handleBlur=param=>{let{value:changedValue}=param;onChange&&required&&""===changedValue&&onChange({fieldName,value:initialValue})},handleSubmit=async()=>{(required&&""!==value||value!==initialValue)&&(setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.Jk)),await (0,_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__.Si)({apiPath,data:{value},onSuccess(){setFieldInConfigState({fieldName,value,path:configPath}),setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.zv))},onError(message){setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.Un,"There was an error: ".concat(message)))}}),resetTimer=setTimeout(resetStates,_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__.sI),onSubmit&&onSubmit())},textfieldContainerClass=classnames__WEBPACK_IMPORTED_MODULE_1___default()({"textfield-with-submit-container":!0,submittable:hasChanged});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:textfieldContainerClass,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"textfield-component",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_TextField__WEBPACK_IMPORTED_MODULE_7__.nv,{...textFieldProps,onSubmit:null,onBlur:handleBlur,onChange:handleChange})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"formfield-container lower-container",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"label-spacer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"lower-content",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"field-tip",children:tip}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_FormStatusIndicator__WEBPACK_IMPORTED_MODULE_6__.E,{status:status||submitStatus}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"update-button-container",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__.Z,{type:"primary",size:"small",className:"submit-button",onClick:handleSubmit,disabled:!hasChanged,children:"Update"})})]})]})]})};TextFieldWithSubmit.defaultProps={configPath:"",initialValue:""}},10227:function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDomainLocale=function(path,locale,locales,domainLocales){return!1},("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},31551:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _interop_require_default=__webpack_require__(92648).Z,_object_without_properties_loose=__webpack_require__(17273).Z,_react=_interop_require_default(__webpack_require__(67294)),_router=__webpack_require__(41003),_formatUrl=__webpack_require__(67795),_addLocale=__webpack_require__(54465),_routerContext=__webpack_require__(72692),_appRouterContext=__webpack_require__(48245),_useIntersection=__webpack_require__(69246),_getDomainLocale=__webpack_require__(10227),_addBasePath=__webpack_require__(33468);let prefetched=new Set;function prefetch(router,href,as,options){if(_router.isLocalURL(href)){if(!options.bypassPrefetchedCheck){let locale=void 0!==options.locale?options.locale:"locale"in router?router.locale:void 0,prefetchedKey=href+"%"+as+"%"+locale;if(prefetched.has(prefetchedKey))return;prefetched.add(prefetchedKey)}Promise.resolve(router.prefetch(href,as,options)).catch(err=>{})}}function formatStringOrUrl(urlObjOrString){return"string"==typeof urlObjOrString?urlObjOrString:_formatUrl.formatUrl(urlObjOrString)}let Link=_react.default.forwardRef(function(props,forwardedRef){let children,child;let{href:hrefProp,as:asProp,children:childrenProp,prefetch:prefetchProp,passHref,replace,shallow,scroll,locale,onClick,onMouseEnter:onMouseEnterProp,onTouchStart:onTouchStartProp,legacyBehavior=!0!==Boolean(!0)}=props,restProps=_object_without_properties_loose(props,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);children=childrenProp,legacyBehavior&&("string"==typeof children||"number"==typeof children)&&(children=_react.default.createElement("a",null,children));let prefetchEnabled=!1!==prefetchProp,pagesRouter=_react.default.useContext(_routerContext.RouterContext),appRouter=_react.default.useContext(_appRouterContext.AppRouterContext),router=null!=pagesRouter?pagesRouter:appRouter,isAppRouter=!pagesRouter,{href,as}=_react.default.useMemo(()=>{if(!pagesRouter){let resolvedHref=formatStringOrUrl(hrefProp);return{href:resolvedHref,as:asProp?formatStringOrUrl(asProp):resolvedHref}}let[resolvedHref1,resolvedAs]=_router.resolveHref(pagesRouter,hrefProp,!0);return{href:resolvedHref1,as:asProp?_router.resolveHref(pagesRouter,asProp):resolvedAs||resolvedHref1}},[pagesRouter,hrefProp,asProp]),previousHref=_react.default.useRef(href),previousAs=_react.default.useRef(as);legacyBehavior&&(child=_react.default.Children.only(children));let childRef=legacyBehavior?child&&"object"==typeof child&&child.ref:forwardedRef,[setIntersectionRef,isVisible,resetVisible]=_useIntersection.useIntersection({rootMargin:"200px"}),setRef=_react.default.useCallback(el=>{(previousAs.current!==as||previousHref.current!==href)&&(resetVisible(),previousAs.current=as,previousHref.current=href),setIntersectionRef(el),childRef&&("function"==typeof childRef?childRef(el):"object"==typeof childRef&&(childRef.current=el))},[as,childRef,href,resetVisible,setIntersectionRef]);_react.default.useEffect(()=>{router&&isVisible&&prefetchEnabled&&prefetch(router,href,as,{locale})},[as,href,isVisible,locale,prefetchEnabled,null==pagesRouter?void 0:pagesRouter.locale,router]);let childProps={ref:setRef,onClick(e){legacyBehavior||"function"!=typeof onClick||onClick(e),legacyBehavior&&child.props&&"function"==typeof child.props.onClick&&child.props.onClick(e),router&&!e.defaultPrevented&&function(e,router,href,as,replace,shallow,scroll,locale,isAppRouter,prefetchEnabled){let{nodeName}=e.currentTarget,isAnchorNodeName="A"===nodeName.toUpperCase();if(isAnchorNodeName&&(function(event){let{target}=event.currentTarget;return target&&"_self"!==target||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey||event.nativeEvent&&2===event.nativeEvent.which}(e)||!_router.isLocalURL(href)))return;e.preventDefault();let navigate=()=>{"beforePopState"in router?router[replace?"replace":"push"](href,as,{shallow,locale,scroll}):router[replace?"replace":"push"](as||href,{forceOptimisticNavigation:!prefetchEnabled})};isAppRouter?_react.default.startTransition(navigate):navigate()}(e,router,href,as,replace,shallow,scroll,locale,isAppRouter,prefetchEnabled)},onMouseEnter(e){legacyBehavior||"function"!=typeof onMouseEnterProp||onMouseEnterProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onMouseEnter&&child.props.onMouseEnter(e),router&&(prefetchEnabled||!isAppRouter)&&prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart(e){legacyBehavior||"function"!=typeof onTouchStartProp||onTouchStartProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onTouchStart&&child.props.onTouchStart(e),router&&(prefetchEnabled||!isAppRouter)&&prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0})}};if(!legacyBehavior||passHref||"a"===child.type&&!("href"in child.props)){let curLocale=void 0!==locale?locale:null==pagesRouter?void 0:pagesRouter.locale,localeDomain=(null==pagesRouter?void 0:pagesRouter.isLocaleDomain)&&_getDomainLocale.getDomainLocale(as,curLocale,null==pagesRouter?void 0:pagesRouter.locales,null==pagesRouter?void 0:pagesRouter.domainLocales);childProps.href=localeDomain||_addBasePath.addBasePath(_addLocale.addLocale(as,curLocale,null==pagesRouter?void 0:pagesRouter.defaultLocale))}return legacyBehavior?_react.default.cloneElement(child,childProps):_react.default.createElement("a",Object.assign({},restProps,childProps),children)});exports.default=Link,("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},69246:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useIntersection=function(param){let{rootRef,rootMargin,disabled}=param,isDisabled=disabled||!hasIntersectionObserver,[visible,setVisible]=_react.useState(!1),[element,setElement]=_react.useState(null);_react.useEffect(()=>{if(hasIntersectionObserver){if(!isDisabled&&!visible&&element&&element.tagName){let unobserve=function(element,callback,options){let{id,observer,elements}=function(options){let instance;let id={root:options.root||null,margin:options.rootMargin||""},existing=idList.find(obj=>obj.root===id.root&&obj.margin===id.margin);if(existing&&(instance=observers.get(existing)))return instance;let elements=new Map,observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{let callback=elements.get(entry.target),isVisible=entry.isIntersecting||entry.intersectionRatio>0;callback&&isVisible&&callback(isVisible)})},options);return instance={id,observer,elements},idList.push(id),observers.set(id,instance),instance}(options);return elements.set(element,callback),observer.observe(element),function(){if(elements.delete(element),observer.unobserve(element),0===elements.size){observer.disconnect(),observers.delete(id);let index=idList.findIndex(obj=>obj.root===id.root&&obj.margin===id.margin);index>-1&&idList.splice(index,1)}}}(element,isVisible=>isVisible&&setVisible(isVisible),{root:null==rootRef?void 0:rootRef.current,rootMargin});return unobserve}}else if(!visible){let idleCallback=_requestIdleCallback.requestIdleCallback(()=>setVisible(!0));return()=>_requestIdleCallback.cancelIdleCallback(idleCallback)}},[element,isDisabled,rootMargin,rootRef,visible]);let resetVisible=_react.useCallback(()=>{setVisible(!1)},[]);return[setElement,visible,resetVisible]};var _react=__webpack_require__(67294),_requestIdleCallback=__webpack_require__(44686);let hasIntersectionObserver="function"==typeof IntersectionObserver,observers=new Map,idList=[];("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},6462:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _app}});var jsx_runtime=__webpack_require__(85893);__webpack_require__(63785),__webpack_require__(75575),__webpack_require__(58090),__webpack_require__(45354),__webpack_require__(34146);var next_router=__webpack_require__(11163),es=__webpack_require__(4480),react=__webpack_require__(67294),server_status_context=__webpack_require__(99519),alert_message_context=__webpack_require__(82661),prop_types=__webpack_require__(45697),prop_types_default=__webpack_require__.n(prop_types),next_link=__webpack_require__(41664),link_default=__webpack_require__.n(next_link),head=__webpack_require__(9008),head_default=__webpack_require__.n(head),differenceInSeconds=__webpack_require__(11699),layout=__webpack_require__(97183),menu=__webpack_require__(66516),es_alert=__webpack_require__(14670),typography=__webpack_require__(84485),popover=__webpack_require__(55241),space=__webpack_require__(26713),tooltip=__webpack_require__(94199),es_button=__webpack_require__(71577),objectSpread2=__webpack_require__(1413),asn_PlayCircleFilled={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},AntdIcon=__webpack_require__(42135),PlayCircleFilled_PlayCircleFilled=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_PlayCircleFilled}))};PlayCircleFilled_PlayCircleFilled.displayName="PlayCircleFilled";var icons_PlayCircleFilled=react.forwardRef(PlayCircleFilled_PlayCircleFilled),asn_MinusSquareFilled={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-square",theme:"filled"},MinusSquareFilled_MinusSquareFilled=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_MinusSquareFilled}))};MinusSquareFilled_MinusSquareFilled.displayName="MinusSquareFilled";var icons_MinusSquareFilled=react.forwardRef(MinusSquareFilled_MinusSquareFilled),asn_HomeOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},HomeOutlined_HomeOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_HomeOutlined}))};HomeOutlined_HomeOutlined.displayName="HomeOutlined";var icons_HomeOutlined=react.forwardRef(HomeOutlined_HomeOutlined),asn_LineChartOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},LineChartOutlined_LineChartOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_LineChartOutlined}))};LineChartOutlined_LineChartOutlined.displayName="LineChartOutlined";var icons_LineChartOutlined=react.forwardRef(LineChartOutlined_LineChartOutlined),MessageOutlined=__webpack_require__(38545),asn_SettingOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},SettingOutlined_SettingOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_SettingOutlined}))};SettingOutlined_SettingOutlined.displayName="SettingOutlined";var icons_SettingOutlined=react.forwardRef(SettingOutlined_SettingOutlined),asn_ToolOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},ToolOutlined_ToolOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_ToolOutlined}))};ToolOutlined_ToolOutlined.displayName="ToolOutlined";var icons_ToolOutlined=react.forwardRef(ToolOutlined_ToolOutlined),asn_ExperimentOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},ExperimentOutlined_ExperimentOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_ExperimentOutlined}))};ExperimentOutlined_ExperimentOutlined.displayName="ExperimentOutlined";var icons_ExperimentOutlined=react.forwardRef(ExperimentOutlined_ExperimentOutlined),asn_QuestionCircleOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},QuestionCircleOutlined_QuestionCircleOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_QuestionCircleOutlined}))};QuestionCircleOutlined_QuestionCircleOutlined.displayName="QuestionCircleOutlined";var icons_QuestionCircleOutlined=react.forwardRef(QuestionCircleOutlined_QuestionCircleOutlined),EditOutlined=__webpack_require__(86548),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),apis=__webpack_require__(64777),format=__webpack_require__(70241),OwncastLogo=__webpack_require__(50738),TextFieldWithSubmit=__webpack_require__(10135),config_constants=__webpack_require__(90745),input=__webpack_require__(69677),modal=__webpack_require__(85402),input_statuses=__webpack_require__(41983);let{TextArea}=input.Z,ComposeFederatedPost=param=>{let{open,handleClose}=param,[content,setContent]=(0,react.useState)(""),[postPending,setPostPending]=(0,react.useState)(!1),[postSuccessState,setPostSuccessState]=(0,react.useState)(null);function close(){setPostPending(!1),setPostSuccessState(null),handleClose()}async function sendButtonClicked(){setPostPending(!0);try{await (0,apis.rQ)(apis.e_,{data:{value:content},method:"POST",auth:!0}),setPostSuccessState(input_statuses.zv),setTimeout(close,1e3)}catch(e){console.error(e),setPostSuccessState(input_statuses.Un)}setPostPending(!1)}return(0,jsx_runtime.jsx)(modal.Z,{destroyOnClose:!0,width:600,title:"Post to Followers",open:open,onCancel:handleClose,footer:[(0,jsx_runtime.jsx)(es_button.Z,{onClick:()=>handleClose(),children:"Cancel"}),(0,jsx_runtime.jsx)(es_button.Z,{type:"primary",onClick:sendButtonClicked,disabled:postPending||postSuccessState,loading:postPending,children:(null==postSuccessState?void 0:postSuccessState.toUpperCase())||"Post"})],children:(0,jsx_runtime.jsx)(TextArea,{placeholder:"Tell the world about your streaming plans...",size:"large",showCount:!0,maxLength:500,style:{height:"150px",width:"100%"},onChange:function(e){setContent(e.target.value)}})})},MainLayout=param=>{let{children}=param,context=(0,react.useContext)(server_status_context.aC),{serverConfig,online,broadcaster,versionNumber}=context||{},{instanceDetails,chatDisabled,federation}=serverConfig,{enabled:federationEnabled}=federation,[currentStreamTitle,setCurrentStreamTitle]=(0,react.useState)(""),[postModalDisplayed,setPostModalDisplayed]=(0,react.useState)(!1),alertMessage=(0,react.useContext)(alert_message_context.k),router=(0,next_router.useRouter)(),{route}=router||{},{Header,Footer,Content,Sider}=layout.Z,{SubMenu}=menu.Z,[upgradeVersion,setUpgradeVersion]=(0,react.useState)(""),checkForUpgrade=async()=>{try{let result=await (0,apis.GR)(versionNumber);setUpgradeVersion(result)}catch(error){console.log("==== error",error)}};(0,react.useEffect)(()=>{checkForUpgrade()},[versionNumber]),(0,react.useEffect)(()=>{setCurrentStreamTitle(instanceDetails.streamTitle)},[instanceDetails]);let handleStreamTitleChanged=param=>{let{value}=param;setCurrentStreamTitle(value)},handleCreatePostButtonPressed=()=>{setPostModalDisplayed(!0)},appClass=classnames_default()({"app-container":!0,online}),clearAlertMessage=()=>{alertMessage.setMessage(null)},headerAlertMessage=alertMessage.message?(0,jsx_runtime.jsx)(es_alert.Z,{message:alertMessage.message,afterClose:clearAlertMessage,banner:!0,closable:!0}):null,streamDurationString=broadcaster?(0,format.wS)((0,differenceInSeconds.Z)(new Date,new Date(broadcaster.time))):"",currentThumbnail=online?(0,jsx_runtime.jsx)("img",{src:"/thumbnail.jpg",className:"online-thumbnail",alt:"current thumbnail",width:"1rem"}):null,statusIcon=online?(0,jsx_runtime.jsx)(icons_PlayCircleFilled,{}):(0,jsx_runtime.jsx)(icons_MinusSquareFilled,{}),popoverTitle=(0,jsx_runtime.jsx)(typography.Z.Text,{children:"Thumbnail"}),statusIndicator=(0,jsx_runtime.jsxs)("div",{className:"online-status-indicator",children:[(0,jsx_runtime.jsx)("span",{className:"status-label",children:online?"Online ".concat(streamDurationString):"Offline"}),(0,jsx_runtime.jsx)("span",{className:"status-icon",children:statusIcon})]}),statusIndicatorWithThumb=online?(0,jsx_runtime.jsx)(popover.Z,{content:currentThumbnail,title:popoverTitle,trigger:"hover",children:statusIndicator}):statusIndicator;return(0,jsx_runtime.jsxs)(layout.Z,{className:appClass,children:[(0,jsx_runtime.jsxs)(head_default(),{children:[(0,jsx_runtime.jsx)("title",{children:"Owncast Admin"}),(0,jsx_runtime.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"})]}),(0,jsx_runtime.jsxs)(Sider,{width:240,className:"side-nav",children:[(0,jsx_runtime.jsxs)("h1",{className:"owncast-title",children:[(0,jsx_runtime.jsx)("span",{className:"logo-container",children:(0,jsx_runtime.jsx)(OwncastLogo.C,{variant:"simple"})}),(0,jsx_runtime.jsx)("span",{className:"title-label",children:"Owncast Admin"})]}),(0,jsx_runtime.jsxs)(menu.Z,{defaultSelectedKeys:[route.substring(1)||"home"],defaultOpenKeys:upgradeVersion?["utilities-menu"]:[],mode:"inline",className:"menu-container",children:[(0,jsx_runtime.jsx)(menu.Z.Item,{icon:(0,jsx_runtime.jsx)(icons_HomeOutlined,{}),children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin",children:"Home"})},"home"),(0,jsx_runtime.jsx)(menu.Z.Item,{icon:(0,jsx_runtime.jsx)(icons_LineChartOutlined,{}),title:"Current stream",children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/viewer-info",children:"Viewers"})},"viewer-info"),(0,jsx_runtime.jsxs)(SubMenu,{title:"Chat & Users",icon:(0,jsx_runtime.jsx)(MessageOutlined.Z,{}),style:{display:chatDisabled?"none":"block"},children:[(0,jsx_runtime.jsx)(menu.Z.Item,{title:"Chat utilities",children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/chat/messages",children:"Messages"})},"messages"),(0,jsx_runtime.jsx)(menu.Z.Item,{title:"Chat utilities",children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/chat/users",children:"Users"})},"chat-users")]},"chat-config"),(0,jsx_runtime.jsx)(menu.Z.Item,{style:{display:federationEnabled?"block":"none"},title:"Fediverse followers",icon:(0,jsx_runtime.jsx)("img",{alt:"fediverse icon",src:"/admin/fediverse-white.png",width:"15rem",style:{opacity:.6,position:"relative",top:"-1px"}}),children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/federation/followers",children:"Followers"})},"federation-followers"),(0,jsx_runtime.jsxs)(SubMenu,{title:"Configuration",icon:(0,jsx_runtime.jsx)(icons_SettingOutlined,{}),children:[(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-public-details",children:"General"})},"config-public-details"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-server-details",children:"Server Setup"})},"config-server-details"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-video",children:"Video"})},"config-video"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-chat",children:"Chat"})},"config-chat"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-federation",children:"Social"})},"config-federation"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-notify",children:"Notifications"})},"config-notify"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config/appearance",children:"Appearance"})},"config-appearance"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-storage",children:"S3 Storage"})},"config-storage")]},"configuration"),(0,jsx_runtime.jsxs)(SubMenu,{icon:(0,jsx_runtime.jsx)(icons_ToolOutlined,{}),title:"Utilities",children:[(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/hardware-info",children:"Hardware"})},"hardware-info"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/stream-health",children:"Stream Health"})},"stream-health"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/logs",children:"Logs"})},"logs"),(0,jsx_runtime.jsx)(menu.Z.Item,{title:"Social Actions",style:{display:federationEnabled?"block":"none"},children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/federation/actions",children:"Social Actions"})},"federation-activities"),(0,jsx_runtime.jsx)(menu.Z.Item,{style:{display:upgradeVersion?"block":"none"},children:(0,jsx_runtime.jsx)(link_default(),{href:"/upgrade",children:"Upgrade to v".concat("".concat(upgradeVersion)||"")})},"upgrade")]},"utilities-menu"),(0,jsx_runtime.jsxs)(SubMenu,{icon:(0,jsx_runtime.jsx)(icons_ExperimentOutlined,{}),title:"Integrations",children:[(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/webhooks",children:"Webhooks"})},"webhooks"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/access-tokens",children:"Access Tokens"})},"access-tokens"),(0,jsx_runtime.jsx)(menu.Z.Item,{children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/actions",children:"External Actions"})},"actions")]},"integrations-menu"),(0,jsx_runtime.jsx)(menu.Z.Item,{icon:(0,jsx_runtime.jsx)(icons_QuestionCircleOutlined,{}),title:"Help",children:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/help",children:"Help"})},"help")]})]}),(0,jsx_runtime.jsxs)(layout.Z,{className:"layout-main",children:[(0,jsx_runtime.jsxs)(Header,{className:"layout-header",children:[(0,jsx_runtime.jsx)(space.Z,{direction:"horizontal",children:(0,jsx_runtime.jsx)(tooltip.Z,{title:"Compose post to your followers",children:(0,jsx_runtime.jsx)(es_button.Z,{type:"primary",shape:"circle",icon:(0,jsx_runtime.jsx)(EditOutlined.Z,{}),size:"large",onClick:handleCreatePostButtonPressed,style:{display:federationEnabled?"block":"none"}})})}),(0,jsx_runtime.jsx)("div",{className:"global-stream-title-container",children:(0,jsx_runtime.jsx)(TextFieldWithSubmit.$7,{fieldName:"streamTitle",...config_constants.$t,placeholder:"What are you streaming now",value:currentStreamTitle,initialValue:instanceDetails.streamTitle,onChange:handleStreamTitleChanged})}),(0,jsx_runtime.jsx)(space.Z,{direction:"horizontal",children:statusIndicatorWithThumb})]}),headerAlertMessage,(0,jsx_runtime.jsx)(Content,{className:"main-content-container",children:children}),(0,jsx_runtime.jsx)(Footer,{className:"footer-container",children:(0,jsx_runtime.jsxs)("a",{href:"https://owncast.online/?source=admin",target:"_blank",rel:"noopener noreferrer",children:["About Owncast v",versionNumber]})})]}),(0,jsx_runtime.jsx)(ComposeFederatedPost,{open:postModalDisplayed,handleClose:()=>setPostModalDisplayed(!1)})]})};MainLayout.propTypes={children:prop_types_default().element.isRequired};let AdminLayout=param=>{let{Component,pageProps}=param;return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/main-layout.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/form-textfields.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-socialhandles.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-storage.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-edit-string-tags.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-video-variants.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-public-details.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/home.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/chat.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/pages.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/offline-notice.css"}),(0,jsx_runtime.jsx)(server_status_context.ZP,{children:(0,jsx_runtime.jsx)(alert_message_context.Z,{children:(0,jsx_runtime.jsx)(MainLayout,{children:(0,jsx_runtime.jsx)(Component,{...pageProps})})})})]})},SimpleLayout=param=>{let{Component,pageProps}=param;return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(Component,{...pageProps})})},App=param=>{let{Component,pageProps}=param;(0,react.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/serviceWorker.js").then(registration=>{console.debug("Service Worker registration successful with scope: ",registration.scope)},err=>{console.error("Service Worker registration failed: ",err)})})},[]);let router=(0,next_router.useRouter)();return router.pathname.startsWith("/admin")?(0,jsx_runtime.jsx)(AdminLayout,{pageProps:pageProps,Component:Component,router:router}):(0,jsx_runtime.jsx)(es.Wh,{children:(0,jsx_runtime.jsx)(SimpleLayout,{pageProps:pageProps,Component:Component,router:router})})};var _app=App},82661:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return AlertMessageContext}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);let AlertMessageContext=react__WEBPACK_IMPORTED_MODULE_1__.createContext({message:null,setMessage:text=>null}),AlertMessageProvider=param=>{let{children}=param,[message,setMessage]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(AlertMessageContext.Provider,{value:{message,setMessage},children:children})};AlertMessageProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().element.isRequired},__webpack_exports__.Z=AlertMessageProvider},64777:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$i:function(){return SOCIAL_PLATFORMS_LIST},$l:function(){return getUnauthedData},Bu:function(){return BANNED_IPS},E8:function(){return FOLLOWERS_PENDING},GC:function(){return MODERATORS},GR:function(){return upgradeVersionAvailable},HP:function(){return FOLLOWERS},IO:function(){return CREATE_ACCESS_TOKEN},Kp:function(){return CONNECTED_CLIENTS},Kt:function(){return getGithubRelease},M_:function(){return DELETE_WEBHOOK},N$:function(){return API_STREAM_HEALTH_METRICS},NE:function(){return FETCH_INTERVAL},NM:function(){return USER_ENABLED_TOGGLE},Q_:function(){return STATUS},RB:function(){return BANNED_IP_REMOVE},UJ:function(){return API_YP_RESET},WB:function(){return NEXT_PUBLIC_API_HOST},WE:function(){return CHAT_HISTORY},WQ:function(){return LOGS_WARN},Wr:function(){return DELETE_ACCESS_TOKEN},XA:function(){return WEBHOOKS},Y9:function(){return FOLLOWERS_BLOCKED},a_:function(){return ACTIVE_VIEWER_DETAILS},ao:function(){return SERVER_CONFIG_UPDATE_URL},bl:function(){return SERVER_CONFIG},e_:function(){return FEDERATION_MESSAGE_SEND},hn:function(){return UPDATE_CHAT_MESSGAE_VIZ},iG:function(){return CREATE_WEBHOOK},iV:function(){return VIEWERS_OVER_TIME},jr:function(){return USER_SET_MODERATOR},kb:function(){return SET_FOLLOWER_APPROVAL},kg:function(){return fetchExternalData},ms:function(){return ACCESS_TOKENS},nx:function(){return HARDWARE_STATS},op:function(){return FEDERATION_ACTIONS},qk:function(){return DISABLED_USERS},rQ:function(){return fetchData},sG:function(){return LOGS_ALL}});var process=__webpack_require__(34155);let ADMIN_USERNAME=process.env.NEXT_PUBLIC_ADMIN_USERNAME,ADMIN_STREAMKEY=process.env.NEXT_PUBLIC_ADMIN_STREAMKEY,NEXT_PUBLIC_API_HOST="/",API_LOCATION="".concat(NEXT_PUBLIC_API_HOST,"api/admin/"),FETCH_INTERVAL=15e3,STATUS="".concat(API_LOCATION,"status"),SERVER_CONFIG="".concat(API_LOCATION,"serverconfig"),SERVER_CONFIG_UPDATE_URL="".concat(API_LOCATION,"config"),VIEWERS_OVER_TIME="".concat(API_LOCATION,"viewersOverTime"),ACTIVE_VIEWER_DETAILS="".concat(API_LOCATION,"viewers"),CONNECTED_CLIENTS="".concat(API_LOCATION,"chat/clients"),DISABLED_USERS="".concat(API_LOCATION,"chat/users/disabled"),USER_ENABLED_TOGGLE="".concat(API_LOCATION,"chat/users/setenabled"),BANNED_IPS="".concat(API_LOCATION,"chat/users/ipbans"),BANNED_IP_REMOVE="".concat(API_LOCATION,"chat/users/ipbans/remove"),USER_SET_MODERATOR="".concat(API_LOCATION,"chat/users/setmoderator"),MODERATORS="".concat(API_LOCATION,"chat/users/moderators"),HARDWARE_STATS="".concat(API_LOCATION,"hardwarestats"),LOGS_ALL="".concat(API_LOCATION,"logs"),LOGS_WARN="".concat(API_LOCATION,"logs/warnings"),CHAT_HISTORY="".concat(API_LOCATION,"chat/messages"),UPDATE_CHAT_MESSGAE_VIZ="/api/admin/chat/messagevisibility",ACCESS_TOKENS="".concat(API_LOCATION,"accesstokens"),DELETE_ACCESS_TOKEN="".concat(API_LOCATION,"accesstokens/delete"),CREATE_ACCESS_TOKEN="".concat(API_LOCATION,"accesstokens/create"),WEBHOOKS="".concat(API_LOCATION,"webhooks"),DELETE_WEBHOOK="".concat(API_LOCATION,"webhooks/delete"),CREATE_WEBHOOK="".concat(API_LOCATION,"webhooks/create"),SOCIAL_PLATFORMS_LIST="".concat(NEXT_PUBLIC_API_HOST,"api/socialplatforms"),FEDERATION_MESSAGE_SEND="".concat(API_LOCATION,"federation/send"),FOLLOWERS="".concat(API_LOCATION,"followers"),FOLLOWERS_PENDING="".concat(API_LOCATION,"followers/pending"),FOLLOWERS_BLOCKED="".concat(API_LOCATION,"followers/blocked"),SET_FOLLOWER_APPROVAL="".concat(API_LOCATION,"followers/approve"),FEDERATION_ACTIONS="".concat(API_LOCATION,"federation/actions"),API_STREAM_HEALTH_METRICS="".concat(API_LOCATION,"metrics/video"),API_YP_RESET="".concat(API_LOCATION,"yp/reset");async function fetchData(url,options){let{data,method="GET",auth=!0}=options||{},requestOptions={method};if(data&&(requestOptions.body=JSON.stringify(data)),auth&&ADMIN_USERNAME&&ADMIN_STREAMKEY){let encoded=btoa("".concat(ADMIN_USERNAME,":").concat(ADMIN_STREAMKEY));requestOptions.headers={Authorization:"Basic ".concat(encoded)},requestOptions.mode="cors",requestOptions.credentials="include"}try{let response=await fetch(url,requestOptions),json=await response.json();if(!response.ok){let message=json.message||"An error has occurred: ".concat(response.status);throw Error(message)}return json}catch(error){return console.error(error),error}}async function getUnauthedData(url,options){let opts={method:"GET",auth:!1,...options};return fetchData(url,opts)}async function fetchExternalData(url){try{let response=await fetch(url,{referrerPolicy:"no-referrer",referrer:""});if(!response.ok){let message="An error has occured: ".concat(response.status);throw Error(message)}let json=await response.json();return json}catch(error){console.log(error)}return{}}async function getGithubRelease(){return fetchExternalData("https://api.github.com/repos/owncast/owncast/releases/latest")}let VPAT=/^\d+(\.\d+){0,2}$/;async function upgradeVersionAvailable(currentVersion){let recentRelease=await getGithubRelease(),recentReleaseVersion=recentRelease.tag_name;return("v"===recentReleaseVersion.substr(0,1)&&(recentReleaseVersion=recentReleaseVersion.substr(1)),!function(local,remote){if(!local||!remote||0===local.length||0===remote.length)return!1;if(local===remote)return!0;if(VPAT.test(local)&&VPAT.test(remote)){let lparts=local.split(".");for(;lparts.length<3;)lparts.push("0");let rparts=remote.split(".");for(;rparts.length<3;)rparts.push("0");for(let i=0;i<3;i++){let l=parseInt(lparts[i],10),r=parseInt(rparts[i],10);if(l!==r)return l>r}return!0}return local>=remote}(currentVersion,recentReleaseVersion))?recentReleaseVersion:null}},90745:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$Z:function(){return TWITTER_CONFIG_FIELDS},$t:function(){return TEXTFIELD_PROPS_STREAM_TITLE},$w:function(){return API_S3_INFO},AA:function(){return API_CUSTOM_CONTENT},AN:function(){return TEXTFIELD_PROPS_CHAT_SUGGESTED_USERNAMES},AP:function(){return API_YP_SWITCH},BF:function(){return TEXTFIELD_PROPS_FEDERATION_LIVE_MESSAGE},B_:function(){return FIELD_PROPS_FEDERATION_NSFW},CJ:function(){return API_CHAT_FORBIDDEN_USERNAMES},CQ:function(){return API_VIDEO_CODEC},Dg:function(){return TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES},EY:function(){return FIELD_PROPS_NSFW},FE:function(){return FIELD_PROPS_SHOW_FEDERATION_ENGAGEMENT},HM:function(){return VIDEO_BITRATE_SLIDER_MARKS},I$:function(){return ENCODER_PRESET_TOOLTIPS},IX:function(){return TEXTFIELD_PROPS_SERVER_WELCOME_MESSAGE},KB:function(){return TEXTFIELD_PROPS_FFMPEG},Kl:function(){return FIELD_PROPS_ENABLE_FEDERATION},LC:function(){return FIELD_PROPS_FEDERATION_IS_PRIVATE},ME:function(){return TEXTFIELD_PROPS_SOCKET_HOST_OVERRIDE},P:function(){return FIELD_PROPS_YP},RE:function(){return TEXTFIELD_PROPS_SERVER_NAME},Ri:function(){return TEXTFIELD_PROPS_STREAM_KEY},SS:function(){return VIDEO_NAME_DEFAULTS},Si:function(){return postConfigUpdateToAPI},Xc:function(){return TEXTFIELD_PROPS_FEDERATION_DEFAULT_USER},Xq:function(){return FRAMERATE_SLIDER_MARKS},ZQ:function(){return TEXTFIELD_PROPS_LOGO},_X:function(){return FIELD_PROPS_HIDE_VIEWER_COUNT},c9:function(){return API_SOCIAL_HANDLES},cf:function(){return API_CHAT_SUGGESTED_USERNAMES},cj:function(){return TEXTFIELD_PROPS_INSTANCE_URL},d$:function(){return API_CUSTOM_CSS_STYLES},dL:function(){return VIDEO_VARIANT_SETTING_DEFAULTS},dR:function(){return FIELD_PROPS_FEDERATION_BLOCKED_DOMAINS},dj:function(){return CHAT_ESTABLISHED_USER_MODE},gX:function(){return DEFAULT_VARIANT_STATE},i3:function(){return ENCODER_RECOMMENDATION_THRESHOLD},kB:function(){return FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED},lT:function(){return TEXTFIELD_PROPS_RTMP_PORT},mv:function(){return BROWSER_PUSH_CONFIG_FIELDS},nm:function(){return FRAMERATE_DEFAULTS},os:function(){return API_EXTERNAL_ACTIONS},oy:function(){return DISCORD_CONFIG_FIELDS},pE:function(){return API_FEDERATION_BLOCKED_DOMAINS},rE:function(){return TEXTFIELD_PROPS_WEB_PORT},rd:function(){return TEXTFIELD_PROPS_SERVER_OFFLINE_MESSAGE},rs:function(){return TEXTFIELD_PROPS_SERVER_SUMMARY},sI:function(){return RESET_TIMEOUT},sv:function(){return API_VIDEO_SEGMENTS},t$:function(){return ENCODER_PRESET_SLIDER_MARKS},vv:function(){return API_VIDEO_VARIANTS},wC:function(){return DEFAULT_SOCIAL_HANDLE},x8:function(){return FRAMERATE_TOOLTIPS},yC:function(){return VIDEO_BITRATE_DEFAULTS},y_:function(){return FIELD_PROPS_TAGS},yi:function(){return TEXTFIELD_PROPS_FEDERATION_INSTANCE_URL},yj:function(){return FIELD_PROPS_DISABLE_CHAT},z_:function(){return OTHER_SOCIAL_HANDLE_OPTION},zm:function(){return S3_TEXT_FIELDS_INFO}});var _apis__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(64777),_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(40117),_urls__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(37174);let RESET_TIMEOUT=3e3,API_CUSTOM_CONTENT="/pagecontent",API_CUSTOM_CSS_STYLES="/customstyles",API_INSTANCE_URL="/serverurl",API_NSFW_SWITCH="/nsfw",API_S3_INFO="/s3",API_SOCIAL_HANDLES="/socialhandles",API_VIDEO_SEGMENTS="/video/streamlatencylevel",API_VIDEO_VARIANTS="/video/streamoutputvariants",API_YP_SWITCH="/directoryenabled",API_CHAT_FORBIDDEN_USERNAMES="/chat/forbiddenusernames",API_CHAT_SUGGESTED_USERNAMES="/chat/suggestedusernames",API_EXTERNAL_ACTIONS="/externalactions",API_VIDEO_CODEC="/video/codec",API_FEDERATION_BLOCKED_DOMAINS="/federation/blockdomains";async function postConfigUpdateToAPI(args){let{apiPath,data,onSuccess,onError}=args,result=await (0,_apis__WEBPACK_IMPORTED_MODULE_0__.rQ)("".concat(_apis__WEBPACK_IMPORTED_MODULE_0__.ao).concat(apiPath),{data,method:"POST",auth:!0});result.success&&onSuccess?onSuccess(result.message):onError&&onError(result.message)}let TEXTFIELD_PROPS_SERVER_NAME={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},TEXTFIELD_PROPS_STREAM_TITLE={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},TEXTFIELD_PROPS_SERVER_SUMMARY={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},TEXTFIELD_PROPS_SERVER_OFFLINE_MESSAGE={apiPath:"/offlinemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"An optional message you can leave people when your stream is not live.",label:"Offline Message",tip:"An optional message you can leave people when your stream is not live."},TEXTFIELD_PROPS_SERVER_WELCOME_MESSAGE={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},TEXTFIELD_PROPS_LOGO={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms."},TEXTFIELD_PROPS_STREAM_KEY={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},TEXTFIELD_PROPS_FFMPEG={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},TEXTFIELD_PROPS_WEB_PORT={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},TEXTFIELD_PROPS_RTMP_PORT={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},TEXTFIELD_PROPS_INSTANCE_URL={apiPath:API_INSTANCE_URL,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},TEXTFIELD_PROPS_SOCKET_HOST_OVERRIDE={apiPath:"/sockethostoverride",configPath:"",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Websocket host override",tip:"The direct URL of your Owncast server.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},FIELD_PROPS_TAGS={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},FIELD_PROPS_NSFW={apiPath:API_NSFW_SWITCH,configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},FIELD_PROPS_YP={apiPath:API_YP_SWITCH,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},FIELD_PROPS_HIDE_VIEWER_COUNT={apiPath:"/hideviewercount",configPath:"",label:"Hide viewer count",tip:"Turn this ON to hide the viewer count the web page."},DEFAULT_VARIANT_STATE={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},FIELD_PROPS_DISABLE_CHAT={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED={apiPath:"/chat/joinmessagesenabled",configPath:"",label:"Join Messages",tip:"Show when a viewer joins the chat.",useSubmit:!0},CHAT_ESTABLISHED_USER_MODE={apiPath:"/chat/establishedusermode",configPath:"",label:"Established users only",tip:"Only users who have previously been established for some time may chat.",useSubmit:!0},TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES={apiPath:API_CHAT_FORBIDDEN_USERNAMES,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},TEXTFIELD_PROPS_CHAT_SUGGESTED_USERNAMES={apiPath:API_CHAT_SUGGESTED_USERNAMES,placeholder:"username",label:"Default usernames",tip:"An optional list of chat usernames that new users get assigned. If the list holds less then 10 items, random names will be generated. Users can change their usernames afterwards and the same username may be given out multple times.",min_not_reached:"At least 10 items are required for this feature.",no_entries:"The default name generator is used."},FIELD_PROPS_ENABLE_FEDERATION={apiPath:"/federation/enable",configPath:"federation",label:"Enable Social Features",tip:"Send and receive activities on the Fediverse.",useSubmit:!0},FIELD_PROPS_FEDERATION_IS_PRIVATE={apiPath:"/federation/private",configPath:"federation",label:"Private",tip:"Follow requests will require approval and only followers will see your activity.",useSubmit:!0},FIELD_PROPS_SHOW_FEDERATION_ENGAGEMENT={apiPath:"/federation/showengagement",configPath:"showEngagement",label:"Show engagement",tip:"Following, liking and sharing will appear in the chat feed.",useSubmit:!0},TEXTFIELD_PROPS_FEDERATION_LIVE_MESSAGE={apiPath:"/federation/livemessage",configPath:"federation",maxLength:500,placeholder:"My stream has started, tune in!",label:"Now Live message",tip:"The message sent announcing that your live stream has begun. Tags will be automatically added. Leave blank to disable."},TEXTFIELD_PROPS_FEDERATION_DEFAULT_USER={apiPath:"/federation/username",configPath:"federation",maxLength:10,placeholder:"owncast",default:"owncast",label:"Username",tip:'The username used for sending and receiving activities from the Fediverse. For example, if you use "bob" as a username you would send messages to the fediverse from @bob@yourserver. Once people start following your instance you should not change this.'},TEXTFIELD_PROPS_FEDERATION_INSTANCE_URL={apiPath:API_INSTANCE_URL,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},FIELD_PROPS_FEDERATION_NSFW={apiPath:API_NSFW_SWITCH,configPath:"instanceDetails",label:"Potentially NSFW",tip:"Turn this ON if you plan to steam explicit or adult content so previews of your stream can be marked as potentially sensitive."},FIELD_PROPS_FEDERATION_BLOCKED_DOMAINS={apiPath:API_FEDERATION_BLOCKED_DOMAINS,configPath:"federation",label:"Blocked domains",placeholder:"bad.domain.biz",tip:"You can block specific domains from interacting with you."},VIDEO_VARIANT_SETTING_DEFAULTS={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},FRAMERATE_DEFAULTS={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},FRAMERATE_SLIDER_MARKS={[FRAMERATE_DEFAULTS.min]:"".concat(FRAMERATE_DEFAULTS.min," ").concat(FRAMERATE_DEFAULTS.unit),25:" ",30:" ",50:" ",60:" ",90:" ",[FRAMERATE_DEFAULTS.max]:"".concat(FRAMERATE_DEFAULTS.max," ").concat(FRAMERATE_DEFAULTS.unit)},FRAMERATE_TOOLTIPS={[FRAMERATE_DEFAULTS.min]:"".concat(FRAMERATE_DEFAULTS.min,"fps - Good for film, presentations, music, low power/bandwidth servers."),25:"25fps - Good for film, presentations, music, low power/bandwidth servers.",30:"30fps - Good for slow/casual games, chat, general purpose.",50:"50fps - Good for fast/action games, sports, HD video.",60:"60fps - Good for fast/action games, sports, HD video.",90:"90fps - Good for newer fast games and hardware.",[FRAMERATE_DEFAULTS.max]:"".concat(FRAMERATE_DEFAULTS.max,"fps - Experimental, use at your own risk!")},VIDEO_BITRATE_DEFAULTS={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},VIDEO_NAME_DEFAULTS={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},VIDEO_BITRATE_SLIDER_MARKS={[VIDEO_BITRATE_DEFAULTS.min]:"".concat(VIDEO_BITRATE_DEFAULTS.min," ").concat(VIDEO_BITRATE_DEFAULTS.unit),3e3:3e3,4500:4500,[VIDEO_BITRATE_DEFAULTS.max]:"".concat(VIDEO_BITRATE_DEFAULTS.max," ").concat(VIDEO_BITRATE_DEFAULTS.unit)},ENCODER_PRESET_SLIDER_MARKS={1:"lowest",2:"",3:"",4:"",5:"highest"},ENCODER_PRESET_TOOLTIPS={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},ENCODER_RECOMMENDATION_THRESHOLD={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},DEFAULT_SOCIAL_HANDLE={url:"",platform:""},OTHER_SOCIAL_HANDLE_OPTION="OTHER_SOCIAL_HANDLE_OPTION",S3_TEXT_FIELDS_INFO={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}},DISCORD_CONFIG_FIELDS={webhookUrl:{fieldName:"webhook",label:"Webhook URL",maxLength:255,placeholder:"https://discord.com/api/webhooks/837/jf38-6iNEv",tip:"The webhook assigned to your channel.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:300,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},BROWSER_PUSH_CONFIG_FIELDS={goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},TWITTER_CONFIG_FIELDS={apiKey:{fieldName:"apiKey",label:"API Key",maxLength:200,tip:"",placeholder:"gaUQhRC2lqfrEFfElBXJgOctU"},apiSecret:{fieldName:"apiSecret",label:"API Secret",maxLength:200,tip:"",placeholder:"IIz4jFZMWbUKdFOEGUprFjRwIslG56d1SPQlolJYjXwJ2y2qKS"},accessToken:{fieldName:"accessToken",label:"Access Token",maxLength:200,tip:"",placeholder:"952540400-EEiwe9fkuSvWjnNC82YFa9kgpqbyAP3J7FjE2dkka"},accessTokenSecret:{fieldName:"accessTokenSecret",label:"Access Token Secret",maxLength:200,tip:"",placeholder:"xO0AZWNGfZxpNsYPg3zNEKhAsPPGvNZFlzQArA2khI9Kg"},bearerToken:{fieldName:"bearerToken",label:"Bearer Token",maxLength:200,tip:"",placeholder:"AAAAAAAAAAAAAAFqpXwEAAnnepHkjA8XD5ftx5jUadYIRtPtaq7AAAAwpXPpDWKDcdhiWr0tVDjsgW%2B4awGOM9VQ%3XPoMFuWcHsE42TK"},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}}},70241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AB:function(){return formatUAstring},Qr:function(){return isEmptyObject},t5:function(){return formatIPAddress},wS:function(){return parseSecondsToDurationString}});var ua_parser_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(42238),ua_parser_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ua_parser_js__WEBPACK_IMPORTED_MODULE_0__);function formatIPAddress(ipAddress){let ipAddressComponents=ipAddress.split(":");ipAddressComponents[ipAddressComponents.length-1]="";let ip=ipAddressComponents.join(":");return"[::1]"===(ip=ip.slice(0,ip.length-1))||"127.0.0.1"===ip?"Localhost":ip}function isEmptyObject(obj){return!obj||0===Object.keys(obj).length&&obj.constructor===Object}function padLeft(text,pad,size){return String(pad.repeat(size)+text).slice(-size)}function parseSecondsToDurationString(){let seconds=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,finiteSeconds=Number.isFinite(+seconds)?Math.abs(seconds):0,days=Math.floor(finiteSeconds/86400),daysString=days>0?"".concat(days," day").concat(days>1?"s":""," "):"",hours=Math.floor(finiteSeconds/3600%24),hoursString=hours||days?padLeft("".concat(hours,":"),"0",3):"",minString=padLeft("".concat(Math.floor(finiteSeconds/60%60),":"),"0",3),secsString=padLeft("".concat(Math.floor(finiteSeconds%60)),"0",2);return daysString+hoursString+minString+secsString}function formatUAstring(uaString){let parser=ua_parser_js__WEBPACK_IMPORTED_MODULE_0___default()(uaString),{device,os,browser}=parser,{major:browserVersion,name}=browser,{version:osVersion,name:osName}=os,{model,type}=device;return"libmpv"===uaString?"mpv media player":name&&browserVersion&&osName?"".concat(name," ").concat(browserVersion," on ").concat(osName," ").concat(osVersion,"\n ").concat(model||type?" (".concat(model||type,")"):""):uaString}},41983:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Jk:function(){return STATUS_PROCESSING},Un:function(){return STATUS_ERROR},dG:function(){return STATUS_WARNING},kg:function(){return createInputStatus},zv:function(){return STATUS_SUCCESS}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),_ant_design_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(89739),_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(21640),_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(50888),_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(28058);let STATUS_ERROR="error",STATUS_INVALID="invalid",STATUS_PROCESSING="proessing",STATUS_SUCCESS="success",STATUS_WARNING="warning",INPUT_STATES={[STATUS_SUCCESS]:{type:STATUS_SUCCESS,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_1__.Z,{style:{color:"green"}}),message:"Success!"},[STATUS_ERROR]:{type:STATUS_ERROR,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__.Z,{style:{color:"red"}}),message:"An error occurred."},[STATUS_INVALID]:{type:STATUS_INVALID,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__.Z,{style:{color:"red"}}),message:"An error occurred."},[STATUS_PROCESSING]:{type:STATUS_PROCESSING,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.Z,{}),message:""},[STATUS_WARNING]:{type:STATUS_WARNING,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__.Z,{style:{color:"#fc0"}}),message:""}};function createInputStatus(type,message){return type&&INPUT_STATES[type]?message?{type,icon:INPUT_STATES[type].icon,message}:INPUT_STATES[type]:null}},99519:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{aC:function(){return ServerStatusContext}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),_apis__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(64777),_config_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(90745);let initialServerConfigState={streamKey:"",instanceDetails:{customStyles:"",extraPageContent:"",logo:"",name:"",nsfw:!1,socialHandles:[],streamTitle:"",summary:"",tags:[],title:"",welcomeMessage:"",offlineMessage:"",appearanceVariables:{}},ffmpegPath:"",rtmpServerPort:"",webServerPort:"",socketHostOverride:null,s3:{accessKey:"",acl:"",bucket:"",enabled:!1,endpoint:"",region:"",secret:"",servingEndpoint:"",forcePathStyle:!1},yp:{enabled:!1,instanceUrl:""},videoSettings:{latencyLevel:4,cpuUsageLevel:3,videoQualityVariants:[_config_constants__WEBPACK_IMPORTED_MODULE_3__.gX]},federation:{enabled:!1,isPrivate:!1,username:"",goLiveMessage:"",showEngagement:!0,blockedDomains:[]},notifications:{browser:{enabled:!1,goLiveMessage:""},discord:{enabled:!1,webhook:"",goLiveMessage:""},twitter:{enabled:!1,goLiveMessage:"",apiKey:"",apiSecret:"",accessToken:"",accessTokenSecret:"",bearerToken:""}},externalActions:[],supportedCodecs:[],videoCodec:"",forbiddenUsernames:[],suggestedUsernames:[],chatDisabled:!1,chatJoinMessagesEnabled:!0,chatEstablishedUserMode:!1,hideViewerCount:!1},initialServerStatusState={broadcastActive:!1,broadcaster:null,currentBroadcast:null,online:!1,viewerCount:0,sessionMaxViewerCount:0,sessionPeakViewerCount:0,overallPeakViewerCount:0,versionNumber:"0.0.0",streamTitle:"",chatDisabled:!1,health:{healthy:!0,healthPercentage:100,message:"",representation:0}},ServerStatusContext=react__WEBPACK_IMPORTED_MODULE_1__.createContext({...initialServerStatusState,serverConfig:initialServerConfigState,setFieldInConfigState:args=>null}),ServerStatusProvider=param=>{let{children}=param,[status,setStatus]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialServerStatusState),[config,setConfig]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialServerConfigState),getStatus=async()=>{try{let result=await (0,_apis__WEBPACK_IMPORTED_MODULE_2__.rQ)(_apis__WEBPACK_IMPORTED_MODULE_2__.Q_);setStatus({...result})}catch(error){}},getConfig=async()=>{try{let result=await (0,_apis__WEBPACK_IMPORTED_MODULE_2__.rQ)(_apis__WEBPACK_IMPORTED_MODULE_2__.bl);setConfig(result)}catch(error){}},setFieldInConfigState=param=>{let{fieldName,value,path}=param,updatedConfig=path?{...config,[path]:{...config[path],[fieldName]:value}}:{...config,[fieldName]:value};setConfig(updatedConfig)};(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{let getStatusIntervalId=null;return getStatus(),getStatusIntervalId=setInterval(getStatus,_apis__WEBPACK_IMPORTED_MODULE_2__.NE),getConfig(),()=>{clearInterval(getStatusIntervalId)}},[]);let providerValue={...status,serverConfig:config,setFieldInConfigState};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ServerStatusContext.Provider,{value:providerValue,children:children})};ServerStatusProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_4___default().element.isRequired},__webpack_exports__.ZP=ServerStatusProvider},37174:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isValidUrl},a:function(){return DEFAULT_TEXTFIELD_URL_PATTERN}});let DEFAULT_TEXTFIELD_URL_PATTERN="https?://.*";function isValidUrl(url){try{let validationObject=new URL(url);if(""===validationObject.protocol||""===validationObject.hostname||!["http:","https:"].includes(validationObject.protocol))return!1}catch(e){return!1}return!0}},63785:function(){},34146:function(){},45354:function(){},58090:function(){},75575:function(){},29403:function(module){module.exports={root:"OwncastLogo_root__uDVJf",contrast:"OwncastLogo_contrast__rDMJY",simple:"OwncastLogo_simple___hC9r"}},9008:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(83121)},41664:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(31551)},11163:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(80880)},34155:function(module){var cachedSetTimeout,cachedClearTimeout,currentQueue,process=module.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e1){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e1){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,dynamicCSS.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(isOverflow?"width: calc(100% - ".concat(scrollbarSize,"px);"):"","\n}"),id)}else(0,dynamicCSS.jL)(id);return function(){(0,dynamicCSS.jL)(id)}},[mergedLock,id]);var childRef=null;children&&(0,es_ref.Yr)(children)&&ref&&(childRef=children.ref);var mergedRef=(0,es_ref.x1)(childRef,ref);if(!mergedRender||!(0,canUseDom.Z)()||void 0===innerContainer)return null;var renderInline=!1===mergedContainer||("boolean"==typeof nextInline&&(inline=nextInline),inline),reffedChildren=children;return ref&&(reffedChildren=react.cloneElement(children,{ref:mergedRef})),react.createElement(OrderContext.Provider,{value:queueCreate},renderInline?reffedChildren:(0,react_dom.createPortal)(reffedChildren,mergedContainer))}),objectSpread2=__webpack_require__(1413),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),KeyCode=__webpack_require__(15105),useId_uuid=0,contains=__webpack_require__(94999),pickAttrs=__webpack_require__(64217),rc_motion_es=__webpack_require__(62874);function Mask(props){var prefixCls=props.prefixCls,style=props.style,visible=props.visible,maskProps=props.maskProps,motionName=props.motionName;return react.createElement(rc_motion_es.Z,{key:"mask",visible:visible,motionName:motionName,leavedClassName:"".concat(prefixCls,"-mask-hidden")},function(_ref,ref){var motionClassName=_ref.className,motionStyle=_ref.style;return react.createElement("div",(0,esm_extends.Z)({ref:ref,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),style),className:classnames_default()("".concat(prefixCls,"-mask"),motionClassName)},maskProps))})}function getMotionName(prefixCls,transitionName,animationName){var motionName=transitionName;return!motionName&&animationName&&(motionName="".concat(prefixCls,"-").concat(animationName)),motionName}function getScroll(w,top){var ret=w["page".concat(top?"Y":"X","Offset")],method="scroll".concat(top?"Top":"Left");if("number"!=typeof ret){var d=w.document;"number"!=typeof(ret=d.documentElement[method])&&(ret=d.body[method])}return ret}var MemoChildren=react.memo(function(_ref){return _ref.children},function(_,_ref2){return!_ref2.shouldUpdate}),sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"},Panel=react.forwardRef(function(props,ref){var footerNode,headerNode,closer,prefixCls=props.prefixCls,className=props.className,style=props.style,title=props.title,ariaId=props.ariaId,footer=props.footer,closable=props.closable,closeIcon=props.closeIcon,onClose=props.onClose,children=props.children,bodyStyle=props.bodyStyle,bodyProps=props.bodyProps,modalRender=props.modalRender,onMouseDown=props.onMouseDown,onMouseUp=props.onMouseUp,holderRef=props.holderRef,visible=props.visible,forceRender=props.forceRender,width=props.width,height=props.height,sentinelStartRef=(0,react.useRef)(),sentinelEndRef=(0,react.useRef)();react.useImperativeHandle(ref,function(){return{focus:function(){var _sentinelStartRef$cur;null===(_sentinelStartRef$cur=sentinelStartRef.current)||void 0===_sentinelStartRef$cur||_sentinelStartRef$cur.focus()},changeActive:function(next){var activeElement=document.activeElement;next&&activeElement===sentinelEndRef.current?sentinelStartRef.current.focus():next||activeElement!==sentinelStartRef.current||sentinelEndRef.current.focus()}}});var contentStyle={};void 0!==width&&(contentStyle.width=width),void 0!==height&&(contentStyle.height=height),footer&&(footerNode=react.createElement("div",{className:"".concat(prefixCls,"-footer")},footer)),title&&(headerNode=react.createElement("div",{className:"".concat(prefixCls,"-header")},react.createElement("div",{className:"".concat(prefixCls,"-title"),id:ariaId},title))),closable&&(closer=react.createElement("button",{type:"button",onClick:onClose,"aria-label":"Close",className:"".concat(prefixCls,"-close")},closeIcon||react.createElement("span",{className:"".concat(prefixCls,"-close-x")})));var content=react.createElement("div",{className:"".concat(prefixCls,"-content")},closer,headerNode,react.createElement("div",(0,esm_extends.Z)({className:"".concat(prefixCls,"-body"),style:bodyStyle},bodyProps),children),footerNode);return react.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":title?ariaId:null,"aria-modal":"true",ref:holderRef,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},style),contentStyle),className:classnames_default()(prefixCls,className),onMouseDown:onMouseDown,onMouseUp:onMouseUp},react.createElement("div",{tabIndex:0,ref:sentinelStartRef,style:sentinelStyle,"aria-hidden":"true"}),react.createElement(MemoChildren,{shouldUpdate:visible||forceRender},modalRender?modalRender(content):content),react.createElement("div",{tabIndex:0,ref:sentinelEndRef,style:sentinelStyle,"aria-hidden":"true"}))}),Content=react.forwardRef(function(props,ref){var prefixCls=props.prefixCls,title=props.title,style=props.style,className=props.className,visible=props.visible,forceRender=props.forceRender,destroyOnClose=props.destroyOnClose,motionName=props.motionName,ariaId=props.ariaId,onVisibleChanged=props.onVisibleChanged,mousePosition=props.mousePosition,dialogRef=(0,react.useRef)(),_React$useState=react.useState(),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),transformOrigin=_React$useState2[0],setTransformOrigin=_React$useState2[1],contentStyle={};function onPrepare(){var el,rect,pos,doc,w,elementOffset=(pos={left:(rect=(el=dialogRef.current).getBoundingClientRect()).left,top:rect.top},w=(doc=el.ownerDocument).defaultView||doc.parentWindow,pos.left+=getScroll(w),pos.top+=getScroll(w,!0),pos);setTransformOrigin(mousePosition?"".concat(mousePosition.x-elementOffset.left,"px ").concat(mousePosition.y-elementOffset.top,"px"):"")}return transformOrigin&&(contentStyle.transformOrigin=transformOrigin),react.createElement(rc_motion_es.Z,{visible:visible,onVisibleChanged:onVisibleChanged,onAppearPrepare:onPrepare,onEnterPrepare:onPrepare,forceRender:forceRender,motionName:motionName,removeOnLeave:destroyOnClose,ref:dialogRef},function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style;return react.createElement(Panel,(0,esm_extends.Z)({},props,{ref:ref,title:title,ariaId:ariaId,prefixCls:prefixCls,holderRef:motionRef,style:(0,objectSpread2.Z)((0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),style),contentStyle),className:classnames_default()(className,motionClassName)}))})});function Dialog(props){var id,_React$useState,_React$useState2,innerId,setInnerId,useOriginId,reactNativeId,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-dialog":_props$prefixCls,zIndex=props.zIndex,_props$visible=props.visible,visible=void 0!==_props$visible&&_props$visible,_props$keyboard=props.keyboard,keyboard=void 0===_props$keyboard||_props$keyboard,_props$focusTriggerAf=props.focusTriggerAfterClose,focusTriggerAfterClose=void 0===_props$focusTriggerAf||_props$focusTriggerAf,wrapStyle=props.wrapStyle,wrapClassName=props.wrapClassName,wrapProps=props.wrapProps,onClose=props.onClose,afterClose=props.afterClose,transitionName=props.transitionName,animation=props.animation,_props$closable=props.closable,_props$mask=props.mask,mask=void 0===_props$mask||_props$mask,maskTransitionName=props.maskTransitionName,maskAnimation=props.maskAnimation,_props$maskClosable=props.maskClosable,maskStyle=props.maskStyle,maskProps=props.maskProps,rootClassName=props.rootClassName,lastOutSideActiveElementRef=(0,react.useRef)(),wrapperRef=(0,react.useRef)(),contentRef=(0,react.useRef)(),_React$useState1=react.useState(visible),_React$useState21=(0,slicedToArray.Z)(_React$useState1,2),animatedVisible=_React$useState21[0],setAnimatedVisible=_React$useState21[1],ariaId=(_React$useState=react.useState("ssr-id"),innerId=(_React$useState2=(0,slicedToArray.Z)(_React$useState,2))[0],setInnerId=_React$useState2[1],reactNativeId=null==(useOriginId=(0,objectSpread2.Z)({},react_namespaceObject).useId)?void 0:useOriginId(),(react.useEffect(function(){if(!useOriginId){var nextId=useId_uuid;useId_uuid+=1,setInnerId("rc_unique_".concat(nextId))}},[]),id)?id:reactNativeId||innerId);function onInternalClose(e){null==onClose||onClose(e)}var contentClickRef=(0,react.useRef)(!1),contentTimeoutRef=(0,react.useRef)(),onWrapperClick=null;return(void 0===_props$maskClosable||_props$maskClosable)&&(onWrapperClick=function(e){contentClickRef.current?contentClickRef.current=!1:wrapperRef.current===e.target&&onInternalClose(e)}),(0,react.useEffect)(function(){visible&&(setAnimatedVisible(!0),(0,contains.Z)(wrapperRef.current,document.activeElement)||(lastOutSideActiveElementRef.current=document.activeElement))},[visible]),(0,react.useEffect)(function(){return function(){clearTimeout(contentTimeoutRef.current)}},[]),react.createElement("div",(0,esm_extends.Z)({className:classnames_default()("".concat(prefixCls,"-root"),rootClassName)},(0,pickAttrs.Z)(props,{data:!0})),react.createElement(Mask,{prefixCls:prefixCls,visible:mask&&visible,motionName:getMotionName(prefixCls,maskTransitionName,maskAnimation),style:(0,objectSpread2.Z)({zIndex:zIndex},maskStyle),maskProps:maskProps}),react.createElement("div",(0,esm_extends.Z)({tabIndex:-1,onKeyDown:function(e){if(keyboard&&e.keyCode===KeyCode.Z.ESC){e.stopPropagation(),onInternalClose(e);return}visible&&e.keyCode===KeyCode.Z.TAB&&contentRef.current.changeActive(!e.shiftKey)},className:classnames_default()("".concat(prefixCls,"-wrap"),wrapClassName),ref:wrapperRef,onClick:onWrapperClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({zIndex:zIndex},wrapStyle),{},{display:animatedVisible?null:"none"})},wrapProps),react.createElement(Content,(0,esm_extends.Z)({},props,{onMouseDown:function(){clearTimeout(contentTimeoutRef.current),contentClickRef.current=!0},onMouseUp:function(){contentTimeoutRef.current=setTimeout(function(){contentClickRef.current=!1})},ref:contentRef,closable:void 0===_props$closable||_props$closable,ariaId:ariaId,prefixCls:prefixCls,visible:visible&&animatedVisible,onClose:onInternalClose,onVisibleChanged:function(newVisible){if(newVisible)!function(){if(!(0,contains.Z)(wrapperRef.current,document.activeElement)){var _contentRef$current;null===(_contentRef$current=contentRef.current)||void 0===_contentRef$current||_contentRef$current.focus()}}();else{if(setAnimatedVisible(!1),mask&&lastOutSideActiveElementRef.current&&focusTriggerAfterClose){try{lastOutSideActiveElementRef.current.focus({preventScroll:!0})}catch(e){}lastOutSideActiveElementRef.current=null}animatedVisible&&(null==afterClose||afterClose())}},motionName:getMotionName(prefixCls,transitionName,animation)}))))}Content.displayName="Content";var DialogWrap=function(props){var visible=props.visible,getContainer=props.getContainer,forceRender=props.forceRender,_props$destroyOnClose=props.destroyOnClose,destroyOnClose=void 0!==_props$destroyOnClose&&_props$destroyOnClose,_afterClose=props.afterClose,_React$useState=react.useState(visible),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),animatedVisible=_React$useState2[0],setAnimatedVisible=_React$useState2[1];return(react.useEffect(function(){visible&&setAnimatedVisible(!0)},[visible]),forceRender||!destroyOnClose||animatedVisible)?react.createElement(Portal,{open:visible||forceRender||animatedVisible,autoDestroy:!1,getContainer:getContainer,autoLock:visible||animatedVisible},react.createElement(Dialog,(0,esm_extends.Z)({},props,{destroyOnClose:destroyOnClose,afterClose:function(){null==_afterClose||_afterClose(),setAnimatedVisible(!1)}}))):null};DialogWrap.displayName="Dialog";var rc_dialog_es=DialogWrap},71990:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Field:function(){return es_Field},FieldContext:function(){return FieldContext},FormProvider:function(){return FormProvider},List:function(){return es_List},ListContext:function(){return es_ListContext},default:function(){return es},useForm:function(){return es_useForm},useWatch:function(){return es_useWatch}});var urlReg,react=__webpack_require__(67294),esm_extends=__webpack_require__(87462),objectWithoutProperties=__webpack_require__(45987),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),toConsumableArray=__webpack_require__(74902),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),assertThisInitialized=__webpack_require__(97326),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),toArray=__webpack_require__(50344),warning=__webpack_require__(80334),HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){(0,warning.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},FieldContext=react.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}});function typeUtil_toArray(value){return null==value?[]:Array.isArray(value)?value:[value]}var regeneratorRuntime=__webpack_require__(74165),asyncToGenerator=__webpack_require__(15861),process=__webpack_require__(34155);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var i=0,len=args.length;return"function"==typeof template?template.apply(null,args):"string"==typeof template?template.replace(formatRegExp,function(x){if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}break;default:return x}}):template}function isEmptyValue(value,type){return!!(null==value||"array"===type&&Array.isArray(value)&&!value.length)||("string"===type||"url"===type||"hex"===type||"email"===type||"date"===type||"pattern"===type)&&"string"==typeof value&&!value}function asyncSerialArray(arr,func,callback){var index=0,arrLength=arr.length;!function next(errors){if(errors&&errors.length){callback(errors);return}var original=index;index+=1,original()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(value){return types.number(value)&&parseInt(value,10)===value},float:function(value){return types.number(value)&&!types.integer(value)},array:function(value){return Array.isArray(value)},regexp:function(value){if(value instanceof RegExp)return!0;try{return RegExp(value),!0}catch(e){return!1}},date:function(value){return"function"==typeof value.getTime&&"function"==typeof value.getMonth&&"function"==typeof value.getYear&&!isNaN(value.getTime())},number:function(value){return!isNaN(value)&&"number"==typeof value},object:function(value){return"object"==typeof value&&!types.array(value)},method:function(value){return"function"==typeof value},email:function(value){return"string"==typeof value&&value.length<=320&&!!value.match(pattern$2.email)},url:function(value){return"string"==typeof value&&value.length<=2048&&!!value.match(getUrlRegex())},hex:function(value){return"string"==typeof value&&!!value.match(pattern$2.hex)}},ENUM$1="enum",rules={required:required$1,whitespace:function(rule,value,source,errors,options){(/^\s+$/.test(value)||""===value)&&errors.push(format(options.messages.whitespace,rule.fullField))},type:function(rule,value,source,errors,options){if(rule.required&&void 0===value){required$1(rule,value,source,errors,options);return}var ruleType=rule.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(ruleType)>-1?types[ruleType](value)||errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type)):ruleType&&typeof value!==rule.type&&errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type))},range:function(rule,value,source,errors,options){var len="number"==typeof rule.len,min="number"==typeof rule.min,max="number"==typeof rule.max,val=value,key=null,str="string"==typeof value,arr=Array.isArray(value);if("number"==typeof value?key="number":str?key="string":arr&&(key="array"),!key)return!1;arr&&(val=value.length),str&&(val=value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),len?val!==rule.len&&errors.push(format(options.messages[key].len,rule.fullField,rule.len)):min&&!max&&valrule.max?errors.push(format(options.messages[key].max,rule.fullField,rule.max)):min&&max&&(valrule.max)&&errors.push(format(options.messages[key].range,rule.fullField,rule.min,rule.max))},enum:function(rule,value,source,errors,options){rule[ENUM$1]=Array.isArray(rule[ENUM$1])?rule[ENUM$1]:[],-1===rule[ENUM$1].indexOf(value)&&errors.push(format(options.messages[ENUM$1],rule.fullField,rule[ENUM$1].join(", ")))},pattern:function(rule,value,source,errors,options){!rule.pattern||(rule.pattern instanceof RegExp?(rule.pattern.lastIndex=0,rule.pattern.test(value)||errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern))):"string"!=typeof rule.pattern||RegExp(rule.pattern).test(value)||errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern)))}},type=function(rule,value,callback,source,options){var ruleType=rule.type,errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,ruleType)&&!rule.required)return callback();rules.required(rule,value,source,errors,options,ruleType),isEmptyValue(value,ruleType)||rules.type(rule,value,source,errors,options)}callback(errors)},validators={string:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"string")&&!rule.required)return callback();rules.required(rule,value,source,errors,options,"string"),isEmptyValue(value,"string")||(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options),rules.pattern(rule,value,source,errors,options),!0===rule.whitespace&&rules.whitespace(rule,value,source,errors,options))}callback(errors)},method:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},number:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(""===value&&(value=void 0),isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},boolean:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},regexp:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),isEmptyValue(value)||rules.type(rule,value,source,errors,options)}callback(errors)},integer:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},float:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},array:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(null==value&&!rule.required)return callback();rules.required(rule,value,source,errors,options,"array"),null!=value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},object:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},enum:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.enum(rule,value,source,errors,options)}callback(errors)},pattern:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"string")&&!rule.required)return callback();rules.required(rule,value,source,errors,options),isEmptyValue(value,"string")||rules.pattern(rule,value,source,errors,options)}callback(errors)},date:function(rule,value,callback,source,options){var dateObject,errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"date")&&!rule.required)return callback();rules.required(rule,value,source,errors,options),!isEmptyValue(value,"date")&&(dateObject=value instanceof Date?value:new Date(value),rules.type(rule,dateObject,source,errors,options),dateObject&&rules.range(rule,dateObject.getTime(),source,errors,options))}callback(errors)},url:type,hex:type,email:type,required:function(rule,value,callback,source,options){var errors=[],type=Array.isArray(value)?"array":typeof value;rules.required(rule,value,source,errors,options,type),callback(errors)},any:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options)}callback(errors)}};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var cloned=JSON.parse(JSON.stringify(this));return cloned.clone=this.clone,cloned}}}var messages=newMessages(),Schema=function(){function Schema(descriptor){this.rules=null,this._messages=messages,this.define(descriptor)}var _proto=Schema.prototype;return _proto.define=function(rules){var _this=this;if(!rules)throw Error("Cannot configure a schema with no rules");if("object"!=typeof rules||Array.isArray(rules))throw Error("Rules must be an object");this.rules={},Object.keys(rules).forEach(function(name){var item=rules[name];_this.rules[name]=Array.isArray(item)?item:[item]})},_proto.messages=function(_messages){return _messages&&(this._messages=deepMerge(newMessages(),_messages)),this._messages},_proto.validate=function(source_,o,oc){var _this2=this;void 0===o&&(o={}),void 0===oc&&(oc=function(){});var source=source_,options=o,callback=oc;if("function"==typeof options&&(callback=options,options={}),!this.rules||0===Object.keys(this.rules).length)return callback&&callback(null,source),Promise.resolve(source);if(options.messages){var messages$1=this.messages();messages$1===messages&&(messages$1=newMessages()),deepMerge(messages$1,options.messages),options.messages=messages$1}else options.messages=this.messages();var series={};(options.keys||Object.keys(this.rules)).forEach(function(z){var arr=_this2.rules[z],value=source[z];arr.forEach(function(r){var rule=r;"function"==typeof rule.transform&&(source===source_&&(source=_extends({},source)),value=source[z]=rule.transform(value)),(rule="function"==typeof rule?{validator:rule}:_extends({},rule)).validator=_this2.getValidationMethod(rule),rule.validator&&(rule.field=z,rule.fullField=rule.fullField||z,rule.type=_this2.getType(rule),series[z]=series[z]||[],series[z].push({rule:rule,value:value,source:source,field:z}))})});var errorFields={};return function(objArr,option,func,callback,source){if(option.first){var _pending=new Promise(function(resolve,reject){var ret;asyncSerialArray((ret=[],Object.keys(objArr).forEach(function(k){ret.push.apply(ret,objArr[k]||[])}),ret),func,function(errors){return callback(errors),errors.length?reject(new AsyncValidationError(errors,convertFieldsError(errors))):resolve(source)})});return _pending.catch(function(e){return e}),_pending}var firstFields=!0===option.firstFields?Object.keys(objArr):option.firstFields||[],objArrKeys=Object.keys(objArr),objArrLength=objArrKeys.length,total=0,results=[],pending=new Promise(function(resolve,reject){var next=function(errors){if(results.push.apply(results,errors),++total===objArrLength)return callback(results),results.length?reject(new AsyncValidationError(results,convertFieldsError(results))):resolve(source)};objArrKeys.length||(callback(results),resolve(source)),objArrKeys.forEach(function(key){var arr=objArr[key];-1!==firstFields.indexOf(key)?asyncSerialArray(arr,func,next):function(arr,func,callback){var results=[],total=0,arrLength=arr.length;function count(errors){results.push.apply(results,errors||[]),++total===arrLength&&callback(results)}arr.forEach(function(a){func(a,count)})}(arr,func,next)})});return pending.catch(function(e){return e}),pending}(series,options,function(data,doIt){var res,rule=data.rule,deep=("object"===rule.type||"array"===rule.type)&&("object"==typeof rule.fields||"object"==typeof rule.defaultField);function addFullField(key,schema){return _extends({},schema,{fullField:rule.fullField+"."+key,fullFields:rule.fullFields?[].concat(rule.fullFields,[key]):[key]})}function cb(e){void 0===e&&(e=[]);var errorList=Array.isArray(e)?e:[e];!options.suppressWarning&&errorList.length&&Schema.warning("async-validator:",errorList),errorList.length&&void 0!==rule.message&&(errorList=[].concat(rule.message));var filledErrors=errorList.map(complementError(rule,source));if(options.first&&filledErrors.length)return errorFields[rule.field]=1,doIt(filledErrors);if(deep){if(rule.required&&!data.value)return void 0!==rule.message?filledErrors=[].concat(rule.message).map(complementError(rule,source)):options.error&&(filledErrors=[options.error(rule,format(options.messages.required,rule.field))]),doIt(filledErrors);var fieldsSchema={};rule.defaultField&&Object.keys(data.value).map(function(key){fieldsSchema[key]=rule.defaultField});var paredFieldsSchema={};Object.keys(fieldsSchema=_extends({},fieldsSchema,data.rule.fields)).forEach(function(field){var fieldSchema=fieldsSchema[field],fieldSchemaList=Array.isArray(fieldSchema)?fieldSchema:[fieldSchema];paredFieldsSchema[field]=fieldSchemaList.map(addFullField.bind(null,field))});var schema=new Schema(paredFieldsSchema);schema.messages(options.messages),data.rule.options&&(data.rule.options.messages=options.messages,data.rule.options.error=options.error),schema.validate(data.value,data.rule.options||options,function(errs){var finalErrors=[];filledErrors&&filledErrors.length&&finalErrors.push.apply(finalErrors,filledErrors),errs&&errs.length&&finalErrors.push.apply(finalErrors,errs),doIt(finalErrors.length?finalErrors:null)})}else doIt(filledErrors)}if(deep=deep&&(rule.required||!rule.required&&data.value),rule.field=data.field,rule.asyncValidator)res=rule.asyncValidator(rule,data.value,cb,data.source,options);else if(rule.validator){try{res=rule.validator(rule,data.value,cb,data.source,options)}catch(error){null==console.error||console.error(error),options.suppressValidatorError||setTimeout(function(){throw error},0),cb(error.message)}!0===res?cb():!1===res?cb("function"==typeof rule.message?rule.message(rule.fullField||rule.field):rule.message||(rule.fullField||rule.field)+" fails"):res instanceof Array?cb(res):res instanceof Error&&cb(res.message)}res&&res.then&&res.then(function(){return cb()},function(e){return cb(e)})},function(results){!function(results){for(var errors=[],fields={},i=0;i3&&void 0!==arguments[3]&&arguments[3];return function(entity,paths,value){var removeIfUndefined=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return paths.length&&removeIfUndefined&&void 0===value&&!get(entity,paths.slice(0,-1))?entity:function internalSet(entity,paths,value,removeIfUndefined){if(!paths.length)return value;var clone,_paths=(0,esm_toArray.Z)(paths),path=_paths[0],restPath=_paths.slice(1);return clone=entity||"number"!=typeof path?Array.isArray(entity)?(0,toConsumableArray.Z)(entity):(0,objectSpread2.Z)({},entity):[],removeIfUndefined&&void 0===value&&1===restPath.length?delete clone[path][restPath[0]]:clone[path]=internalSet(clone[path],restPath,value,removeIfUndefined),clone}(entity,paths,value,removeIfUndefined)}(store,namePath,value,removeIfUndefined)}function cloneByNamePathList(store,namePathList){var newStore={};return namePathList.forEach(function(namePath){var value=get(store,namePath);newStore=setValue(newStore,namePath,value)}),newStore}function containsNamePath(namePathList,namePath){return namePathList&&namePathList.some(function(path){return matchNamePath(path,namePath)})}function isObject(obj){return"object"===(0,esm_typeof.Z)(obj)&&null!==obj&&Object.getPrototypeOf(obj)===Object.prototype}function setValues(store){for(var _len=arguments.length,restValues=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)restValues[_key-1]=arguments[_key];return restValues.reduce(function(current,newStore){return function internalSetValues(store,values){var newStore=Array.isArray(store)?(0,toConsumableArray.Z)(store):(0,objectSpread2.Z)({},store);return values&&Object.keys(values).forEach(function(key){var prevValue=newStore[key],value=values[key],recursive=isObject(prevValue)&&isObject(value);newStore[key]=recursive?internalSetValues(prevValue,value||{}):cloneDeep(value)}),newStore}(current,newStore)},store)}function matchNamePath(namePath,changedNamePath){return!!namePath&&!!changedNamePath&&namePath.length===changedNamePath.length&&namePath.every(function(nameUnit,i){return changedNamePath[i]===nameUnit})}function defaultGetValueFromEvent(valuePropName){var event=arguments.length<=1?void 0:arguments[1];return event&&event.target&&"object"===(0,esm_typeof.Z)(event.target)&&valuePropName in event.target?event.target[valuePropName]:event}function valueUtil_move(array,moveIndex,toIndex){var length=array.length;if(moveIndex<0||moveIndex>=length||toIndex<0||toIndex>=length)return array;var item=array[moveIndex],diff=moveIndex-toIndex;return diff>0?[].concat((0,toConsumableArray.Z)(array.slice(0,toIndex)),[item],(0,toConsumableArray.Z)(array.slice(toIndex,moveIndex)),(0,toConsumableArray.Z)(array.slice(moveIndex+1,length))):diff<0?[].concat((0,toConsumableArray.Z)(array.slice(0,moveIndex)),(0,toConsumableArray.Z)(array.slice(moveIndex+1,toIndex+1)),[item],(0,toConsumableArray.Z)(array.slice(toIndex+1,length))):array}var CODE_LOGIC_ERROR="CODE_LOGIC_ERROR";function validateRule(_x,_x2,_x3,_x4,_x5){return _validateRule.apply(this,arguments)}function _validateRule(){return(_validateRule=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee2(name,value,rule,options,messageVariables){var cloneRule,originValidator,subRuleField,validator,messages,result,subResults,kv,fillVariableResult;return(0,regeneratorRuntime.Z)().wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return delete(cloneRule=(0,objectSpread2.Z)({},rule)).ruleIndex,cloneRule.validator&&(originValidator=cloneRule.validator,cloneRule.validator=function(){try{return originValidator.apply(void 0,arguments)}catch(error){return console.error(error),Promise.reject(CODE_LOGIC_ERROR)}}),subRuleField=null,cloneRule&&"array"===cloneRule.type&&cloneRule.defaultField&&(subRuleField=cloneRule.defaultField,delete cloneRule.defaultField),validator=new Schema((0,defineProperty.Z)({},name,[cloneRule])),messages=setValues({},defaultValidateMessages,options.validateMessages),validator.messages(messages),result=[],_context2.prev=9,_context2.next=12,Promise.resolve(validator.validate((0,defineProperty.Z)({},name,value),(0,objectSpread2.Z)({},options)));case 12:_context2.next=17;break;case 14:_context2.prev=14,_context2.t0=_context2.catch(9),_context2.t0.errors&&(result=_context2.t0.errors.map(function(_ref4,index){var message=_ref4.message,mergedMessage=message===CODE_LOGIC_ERROR?messages.default:message;return react.isValidElement(mergedMessage)?react.cloneElement(mergedMessage,{key:"error_".concat(index)}):mergedMessage}));case 17:if(!(!result.length&&subRuleField)){_context2.next=22;break}return _context2.next=20,Promise.all(value.map(function(subValue,i){return validateRule("".concat(name,".").concat(i),subValue,subRuleField,options,messageVariables)}));case 20:return subResults=_context2.sent,_context2.abrupt("return",subResults.reduce(function(prev,errors){return[].concat((0,toConsumableArray.Z)(prev),(0,toConsumableArray.Z)(errors))},[]));case 22:return kv=(0,objectSpread2.Z)((0,objectSpread2.Z)({},rule),{},{name:name,enum:(rule.enum||[]).join(", ")},messageVariables),fillVariableResult=result.map(function(error){return"string"==typeof error?function(template,kv){return template.replace(/\$\{\w+\}/g,function(str){return kv[str.slice(2,-1)]})}(error,kv):error}),_context2.abrupt("return",fillVariableResult);case 25:case"end":return _context2.stop()}},_callee2,null,[[9,14]])}))).apply(this,arguments)}function _finishOnAllFailed(){return(_finishOnAllFailed=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee3(rulePromises){return(0,regeneratorRuntime.Z)().wrap(function(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.abrupt("return",Promise.all(rulePromises).then(function(errorsList){var _ref5;return(_ref5=[]).concat.apply(_ref5,(0,toConsumableArray.Z)(errorsList))}));case 1:case"end":return _context3.stop()}},_callee3)}))).apply(this,arguments)}function _finishOnFirstFailed(){return(_finishOnFirstFailed=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee4(rulePromises){var count;return(0,regeneratorRuntime.Z)().wrap(function(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:return count=0,_context4.abrupt("return",new Promise(function(resolve){rulePromises.forEach(function(promise){promise.then(function(ruleError){ruleError.errors.length&&resolve([ruleError]),(count+=1)===rulePromises.length&&resolve([])})})}));case 2:case"end":return _context4.stop()}},_callee4)}))).apply(this,arguments)}var _excluded=["name"],EMPTY_ERRORS=[];function requireUpdate(shouldUpdate,prev,next,prevValue,nextValue,info){return"function"==typeof shouldUpdate?shouldUpdate(prev,next,"source"in info?{source:info.source}:{}):prevValue!==nextValue}var Field=function(_React$Component){(0,inherits.Z)(Field,_React$Component);var _super=(0,createSuper.Z)(Field);function Field(props){var _this;return(0,classCallCheck.Z)(this,Field),(_this=_super.call(this,props)).state={resetCount:0},_this.cancelRegisterFunc=null,_this.mounted=!1,_this.touched=!1,_this.dirty=!1,_this.validatePromise=null,_this.prevValidating=void 0,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.cancelRegister=function(){var _this$props=_this.props,preserve=_this$props.preserve,isListField=_this$props.isListField,name=_this$props.name;_this.cancelRegisterFunc&&_this.cancelRegisterFunc(isListField,preserve,getNamePath(name)),_this.cancelRegisterFunc=null},_this.getNamePath=function(){var _this$props2=_this.props,name=_this$props2.name,_fieldContext$prefixN=_this$props2.fieldContext.prefixName;return void 0!==name?[].concat((0,toConsumableArray.Z)(void 0===_fieldContext$prefixN?[]:_fieldContext$prefixN),(0,toConsumableArray.Z)(name)):[]},_this.getRules=function(){var _this$props3=_this.props,_this$props3$rules=_this$props3.rules,fieldContext=_this$props3.fieldContext;return(void 0===_this$props3$rules?[]:_this$props3$rules).map(function(rule){return"function"==typeof rule?rule(fieldContext):rule})},_this.refresh=function(){_this.mounted&&_this.setState(function(_ref){return{resetCount:_ref.resetCount+1}})},_this.triggerMetaEvent=function(destroy){var onMetaChange=_this.props.onMetaChange;null==onMetaChange||onMetaChange((0,objectSpread2.Z)((0,objectSpread2.Z)({},_this.getMeta()),{},{destroy:destroy}))},_this.onStoreChange=function(prevStore,namePathList,info){var _this$props4=_this.props,shouldUpdate=_this$props4.shouldUpdate,_this$props4$dependen=_this$props4.dependencies,dependencies=void 0===_this$props4$dependen?[]:_this$props4$dependen,onReset=_this$props4.onReset,store=info.store,namePath=_this.getNamePath(),prevValue=_this.getValue(prevStore),curValue=_this.getValue(store),namePathMatch=namePathList&&containsNamePath(namePathList,namePath);switch("valueUpdate"===info.type&&"external"===info.source&&prevValue!==curValue&&(_this.touched=!0,_this.dirty=!0,_this.validatePromise=null,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent()),info.type){case"reset":if(!namePathList||namePathMatch){_this.touched=!1,_this.dirty=!1,_this.validatePromise=null,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent(),null==onReset||onReset(),_this.refresh();return}break;case"remove":if(shouldUpdate){_this.reRender();return}break;case"setField":if(namePathMatch){var data=info.data;"touched"in data&&(_this.touched=data.touched),"validating"in data&&!("originRCField"in data)&&(_this.validatePromise=data.validating?Promise.resolve([]):null),"errors"in data&&(_this.errors=data.errors||EMPTY_ERRORS),"warnings"in data&&(_this.warnings=data.warnings||EMPTY_ERRORS),_this.dirty=!0,_this.triggerMetaEvent(),_this.reRender();return}if(shouldUpdate&&!namePath.length&&requireUpdate(shouldUpdate,prevStore,store,prevValue,curValue,info)){_this.reRender();return}break;case"dependenciesUpdate":if(dependencies.map(getNamePath).some(function(dependency){return containsNamePath(info.relatedFields,dependency)})){_this.reRender();return}break;default:if(namePathMatch||(!dependencies.length||namePath.length||shouldUpdate)&&requireUpdate(shouldUpdate,prevStore,store,prevValue,curValue,info)){_this.reRender();return}}!0===shouldUpdate&&_this.reRender()},_this.validateRules=function(options){var namePath=_this.getNamePath(),currentValue=_this.getValue(),rootPromise=Promise.resolve().then(function(){if(!_this.mounted)return[];var _this$props5=_this.props,_this$props5$validate=_this$props5.validateFirst,messageVariables=_this$props5.messageVariables,triggerName=(options||{}).triggerName,filteredRules=_this.getRules();triggerName&&(filteredRules=filteredRules.filter(function(rule){return rule}).filter(function(rule){var validateTrigger=rule.validateTrigger;return!validateTrigger||typeUtil_toArray(validateTrigger).includes(triggerName)}));var promise=function(namePath,value,rules,options,validateFirst,messageVariables){var _ref3,summaryPromise,name=namePath.join("."),filledRules=rules.map(function(currentRule,ruleIndex){var originValidatorFunc=currentRule.validator,cloneRule=(0,objectSpread2.Z)((0,objectSpread2.Z)({},currentRule),{},{ruleIndex:ruleIndex});return originValidatorFunc&&(cloneRule.validator=function(rule,val,callback){var hasPromise=!1,promise=originValidatorFunc(rule,val,function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];Promise.resolve().then(function(){(0,warning.ZP)(!hasPromise,"Your validator function has already return a promise. `callback` will be ignored."),hasPromise||callback.apply(void 0,args)})});hasPromise=promise&&"function"==typeof promise.then&&"function"==typeof promise.catch,(0,warning.ZP)(hasPromise,"`callback` is deprecated. Please return a promise instead."),hasPromise&&promise.then(function(){callback()}).catch(function(err){callback(err||" ")})}),cloneRule}).sort(function(_ref,_ref2){var w1=_ref.warningOnly,i1=_ref.ruleIndex,w2=_ref2.warningOnly,i2=_ref2.ruleIndex;return!!w1==!!w2?i1-i2:w1?1:-1});if(!0===validateFirst)summaryPromise=new Promise((_ref3=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee(resolve,reject){var i,rule,errors;return(0,regeneratorRuntime.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:i=0;case 1:if(!(i0&&void 0!==arguments[0]?arguments[0]:EMPTY_ERRORS;if(_this.validatePromise===rootPromise){_this.validatePromise=null;var _ruleErrors$forEach,nextErrors=[],nextWarnings=[];null===(_ruleErrors$forEach=ruleErrors.forEach)||void 0===_ruleErrors$forEach||_ruleErrors$forEach.call(ruleErrors,function(_ref3){var warningOnly=_ref3.rule.warningOnly,_ref3$errors=_ref3.errors,errors=void 0===_ref3$errors?EMPTY_ERRORS:_ref3$errors;warningOnly?nextWarnings.push.apply(nextWarnings,(0,toConsumableArray.Z)(errors)):nextErrors.push.apply(nextErrors,(0,toConsumableArray.Z)(errors))}),_this.errors=nextErrors,_this.warnings=nextWarnings,_this.triggerMetaEvent(),_this.reRender()}}),promise});return _this.validatePromise=rootPromise,_this.dirty=!0,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent(),_this.reRender(),rootPromise},_this.isFieldValidating=function(){return!!_this.validatePromise},_this.isFieldTouched=function(){return _this.touched},_this.isFieldDirty=function(){return!!_this.dirty||void 0!==_this.props.initialValue||void 0!==(0,_this.props.fieldContext.getInternalHooks(HOOK_MARK).getInitialValue)(_this.getNamePath())},_this.getErrors=function(){return _this.errors},_this.getWarnings=function(){return _this.warnings},_this.isListField=function(){return _this.props.isListField},_this.isList=function(){return _this.props.isList},_this.isPreserve=function(){return _this.props.preserve},_this.getMeta=function(){return _this.prevValidating=_this.isFieldValidating(),{touched:_this.isFieldTouched(),validating:_this.prevValidating,errors:_this.errors,warnings:_this.warnings,name:_this.getNamePath()}},_this.getOnlyChild=function(children){if("function"==typeof children){var meta=_this.getMeta();return(0,objectSpread2.Z)((0,objectSpread2.Z)({},_this.getOnlyChild(children(_this.getControlled(),meta,_this.props.fieldContext))),{},{isFunction:!0})}var childList=(0,toArray.Z)(children);return 1===childList.length&&react.isValidElement(childList[0])?{child:childList[0],isFunction:!1}:{child:childList,isFunction:!1}},_this.getValue=function(store){var getFieldsValue=_this.props.fieldContext.getFieldsValue,namePath=_this.getNamePath();return get(store||getFieldsValue(!0),namePath)},_this.getControlled=function(){var childProps=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_this$props6=_this.props,trigger=_this$props6.trigger,validateTrigger=_this$props6.validateTrigger,getValueFromEvent=_this$props6.getValueFromEvent,normalize=_this$props6.normalize,valuePropName=_this$props6.valuePropName,getValueProps=_this$props6.getValueProps,fieldContext=_this$props6.fieldContext,mergedValidateTrigger=void 0!==validateTrigger?validateTrigger:fieldContext.validateTrigger,namePath=_this.getNamePath(),getInternalHooks=fieldContext.getInternalHooks,getFieldsValue=fieldContext.getFieldsValue,dispatch=getInternalHooks(HOOK_MARK).dispatch,value=_this.getValue(),originTriggerFunc=childProps[trigger],control=(0,objectSpread2.Z)((0,objectSpread2.Z)({},childProps),(getValueProps||function(val){return(0,defineProperty.Z)({},valuePropName,val)})(value));return control[trigger]=function(){_this.touched=!0,_this.dirty=!0,_this.triggerMetaEvent();for(var newValue,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];newValue=getValueFromEvent?getValueFromEvent.apply(void 0,args):defaultGetValueFromEvent.apply(void 0,[valuePropName].concat(args)),normalize&&(newValue=normalize(newValue,value,getFieldsValue(!0))),dispatch({type:"updateValue",namePath:namePath,value:newValue}),originTriggerFunc&&originTriggerFunc.apply(void 0,args)},typeUtil_toArray(mergedValidateTrigger||[]).forEach(function(triggerName){var originTrigger=control[triggerName];control[triggerName]=function(){originTrigger&&originTrigger.apply(void 0,arguments);var rules=_this.props.rules;rules&&rules.length&&dispatch({type:"validateField",namePath:namePath,triggerName:triggerName})}}),control},props.fieldContext&&(0,(0,props.fieldContext.getInternalHooks)(HOOK_MARK).initEntityValue)((0,assertThisInitialized.Z)(_this)),_this}return(0,createClass.Z)(Field,[{key:"componentDidMount",value:function(){var _this$props7=this.props,shouldUpdate=_this$props7.shouldUpdate,fieldContext=_this$props7.fieldContext;if(this.mounted=!0,fieldContext){var registerField=(0,fieldContext.getInternalHooks)(HOOK_MARK).registerField;this.cancelRegisterFunc=registerField(this)}!0===shouldUpdate&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var returnChildNode,resetCount=this.state.resetCount,children=this.props.children,_this$getOnlyChild=this.getOnlyChild(children),child=_this$getOnlyChild.child;return _this$getOnlyChild.isFunction?returnChildNode=child:react.isValidElement(child)?returnChildNode=react.cloneElement(child,this.getControlled(child.props)):((0,warning.ZP)(!child,"`children` of Field is not validate ReactElement."),returnChildNode=child),react.createElement(react.Fragment,{key:resetCount},returnChildNode)}}]),Field}(react.Component);Field.contextType=FieldContext,Field.defaultProps={trigger:"onChange",valuePropName:"value"};var es_Field=function(_ref5){var name=_ref5.name,restProps=(0,objectWithoutProperties.Z)(_ref5,_excluded),fieldContext=react.useContext(FieldContext),namePath=void 0!==name?getNamePath(name):void 0,key="keep";return restProps.isListField||(key="_".concat((namePath||[]).join("_"))),react.createElement(Field,(0,esm_extends.Z)({key:key,name:namePath},restProps,{fieldContext:fieldContext}))},es_ListContext=react.createContext(null),es_List=function(_ref){var name=_ref.name,initialValue=_ref.initialValue,children=_ref.children,rules=_ref.rules,validateTrigger=_ref.validateTrigger,context=react.useContext(FieldContext),keyManager=react.useRef({keys:[],id:0}).current,prefixName=react.useMemo(function(){var parentPrefixName=getNamePath(context.prefixName)||[];return[].concat((0,toConsumableArray.Z)(parentPrefixName),(0,toConsumableArray.Z)(getNamePath(name)))},[context.prefixName,name]),fieldContext=react.useMemo(function(){return(0,objectSpread2.Z)((0,objectSpread2.Z)({},context),{},{prefixName:prefixName})},[context,prefixName]),listContext=react.useMemo(function(){return{getKey:function(namePath){var len=prefixName.length,pathName=namePath[len];return[keyManager.keys[pathName],namePath.slice(len+1)]}}},[prefixName]);return"function"!=typeof children?((0,warning.ZP)(!1,"Form.List only accepts function as children."),null):react.createElement(es_ListContext.Provider,{value:listContext},react.createElement(FieldContext.Provider,{value:fieldContext},react.createElement(es_Field,{name:[],shouldUpdate:function(prevValue,nextValue,_ref2){return"internal"!==_ref2.source&&prevValue!==nextValue},rules:rules,validateTrigger:validateTrigger,initialValue:initialValue,isList:!0},function(_ref3,meta){var _ref3$value=_ref3.value,onChange=_ref3.onChange,getFieldValue=context.getFieldValue,getNewValue=function(){return getFieldValue(prefixName||[])||[]},listValue=(void 0===_ref3$value?[]:_ref3$value)||[];return Array.isArray(listValue)||(listValue=[]),children(listValue.map(function(__,index){var key=keyManager.keys[index];return void 0===key&&(keyManager.keys[index]=keyManager.id,key=keyManager.keys[index],keyManager.id+=1),{name:index,key:key,isListField:!0}}),{add:function(defaultValue,index){var newValue=getNewValue();index>=0&&index<=newValue.length?(keyManager.keys=[].concat((0,toConsumableArray.Z)(keyManager.keys.slice(0,index)),[keyManager.id],(0,toConsumableArray.Z)(keyManager.keys.slice(index))),onChange([].concat((0,toConsumableArray.Z)(newValue.slice(0,index)),[defaultValue],(0,toConsumableArray.Z)(newValue.slice(index))))):(keyManager.keys=[].concat((0,toConsumableArray.Z)(keyManager.keys),[keyManager.id]),onChange([].concat((0,toConsumableArray.Z)(newValue),[defaultValue]))),keyManager.id+=1},remove:function(index){var newValue=getNewValue(),indexSet=new Set(Array.isArray(index)?index:[index]);indexSet.size<=0||(keyManager.keys=keyManager.keys.filter(function(_,keysIndex){return!indexSet.has(keysIndex)}),onChange(newValue.filter(function(_,valueIndex){return!indexSet.has(valueIndex)})))},move:function(from,to){if(from!==to){var newValue=getNewValue();from<0||from>=newValue.length||to<0||to>=newValue.length||(keyManager.keys=valueUtil_move(keyManager.keys,from,to),onChange(valueUtil_move(newValue,from,to)))}}},meta)})))},slicedToArray=__webpack_require__(97685),SPLIT="__@field_split__";function normalize(namePath){return namePath.map(function(cell){return"".concat((0,esm_typeof.Z)(cell),":").concat(cell)}).join(SPLIT)}var NameMap=function(){function NameMap(){(0,classCallCheck.Z)(this,NameMap),this.kvs=new Map}return(0,createClass.Z)(NameMap,[{key:"set",value:function(key,value){this.kvs.set(normalize(key),value)}},{key:"get",value:function(key){return this.kvs.get(normalize(key))}},{key:"update",value:function(key,updater){var next=updater(this.get(key));next?this.set(key,next):this.delete(key)}},{key:"delete",value:function(key){this.kvs.delete(normalize(key))}},{key:"map",value:function(callback){return(0,toConsumableArray.Z)(this.kvs.entries()).map(function(_ref){var _ref2=(0,slicedToArray.Z)(_ref,2),key=_ref2[0],value=_ref2[1];return callback({key:key.split(SPLIT).map(function(cell){var _cell$match=cell.match(/^([^:]*):(.*)$/),_cell$match2=(0,slicedToArray.Z)(_cell$match,3),type=_cell$match2[1],unit=_cell$match2[2];return"number"===type?Number(unit):unit}),value:value})})}},{key:"toJSON",value:function(){var json={};return this.map(function(_ref3){var key=_ref3.key,value=_ref3.value;return json[key.join(".")]=value,null}),json}}]),NameMap}(),useForm_excluded=["name","errors"],FormStore=(0,createClass.Z)(function FormStore(forceRootUpdate){var _this=this;(0,classCallCheck.Z)(this,FormStore),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:_this.getFieldValue,getFieldsValue:_this.getFieldsValue,getFieldError:_this.getFieldError,getFieldWarning:_this.getFieldWarning,getFieldsError:_this.getFieldsError,isFieldsTouched:_this.isFieldsTouched,isFieldTouched:_this.isFieldTouched,isFieldValidating:_this.isFieldValidating,isFieldsValidating:_this.isFieldsValidating,resetFields:_this.resetFields,setFields:_this.setFields,setFieldValue:_this.setFieldValue,setFieldsValue:_this.setFieldsValue,validateFields:_this.validateFields,submit:_this.submit,_init:!0,getInternalHooks:_this.getInternalHooks}},this.getInternalHooks=function(key){return key===HOOK_MARK?(_this.formHooked=!0,{dispatch:_this.dispatch,initEntityValue:_this.initEntityValue,registerField:_this.registerField,useSubscribe:_this.useSubscribe,setInitialValues:_this.setInitialValues,destroyForm:_this.destroyForm,setCallbacks:_this.setCallbacks,setValidateMessages:_this.setValidateMessages,getFields:_this.getFields,setPreserve:_this.setPreserve,getInitialValue:_this.getInitialValue,registerWatch:_this.registerWatch}):((0,warning.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(subscribable){_this.subscribable=subscribable},this.prevWithoutPreserves=null,this.setInitialValues=function(initialValues,init){if(_this.initialValues=initialValues||{},init){var _this$prevWithoutPres,nextStore=setValues({},initialValues,_this.store);null===(_this$prevWithoutPres=_this.prevWithoutPreserves)||void 0===_this$prevWithoutPres||_this$prevWithoutPres.map(function(_ref){var namePath=_ref.key;nextStore=setValue(nextStore,namePath,get(initialValues,namePath))}),_this.prevWithoutPreserves=null,_this.updateStore(nextStore)}},this.destroyForm=function(){var prevWithoutPreserves=new NameMap;_this.getFieldEntities(!0).forEach(function(entity){_this.isMergedPreserve(entity.isPreserve())||prevWithoutPreserves.set(entity.getNamePath(),!0)}),_this.prevWithoutPreserves=prevWithoutPreserves},this.getInitialValue=function(namePath){var initValue=get(_this.initialValues,namePath);return namePath.length?cloneDeep(initValue):initValue},this.setCallbacks=function(callbacks){_this.callbacks=callbacks},this.setValidateMessages=function(validateMessages){_this.validateMessages=validateMessages},this.setPreserve=function(preserve){_this.preserve=preserve},this.watchList=[],this.registerWatch=function(callback){return _this.watchList.push(callback),function(){_this.watchList=_this.watchList.filter(function(fn){return fn!==callback})}},this.notifyWatch=function(){var namePath=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(_this.watchList.length){var values=_this.getFieldsValue();_this.watchList.forEach(function(callback){callback(values,namePath)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(nextStore){_this.store=nextStore},this.getFieldEntities=function(){var pure=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return pure?_this.fieldEntities.filter(function(field){return field.getNamePath().length}):_this.fieldEntities},this.getFieldsMap=function(){var pure=arguments.length>0&&void 0!==arguments[0]&&arguments[0],cache=new NameMap;return _this.getFieldEntities(pure).forEach(function(field){var namePath=field.getNamePath();cache.set(namePath,field)}),cache},this.getFieldEntitiesForNamePathList=function(nameList){if(!nameList)return _this.getFieldEntities(!0);var cache=_this.getFieldsMap(!0);return nameList.map(function(name){var namePath=getNamePath(name);return cache.get(namePath)||{INVALIDATE_NAME_PATH:getNamePath(name)}})},this.getFieldsValue=function(nameList,filterFunc){if(_this.warningUnhooked(),!0===nameList&&!filterFunc)return _this.store;var fieldEntities=_this.getFieldEntitiesForNamePathList(Array.isArray(nameList)?nameList:null),filteredNameList=[];return fieldEntities.forEach(function(entity){var _entity$isListField,namePath="INVALIDATE_NAME_PATH"in entity?entity.INVALIDATE_NAME_PATH:entity.getNamePath();!(!nameList&&(null===(_entity$isListField=entity.isListField)||void 0===_entity$isListField?void 0:_entity$isListField.call(entity)))&&(filterFunc?filterFunc("getMeta"in entity?entity.getMeta():null)&&filteredNameList.push(namePath):filteredNameList.push(namePath))}),cloneByNamePathList(_this.store,filteredNameList.map(getNamePath))},this.getFieldValue=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return get(_this.store,namePath)},this.getFieldsError=function(nameList){return _this.warningUnhooked(),_this.getFieldEntitiesForNamePathList(nameList).map(function(entity,index){return!entity||"INVALIDATE_NAME_PATH"in entity?{name:getNamePath(nameList[index]),errors:[],warnings:[]}:{name:entity.getNamePath(),errors:entity.getErrors(),warnings:entity.getWarnings()}})},this.getFieldError=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return _this.getFieldsError([namePath])[0].errors},this.getFieldWarning=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return _this.getFieldsError([namePath])[0].warnings},this.isFieldsTouched=function(){_this.warningUnhooked();for(var namePathList,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var arg0=args[0],arg1=args[1],isAllFieldsTouched=!1;0===args.length?namePathList=null:1===args.length?Array.isArray(arg0)?(namePathList=arg0.map(getNamePath),isAllFieldsTouched=!1):(namePathList=null,isAllFieldsTouched=arg0):(namePathList=arg0.map(getNamePath),isAllFieldsTouched=arg1);var fieldEntities=_this.getFieldEntities(!0),isFieldTouched=function(field){return field.isFieldTouched()};if(!namePathList)return isAllFieldsTouched?fieldEntities.every(isFieldTouched):fieldEntities.some(isFieldTouched);var map=new NameMap;namePathList.forEach(function(shortNamePath){map.set(shortNamePath,[])}),fieldEntities.forEach(function(field){var fieldNamePath=field.getNamePath();namePathList.forEach(function(shortNamePath){shortNamePath.every(function(nameUnit,i){return fieldNamePath[i]===nameUnit})&&map.update(shortNamePath,function(list){return[].concat((0,toConsumableArray.Z)(list),[field])})})});var isNamePathListTouched=function(entities){return entities.some(isFieldTouched)},namePathListEntities=map.map(function(_ref2){return _ref2.value});return isAllFieldsTouched?namePathListEntities.every(isNamePathListTouched):namePathListEntities.some(isNamePathListTouched)},this.isFieldTouched=function(name){return _this.warningUnhooked(),_this.isFieldsTouched([name])},this.isFieldsValidating=function(nameList){_this.warningUnhooked();var fieldEntities=_this.getFieldEntities();if(!nameList)return fieldEntities.some(function(testField){return testField.isFieldValidating()});var namePathList=nameList.map(getNamePath);return fieldEntities.some(function(testField){return containsNamePath(namePathList,testField.getNamePath())&&testField.isFieldValidating()})},this.isFieldValidating=function(name){return _this.warningUnhooked(),_this.isFieldsValidating([name])},this.resetWithFieldInitialValue=function(){var requiredFieldEntities,info=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},cache=new NameMap,fieldEntities=_this.getFieldEntities(!0);fieldEntities.forEach(function(field){var initialValue=field.props.initialValue,namePath=field.getNamePath();if(void 0!==initialValue){var records=cache.get(namePath)||new Set;records.add({entity:field,value:initialValue}),cache.set(namePath,records)}}),info.entities?requiredFieldEntities=info.entities:info.namePathList?(requiredFieldEntities=[],info.namePathList.forEach(function(namePath){var _requiredFieldEntitie,records=cache.get(namePath);records&&(_requiredFieldEntitie=requiredFieldEntities).push.apply(_requiredFieldEntitie,(0,toConsumableArray.Z)((0,toConsumableArray.Z)(records).map(function(r){return r.entity})))})):requiredFieldEntities=fieldEntities,function(entities){entities.forEach(function(field){if(void 0!==field.props.initialValue){var namePath=field.getNamePath();if(void 0!==_this.getInitialValue(namePath))(0,warning.ZP)(!1,"Form already set 'initialValues' with path '".concat(namePath.join("."),"'. Field can not overwrite it."));else{var records=cache.get(namePath);if(records&&records.size>1)(0,warning.ZP)(!1,"Multiple Field with path '".concat(namePath.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(records){var originValue=_this.getFieldValue(namePath);info.skipExist&&void 0!==originValue||_this.updateStore(setValue(_this.store,namePath,(0,toConsumableArray.Z)(records)[0].value))}}}})}(requiredFieldEntities)},this.resetFields=function(nameList){_this.warningUnhooked();var prevStore=_this.store;if(!nameList){_this.updateStore(setValues({},_this.initialValues)),_this.resetWithFieldInitialValue(),_this.notifyObservers(prevStore,null,{type:"reset"}),_this.notifyWatch();return}var namePathList=nameList.map(getNamePath);namePathList.forEach(function(namePath){var initialValue=_this.getInitialValue(namePath);_this.updateStore(setValue(_this.store,namePath,initialValue))}),_this.resetWithFieldInitialValue({namePathList:namePathList}),_this.notifyObservers(prevStore,namePathList,{type:"reset"}),_this.notifyWatch(namePathList)},this.setFields=function(fields){_this.warningUnhooked();var prevStore=_this.store,namePathList=[];fields.forEach(function(fieldData){var name=fieldData.name,data=(fieldData.errors,(0,objectWithoutProperties.Z)(fieldData,useForm_excluded)),namePath=getNamePath(name);namePathList.push(namePath),"value"in data&&_this.updateStore(setValue(_this.store,namePath,data.value)),_this.notifyObservers(prevStore,[namePath],{type:"setField",data:fieldData})}),_this.notifyWatch(namePathList)},this.getFields=function(){return _this.getFieldEntities(!0).map(function(field){var namePath=field.getNamePath(),meta=field.getMeta(),fieldData=(0,objectSpread2.Z)((0,objectSpread2.Z)({},meta),{},{name:namePath,value:_this.getFieldValue(namePath)});return Object.defineProperty(fieldData,"originRCField",{value:!0}),fieldData})},this.initEntityValue=function(entity){var initialValue=entity.props.initialValue;if(void 0!==initialValue){var namePath=entity.getNamePath();void 0===get(_this.store,namePath)&&_this.updateStore(setValue(_this.store,namePath,initialValue))}},this.isMergedPreserve=function(fieldPreserve){var mergedPreserve=void 0!==fieldPreserve?fieldPreserve:_this.preserve;return null==mergedPreserve||mergedPreserve},this.registerField=function(entity){_this.fieldEntities.push(entity);var namePath=entity.getNamePath();if(_this.notifyWatch([namePath]),void 0!==entity.props.initialValue){var prevStore=_this.store;_this.resetWithFieldInitialValue({entities:[entity],skipExist:!0}),_this.notifyObservers(prevStore,[entity.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(isListField,preserve){var subNamePath=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(_this.fieldEntities=_this.fieldEntities.filter(function(item){return item!==entity}),!_this.isMergedPreserve(preserve)&&(!isListField||subNamePath.length>1)){var defaultValue=isListField?void 0:_this.getInitialValue(namePath);if(namePath.length&&_this.getFieldValue(namePath)!==defaultValue&&_this.fieldEntities.every(function(field){return!matchNamePath(field.getNamePath(),namePath)})){var _prevStore=_this.store;_this.updateStore(setValue(_prevStore,namePath,defaultValue,!0)),_this.notifyObservers(_prevStore,[namePath],{type:"remove"}),_this.triggerDependenciesUpdate(_prevStore,namePath)}}_this.notifyWatch([namePath])}},this.dispatch=function(action){switch(action.type){case"updateValue":var namePath=action.namePath,value=action.value;_this.updateValue(namePath,value);break;case"validateField":var _namePath=action.namePath,triggerName=action.triggerName;_this.validateFields([_namePath],{triggerName:triggerName})}},this.notifyObservers=function(prevStore,namePathList,info){if(_this.subscribable){var mergedInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},info),{},{store:_this.getFieldsValue(!0)});_this.getFieldEntities().forEach(function(_ref3){(0,_ref3.onStoreChange)(prevStore,namePathList,mergedInfo)})}else _this.forceRootUpdate()},this.triggerDependenciesUpdate=function(prevStore,namePath){var childrenFields=_this.getDependencyChildrenFields(namePath);return childrenFields.length&&_this.validateFields(childrenFields),_this.notifyObservers(prevStore,childrenFields,{type:"dependenciesUpdate",relatedFields:[namePath].concat((0,toConsumableArray.Z)(childrenFields))}),childrenFields},this.updateValue=function(name,value){var namePath=getNamePath(name),prevStore=_this.store;_this.updateStore(setValue(_this.store,namePath,value)),_this.notifyObservers(prevStore,[namePath],{type:"valueUpdate",source:"internal"}),_this.notifyWatch([namePath]);var childrenFields=_this.triggerDependenciesUpdate(prevStore,namePath),onValuesChange=_this.callbacks.onValuesChange;onValuesChange&&onValuesChange(cloneByNamePathList(_this.store,[namePath]),_this.getFieldsValue()),_this.triggerOnFieldsChange([namePath].concat((0,toConsumableArray.Z)(childrenFields)))},this.setFieldsValue=function(store){_this.warningUnhooked();var prevStore=_this.store;if(store){var nextStore=setValues(_this.store,store);_this.updateStore(nextStore)}_this.notifyObservers(prevStore,null,{type:"valueUpdate",source:"external"}),_this.notifyWatch()},this.setFieldValue=function(name,value){_this.setFields([{name:name,value:value}])},this.getDependencyChildrenFields=function(rootNamePath){var children=new Set,childrenFields=[],dependencies2fields=new NameMap;return _this.getFieldEntities().forEach(function(field){(field.props.dependencies||[]).forEach(function(dependency){var dependencyNamePath=getNamePath(dependency);dependencies2fields.update(dependencyNamePath,function(){var fields=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return fields.add(field),fields})})}),function fillChildren(namePath){(dependencies2fields.get(namePath)||new Set).forEach(function(field){if(!children.has(field)){children.add(field);var fieldNamePath=field.getNamePath();field.isFieldDirty()&&fieldNamePath.length&&(childrenFields.push(fieldNamePath),fillChildren(fieldNamePath))}})}(rootNamePath),childrenFields},this.triggerOnFieldsChange=function(namePathList,filedErrors){var onFieldsChange=_this.callbacks.onFieldsChange;if(onFieldsChange){var fields=_this.getFields();if(filedErrors){var cache=new NameMap;filedErrors.forEach(function(_ref4){var name=_ref4.name,errors=_ref4.errors;cache.set(name,errors)}),fields.forEach(function(field){field.errors=cache.get(field.name)||field.errors})}onFieldsChange(fields.filter(function(_ref5){return containsNamePath(namePathList,_ref5.name)}),fields)}},this.validateFields=function(nameList,options){_this.warningUnhooked();var hasError,count,results,provideNameList=!!nameList,namePathList=provideNameList?nameList.map(getNamePath):[],promiseList=[];_this.getFieldEntities(!0).forEach(function(field){if(provideNameList||namePathList.push(field.getNamePath()),(null==options?void 0:options.recursive)&&provideNameList){var namePath=field.getNamePath();namePath.every(function(nameUnit,i){return nameList[i]===nameUnit||void 0===nameList[i]})&&namePathList.push(namePath)}if(field.props.rules&&field.props.rules.length){var fieldNamePath=field.getNamePath();if(!provideNameList||containsNamePath(namePathList,fieldNamePath)){var promise=field.validateRules((0,objectSpread2.Z)({validateMessages:(0,objectSpread2.Z)((0,objectSpread2.Z)({},defaultValidateMessages),_this.validateMessages)},options));promiseList.push(promise.then(function(){return{name:fieldNamePath,errors:[],warnings:[]}}).catch(function(ruleErrors){var _ruleErrors$forEach,mergedErrors=[],mergedWarnings=[];return(null===(_ruleErrors$forEach=ruleErrors.forEach)||void 0===_ruleErrors$forEach||_ruleErrors$forEach.call(ruleErrors,function(_ref6){var warningOnly=_ref6.rule.warningOnly,errors=_ref6.errors;warningOnly?mergedWarnings.push.apply(mergedWarnings,(0,toConsumableArray.Z)(errors)):mergedErrors.push.apply(mergedErrors,(0,toConsumableArray.Z)(errors))}),mergedErrors.length)?Promise.reject({name:fieldNamePath,errors:mergedErrors,warnings:mergedWarnings}):{name:fieldNamePath,errors:mergedErrors,warnings:mergedWarnings}}))}}});var summaryPromise=(hasError=!1,count=promiseList.length,results=[],promiseList.length?new Promise(function(resolve,reject){promiseList.forEach(function(promise,index){promise.catch(function(e){return hasError=!0,e}).then(function(result){count-=1,results[index]=result,count>0||(hasError&&reject(results),resolve(results))})})}):Promise.resolve([]));_this.lastValidatePromise=summaryPromise,summaryPromise.catch(function(results){return results}).then(function(results){var resultNamePathList=results.map(function(_ref7){return _ref7.name});_this.notifyObservers(_this.store,resultNamePathList,{type:"validateFinish"}),_this.triggerOnFieldsChange(resultNamePathList,results)});var returnPromise=summaryPromise.then(function(){return _this.lastValidatePromise===summaryPromise?Promise.resolve(_this.getFieldsValue(namePathList)):Promise.reject([])}).catch(function(results){var errorList=results.filter(function(result){return result&&result.errors.length});return Promise.reject({values:_this.getFieldsValue(namePathList),errorFields:errorList,outOfDate:_this.lastValidatePromise!==summaryPromise})});return returnPromise.catch(function(e){return e}),returnPromise},this.submit=function(){_this.warningUnhooked(),_this.validateFields().then(function(values){var onFinish=_this.callbacks.onFinish;if(onFinish)try{onFinish(values)}catch(err){console.error(err)}}).catch(function(e){var onFinishFailed=_this.callbacks.onFinishFailed;onFinishFailed&&onFinishFailed(e)})},this.forceRootUpdate=forceRootUpdate}),es_useForm=function(form){var formRef=react.useRef(),_React$useState=react.useState({}),forceUpdate=(0,slicedToArray.Z)(_React$useState,2)[1];if(!formRef.current){if(form)formRef.current=form;else{var formStore=new FormStore(function(){forceUpdate({})});formRef.current=formStore.getForm()}}return[formRef.current]},FormContext=react.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(_ref){var validateMessages=_ref.validateMessages,onFormChange=_ref.onFormChange,onFormFinish=_ref.onFormFinish,children=_ref.children,formContext=react.useContext(FormContext),formsRef=react.useRef({});return react.createElement(FormContext.Provider,{value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext),{},{validateMessages:(0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext.validateMessages),validateMessages),triggerFormChange:function(name,changedFields){onFormChange&&onFormChange(name,{changedFields:changedFields,forms:formsRef.current}),formContext.triggerFormChange(name,changedFields)},triggerFormFinish:function(name,values){onFormFinish&&onFormFinish(name,{values:values,forms:formsRef.current}),formContext.triggerFormFinish(name,values)},registerForm:function(name,form){name&&(formsRef.current=(0,objectSpread2.Z)((0,objectSpread2.Z)({},formsRef.current),{},(0,defineProperty.Z)({},name,form))),formContext.registerForm(name,form)},unregisterForm:function(name){var newForms=(0,objectSpread2.Z)({},formsRef.current);delete newForms[name],formsRef.current=newForms,formContext.unregisterForm(name)}})},children)},Form_excluded=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function stringify(value){try{return JSON.stringify(value)}catch(err){return Math.random()}}var es_useWatch=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var _args$=args[0],form=args[1],_useState=(0,react.useState)(),_useState2=(0,slicedToArray.Z)(_useState,2),value=_useState2[0],setValue=_useState2[1],valueStr=(0,react.useMemo)(function(){return stringify(value)},[value]),valueStrRef=(0,react.useRef)(valueStr);valueStrRef.current=valueStr;var fieldContext=(0,react.useContext)(FieldContext),formInstance=form||fieldContext,isValidForm=formInstance&&formInstance._init,namePath=getNamePath(void 0===_args$?[]:_args$),namePathRef=(0,react.useRef)(namePath);return namePathRef.current=namePath,(0,react.useEffect)(function(){if(isValidForm){var getFieldsValue=formInstance.getFieldsValue,cancelRegister=(0,(0,formInstance.getInternalHooks)(HOOK_MARK).registerWatch)(function(store){var newValue=get(store,namePathRef.current),nextValueStr=stringify(newValue);valueStrRef.current!==nextValueStr&&(valueStrRef.current=nextValueStr,setValue(newValue))});return setValue(get(getFieldsValue(),namePathRef.current)),cancelRegister}},[isValidForm]),value},RefForm=react.forwardRef(function(_ref,ref){var childrenNode,name=_ref.name,initialValues=_ref.initialValues,fields=_ref.fields,form=_ref.form,preserve=_ref.preserve,children=_ref.children,_ref$component=_ref.component,Component=void 0===_ref$component?"form":_ref$component,validateMessages=_ref.validateMessages,_ref$validateTrigger=_ref.validateTrigger,validateTrigger=void 0===_ref$validateTrigger?"onChange":_ref$validateTrigger,onValuesChange=_ref.onValuesChange,_onFieldsChange=_ref.onFieldsChange,_onFinish=_ref.onFinish,onFinishFailed=_ref.onFinishFailed,restProps=(0,objectWithoutProperties.Z)(_ref,Form_excluded),formContext=react.useContext(FormContext),_useForm=es_useForm(form),formInstance=(0,slicedToArray.Z)(_useForm,1)[0],_formInstance$getInte=formInstance.getInternalHooks(HOOK_MARK),useSubscribe=_formInstance$getInte.useSubscribe,setInitialValues=_formInstance$getInte.setInitialValues,setCallbacks=_formInstance$getInte.setCallbacks,setValidateMessages=_formInstance$getInte.setValidateMessages,setPreserve=_formInstance$getInte.setPreserve,destroyForm=_formInstance$getInte.destroyForm;react.useImperativeHandle(ref,function(){return formInstance}),react.useEffect(function(){return formContext.registerForm(name,formInstance),function(){formContext.unregisterForm(name)}},[formContext,formInstance,name]),setValidateMessages((0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext.validateMessages),validateMessages)),setCallbacks({onValuesChange:onValuesChange,onFieldsChange:function(changedFields){if(formContext.triggerFormChange(name,changedFields),_onFieldsChange){for(var _len=arguments.length,rest=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];_onFieldsChange.apply(void 0,[changedFields].concat(rest))}},onFinish:function(values){formContext.triggerFormFinish(name,values),_onFinish&&_onFinish(values)},onFinishFailed:onFinishFailed}),setPreserve(preserve);var mountRef=react.useRef(null);setInitialValues(initialValues,!mountRef.current),mountRef.current||(mountRef.current=!0),react.useEffect(function(){return destroyForm},[]);var childrenRenderProps="function"==typeof children;childrenNode=childrenRenderProps?children(formInstance.getFieldsValue(!0),formInstance):children,useSubscribe(!childrenRenderProps);var prevFieldsRef=react.useRef();react.useEffect(function(){!function(source,target){if(source===target)return!0;if(!source&&target||source&&!target||!source||!target||"object"!==(0,esm_typeof.Z)(source)||"object"!==(0,esm_typeof.Z)(target))return!1;var sourceKeys=Object.keys(source),targetKeys=Object.keys(target),keys=new Set([].concat(sourceKeys,targetKeys));return(0,toConsumableArray.Z)(keys).every(function(key){var sourceValue=source[key],targetValue=target[key];return"function"==typeof sourceValue&&"function"==typeof targetValue||sourceValue===targetValue})}(prevFieldsRef.current||[],fields||[])&&formInstance.setFields(fields||[]),prevFieldsRef.current=fields},[fields,formInstance]);var formContextValue=react.useMemo(function(){return(0,objectSpread2.Z)((0,objectSpread2.Z)({},formInstance),{},{validateTrigger:validateTrigger})},[formInstance,validateTrigger]),wrapperNode=react.createElement(FieldContext.Provider,{value:formContextValue},childrenNode);return!1===Component?wrapperNode:react.createElement(Component,(0,esm_extends.Z)({},restProps,{onSubmit:function(event){event.preventDefault(),event.stopPropagation(),formInstance.submit()},onReset:function(event){var _restProps$onReset;event.preventDefault(),formInstance.resetFields(),null===(_restProps$onReset=restProps.onReset)||void 0===_restProps$onReset||_restProps$onReset.call(restProps,event)}}),wrapperNode)});RefForm.FormProvider=FormProvider,RefForm.Field=es_Field,RefForm.List=es_List,RefForm.useForm=es_useForm,RefForm.useWatch=es_useWatch;var es=RefForm},59775:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BaseInput:function(){return es_BaseInput},default:function(){return es}});var defineProperty=__webpack_require__(4942),esm_typeof=__webpack_require__(71002),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames);function hasAddon(props){return!!(props.addonBefore||props.addonAfter)}function hasPrefixSuffix(props){return!!(props.prefix||props.suffix||props.allowClear)}function resolveOnChange(target,e,onChange,targetValue){if(onChange){var event=e;if("click"===e.type){var currentTarget=target.cloneNode(!0);event=Object.create(e,{target:{value:currentTarget},currentTarget:{value:currentTarget}}),currentTarget.value="",onChange(event);return}if(void 0!==targetValue){event=Object.create(e,{target:{value:target},currentTarget:{value:target}}),target.value=targetValue,onChange(event);return}onChange(event)}}function fixControlledValue(value){return null==value?"":String(value)}var es_BaseInput=function(props){var inputElement=props.inputElement,prefixCls=props.prefixCls,prefix=props.prefix,suffix=props.suffix,addonBefore=props.addonBefore,addonAfter=props.addonAfter,className=props.className,style=props.style,affixWrapperClassName=props.affixWrapperClassName,groupClassName=props.groupClassName,wrapperClassName=props.wrapperClassName,disabled=props.disabled,readOnly=props.readOnly,focused=props.focused,triggerFocus=props.triggerFocus,allowClear=props.allowClear,value=props.value,handleReset=props.handleReset,hidden=props.hidden,containerRef=(0,react.useRef)(null),element=(0,react.cloneElement)(inputElement,{value:value,hidden:hidden});if(hasPrefixSuffix(props)){var _classNames2,affixWrapperPrefixCls="".concat(prefixCls,"-affix-wrapper"),affixWrapperCls=classnames_default()(affixWrapperPrefixCls,(_classNames2={},(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-disabled"),disabled),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-focused"),focused),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-readonly"),readOnly),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-input-with-clear-btn"),suffix&&allowClear&&value),_classNames2),!hasAddon(props)&&className,affixWrapperClassName),suffixNode=(suffix||allowClear)&&react.createElement("span",{className:"".concat(prefixCls,"-suffix")},function(){if(!allowClear)return null;var _classNames,clearIconCls="".concat(prefixCls,"-clear-icon"),iconNode="object"===(0,esm_typeof.Z)(allowClear)&&null!=allowClear&&allowClear.clearIcon?allowClear.clearIcon:"✖";return react.createElement("span",{onClick:handleReset,onMouseDown:function(e){return e.preventDefault()},className:classnames_default()(clearIconCls,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(clearIconCls,"-hidden"),!(!disabled&&!readOnly&&value)),(0,defineProperty.Z)(_classNames,"".concat(clearIconCls,"-has-suffix"),!!suffix),_classNames)),role:"button",tabIndex:-1},iconNode)}(),suffix);element=react.createElement("span",{className:affixWrapperCls,style:style,hidden:!hasAddon(props)&&hidden,onClick:function(e){var _containerRef$current;null!==(_containerRef$current=containerRef.current)&&void 0!==_containerRef$current&&_containerRef$current.contains(e.target)&&(null==triggerFocus||triggerFocus())},ref:containerRef},prefix&&react.createElement("span",{className:"".concat(prefixCls,"-prefix")},prefix),(0,react.cloneElement)(inputElement,{style:null,value:value,hidden:null}),suffixNode)}if(hasAddon(props)){var wrapperCls="".concat(prefixCls,"-group"),addonCls="".concat(wrapperCls,"-addon"),mergedWrapperClassName=classnames_default()("".concat(prefixCls,"-wrapper"),wrapperCls,wrapperClassName),mergedGroupClassName=classnames_default()("".concat(prefixCls,"-group-wrapper"),className,groupClassName);return react.createElement("span",{className:mergedGroupClassName,style:style,hidden:hidden},react.createElement("span",{className:mergedWrapperClassName},addonBefore&&react.createElement("span",{className:addonCls},addonBefore),(0,react.cloneElement)(element,{style:null,hidden:null}),addonAfter&&react.createElement("span",{className:addonCls},addonAfter)))}return element},toConsumableArray=__webpack_require__(74902),esm_extends=__webpack_require__(87462),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),omit=__webpack_require__(98423),useMergedState=__webpack_require__(21770),_excluded=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],es=(0,react.forwardRef)(function(props,ref){var otherProps,autoComplete=props.autoComplete,onChange=props.onChange,onFocus=props.onFocus,onBlur=props.onBlur,onPressEnter=props.onPressEnter,onKeyDown=props.onKeyDown,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-input":_props$prefixCls,disabled=props.disabled,htmlSize=props.htmlSize,className=props.className,maxLength=props.maxLength,suffix=props.suffix,showCount=props.showCount,_props$type=props.type,inputClassName=props.inputClassName,rest=(0,objectWithoutProperties.Z)(props,_excluded),_useMergedState=(0,useMergedState.Z)(props.defaultValue,{value:props.value}),_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2),value=_useMergedState2[0],setValue=_useMergedState2[1],_useState=(0,react.useState)(!1),_useState2=(0,slicedToArray.Z)(_useState,2),focused=_useState2[0],setFocused=_useState2[1],inputRef=(0,react.useRef)(null),focus=function(option){inputRef.current&&function(element,option){if(element){element.focus(option);var cursor=(option||{}).cursor;if(cursor){var len=element.value.length;switch(cursor){case"start":element.setSelectionRange(0,0);break;case"end":element.setSelectionRange(len,len);break;default:element.setSelectionRange(0,len)}}}}(inputRef.current,option)};return(0,react.useImperativeHandle)(ref,function(){return{focus:focus,blur:function(){var _inputRef$current;null===(_inputRef$current=inputRef.current)||void 0===_inputRef$current||_inputRef$current.blur()},setSelectionRange:function(start,end,direction){var _inputRef$current2;null===(_inputRef$current2=inputRef.current)||void 0===_inputRef$current2||_inputRef$current2.setSelectionRange(start,end,direction)},select:function(){var _inputRef$current3;null===(_inputRef$current3=inputRef.current)||void 0===_inputRef$current3||_inputRef$current3.select()},input:inputRef.current}}),(0,react.useEffect)(function(){setFocused(function(prev){return(!prev||!disabled)&&prev})},[disabled]),react.createElement(es_BaseInput,(0,esm_extends.Z)({},rest,{prefixCls:prefixCls,className:className,inputElement:(otherProps=(0,omit.Z)(props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]),react.createElement("input",(0,esm_extends.Z)({autoComplete:autoComplete},otherProps,{onChange:function(e){void 0===props.value&&setValue(e.target.value),inputRef.current&&resolveOnChange(inputRef.current,e,onChange)},onFocus:function(e){setFocused(!0),null==onFocus||onFocus(e)},onBlur:function(e){setFocused(!1),null==onBlur||onBlur(e)},onKeyDown:function(e){onPressEnter&&"Enter"===e.key&&onPressEnter(e),null==onKeyDown||onKeyDown(e)},className:classnames_default()(prefixCls,(0,defineProperty.Z)({},"".concat(prefixCls,"-disabled"),disabled),inputClassName,!hasAddon(props)&&!hasPrefixSuffix(props)&&className),ref:inputRef,size:htmlSize,type:void 0===_props$type?"text":_props$type}))),handleReset:function(e){setValue(""),focus(),inputRef.current&&resolveOnChange(inputRef.current,e,onChange)},value:fixControlledValue(value),focused:focused,triggerFocus:focus,suffix:function(){var hasMaxLength=Number(maxLength)>0;if(suffix||showCount){var val=fixControlledValue(value),valueLength=(0,toConsumableArray.Z)(val).length,dataCount="object"===(0,esm_typeof.Z)(showCount)?showCount.formatter({value:val,count:valueLength,maxLength:maxLength}):"".concat(valueLength).concat(hasMaxLength?" / ".concat(maxLength):"");return react.createElement(react.Fragment,null,!!showCount&&react.createElement("span",{className:classnames_default()("".concat(prefixCls,"-show-count-suffix"),(0,defineProperty.Z)({},"".concat(prefixCls,"-show-count-has-suffix"),!!suffix))},dataCount),suffix)}return null}(),disabled:disabled}))})},97868:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{iz:function(){return Divider},ck:function(){return es_MenuItem},BW:function(){return MenuItemGroup},sN:function(){return es_MenuItem},GP:function(){return MenuItemGroup},Wd:function(){return SubMenu},ZP:function(){return rc_menu_es},Xl:function(){return useFullPath}});var esm_extends=__webpack_require__(87462),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),toConsumableArray=__webpack_require__(74902),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),shallowequal=__webpack_require__(96774),shallowequal_default=__webpack_require__.n(shallowequal),useMergedState=__webpack_require__(21770),warning=__webpack_require__(80334),es=__webpack_require__(34243),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),KeyCode=__webpack_require__(15105),omit=__webpack_require__(98423),useMemo=__webpack_require__(56982),_excluded=["children","locked"],MenuContext=react.createContext(null);function InheritableContextProvider(_ref){var children=_ref.children,locked=_ref.locked,restProps=(0,objectWithoutProperties.Z)(_ref,_excluded),context=react.useContext(MenuContext),inheritableContext=(0,useMemo.Z)(function(){var clone;return clone=(0,objectSpread2.Z)({},context),Object.keys(restProps).forEach(function(key){var value=restProps[key];void 0!==value&&(clone[key]=value)}),clone},[context,restProps],function(prev,next){return!locked&&(prev[0]!==next[0]||!shallowequal_default()(prev[1],next[1]))});return react.createElement(MenuContext.Provider,{value:inheritableContext},children)}function useActive(eventKey,disabled,onMouseEnter,onMouseLeave){var _React$useContext=react.useContext(MenuContext),activeKey=_React$useContext.activeKey,onActive=_React$useContext.onActive,onInactive=_React$useContext.onInactive,ret={active:activeKey===eventKey};return disabled||(ret.onMouseEnter=function(domEvent){null==onMouseEnter||onMouseEnter({key:eventKey,domEvent:domEvent}),onActive(eventKey)},ret.onMouseLeave=function(domEvent){null==onMouseLeave||onMouseLeave({key:eventKey,domEvent:domEvent}),onInactive(eventKey)}),ret}var warnUtil_excluded=["item"];function warnItemProp(_ref){var item=_ref.item,restInfo=(0,objectWithoutProperties.Z)(_ref,warnUtil_excluded);return Object.defineProperty(restInfo,"item",{get:function(){return(0,warning.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),item}}),restInfo}function Icon(_ref){var icon=_ref.icon,props=_ref.props,children=_ref.children;return("function"==typeof icon?react.createElement(icon,(0,objectSpread2.Z)({},props)):icon)||children||null}function useDirectionStyle(level){var _React$useContext=react.useContext(MenuContext),mode=_React$useContext.mode,rtl=_React$useContext.rtl,inlineIndent=_React$useContext.inlineIndent;return"inline"!==mode?null:rtl?{paddingRight:level*inlineIndent}:{paddingLeft:level*inlineIndent}}var PathRegisterContext=react.createContext(null);function useMeasure(){return react.useContext(PathRegisterContext)}var PathTrackerContext=react.createContext([]);function useFullPath(eventKey){var parentKeyPath=react.useContext(PathTrackerContext);return react.useMemo(function(){return void 0!==eventKey?[].concat((0,toConsumableArray.Z)(parentKeyPath),[eventKey]):parentKeyPath},[parentKeyPath,eventKey])}var PathUserContext=react.createContext(null),IdContext=react.createContext(null);function getMenuId(uuid,eventKey){return void 0===uuid?null:"".concat(uuid,"-").concat(eventKey)}function useMenuId(eventKey){return getMenuId(react.useContext(IdContext),eventKey)}var PrivateContext=react.createContext({}),MenuItem_excluded=["title","attribute","elementRef"],_excluded2=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_excluded3=["active"],LegacyMenuItem=function(_React$Component){(0,inherits.Z)(LegacyMenuItem,_React$Component);var _super=(0,createSuper.Z)(LegacyMenuItem);function LegacyMenuItem(){return(0,classCallCheck.Z)(this,LegacyMenuItem),_super.apply(this,arguments)}return(0,createClass.Z)(LegacyMenuItem,[{key:"render",value:function(){var _this$props=this.props,title=_this$props.title,attribute=_this$props.attribute,elementRef=_this$props.elementRef,restProps=(0,objectWithoutProperties.Z)(_this$props,MenuItem_excluded),passedProps=(0,omit.Z)(restProps,["eventKey"]);return(0,warning.ZP)(!attribute,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),react.createElement(es.Z.Item,(0,esm_extends.Z)({},attribute,{title:"string"==typeof title?title:void 0},passedProps,{ref:elementRef}))}}]),LegacyMenuItem}(react.Component),InternalMenuItem=function(props){var _classNames,style=props.style,className=props.className,eventKey=props.eventKey,disabled=(props.warnKey,props.disabled),itemIcon=props.itemIcon,children=props.children,role=props.role,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onClick=props.onClick,onKeyDown=props.onKeyDown,onFocus=props.onFocus,restProps=(0,objectWithoutProperties.Z)(props,_excluded2),domDataId=useMenuId(eventKey),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,onItemClick=_React$useContext.onItemClick,contextDisabled=_React$useContext.disabled,overflowDisabled=_React$useContext.overflowDisabled,contextItemIcon=_React$useContext.itemIcon,selectedKeys=_React$useContext.selectedKeys,onActive=_React$useContext.onActive,_internalRenderMenuItem=react.useContext(PrivateContext)._internalRenderMenuItem,itemCls="".concat(prefixCls,"-item"),legacyMenuItemRef=react.useRef(),elementRef=react.useRef(),mergedDisabled=contextDisabled||disabled,connectedKeys=useFullPath(eventKey),getEventInfo=function(e){return{key:eventKey,keyPath:(0,toConsumableArray.Z)(connectedKeys).reverse(),item:legacyMenuItemRef.current,domEvent:e}},_useActive=useActive(eventKey,mergedDisabled,onMouseEnter,onMouseLeave),active=_useActive.active,activeProps=(0,objectWithoutProperties.Z)(_useActive,_excluded3),selected=selectedKeys.includes(eventKey),directionStyle=useDirectionStyle(connectedKeys.length),optionRoleProps={};"option"===props.role&&(optionRoleProps["aria-selected"]=selected);var renderNode=react.createElement(LegacyMenuItem,(0,esm_extends.Z)({ref:legacyMenuItemRef,elementRef:elementRef,role:null===role?"none":role||"menuitem",tabIndex:disabled?null:-1,"data-menu-id":overflowDisabled&&domDataId?null:domDataId},restProps,activeProps,optionRoleProps,{component:"li","aria-disabled":disabled,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},directionStyle),style),className:classnames_default()(itemCls,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-active"),active),(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-selected"),selected),(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-disabled"),mergedDisabled),_classNames),className),onClick:function(e){if(!mergedDisabled){var info=getEventInfo(e);null==onClick||onClick(warnItemProp(info)),onItemClick(info)}},onKeyDown:function(e){if(null==onKeyDown||onKeyDown(e),e.which===KeyCode.Z.ENTER){var info=getEventInfo(e);null==onClick||onClick(warnItemProp(info)),onItemClick(info)}},onFocus:function(e){onActive(eventKey),null==onFocus||onFocus(e)}}),children,react.createElement(Icon,{props:(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{isSelected:selected}),icon:itemIcon||contextItemIcon}));return _internalRenderMenuItem&&(renderNode=_internalRenderMenuItem(renderNode,props,{selected:selected})),renderNode},es_MenuItem=function(props){var eventKey=props.eventKey,measure=useMeasure(),connectedKeyPath=useFullPath(eventKey);return(react.useEffect(function(){if(measure)return measure.registerPath(eventKey,connectedKeyPath),function(){measure.unregisterPath(eventKey,connectedKeyPath)}},[connectedKeyPath]),measure)?null:react.createElement(InternalMenuItem,props)},esm_typeof=__webpack_require__(71002),toArray=__webpack_require__(50344),nodeUtil_excluded=["label","children","key","type"];function parseChildren(children,keyPath){return(0,toArray.Z)(children).map(function(child,index){if(react.isValidElement(child)){var _child$props$eventKey,_child$props,key=child.key,eventKey=null!==(_child$props$eventKey=null===(_child$props=child.props)||void 0===_child$props?void 0:_child$props.eventKey)&&void 0!==_child$props$eventKey?_child$props$eventKey:key;null==eventKey&&(eventKey="tmp_key-".concat([].concat((0,toConsumableArray.Z)(keyPath),[index]).join("-")));var cloneProps={key:eventKey,eventKey:eventKey};return react.cloneElement(child,cloneProps)}return child})}function useMemoCallback(func){var funRef=react.useRef(func);funRef.current=func;var callback=react.useCallback(function(){for(var _funRef$current,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null===(_funRef$current=funRef.current)||void 0===_funRef$current?void 0:_funRef$current.call.apply(_funRef$current,[funRef].concat(args))},[]);return func?callback:void 0}var SubMenuList_excluded=["className","children"],SubMenuList=react.forwardRef(function(_ref,ref){var className=_ref.className,children=_ref.children,restProps=(0,objectWithoutProperties.Z)(_ref,SubMenuList_excluded),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,mode=_React$useContext.mode,rtl=_React$useContext.rtl;return react.createElement("ul",(0,esm_extends.Z)({className:classnames_default()(prefixCls,rtl&&"".concat(prefixCls,"-rtl"),"".concat(prefixCls,"-sub"),"".concat(prefixCls,"-").concat("inline"===mode?"inline":"vertical"),className)},restProps,{"data-menu-list":!0,ref:ref}),children)});SubMenuList.displayName="SubMenuList";var rc_trigger_es=__webpack_require__(81263),raf=__webpack_require__(75164),autoAdjustOverflow={adjustX:1,adjustY:1},placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}},placementsRtl={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}};function getMotion(mode,motion,defaultMotions){return motion||(defaultMotions?defaultMotions[mode]||defaultMotions.other:void 0)}var popupPlacementMap={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function PopupTrigger(_ref){var prefixCls=_ref.prefixCls,visible=_ref.visible,children=_ref.children,popup=_ref.popup,popupClassName=_ref.popupClassName,popupOffset=_ref.popupOffset,disabled=_ref.disabled,mode=_ref.mode,onVisibleChange=_ref.onVisibleChange,_React$useContext=react.useContext(MenuContext),getPopupContainer=_React$useContext.getPopupContainer,rtl=_React$useContext.rtl,subMenuOpenDelay=_React$useContext.subMenuOpenDelay,subMenuCloseDelay=_React$useContext.subMenuCloseDelay,builtinPlacements=_React$useContext.builtinPlacements,triggerSubMenuAction=_React$useContext.triggerSubMenuAction,forceSubMenuRender=_React$useContext.forceSubMenuRender,rootClassName=_React$useContext.rootClassName,motion=_React$useContext.motion,defaultMotions=_React$useContext.defaultMotions,_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),innerVisible=_React$useState2[0],setInnerVisible=_React$useState2[1],placement=rtl?(0,objectSpread2.Z)((0,objectSpread2.Z)({},placementsRtl),builtinPlacements):(0,objectSpread2.Z)((0,objectSpread2.Z)({},placements),builtinPlacements),popupPlacement=popupPlacementMap[mode],targetMotion=getMotion(mode,motion,defaultMotions),mergedMotion=(0,objectSpread2.Z)((0,objectSpread2.Z)({},targetMotion),{},{leavedClassName:"".concat(prefixCls,"-hidden"),removeOnLeave:!1,motionAppear:!0}),visibleRef=react.useRef();return react.useEffect(function(){return visibleRef.current=(0,raf.Z)(function(){setInnerVisible(visible)}),function(){raf.Z.cancel(visibleRef.current)}},[visible]),react.createElement(rc_trigger_es.Z,{prefixCls:prefixCls,popupClassName:classnames_default()("".concat(prefixCls,"-popup"),(0,defineProperty.Z)({},"".concat(prefixCls,"-rtl"),rtl),popupClassName,rootClassName),stretch:"horizontal"===mode?"minWidth":null,getPopupContainer:getPopupContainer,builtinPlacements:placement,popupPlacement:popupPlacement,popupVisible:innerVisible,popup:popup,popupAlign:popupOffset&&{offset:popupOffset},action:disabled?[]:[triggerSubMenuAction],mouseEnterDelay:subMenuOpenDelay,mouseLeaveDelay:subMenuCloseDelay,onPopupVisibleChange:onVisibleChange,forceRender:forceSubMenuRender,popupMotion:mergedMotion},children)}var rc_motion_es=__webpack_require__(62874);function InlineSubMenuList(_ref){var id=_ref.id,open=_ref.open,keyPath=_ref.keyPath,children=_ref.children,fixedMode="inline",_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,forceSubMenuRender=_React$useContext.forceSubMenuRender,motion=_React$useContext.motion,defaultMotions=_React$useContext.defaultMotions,mode=_React$useContext.mode,sameModeRef=react.useRef(!1);sameModeRef.current=mode===fixedMode;var _React$useState=react.useState(!sameModeRef.current),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),destroy=_React$useState2[0],setDestroy=_React$useState2[1],mergedOpen=!!sameModeRef.current&&open;react.useEffect(function(){sameModeRef.current&&setDestroy(!1)},[mode]);var mergedMotion=(0,objectSpread2.Z)({},getMotion(fixedMode,motion,defaultMotions));keyPath.length>1&&(mergedMotion.motionAppear=!1);var originOnVisibleChanged=mergedMotion.onVisibleChanged;return(mergedMotion.onVisibleChanged=function(newVisible){return sameModeRef.current||newVisible||setDestroy(!0),null==originOnVisibleChanged?void 0:originOnVisibleChanged(newVisible)},destroy)?null:react.createElement(InheritableContextProvider,{mode:fixedMode,locked:!sameModeRef.current},react.createElement(rc_motion_es.Z,(0,esm_extends.Z)({visible:mergedOpen},mergedMotion,{forceRender:forceSubMenuRender,removeOnLeave:!1,leavedClassName:"".concat(prefixCls,"-hidden")}),function(_ref2){var motionClassName=_ref2.className,motionStyle=_ref2.style;return react.createElement(SubMenuList,{id:id,className:motionClassName,style:motionStyle},children)}))}var SubMenu_excluded=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],SubMenu_excluded2=["active"],InternalSubMenu=function(props){var _classNames,style=props.style,className=props.className,title=props.title,eventKey=props.eventKey,disabled=(props.warnKey,props.disabled),internalPopupClose=props.internalPopupClose,children=props.children,itemIcon=props.itemIcon,expandIcon=props.expandIcon,popupClassName=props.popupClassName,popupOffset=props.popupOffset,onClick=props.onClick,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onTitleClick=props.onTitleClick,onTitleMouseEnter=props.onTitleMouseEnter,onTitleMouseLeave=props.onTitleMouseLeave,restProps=(0,objectWithoutProperties.Z)(props,SubMenu_excluded),domDataId=useMenuId(eventKey),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,mode=_React$useContext.mode,openKeys=_React$useContext.openKeys,contextDisabled=_React$useContext.disabled,overflowDisabled=_React$useContext.overflowDisabled,activeKey=_React$useContext.activeKey,selectedKeys=_React$useContext.selectedKeys,contextItemIcon=_React$useContext.itemIcon,contextExpandIcon=_React$useContext.expandIcon,onItemClick=_React$useContext.onItemClick,onOpenChange=_React$useContext.onOpenChange,onActive=_React$useContext.onActive,_internalRenderSubMenuItem=react.useContext(PrivateContext)._internalRenderSubMenuItem,isSubPathKey=react.useContext(PathUserContext).isSubPathKey,connectedPath=useFullPath(),subMenuPrefixCls="".concat(prefixCls,"-submenu"),mergedDisabled=contextDisabled||disabled,elementRef=react.useRef(),popupRef=react.useRef(),mergedExpandIcon=expandIcon||contextExpandIcon,originOpen=openKeys.includes(eventKey),open=!overflowDisabled&&originOpen,childrenSelected=isSubPathKey(selectedKeys,eventKey),_useActive=useActive(eventKey,mergedDisabled,onTitleMouseEnter,onTitleMouseLeave),active=_useActive.active,activeProps=(0,objectWithoutProperties.Z)(_useActive,SubMenu_excluded2),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),childrenActive=_React$useState2[0],setChildrenActive=_React$useState2[1],triggerChildrenActive=function(newActive){mergedDisabled||setChildrenActive(newActive)},mergedActive=react.useMemo(function(){return active||"inline"!==mode&&(childrenActive||isSubPathKey([activeKey],eventKey))},[mode,active,activeKey,childrenActive,eventKey,isSubPathKey]),directionStyle=useDirectionStyle(connectedPath.length),onMergedItemClick=useMemoCallback(function(info){null==onClick||onClick(warnItemProp(info)),onItemClick(info)}),popupId=domDataId&&"".concat(domDataId,"-popup"),titleNode=react.createElement("div",(0,esm_extends.Z)({role:"menuitem",style:directionStyle,className:"".concat(subMenuPrefixCls,"-title"),tabIndex:mergedDisabled?null:-1,ref:elementRef,title:"string"==typeof title?title:null,"data-menu-id":overflowDisabled&&domDataId?null:domDataId,"aria-expanded":open,"aria-haspopup":!0,"aria-controls":popupId,"aria-disabled":mergedDisabled,onClick:function(e){mergedDisabled||(null==onTitleClick||onTitleClick({key:eventKey,domEvent:e}),"inline"===mode&&onOpenChange(eventKey,!originOpen))},onFocus:function(){onActive(eventKey)}},activeProps),title,react.createElement(Icon,{icon:"horizontal"!==mode?mergedExpandIcon:null,props:(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{isOpen:open,isSubMenu:!0})},react.createElement("i",{className:"".concat(subMenuPrefixCls,"-arrow")}))),triggerModeRef=react.useRef(mode);if("inline"!==mode&&(triggerModeRef.current=connectedPath.length>1?"vertical":mode),!overflowDisabled){var triggerMode=triggerModeRef.current;titleNode=react.createElement(PopupTrigger,{mode:triggerMode,prefixCls:subMenuPrefixCls,visible:!internalPopupClose&&open&&"inline"!==mode,popupClassName:popupClassName,popupOffset:popupOffset,popup:react.createElement(InheritableContextProvider,{mode:"horizontal"===triggerMode?"vertical":triggerMode},react.createElement(SubMenuList,{id:popupId,ref:popupRef},children)),disabled:mergedDisabled,onVisibleChange:function(newVisible){"inline"!==mode&&onOpenChange(eventKey,newVisible)}},titleNode)}var listNode=react.createElement(es.Z.Item,(0,esm_extends.Z)({role:"none"},restProps,{component:"li",style:style,className:classnames_default()(subMenuPrefixCls,"".concat(subMenuPrefixCls,"-").concat(mode),className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-open"),open),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-active"),mergedActive),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-selected"),childrenSelected),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-disabled"),mergedDisabled),_classNames)),onMouseEnter:function(domEvent){triggerChildrenActive(!0),null==onMouseEnter||onMouseEnter({key:eventKey,domEvent:domEvent})},onMouseLeave:function(domEvent){triggerChildrenActive(!1),null==onMouseLeave||onMouseLeave({key:eventKey,domEvent:domEvent})}}),titleNode,!overflowDisabled&&react.createElement(InlineSubMenuList,{id:popupId,open:open,keyPath:connectedPath},children));return _internalRenderSubMenuItem&&(listNode=_internalRenderSubMenuItem(listNode,props,{selected:childrenSelected,active:mergedActive,open:open,disabled:mergedDisabled})),react.createElement(InheritableContextProvider,{onItemClick:onMergedItemClick,mode:"horizontal"===mode?"vertical":mode,itemIcon:itemIcon||contextItemIcon,expandIcon:mergedExpandIcon},listNode)};function SubMenu(props){var renderNode,eventKey=props.eventKey,children=props.children,connectedKeyPath=useFullPath(eventKey),childList=parseChildren(children,connectedKeyPath),measure=useMeasure();return react.useEffect(function(){if(measure)return measure.registerPath(eventKey,connectedKeyPath),function(){measure.unregisterPath(eventKey,connectedKeyPath)}},[connectedKeyPath]),renderNode=measure?childList:react.createElement(InternalSubMenu,props,childList),react.createElement(PathTrackerContext.Provider,{value:connectedKeyPath},renderNode)}var Dom_focus=__webpack_require__(88603),LEFT=KeyCode.Z.LEFT,RIGHT=KeyCode.Z.RIGHT,UP=KeyCode.Z.UP,DOWN=KeyCode.Z.DOWN,ENTER=KeyCode.Z.ENTER,ESC=KeyCode.Z.ESC,HOME=KeyCode.Z.HOME,END=KeyCode.Z.END,ArrowKeys=[UP,DOWN,LEFT,RIGHT];function getFocusableElements(container,elements){return(0,Dom_focus.tS)(container,!0).filter(function(ele){return elements.has(ele)})}function getNextFocusElement(parentQueryContainer,elements,focusMenuElement){var offset=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!parentQueryContainer)return null;var sameLevelFocusableMenuElementList=getFocusableElements(parentQueryContainer,elements),count=sameLevelFocusableMenuElementList.length,focusIndex=sameLevelFocusableMenuElementList.findIndex(function(ele){return focusMenuElement===ele});return offset<0?-1===focusIndex?focusIndex=count-1:focusIndex-=1:offset>0&&(focusIndex+=1),sameLevelFocusableMenuElementList[focusIndex=(focusIndex+count)%count]}var uniquePrefix=Math.random().toFixed(5).toString().slice(2),internalId=0,PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function(keyPath){return keyPath.join(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more",Menu_excluded=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],EMPTY_LIST=[],Menu=react.forwardRef(function(props,ref){var _useMergedState,_useMergedState2,uuid,setUUID,_React$useState,internalForceUpdate,key2pathRef,path2keyRef,_React$useState3,_React$useState4,overflowKeys,setOverflowKeys,updateRef,destroyRef,forceUpdate,registerPath,unregisterPath,refreshOverflowKeys,getKeyPath,isSubPathKey,getSubPathKeys,triggerAccessibilityOpen,rafRef,activeRef,cleanRaf,_childList$,_classNames,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-menu":_props$prefixCls,rootClassName=props.rootClassName,style=props.style,className=props.className,_props$tabIndex=props.tabIndex,items=props.items,children=props.children,direction=props.direction,id=props.id,_props$mode=props.mode,mode=void 0===_props$mode?"vertical":_props$mode,inlineCollapsed=props.inlineCollapsed,disabled=props.disabled,disabledOverflow=props.disabledOverflow,_props$subMenuOpenDel=props.subMenuOpenDelay,_props$subMenuCloseDe=props.subMenuCloseDelay,forceSubMenuRender=props.forceSubMenuRender,defaultOpenKeys=props.defaultOpenKeys,openKeys=props.openKeys,activeKey=props.activeKey,defaultActiveFirst=props.defaultActiveFirst,_props$selectable=props.selectable,selectable=void 0===_props$selectable||_props$selectable,_props$multiple=props.multiple,multiple=void 0!==_props$multiple&&_props$multiple,defaultSelectedKeys=props.defaultSelectedKeys,selectedKeys=props.selectedKeys,onSelect=props.onSelect,onDeselect=props.onDeselect,_props$inlineIndent=props.inlineIndent,motion=props.motion,defaultMotions=props.defaultMotions,_props$triggerSubMenu=props.triggerSubMenuAction,builtinPlacements=props.builtinPlacements,itemIcon=props.itemIcon,expandIcon=props.expandIcon,_props$overflowedIndi=props.overflowedIndicator,overflowedIndicator=void 0===_props$overflowedIndi?"...":_props$overflowedIndi,overflowedIndicatorPopupClassName=props.overflowedIndicatorPopupClassName,getPopupContainer=props.getPopupContainer,onClick=props.onClick,onOpenChange=props.onOpenChange,onKeyDown=props.onKeyDown,_internalRenderMenuItem=(props.openAnimation,props.openTransitionName,props._internalRenderMenuItem),_internalRenderSubMenuItem=props._internalRenderSubMenuItem,restProps=(0,objectWithoutProperties.Z)(props,Menu_excluded),childList=react.useMemo(function(){var childNodes;return childNodes=children,items&&(childNodes=function convertItemsToNodes(list){return(list||[]).map(function(opt,index){if(opt&&"object"===(0,esm_typeof.Z)(opt)){var label=opt.label,children=opt.children,key=opt.key,type=opt.type,restProps=(0,objectWithoutProperties.Z)(opt,nodeUtil_excluded),mergedKey=null!=key?key:"tmp-".concat(index);return children||"group"===type?"group"===type?react.createElement(MenuItemGroup,(0,esm_extends.Z)({key:mergedKey},restProps,{title:label}),convertItemsToNodes(children)):react.createElement(SubMenu,(0,esm_extends.Z)({key:mergedKey},restProps,{title:label}),convertItemsToNodes(children)):"divider"===type?react.createElement(Divider,(0,esm_extends.Z)({key:mergedKey},restProps)):react.createElement(es_MenuItem,(0,esm_extends.Z)({key:mergedKey},restProps),label)}return null}).filter(function(opt){return opt})}(items)),parseChildren(childNodes,EMPTY_LIST)},[children,items]),_React$useState1=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState1,2),mounted=_React$useState2[0],setMounted=_React$useState2[1],containerRef=react.useRef(),uuid1=(_useMergedState=(0,useMergedState.Z)(id,{value:id}),uuid=(_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2))[0],setUUID=_useMergedState2[1],react.useEffect(function(){internalId+=1;var newId="".concat(uniquePrefix,"-").concat(internalId);setUUID("rc-menu-uuid-".concat(newId))},[]),uuid),isRtl="rtl"===direction,_React$useMemo=react.useMemo(function(){return("inline"===mode||"vertical"===mode)&&inlineCollapsed?["vertical",inlineCollapsed]:[mode,!1]},[mode,inlineCollapsed]),_React$useMemo2=(0,slicedToArray.Z)(_React$useMemo,2),mergedMode=_React$useMemo2[0],mergedInlineCollapsed=_React$useMemo2[1],_React$useState31=react.useState(0),_React$useState41=(0,slicedToArray.Z)(_React$useState31,2),lastVisibleIndex=_React$useState41[0],setLastVisibleIndex=_React$useState41[1],allVisible=lastVisibleIndex>=childList.length-1||"horizontal"!==mergedMode||disabledOverflow,_useMergedState1=(0,useMergedState.Z)(defaultOpenKeys,{value:openKeys,postState:function(keys){return keys||EMPTY_LIST}}),_useMergedState21=(0,slicedToArray.Z)(_useMergedState1,2),mergedOpenKeys=_useMergedState21[0],setMergedOpenKeys=_useMergedState21[1],triggerOpenKeys=function(keys){setMergedOpenKeys(keys),null==onOpenChange||onOpenChange(keys)},_React$useState5=react.useState(mergedOpenKeys),_React$useState6=(0,slicedToArray.Z)(_React$useState5,2),inlineCacheOpenKeys=_React$useState6[0],setInlineCacheOpenKeys=_React$useState6[1],isInlineMode="inline"===mergedMode,mountRef=react.useRef(!1);react.useEffect(function(){isInlineMode&&setInlineCacheOpenKeys(mergedOpenKeys)},[mergedOpenKeys]),react.useEffect(function(){mountRef.current&&(isInlineMode?setMergedOpenKeys(inlineCacheOpenKeys):triggerOpenKeys(EMPTY_LIST))},[isInlineMode]),react.useEffect(function(){return mountRef.current=!0,function(){mountRef.current=!1}},[]);var _useKeyRecords=(_React$useState=react.useState({}),internalForceUpdate=(0,slicedToArray.Z)(_React$useState,2)[1],key2pathRef=(0,react.useRef)(new Map),path2keyRef=(0,react.useRef)(new Map),_React$useState3=react.useState([]),overflowKeys=(_React$useState4=(0,slicedToArray.Z)(_React$useState3,2))[0],setOverflowKeys=_React$useState4[1],updateRef=(0,react.useRef)(0),destroyRef=(0,react.useRef)(!1),forceUpdate=function(){destroyRef.current||internalForceUpdate({})},registerPath=(0,react.useCallback)(function(key,keyPath){var connectedPath=getPathStr(keyPath);path2keyRef.current.set(connectedPath,key),key2pathRef.current.set(key,connectedPath),updateRef.current+=1;var id=updateRef.current;Promise.resolve().then(function(){id===updateRef.current&&forceUpdate()})},[]),unregisterPath=(0,react.useCallback)(function(key,keyPath){var connectedPath=getPathStr(keyPath);path2keyRef.current.delete(connectedPath),key2pathRef.current.delete(key)},[]),refreshOverflowKeys=(0,react.useCallback)(function(keys){setOverflowKeys(keys)},[]),getKeyPath=(0,react.useCallback)(function(eventKey,includeOverflow){var keys=(key2pathRef.current.get(eventKey)||"").split(PATH_SPLIT);return includeOverflow&&overflowKeys.includes(keys[0])&&keys.unshift(OVERFLOW_KEY),keys},[overflowKeys]),isSubPathKey=(0,react.useCallback)(function(pathKeys,eventKey){return pathKeys.some(function(pathKey){return getKeyPath(pathKey,!0).includes(eventKey)})},[getKeyPath]),getSubPathKeys=(0,react.useCallback)(function(key){var connectedPath="".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT),pathKeys=new Set;return(0,toConsumableArray.Z)(path2keyRef.current.keys()).forEach(function(pathKey){pathKey.startsWith(connectedPath)&&pathKeys.add(path2keyRef.current.get(pathKey))}),pathKeys},[]),react.useEffect(function(){return function(){destroyRef.current=!0}},[]),{registerPath:registerPath,unregisterPath:unregisterPath,refreshOverflowKeys:refreshOverflowKeys,isSubPathKey:isSubPathKey,getKeyPath:getKeyPath,getKeys:function(){var keys=(0,toConsumableArray.Z)(key2pathRef.current.keys());return overflowKeys.length&&keys.push(OVERFLOW_KEY),keys},getSubPathKeys:getSubPathKeys}),registerPath1=_useKeyRecords.registerPath,unregisterPath1=_useKeyRecords.unregisterPath,refreshOverflowKeys1=_useKeyRecords.refreshOverflowKeys,isSubPathKey1=_useKeyRecords.isSubPathKey,getKeyPath1=_useKeyRecords.getKeyPath,getKeys=_useKeyRecords.getKeys,getSubPathKeys1=_useKeyRecords.getSubPathKeys,registerPathContext=react.useMemo(function(){return{registerPath:registerPath1,unregisterPath:unregisterPath1}},[registerPath1,unregisterPath1]),pathUserContext=react.useMemo(function(){return{isSubPathKey:isSubPathKey1}},[isSubPathKey1]);react.useEffect(function(){refreshOverflowKeys1(allVisible?EMPTY_LIST:childList.slice(lastVisibleIndex+1).map(function(child){return child.key}))},[lastVisibleIndex,allVisible]);var _useMergedState3=(0,useMergedState.Z)(activeKey||defaultActiveFirst&&(null===(_childList$=childList[0])||void 0===_childList$?void 0:_childList$.key),{value:activeKey}),_useMergedState4=(0,slicedToArray.Z)(_useMergedState3,2),mergedActiveKey=_useMergedState4[0],setMergedActiveKey=_useMergedState4[1],onActive=useMemoCallback(function(key){setMergedActiveKey(key)}),onInactive=useMemoCallback(function(){setMergedActiveKey(void 0)});(0,react.useImperativeHandle)(ref,function(){return{list:containerRef.current,focus:function(options){var _childList$find,_containerRef$current,_containerRef$current2,_containerRef$current3,shouldFocusKey=null!=mergedActiveKey?mergedActiveKey:null===(_childList$find=childList.find(function(node){return!node.props.disabled}))||void 0===_childList$find?void 0:_childList$find.key;shouldFocusKey&&(null===(_containerRef$current=containerRef.current)||void 0===_containerRef$current||null===(_containerRef$current2=_containerRef$current.querySelector("li[data-menu-id='".concat(getMenuId(uuid1,shouldFocusKey),"']")))||void 0===_containerRef$current2||null===(_containerRef$current3=_containerRef$current2.focus)||void 0===_containerRef$current3||_containerRef$current3.call(_containerRef$current2,options))}}});var _useMergedState5=(0,useMergedState.Z)(defaultSelectedKeys||[],{value:selectedKeys,postState:function(keys){return Array.isArray(keys)?keys:null==keys?EMPTY_LIST:[keys]}}),_useMergedState6=(0,slicedToArray.Z)(_useMergedState5,2),mergedSelectKeys=_useMergedState6[0],setMergedSelectKeys=_useMergedState6[1],triggerSelection=function(info){if(selectable){var newSelectKeys,targetKey=info.key,exist=mergedSelectKeys.includes(targetKey);setMergedSelectKeys(newSelectKeys=multiple?exist?mergedSelectKeys.filter(function(key){return key!==targetKey}):[].concat((0,toConsumableArray.Z)(mergedSelectKeys),[targetKey]):[targetKey]);var selectInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},info),{},{selectedKeys:newSelectKeys});exist?null==onDeselect||onDeselect(selectInfo):null==onSelect||onSelect(selectInfo)}!multiple&&mergedOpenKeys.length&&"inline"!==mergedMode&&triggerOpenKeys(EMPTY_LIST)},onInternalClick=useMemoCallback(function(info){null==onClick||onClick(warnItemProp(info)),triggerSelection(info)}),onInternalOpenChange=useMemoCallback(function(key,open){var newOpenKeys=mergedOpenKeys.filter(function(k){return k!==key});if(open)newOpenKeys.push(key);else if("inline"!==mergedMode){var subPathKeys=getSubPathKeys1(key);newOpenKeys=newOpenKeys.filter(function(k){return!subPathKeys.has(k)})}shallowequal_default()(mergedOpenKeys,newOpenKeys)||triggerOpenKeys(newOpenKeys)}),getInternalPopupContainer=useMemoCallback(getPopupContainer),onInternalKeyDown=(triggerAccessibilityOpen=function(key,open){var nextOpen=null!=open?open:!mergedOpenKeys.includes(key);onInternalOpenChange(key,nextOpen)},rafRef=react.useRef(),(activeRef=react.useRef()).current=mergedActiveKey,cleanRaf=function(){raf.Z.cancel(rafRef.current)},react.useEffect(function(){return function(){cleanRaf()}},[]),function(e){var which=e.which;if([].concat(ArrowKeys,[ENTER,ESC,HOME,END]).includes(which)){var refreshElements=function(){return elements=new Set,key2element=new Map,element2key=new Map,getKeys().forEach(function(key){var element=document.querySelector("[data-menu-id='".concat(getMenuId(uuid1,key),"']"));element&&(elements.add(element),element2key.set(element,key),key2element.set(key,element))}),elements};refreshElements();var focusMenuElement=function(activeElement,elements){for(var current=activeElement||document.activeElement;current;){if(elements.has(current))return current;current=current.parentElement}return null}(key2element.get(mergedActiveKey),elements),focusMenuKey=element2key.get(focusMenuElement),offsetObj=function(mode,isRootLevel,isRtl,which){var _inline,_horizontal,_vertical,_offsets,prev="prev",next="next",children="children",parent="parent";if("inline"===mode&&which===ENTER)return{inlineTrigger:!0};var inline=(_inline={},(0,defineProperty.Z)(_inline,UP,prev),(0,defineProperty.Z)(_inline,DOWN,next),_inline),horizontal=(_horizontal={},(0,defineProperty.Z)(_horizontal,LEFT,isRtl?next:prev),(0,defineProperty.Z)(_horizontal,RIGHT,isRtl?prev:next),(0,defineProperty.Z)(_horizontal,DOWN,children),(0,defineProperty.Z)(_horizontal,ENTER,children),_horizontal),vertical=(_vertical={},(0,defineProperty.Z)(_vertical,UP,prev),(0,defineProperty.Z)(_vertical,DOWN,next),(0,defineProperty.Z)(_vertical,ENTER,children),(0,defineProperty.Z)(_vertical,ESC,parent),(0,defineProperty.Z)(_vertical,LEFT,isRtl?children:parent),(0,defineProperty.Z)(_vertical,RIGHT,isRtl?parent:children),_vertical);switch(null===(_offsets=({inline:inline,horizontal:horizontal,vertical:vertical,inlineSub:inline,horizontalSub:vertical,verticalSub:vertical})["".concat(mode).concat(isRootLevel?"":"Sub")])||void 0===_offsets?void 0:_offsets[which]){case prev:return{offset:-1,sibling:!0};case next:return{offset:1,sibling:!0};case parent:return{offset:-1,sibling:!1};case children:return{offset:1,sibling:!1};default:return null}}(mergedMode,1===getKeyPath1(focusMenuKey,!0).length,isRtl,which);if(!offsetObj&&which!==HOME&&which!==END)return;(ArrowKeys.includes(which)||[HOME,END].includes(which))&&e.preventDefault();var tryFocus=function(menuElement){if(menuElement){var focusTargetElement=menuElement,link=menuElement.querySelector("a");(null==link?void 0:link.getAttribute("href"))&&(focusTargetElement=link);var targetKey=element2key.get(menuElement);setMergedActiveKey(targetKey),cleanRaf(),rafRef.current=(0,raf.Z)(function(){activeRef.current===targetKey&&focusTargetElement.focus()})}};if([HOME,END].includes(which)||offsetObj.sibling||!focusMenuElement){var elements,key2element,element2key,parentQueryContainer,focusableElements=getFocusableElements(parentQueryContainer=focusMenuElement&&"inline"!==mergedMode?function(element){for(var current=element;current;){if(current.getAttribute("data-menu-list"))return current;current=current.parentElement}return null}(focusMenuElement):containerRef.current,elements);tryFocus(which===HOME?focusableElements[0]:which===END?focusableElements[focusableElements.length-1]:getNextFocusElement(parentQueryContainer,elements,focusMenuElement,offsetObj.offset))}else if(offsetObj.inlineTrigger)triggerAccessibilityOpen(focusMenuKey);else if(offsetObj.offset>0)triggerAccessibilityOpen(focusMenuKey,!0),cleanRaf(),rafRef.current=(0,raf.Z)(function(){refreshElements();var controlId=focusMenuElement.getAttribute("aria-controls");tryFocus(getNextFocusElement(document.getElementById(controlId),elements))},5);else if(offsetObj.offset<0){var keyPath=getKeyPath1(focusMenuKey,!0),parentKey=keyPath[keyPath.length-2],parentMenuElement=key2element.get(parentKey);triggerAccessibilityOpen(parentKey,!1),tryFocus(parentMenuElement)}}null==onKeyDown||onKeyDown(e)});react.useEffect(function(){setMounted(!0)},[]);var privateContext=react.useMemo(function(){return{_internalRenderMenuItem:_internalRenderMenuItem,_internalRenderSubMenuItem:_internalRenderSubMenuItem}},[_internalRenderMenuItem,_internalRenderSubMenuItem]),wrappedChildList="horizontal"!==mergedMode||disabledOverflow?childList:childList.map(function(child,index){return react.createElement(InheritableContextProvider,{key:child.key,overflowDisabled:index>lastVisibleIndex},child)}),container=react.createElement(es.Z,(0,esm_extends.Z)({id:id,ref:containerRef,prefixCls:"".concat(prefixCls,"-overflow"),component:"ul",itemComponent:es_MenuItem,className:classnames_default()(prefixCls,"".concat(prefixCls,"-root"),"".concat(prefixCls,"-").concat(mergedMode),className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-inline-collapsed"),mergedInlineCollapsed),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-rtl"),isRtl),_classNames),rootClassName),dir:direction,style:style,role:"menu",tabIndex:void 0===_props$tabIndex?0:_props$tabIndex,data:wrappedChildList,renderRawItem:function(node){return node},renderRawRest:function(omitItems){var len=omitItems.length,originOmitItems=len?childList.slice(-len):null;return react.createElement(SubMenu,{eventKey:OVERFLOW_KEY,title:overflowedIndicator,disabled:allVisible,internalPopupClose:0===len,popupClassName:overflowedIndicatorPopupClassName},originOmitItems)},maxCount:"horizontal"!==mergedMode||disabledOverflow?es.Z.INVALIDATE:es.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(newLastIndex){setLastVisibleIndex(newLastIndex)},onKeyDown:onInternalKeyDown},restProps));return react.createElement(PrivateContext.Provider,{value:privateContext},react.createElement(IdContext.Provider,{value:uuid1},react.createElement(InheritableContextProvider,{prefixCls:prefixCls,rootClassName:rootClassName,mode:mergedMode,openKeys:mergedOpenKeys,rtl:isRtl,disabled:disabled,motion:mounted?motion:null,defaultMotions:mounted?defaultMotions:null,activeKey:mergedActiveKey,onActive:onActive,onInactive:onInactive,selectedKeys:mergedSelectKeys,inlineIndent:void 0===_props$inlineIndent?24:_props$inlineIndent,subMenuOpenDelay:void 0===_props$subMenuOpenDel?.1:_props$subMenuOpenDel,subMenuCloseDelay:void 0===_props$subMenuCloseDe?.1:_props$subMenuCloseDe,forceSubMenuRender:forceSubMenuRender,builtinPlacements:builtinPlacements,triggerSubMenuAction:void 0===_props$triggerSubMenu?"hover":_props$triggerSubMenu,getPopupContainer:getInternalPopupContainer,itemIcon:itemIcon,expandIcon:expandIcon,onItemClick:onInternalClick,onOpenChange:onInternalOpenChange},react.createElement(PathUserContext.Provider,{value:pathUserContext},container),react.createElement("div",{style:{display:"none"},"aria-hidden":!0},react.createElement(PathRegisterContext.Provider,{value:registerPathContext},childList)))))}),MenuItemGroup_excluded=["className","title","eventKey","children"],MenuItemGroup_excluded2=["children"],InternalMenuItemGroup=function(_ref){var className=_ref.className,title=_ref.title,children=(_ref.eventKey,_ref.children),restProps=(0,objectWithoutProperties.Z)(_ref,MenuItemGroup_excluded),prefixCls=react.useContext(MenuContext).prefixCls,groupPrefixCls="".concat(prefixCls,"-item-group");return react.createElement("li",(0,esm_extends.Z)({},restProps,{onClick:function(e){return e.stopPropagation()},className:classnames_default()(groupPrefixCls,className)}),react.createElement("div",{className:"".concat(groupPrefixCls,"-title"),title:"string"==typeof title?title:void 0},title),react.createElement("ul",{className:"".concat(groupPrefixCls,"-list")},children))};function MenuItemGroup(_ref2){var children=_ref2.children,props=(0,objectWithoutProperties.Z)(_ref2,MenuItemGroup_excluded2),childList=parseChildren(children,useFullPath(props.eventKey));return useMeasure()?childList:react.createElement(InternalMenuItemGroup,(0,omit.Z)(props,["warnKey"]),childList)}function Divider(_ref){var className=_ref.className,style=_ref.style,prefixCls=react.useContext(MenuContext).prefixCls;return useMeasure()?null:react.createElement("li",{className:classnames_default()("".concat(prefixCls,"-item-divider"),className),style:style})}var ExportMenu=Menu;ExportMenu.Item=es_MenuItem,ExportMenu.SubMenu=SubMenu,ExportMenu.ItemGroup=MenuItemGroup,ExportMenu.Divider=Divider;var rc_menu_es=ExportMenu},62874:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return CSSMotionList},Z:function(){return es}});var domSupport,win,prefixes,defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),slicedToArray=__webpack_require__(97685),esm_typeof=__webpack_require__(71002),react=__webpack_require__(67294),findDOMNode=__webpack_require__(34203),es_ref=__webpack_require__(42550),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),canUseDom=__webpack_require__(98924);function makePrefixMap(styleProp,eventName){var prefixes={};return prefixes[styleProp.toLowerCase()]=eventName.toLowerCase(),prefixes["Webkit".concat(styleProp)]="webkit".concat(eventName),prefixes["Moz".concat(styleProp)]="moz".concat(eventName),prefixes["ms".concat(styleProp)]="MS".concat(eventName),prefixes["O".concat(styleProp)]="o".concat(eventName.toLowerCase()),prefixes}var vendorPrefixes=(domSupport=(0,canUseDom.Z)(),win="undefined"!=typeof window?window:{},prefixes={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")},!domSupport||("AnimationEvent"in win||delete prefixes.animationend.animation,"TransitionEvent"in win||delete prefixes.transitionend.transition),prefixes),style={};(0,canUseDom.Z)()&&(style=document.createElement("div").style);var prefixedEventNames={};function getVendorPrefixedEventName(eventName){if(prefixedEventNames[eventName])return prefixedEventNames[eventName];var prefixMap=vendorPrefixes[eventName];if(prefixMap)for(var stylePropList=Object.keys(prefixMap),len=stylePropList.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;cancelNextFrame();var nextFrameId=(0,raf.Z)(function(){delay<=1?callback({isCanceled:function(){return nextFrameId!==nextFrameRef.current}}):nextFrame(callback,delay-1)});nextFrameRef.current=nextFrameId},cancelNextFrame]},useIsomorphicLayoutEffect=(0,canUseDom.Z)()?react.useLayoutEffect:react.useEffect,STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,"end"];function isActive(step){return step===STEP_ACTIVE||"end"===step}var useStepQueue=function(status,callback){var _useState=(0,useState.Z)(STEP_NONE),_useState2=(0,slicedToArray.Z)(_useState,2),step=_useState2[0],setStep=_useState2[1],_useNextFrame=useNextFrame(),_useNextFrame2=(0,slicedToArray.Z)(_useNextFrame,2),nextFrame=_useNextFrame2[0],cancelNextFrame=_useNextFrame2[1];return useIsomorphicLayoutEffect(function(){if(step!==STEP_NONE&&"end"!==step){var nextStep=STEP_QUEUE[STEP_QUEUE.indexOf(step)+1],result=callback(step);!1===result?setStep(nextStep,!0):nextFrame(function(info){function doNext(){info.isCanceled()||setStep(nextStep,!0)}!0===result?doNext():Promise.resolve(result).then(doNext)})}},[status,step]),react.useEffect(function(){return function(){cancelNextFrame()}},[]),[function(){setStep(STEP_PREPARE,!0)},step]},useDomMotionEvents=function(callback){var cacheElementRef=(0,react.useRef)(),callbackRef=(0,react.useRef)(callback);callbackRef.current=callback;var onInternalMotionEnd=react.useCallback(function(event){callbackRef.current(event)},[]);function removeMotionEvents(element){element&&(element.removeEventListener(transitionEndName,onInternalMotionEnd),element.removeEventListener(animationEndName,onInternalMotionEnd))}return react.useEffect(function(){return function(){removeMotionEvents(cacheElementRef.current)}},[]),[function(element){cacheElementRef.current&&cacheElementRef.current!==element&&removeMotionEvents(cacheElementRef.current),element&&element!==cacheElementRef.current&&(element.addEventListener(transitionEndName,onInternalMotionEnd),element.addEventListener(animationEndName,onInternalMotionEnd),cacheElementRef.current=element)},removeMotionEvents]},classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),DomWrapper=function(_React$Component){(0,inherits.Z)(DomWrapper,_React$Component);var _super=(0,createSuper.Z)(DomWrapper);function DomWrapper(){return(0,classCallCheck.Z)(this,DomWrapper),_super.apply(this,arguments)}return(0,createClass.Z)(DomWrapper,[{key:"render",value:function(){return this.props.children}}]),DomWrapper}(react.Component),es_CSSMotion=function(config){var transitionSupport=config;function isSupportTransition(props){return!!(props.motionName&&transitionSupport)}"object"===(0,esm_typeof.Z)(config)&&(transitionSupport=config.transitionSupport);var CSSMotion=react.forwardRef(function(props,ref){var motionChildren,_classNames,statusSuffix,_props$visible=props.visible,visible=void 0===_props$visible||_props$visible,_props$removeOnLeave=props.removeOnLeave,forceRender=props.forceRender,children=props.children,motionName=props.motionName,leavedClassName=props.leavedClassName,eventProps=props.eventProps,supportMotion=isSupportTransition(props),nodeRef=(0,react.useRef)(),wrapperNodeRef=(0,react.useRef)(),_useStatus=function(supportMotion,visible,getElement,_ref){var _ref$motionEnter=_ref.motionEnter,motionEnter=void 0===_ref$motionEnter||_ref$motionEnter,_ref$motionAppear=_ref.motionAppear,motionAppear=void 0===_ref$motionAppear||_ref$motionAppear,_ref$motionLeave=_ref.motionLeave,motionLeave=void 0===_ref$motionLeave||_ref$motionLeave,motionDeadline=_ref.motionDeadline,motionLeaveImmediately=_ref.motionLeaveImmediately,onAppearPrepare=_ref.onAppearPrepare,onEnterPrepare=_ref.onEnterPrepare,onLeavePrepare=_ref.onLeavePrepare,onAppearStart=_ref.onAppearStart,onEnterStart=_ref.onEnterStart,onLeaveStart=_ref.onLeaveStart,onAppearActive=_ref.onAppearActive,onEnterActive=_ref.onEnterActive,onLeaveActive=_ref.onLeaveActive,onAppearEnd=_ref.onAppearEnd,onEnterEnd=_ref.onEnterEnd,onLeaveEnd=_ref.onLeaveEnd,onVisibleChanged=_ref.onVisibleChanged,_useState=(0,useState.Z)(),_useState2=(0,slicedToArray.Z)(_useState,2),asyncVisible=_useState2[0],setAsyncVisible=_useState2[1],_useState3=(0,useState.Z)(STATUS_NONE),_useState4=(0,slicedToArray.Z)(_useState3,2),status=_useState4[0],setStatus=_useState4[1],_useState5=(0,useState.Z)(null),_useState6=(0,slicedToArray.Z)(_useState5,2),style=_useState6[0],setStyle=_useState6[1],mountedRef=(0,react.useRef)(!1),deadlineRef=(0,react.useRef)(null),activeRef=(0,react.useRef)(!1);function onInternalMotionEnd(event){var canEnd,element=getElement();if(!event||event.deadline||event.target===element){var currentActive=activeRef.current;status===STATUS_APPEAR&¤tActive?canEnd=null==onAppearEnd?void 0:onAppearEnd(element,event):status===STATUS_ENTER&¤tActive?canEnd=null==onEnterEnd?void 0:onEnterEnd(element,event):status===STATUS_LEAVE&¤tActive&&(canEnd=null==onLeaveEnd?void 0:onLeaveEnd(element,event)),status!==STATUS_NONE&¤tActive&&!1!==canEnd&&(setStatus(STATUS_NONE,!0),setStyle(null,!0))}}var _useDomMotionEvents=useDomMotionEvents(onInternalMotionEnd),patchMotionEvents=(0,slicedToArray.Z)(_useDomMotionEvents,1)[0],eventHandlers=react.useMemo(function(){var _ref2,_ref3,_ref4;switch(status){case STATUS_APPEAR:return _ref2={},(0,defineProperty.Z)(_ref2,STEP_PREPARE,onAppearPrepare),(0,defineProperty.Z)(_ref2,STEP_START,onAppearStart),(0,defineProperty.Z)(_ref2,STEP_ACTIVE,onAppearActive),_ref2;case STATUS_ENTER:return _ref3={},(0,defineProperty.Z)(_ref3,STEP_PREPARE,onEnterPrepare),(0,defineProperty.Z)(_ref3,STEP_START,onEnterStart),(0,defineProperty.Z)(_ref3,STEP_ACTIVE,onEnterActive),_ref3;case STATUS_LEAVE:return _ref4={},(0,defineProperty.Z)(_ref4,STEP_PREPARE,onLeavePrepare),(0,defineProperty.Z)(_ref4,STEP_START,onLeaveStart),(0,defineProperty.Z)(_ref4,STEP_ACTIVE,onLeaveActive),_ref4;default:return{}}},[status]),_useStepQueue=useStepQueue(status,function(newStep){if(newStep===STEP_PREPARE){var _eventHandlers$step,onPrepare=eventHandlers[STEP_PREPARE];return!!onPrepare&&onPrepare(getElement())}return step in eventHandlers&&setStyle((null===(_eventHandlers$step=eventHandlers[step])||void 0===_eventHandlers$step?void 0:_eventHandlers$step.call(eventHandlers,getElement(),null))||null),step===STEP_ACTIVE&&(patchMotionEvents(getElement()),motionDeadline>0&&(clearTimeout(deadlineRef.current),deadlineRef.current=setTimeout(function(){onInternalMotionEnd({deadline:!0})},motionDeadline))),!0}),_useStepQueue2=(0,slicedToArray.Z)(_useStepQueue,2),startStep=_useStepQueue2[0],step=_useStepQueue2[1],active=isActive(step);activeRef.current=active,useIsomorphicLayoutEffect(function(){setAsyncVisible(visible);var nextStatus,isMounted=mountedRef.current;mountedRef.current=!0,supportMotion&&(!isMounted&&visible&&motionAppear&&(nextStatus=STATUS_APPEAR),isMounted&&visible&&motionEnter&&(nextStatus=STATUS_ENTER),(isMounted&&!visible&&motionLeave||!isMounted&&motionLeaveImmediately&&!visible&&motionLeave)&&(nextStatus=STATUS_LEAVE),nextStatus&&(setStatus(nextStatus),startStep()))},[visible]),(0,react.useEffect)(function(){(status!==STATUS_APPEAR||motionAppear)&&(status!==STATUS_ENTER||motionEnter)&&(status!==STATUS_LEAVE||motionLeave)||setStatus(STATUS_NONE)},[motionAppear,motionEnter,motionLeave]),(0,react.useEffect)(function(){return function(){mountedRef.current=!1,clearTimeout(deadlineRef.current)}},[]);var firstMountChangeRef=react.useRef(!1);(0,react.useEffect)(function(){asyncVisible&&(firstMountChangeRef.current=!0),void 0!==asyncVisible&&status===STATUS_NONE&&((firstMountChangeRef.current||asyncVisible)&&(null==onVisibleChanged||onVisibleChanged(asyncVisible)),firstMountChangeRef.current=!0)},[asyncVisible,status]);var mergedStyle=style;return eventHandlers[STEP_PREPARE]&&step===STEP_START&&(mergedStyle=(0,objectSpread2.Z)({transition:"none"},mergedStyle)),[status,step,mergedStyle,null!=asyncVisible?asyncVisible:visible]}(supportMotion,visible,function(){try{return nodeRef.current instanceof HTMLElement?nodeRef.current:(0,findDOMNode.Z)(wrapperNodeRef.current)}catch(e){return null}},props),_useStatus2=(0,slicedToArray.Z)(_useStatus,4),status=_useStatus2[0],statusStep=_useStatus2[1],statusStyle=_useStatus2[2],mergedVisible=_useStatus2[3],renderedRef=react.useRef(mergedVisible);mergedVisible&&(renderedRef.current=!0);var setNodeRef=react.useCallback(function(node){nodeRef.current=node,(0,es_ref.mH)(ref,node)},[ref]),mergedProps=(0,objectSpread2.Z)((0,objectSpread2.Z)({},eventProps),{},{visible:visible});return children?status!==STATUS_NONE&&isSupportTransition(props)?(statusStep===STEP_PREPARE?statusSuffix="prepare":isActive(statusStep)?statusSuffix="active":statusStep===STEP_START&&(statusSuffix="start"),motionChildren=children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{className:classnames_default()(getTransitionName(motionName,status),(_classNames={},(0,defineProperty.Z)(_classNames,getTransitionName(motionName,"".concat(status,"-").concat(statusSuffix)),statusSuffix),(0,defineProperty.Z)(_classNames,motionName,"string"==typeof motionName),_classNames)),style:statusStyle}),setNodeRef)):motionChildren=mergedVisible?children((0,objectSpread2.Z)({},mergedProps),setNodeRef):!(void 0===_props$removeOnLeave||_props$removeOnLeave)&&renderedRef.current?children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{className:leavedClassName}),setNodeRef):forceRender?children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{style:{display:"none"}}),setNodeRef):null:motionChildren=null,react.isValidElement(motionChildren)&&(0,es_ref.Yr)(motionChildren)&&!motionChildren.ref&&(motionChildren=react.cloneElement(motionChildren,{ref:setNodeRef})),react.createElement(DomWrapper,{ref:wrapperNodeRef},motionChildren)});return CSSMotion.displayName="CSSMotion",CSSMotion}(supportTransition),esm_extends=__webpack_require__(87462),objectWithoutProperties=__webpack_require__(45987),STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(key){var keyObj;return keyObj=key&&"object"===(0,esm_typeof.Z)(key)&&"key"in key?key:{key:key},(0,objectSpread2.Z)((0,objectSpread2.Z)({},keyObj),{},{key:String(keyObj.key)})}function parseKeys(){var keys=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return keys.map(wrapKeyToObject)}var _excluded=["component","children","onVisibleChanged","onAllRemoved"],_excluded2=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],CSSMotionList=function(transitionSupport){var CSSMotion=arguments.length>1&&void 0!==arguments[1]?arguments[1]:es_CSSMotion,CSSMotionList=function(_React$Component){(0,inherits.Z)(CSSMotionList,_React$Component);var _super=(0,createSuper.Z)(CSSMotionList);function CSSMotionList(){var _this;(0,classCallCheck.Z)(this,CSSMotionList);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).state={keyEntities:[]},_this.removeKey=function(removeKey){var nextKeyEntities=_this.state.keyEntities.map(function(entity){return entity.key!==removeKey?entity:(0,objectSpread2.Z)((0,objectSpread2.Z)({},entity),{},{status:STATUS_REMOVED})});return _this.setState({keyEntities:nextKeyEntities}),nextKeyEntities.filter(function(_ref){return _ref.status!==STATUS_REMOVED}).length},_this}return(0,createClass.Z)(CSSMotionList,[{key:"render",value:function(){var _this2=this,keyEntities=this.state.keyEntities,_this$props=this.props,component=_this$props.component,children=_this$props.children,_onVisibleChanged=_this$props.onVisibleChanged,onAllRemoved=_this$props.onAllRemoved,restProps=(0,objectWithoutProperties.Z)(_this$props,_excluded),Component=component||react.Fragment,motionProps={};return MOTION_PROP_NAMES.forEach(function(prop){motionProps[prop]=restProps[prop],delete restProps[prop]}),delete restProps.keys,react.createElement(Component,restProps,keyEntities.map(function(_ref2){var status=_ref2.status,eventProps=(0,objectWithoutProperties.Z)(_ref2,_excluded2);return react.createElement(CSSMotion,(0,esm_extends.Z)({},motionProps,{key:eventProps.key,visible:"add"===status||status===STATUS_KEEP,eventProps:eventProps,onVisibleChanged:function(changedVisible){null==_onVisibleChanged||_onVisibleChanged(changedVisible,{key:eventProps.key}),!changedVisible&&0===_this2.removeKey(eventProps.key)&&onAllRemoved&&onAllRemoved()}}),children)}))}}],[{key:"getDerivedStateFromProps",value:function(_ref3,_ref4){var keys=_ref3.keys,keyEntities=_ref4.keyEntities;return{keyEntities:(function(){var prevKeys=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],currentKeys=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],list=[],currentIndex=0,currentLen=currentKeys.length,prevKeyObjects=parseKeys(prevKeys),currentKeyObjects=parseKeys(currentKeys);prevKeyObjects.forEach(function(keyObj){for(var hit=!1,i=currentIndex;i1}).forEach(function(matchKey){(list=list.filter(function(_ref2){var key=_ref2.key,status=_ref2.status;return key!==matchKey||status!==STATUS_REMOVE})).forEach(function(node){node.key===matchKey&&(node.status=STATUS_KEEP)})}),list})(keyEntities,parseKeys(keys)).filter(function(entity){var prevEntity=keyEntities.find(function(_ref5){var key=_ref5.key;return entity.key===key});return!prevEntity||prevEntity.status!==STATUS_REMOVED||entity.status!==STATUS_REMOVE})}}}]),CSSMotionList}(react.Component);return CSSMotionList.defaultProps={component:"div"},CSSMotionList}(supportTransition),es=es_CSSMotion},51784:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Notice}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(87462),_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4942),_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(15671),_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(43144),_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(60136),_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(33643),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(73935),classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),Notice=function(_Component){(0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__.Z)(Notice,_Component);var _super=(0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__.Z)(Notice);function Notice(){var _this;(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.Z)(this,Notice);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).closeTimer=null,_this.close=function(e){e&&e.stopPropagation(),_this.clearCloseTimer();var _this$props=_this.props,onClose=_this$props.onClose,noticeKey=_this$props.noticeKey;onClose&&onClose(noticeKey)},_this.startCloseTimer=function(){_this.props.duration&&(_this.closeTimer=window.setTimeout(function(){_this.close()},1e3*_this.props.duration))},_this.clearCloseTimer=function(){_this.closeTimer&&(clearTimeout(_this.closeTimer),_this.closeTimer=null)},_this}return(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__.Z)(Notice,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(prevProps){(this.props.duration!==prevProps.duration||this.props.updateMark!==prevProps.updateMark||this.props.visible!==prevProps.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var _this2=this,_this$props2=this.props,prefixCls=_this$props2.prefixCls,className=_this$props2.className,closable=_this$props2.closable,closeIcon=_this$props2.closeIcon,style=_this$props2.style,onClick=_this$props2.onClick,children=_this$props2.children,holder=_this$props2.holder,componentClass="".concat(prefixCls,"-notice"),dataOrAriaAttributeProps=Object.keys(this.props).reduce(function(acc,key){return("data-"===key.substr(0,5)||"aria-"===key.substr(0,5)||"role"===key)&&(acc[key]=_this2.props[key]),acc},{}),node=react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__.Z)({className:classnames__WEBPACK_IMPORTED_MODULE_2___default()(componentClass,className,(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__.Z)({},"".concat(componentClass,"-closable"),closable)),style:style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:onClick},dataOrAriaAttributeProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"".concat(componentClass,"-content")},children),closable?react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(componentClass,"-close")},closeIcon||react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"".concat(componentClass,"-close-x")})):null);return holder?react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(node,holder):node}}]),Notice}(react__WEBPACK_IMPORTED_MODULE_0__.Component);Notice.defaultProps={onClose:function(){},duration:1.5}},91127:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return rc_notification_es}});var objectWithoutProperties=__webpack_require__(45987),esm_extends=__webpack_require__(87462),objectSpread2=__webpack_require__(1413),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),react=__webpack_require__(67294),render=__webpack_require__(38135),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),es=__webpack_require__(62874),Notice=__webpack_require__(51784),es_useNotification=__webpack_require__(51550),_excluded=["getContainer"],seed=0,now=Date.now();function getUuid(){var id=seed;return seed+=1,"rcNotification_".concat(now,"_").concat(id)}var Notification=function(_Component){(0,inherits.Z)(Notification,_Component);var _super=(0,createSuper.Z)(Notification);function Notification(){var _this;(0,classCallCheck.Z)(this,Notification);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).state={notices:[]},_this.hookRefs=new Map,_this.add=function(originNotice,holderCallback){var _originNotice$key,key=null!==(_originNotice$key=originNotice.key)&&void 0!==_originNotice$key?_originNotice$key:getUuid(),notice=(0,objectSpread2.Z)((0,objectSpread2.Z)({},originNotice),{},{key:key}),maxCount=_this.props.maxCount;_this.setState(function(previousState){var notices=previousState.notices,noticeIndex=notices.map(function(v){return v.notice.key}).indexOf(key),updatedNotices=notices.concat();return -1!==noticeIndex?updatedNotices.splice(noticeIndex,1,{notice:notice,holderCallback:holderCallback}):(maxCount&¬ices.length>=maxCount&&(notice.key=updatedNotices[0].notice.key,notice.updateMark=getUuid(),notice.userPassKey=key,updatedNotices.shift()),updatedNotices.push({notice:notice,holderCallback:holderCallback})),{notices:updatedNotices}})},_this.remove=function(removeKey){_this.setState(function(_ref){return{notices:_ref.notices.filter(function(_ref2){var _ref2$notice=_ref2.notice,key=_ref2$notice.key,userPassKey=_ref2$notice.userPassKey;return(null!=userPassKey?userPassKey:key)!==removeKey})}})},_this.noticePropsMap={},_this}return(0,createClass.Z)(Notification,[{key:"getTransitionName",value:function(){var _this$props=this.props,prefixCls=_this$props.prefixCls,animation=_this$props.animation,transitionName=this.props.transitionName;return!transitionName&&animation&&(transitionName="".concat(prefixCls,"-").concat(animation)),transitionName}},{key:"render",value:function(){var _this2=this,notices=this.state.notices,_this$props2=this.props,prefixCls=_this$props2.prefixCls,className=_this$props2.className,closeIcon=_this$props2.closeIcon,style=_this$props2.style,noticeKeys=[];return notices.forEach(function(_ref3,index){var notice=_ref3.notice,holderCallback=_ref3.holderCallback,updateMark=index===notices.length-1?notice.updateMark:void 0,key=notice.key,userPassKey=notice.userPassKey,noticeProps=(0,objectSpread2.Z)((0,objectSpread2.Z)((0,objectSpread2.Z)({prefixCls:prefixCls,closeIcon:closeIcon},notice),notice.props),{},{key:key,noticeKey:userPassKey||key,updateMark:updateMark,onClose:function(noticeKey){var _notice$onClose;_this2.remove(noticeKey),null===(_notice$onClose=notice.onClose)||void 0===_notice$onClose||_notice$onClose.call(notice)},onClick:notice.onClick,children:notice.content});noticeKeys.push(key),_this2.noticePropsMap[key]={props:noticeProps,holderCallback:holderCallback}}),react.createElement("div",{className:classnames_default()(prefixCls,className),style:style},react.createElement(es.V,{keys:noticeKeys,motionName:this.getTransitionName(),onVisibleChanged:function(changedVisible,_ref4){var key=_ref4.key;changedVisible||delete _this2.noticePropsMap[key]}},function(_ref5){var key=_ref5.key,motionClassName=_ref5.className,motionStyle=_ref5.style,visible=_ref5.visible,_this2$noticePropsMap=_this2.noticePropsMap[key],noticeProps=_this2$noticePropsMap.props,holderCallback=_this2$noticePropsMap.holderCallback;return holderCallback?react.createElement("div",{key:key,className:classnames_default()(motionClassName,"".concat(prefixCls,"-hook-holder")),style:(0,objectSpread2.Z)({},motionStyle),ref:function(div){void 0!==key&&(div?(_this2.hookRefs.set(key,div),holderCallback(div,noticeProps)):_this2.hookRefs.delete(key))}}):react.createElement(Notice.Z,(0,esm_extends.Z)({},noticeProps,{className:classnames_default()(motionClassName,null==noticeProps?void 0:noticeProps.className),style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),null==noticeProps?void 0:noticeProps.style),visible:visible}))}))}}]),Notification}(react.Component);Notification.newInstance=void 0,Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(properties,callback){var _ref6=properties||{},getContainer=_ref6.getContainer,props=(0,objectWithoutProperties.Z)(_ref6,_excluded),div=document.createElement("div");getContainer?getContainer().appendChild(div):document.body.appendChild(div);var called=!1;(0,render.s)(react.createElement(Notification,(0,esm_extends.Z)({},props,{ref:function(notification){called||(called=!0,callback({notice:function(noticeProps){notification.add(noticeProps)},removeNotice:function(key){notification.remove(key)},component:notification,destroy:function(){(0,render.v)(div),div.parentNode&&div.parentNode.removeChild(div)},useNotification:function(){return(0,es_useNotification.Z)(notification)}}))}})),div)};var rc_notification_es=Notification},51550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useNotification}});var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(74902),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(87462),_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_Notice__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(51784);function useNotification(notificationInstance){var createdRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState([]),_React$useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__.Z)(_React$useState,2),elements=_React$useState2[0],setElements=_React$useState2[1];return[function(noticeProps){var firstMount=!0;notificationInstance.add(noticeProps,function(div,props){var key=props.key;if(div&&(!createdRef.current[key]||firstMount)){var noticeEle=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Notice__WEBPACK_IMPORTED_MODULE_1__.Z,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},props,{holder:div}));createdRef.current[key]=noticeEle,setElements(function(originElements){var index=originElements.findIndex(function(ele){return ele.key===props.key});if(-1===index)return[].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__.Z)(originElements),[noticeEle]);var cloneList=(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__.Z)(originElements);return cloneList[index]=noticeEle,cloneList})}firstMount=!1})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,elements)]}},34243:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return rc_overflow_es}});var esm_extends=__webpack_require__(87462),objectSpread2=__webpack_require__(1413),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),es=__webpack_require__(48555),useLayoutEffect=__webpack_require__(8410),_excluded=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0,Item=react.forwardRef(function(props,ref){var overflowStyle,prefixCls=props.prefixCls,invalidate=props.invalidate,item=props.item,renderItem=props.renderItem,responsive=props.responsive,responsiveDisabled=props.responsiveDisabled,registerSize=props.registerSize,itemKey=props.itemKey,className=props.className,style=props.style,children=props.children,display=props.display,order=props.order,_props$component=props.component,restProps=(0,objectWithoutProperties.Z)(props,_excluded),mergedHidden=responsive&&!display;react.useEffect(function(){return function(){registerSize(itemKey,null)}},[]);var childNode=renderItem&&item!==UNDEFINED?renderItem(item):children;invalidate||(overflowStyle={opacity:mergedHidden?0:1,height:mergedHidden?0:UNDEFINED,overflowY:mergedHidden?"hidden":UNDEFINED,order:responsive?order:UNDEFINED,pointerEvents:mergedHidden?"none":UNDEFINED,position:mergedHidden?"absolute":UNDEFINED});var overflowProps={};mergedHidden&&(overflowProps["aria-hidden"]=!0);var itemNode=react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({className:classnames_default()(!invalidate&&prefixCls,className),style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},overflowStyle),style)},overflowProps,restProps,{ref:ref}),childNode);return responsive&&(itemNode=react.createElement(es.default,{onResize:function(_ref){registerSize(itemKey,_ref.offsetWidth)},disabled:responsiveDisabled},itemNode)),itemNode});Item.displayName="Item";var raf=__webpack_require__(75164),useState=__webpack_require__(30470),RawItem_excluded=["component"],_excluded2=["className"],_excluded3=["className"],RawItem=react.forwardRef(function(props,ref){var context=react.useContext(OverflowContext);if(!context){var _props$component=props.component,_restProps=(0,objectWithoutProperties.Z)(props,RawItem_excluded);return react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({},_restProps,{ref:ref}))}var contextClassName=context.className,restContext=(0,objectWithoutProperties.Z)(context,_excluded2),className=props.className,restProps=(0,objectWithoutProperties.Z)(props,_excluded3);return react.createElement(OverflowContext.Provider,{value:null},react.createElement(Item,(0,esm_extends.Z)({ref:ref,className:classnames_default()(contextClassName,className)},restContext,restProps)))});RawItem.displayName="RawItem";var Overflow_excluded=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OverflowContext=react.createContext(null),RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(omittedItems){return"+ ".concat(omittedItems.length," ...")}var ForwardOverflow=react.forwardRef(function(props,ref){var _useState,forceUpdate,statesRef,walkingIndex,beforeFrameId,restNode,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-overflow":_props$prefixCls,_props$data=props.data,data=void 0===_props$data?[]:_props$data,renderItem=props.renderItem,renderRawItem=props.renderRawItem,itemKey=props.itemKey,_props$itemWidth=props.itemWidth,itemWidth=void 0===_props$itemWidth?10:_props$itemWidth,ssr=props.ssr,style=props.style,className=props.className,maxCount=props.maxCount,renderRest=props.renderRest,renderRawRest=props.renderRawRest,suffix=props.suffix,_props$component=props.component,itemComponent=props.itemComponent,onVisibleChange=props.onVisibleChange,restProps=(0,objectWithoutProperties.Z)(props,Overflow_excluded),createUseState=(_useState=(0,useState.Z)({}),forceUpdate=(0,slicedToArray.Z)(_useState,2)[1],statesRef=(0,react.useRef)([]),walkingIndex=0,beforeFrameId=0,function(defaultValue){var myIndex=walkingIndex;return walkingIndex+=1,statesRef.current.lengthmaxCount,mergedData=(0,react.useMemo)(function(){var items=data;return shouldResponsive?items=null===containerWidth&&fullySSR?data:data.slice(0,Math.min(data.length,mergedContainerWidth/itemWidth)):"number"==typeof maxCount&&(items=data.slice(0,maxCount)),items},[data,itemWidth,containerWidth,maxCount,shouldResponsive]),omittedItems=(0,react.useMemo)(function(){return shouldResponsive?data.slice(mergedDisplayCount+1):data.slice(mergedData.length)},[data,mergedData,shouldResponsive,mergedDisplayCount]),getKey=(0,react.useCallback)(function(item,index){var _ref;return"function"==typeof itemKey?itemKey(item):null!==(_ref=itemKey&&(null==item?void 0:item[itemKey]))&&void 0!==_ref?_ref:index},[itemKey]),mergedRenderItem=(0,react.useCallback)(renderItem||function(item){return item},[renderItem]);function updateDisplayCount(count,suffixFixedStartVal,notReady){(displayCount!==count||void 0!==suffixFixedStartVal&&suffixFixedStartVal!==suffixFixedStart)&&(setDisplayCount(count),notReady||(setRestReady(countmergedContainerWidth){updateDisplayCount(i-1,totalWidth-currentItemWidth-suffixWidth+restWidth);break}}suffix&&getItemWidth(0)+suffixWidth>mergedContainerWidth&&setSuffixFixedStart(null)}},[mergedContainerWidth,itemWidths,restWidth,suffixWidth,getKey,mergedData]);var displayRest=restReady&&!!omittedItems.length,suffixStyle={};null!==suffixFixedStart&&shouldResponsive&&(suffixStyle={position:"absolute",left:suffixFixedStart,top:0});var itemSharedProps={prefixCls:itemPrefixCls,responsive:shouldResponsive,component:itemComponent,invalidate:invalidate},internalRenderItemNode=renderRawItem?function(item,index){var key=getKey(item,index);return react.createElement(OverflowContext.Provider,{key:key,value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},itemSharedProps),{},{order:index,item:item,itemKey:key,registerSize:registerSize,display:index<=mergedDisplayCount})},renderRawItem(item,index))}:function(item,index){var key=getKey(item,index);return react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,{order:index,key:key,item:item,renderItem:mergedRenderItem,itemKey:key,registerSize:registerSize,display:index<=mergedDisplayCount}))},restContextProps={order:displayRest?mergedDisplayCount:Number.MAX_SAFE_INTEGER,className:"".concat(itemPrefixCls,"-rest"),registerSize:function(_,width){setRestWidth(width),setPrevRestWidth(restWidth)},display:displayRest};if(renderRawRest)renderRawRest&&(restNode=react.createElement(OverflowContext.Provider,{value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},itemSharedProps),restContextProps)},renderRawRest(omittedItems)));else{var mergedRenderRest=renderRest||defaultRenderRest;restNode=react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,restContextProps),"function"==typeof mergedRenderRest?mergedRenderRest(omittedItems):mergedRenderRest)}var overflowNode=react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({className:classnames_default()(!invalidate&&prefixCls,className),style:style,ref:ref},restProps),mergedData.map(internalRenderItemNode),showRest?restNode:null,suffix&&react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,{responsive:isResponsive,responsiveDisabled:!shouldResponsive,order:mergedDisplayCount,className:"".concat(itemPrefixCls,"-suffix"),registerSize:function(_,width){setSuffixWidth(width)},display:!0,style:suffixStyle}),suffix));return isResponsive&&(overflowNode=react.createElement(es.default,{onResize:function(_,element){setContainerWidth(element.clientWidth)},disabled:!shouldResponsive},overflowNode)),overflowNode});ForwardOverflow.displayName="Overflow",ForwardOverflow.Item=RawItem,ForwardOverflow.RESPONSIVE=RESPONSIVE,ForwardOverflow.INVALIDATE=INVALIDATE;var rc_overflow_es=ForwardOverflow},62906:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},48555:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return es}});var esm_extends=__webpack_require__(87462),react=__webpack_require__(67294),toArray=__webpack_require__(50344);__webpack_require__(80334);var objectSpread2=__webpack_require__(1413),ref=__webpack_require__(42550),findDOMNode=__webpack_require__(34203),ResizeObserver_es=__webpack_require__(91033),elementListeners=new Map,resizeObserver=new ResizeObserver_es.Z(function(entities){entities.forEach(function(entity){var _elementListeners$get,target=entity.target;null===(_elementListeners$get=elementListeners.get(target))||void 0===_elementListeners$get||_elementListeners$get.forEach(function(listener){return listener(target)})})}),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),DomWrapper=function(_React$Component){(0,inherits.Z)(DomWrapper,_React$Component);var _super=(0,createSuper.Z)(DomWrapper);function DomWrapper(){return(0,classCallCheck.Z)(this,DomWrapper),_super.apply(this,arguments)}return(0,createClass.Z)(DomWrapper,[{key:"render",value:function(){return this.props.children}}]),DomWrapper}(react.Component),CollectionContext=react.createContext(null);function SingleObserver(props){var children=props.children,disabled=props.disabled,elementRef=react.useRef(null),wrapperRef=react.useRef(null),onCollectionResize=react.useContext(CollectionContext),isRenderProps="function"==typeof children,mergedChildren=isRenderProps?children(elementRef):children,sizeRef=react.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),canRef=!isRenderProps&&react.isValidElement(mergedChildren)&&(0,ref.Yr)(mergedChildren),originRef=canRef?mergedChildren.ref:null,mergedRef=react.useMemo(function(){return(0,ref.sQ)(originRef,elementRef)},[originRef,elementRef]),propsRef=react.useRef(props);propsRef.current=props;var onInternalResize=react.useCallback(function(target){var _propsRef$current=propsRef.current,onResize=_propsRef$current.onResize,data=_propsRef$current.data,_target$getBoundingCl=target.getBoundingClientRect(),width=_target$getBoundingCl.width,height=_target$getBoundingCl.height,offsetWidth=target.offsetWidth,offsetHeight=target.offsetHeight,fixedWidth=Math.floor(width),fixedHeight=Math.floor(height);if(sizeRef.current.width!==fixedWidth||sizeRef.current.height!==fixedHeight||sizeRef.current.offsetWidth!==offsetWidth||sizeRef.current.offsetHeight!==offsetHeight){var size={width:fixedWidth,height:fixedHeight,offsetWidth:offsetWidth,offsetHeight:offsetHeight};sizeRef.current=size;var sizeInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},size),{},{offsetWidth:offsetWidth===Math.round(width)?width:offsetWidth,offsetHeight:offsetHeight===Math.round(height)?height:offsetHeight});null==onCollectionResize||onCollectionResize(sizeInfo,target,data),onResize&&Promise.resolve().then(function(){onResize(sizeInfo,target)})}},[]);return react.useEffect(function(){var currentElement=(0,findDOMNode.Z)(elementRef.current)||(0,findDOMNode.Z)(wrapperRef.current);return currentElement&&!disabled&&(elementListeners.has(currentElement)||(elementListeners.set(currentElement,new Set),resizeObserver.observe(currentElement)),elementListeners.get(currentElement).add(onInternalResize)),function(){elementListeners.has(currentElement)&&(elementListeners.get(currentElement).delete(onInternalResize),elementListeners.get(currentElement).size||(resizeObserver.unobserve(currentElement),elementListeners.delete(currentElement)))}},[elementRef.current,disabled]),react.createElement(DomWrapper,{ref:wrapperRef},canRef?react.cloneElement(mergedChildren,{ref:mergedRef}):mergedChildren)}function ResizeObserver(props){var children=props.children;return("function"==typeof children?[children]:(0,toArray.Z)(children)).map(function(child,index){var key=(null==child?void 0:child.key)||"".concat("rc-observer-key","-").concat(index);return react.createElement(SingleObserver,(0,esm_extends.Z)({},props,{key:key}),child)})}ResizeObserver.Collection=function(_ref){var children=_ref.children,onBatchResize=_ref.onBatchResize,resizeIdRef=react.useRef(0),resizeInfosRef=react.useRef([]),onCollectionResize=react.useContext(CollectionContext),onResize=react.useCallback(function(size,element,data){resizeIdRef.current+=1;var currentId=resizeIdRef.current;resizeInfosRef.current.push({size:size,element:element,data:data}),Promise.resolve().then(function(){currentId===resizeIdRef.current&&(null==onBatchResize||onBatchResize(resizeInfosRef.current),resizeInfosRef.current=[])}),null==onCollectionResize||onCollectionResize(size,element,data)},[onBatchResize,onCollectionResize]);return react.createElement(CollectionContext.Provider,{value:onResize},children)};var es=ResizeObserver},57239:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ResizableTextArea:function(){return es_ResizableTextArea},default:function(){return rc_textarea_es}});var hiddenTextarea,esm_extends=__webpack_require__(87462),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),react=__webpack_require__(67294),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),esm_typeof=__webpack_require__(71002),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),es=__webpack_require__(48555),useLayoutEffect=__webpack_require__(8410),raf=__webpack_require__(75164),useMergedState=__webpack_require__(21770),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],computedStyleCache={},_excluded=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],es_ResizableTextArea=react.forwardRef(function(props,ref){var _props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-textarea":_props$prefixCls,defaultValue=(props.onPressEnter,props.defaultValue),value=props.value,autoSize=props.autoSize,onResize=props.onResize,className=props.className,style=props.style,disabled=props.disabled,onChange=props.onChange,restProps=(props.onInternalAutoSize,(0,objectWithoutProperties.Z)(props,_excluded)),_useMergedState=(0,useMergedState.Z)(defaultValue,{value:value,postState:function(val){return null!=val?val:""}}),_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2),mergedValue=_useMergedState2[0],setMergedValue=_useMergedState2[1],textareaRef=react.useRef();react.useImperativeHandle(ref,function(){return{textArea:textareaRef.current}});var _React$useMemo=react.useMemo(function(){return autoSize&&"object"===(0,esm_typeof.Z)(autoSize)?[autoSize.minRows,autoSize.maxRows]:[]},[autoSize]),_React$useMemo2=(0,slicedToArray.Z)(_React$useMemo,2),minRows=_React$useMemo2[0],maxRows=_React$useMemo2[1],needAutoSize=!!autoSize,fixFirefoxAutoScroll=function(){try{if(document.activeElement===textareaRef.current){var _textareaRef$current=textareaRef.current,selectionStart=_textareaRef$current.selectionStart,selectionEnd=_textareaRef$current.selectionEnd,scrollTop=_textareaRef$current.scrollTop;textareaRef.current.setSelectionRange(selectionStart,selectionEnd),textareaRef.current.scrollTop=scrollTop}}catch(e){}},_React$useState=react.useState(2),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),resizeState=_React$useState2[0],setResizeState=_React$useState2[1],_React$useState3=react.useState(),_React$useState4=(0,slicedToArray.Z)(_React$useState3,2),autoSizeStyle=_React$useState4[0],setAutoSizeStyle=_React$useState4[1],startResize=function(){setResizeState(0)};(0,useLayoutEffect.Z)(function(){needAutoSize&&startResize()},[value,minRows,maxRows,needAutoSize]),(0,useLayoutEffect.Z)(function(){if(0===resizeState)setResizeState(1);else if(1===resizeState){var textareaStyles=function(uiTextNode){var overflowY,useCache=arguments.length>1&&void 0!==arguments[1]&&arguments[1],minRows=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,maxRows=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),uiTextNode.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",uiTextNode.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var _calculateNodeStyling=function(node){var useCache=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nodeRef=node.getAttribute("id")||node.getAttribute("data-reactid")||node.getAttribute("name");if(useCache&&computedStyleCache[nodeRef])return computedStyleCache[nodeRef];var style=window.getComputedStyle(node),boxSizing=style.getPropertyValue("box-sizing")||style.getPropertyValue("-moz-box-sizing")||style.getPropertyValue("-webkit-box-sizing"),paddingSize=parseFloat(style.getPropertyValue("padding-bottom"))+parseFloat(style.getPropertyValue("padding-top")),borderSize=parseFloat(style.getPropertyValue("border-bottom-width"))+parseFloat(style.getPropertyValue("border-top-width")),nodeInfo={sizingStyle:SIZING_STYLE.map(function(name){return"".concat(name,":").concat(style.getPropertyValue(name))}).join(";"),paddingSize:paddingSize,borderSize:borderSize,boxSizing:boxSizing};return useCache&&nodeRef&&(computedStyleCache[nodeRef]=nodeInfo),nodeInfo}(uiTextNode,useCache),paddingSize=_calculateNodeStyling.paddingSize,borderSize=_calculateNodeStyling.borderSize,boxSizing=_calculateNodeStyling.boxSizing,sizingStyle=_calculateNodeStyling.sizingStyle;hiddenTextarea.setAttribute("style","".concat(sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),hiddenTextarea.value=uiTextNode.value||uiTextNode.placeholder||"";var minHeight=void 0,maxHeight=void 0,height=hiddenTextarea.scrollHeight;if("border-box"===boxSizing?height+=borderSize:"content-box"===boxSizing&&(height-=paddingSize),null!==minRows||null!==maxRows){hiddenTextarea.value=" ";var singleRowHeight=hiddenTextarea.scrollHeight-paddingSize;null!==minRows&&(minHeight=singleRowHeight*minRows,"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height)),null!==maxRows&&(maxHeight=singleRowHeight*maxRows,"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),overflowY=height>maxHeight?"":"hidden",height=Math.min(maxHeight,height))}var style={height:height,overflowY:overflowY,resize:"none"};return minHeight&&(style.minHeight=minHeight),maxHeight&&(style.maxHeight=maxHeight),style}(textareaRef.current,!1,minRows,maxRows);setResizeState(2),setAutoSizeStyle(textareaStyles)}else fixFirefoxAutoScroll()},[resizeState]);var resizeRafRef=react.useRef(),cleanRaf=function(){raf.Z.cancel(resizeRafRef.current)};react.useEffect(function(){return cleanRaf},[]);var mergedStyle=(0,objectSpread2.Z)((0,objectSpread2.Z)({},style),needAutoSize?autoSizeStyle:null);return(0===resizeState||1===resizeState)&&(mergedStyle.overflowY="hidden",mergedStyle.overflowX="hidden"),react.createElement(es.default,{onResize:function(size){2===resizeState&&(null==onResize||onResize(size),autoSize&&(cleanRaf(),resizeRafRef.current=(0,raf.Z)(function(){startResize()})))},disabled:!(autoSize||onResize)},react.createElement("textarea",(0,esm_extends.Z)({},restProps,{ref:textareaRef,style:mergedStyle,className:classnames_default()(prefixCls,className,(0,defineProperty.Z)({},"".concat(prefixCls,"-disabled"),disabled)),disabled:disabled,value:mergedValue,onChange:function(event){setMergedValue(event.target.value),null==onChange||onChange(event)}})))}),rc_textarea_es=function(_React$Component){(0,inherits.Z)(TextArea,_React$Component);var _super=(0,createSuper.Z)(TextArea);function TextArea(props){(0,classCallCheck.Z)(this,TextArea),(_this=_super.call(this,props)).resizableTextArea=void 0,_this.focus=function(){_this.resizableTextArea.textArea.focus()},_this.saveTextArea=function(resizableTextArea){_this.resizableTextArea=resizableTextArea},_this.handleChange=function(e){var onChange=_this.props.onChange;_this.setValue(e.target.value),onChange&&onChange(e)},_this.handleKeyDown=function(e){var _this$props=_this.props,onPressEnter=_this$props.onPressEnter,onKeyDown=_this$props.onKeyDown;13===e.keyCode&&onPressEnter&&onPressEnter(e),onKeyDown&&onKeyDown(e)};var _this,value=void 0===props.value||null===props.value?props.defaultValue:props.value;return _this.state={value:value},_this}return(0,createClass.Z)(TextArea,[{key:"setValue",value:function(value,callback){"value"in this.props||this.setState({value:value},callback)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return react.createElement(es_ResizableTextArea,(0,esm_extends.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(nextProps){return"value"in nextProps?{value:nextProps.value}:null}}]),TextArea}(react.Component)},43763:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Popup:function(){return Popup},default:function(){return rc_tooltip_es}});var esm_extends=__webpack_require__(87462),esm_typeof=__webpack_require__(71002),objectSpread2=__webpack_require__(1413),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),es=__webpack_require__(81263),placements=__webpack_require__(43159),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames);function Popup(props){var showArrow=props.showArrow,arrowContent=props.arrowContent,children=props.children,prefixCls=props.prefixCls,id=props.id,overlayInnerStyle=props.overlayInnerStyle,className=props.className,style=props.style;return react.createElement("div",{className:classnames_default()("".concat(prefixCls,"-content"),className),style:style},!1!==showArrow&&react.createElement("div",{className:"".concat(prefixCls,"-arrow"),key:"arrow"},arrowContent),react.createElement("div",{className:"".concat(prefixCls,"-inner"),id:id,role:"tooltip",style:overlayInnerStyle},"function"==typeof children?children():children))}var rc_tooltip_es=(0,react.forwardRef)(function(props,ref){var overlayClassName=props.overlayClassName,_props$trigger=props.trigger,_props$mouseEnterDela=props.mouseEnterDelay,_props$mouseLeaveDela=props.mouseLeaveDelay,overlayStyle=props.overlayStyle,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-tooltip":_props$prefixCls,children=props.children,onVisibleChange=props.onVisibleChange,afterVisibleChange=props.afterVisibleChange,transitionName=props.transitionName,animation=props.animation,motion=props.motion,_props$placement=props.placement,_props$align=props.align,_props$destroyTooltip=props.destroyTooltipOnHide,destroyTooltipOnHide=void 0!==_props$destroyTooltip&&_props$destroyTooltip,defaultVisible=props.defaultVisible,getTooltipContainer=props.getTooltipContainer,overlayInnerStyle=props.overlayInnerStyle,arrowContent=props.arrowContent,overlay=props.overlay,id=props.id,showArrow=props.showArrow,restProps=(0,objectWithoutProperties.Z)(props,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),domRef=(0,react.useRef)(null);(0,react.useImperativeHandle)(ref,function(){return domRef.current});var extraProps=(0,objectSpread2.Z)({},restProps);"visible"in props&&(extraProps.popupVisible=props.visible);var destroyTooltip=!1,autoDestroy=!1;if("boolean"==typeof destroyTooltipOnHide)destroyTooltip=destroyTooltipOnHide;else if(destroyTooltipOnHide&&"object"===(0,esm_typeof.Z)(destroyTooltipOnHide)){var keepParent=destroyTooltipOnHide.keepParent;destroyTooltip=!0===keepParent,autoDestroy=!1===keepParent}return react.createElement(es.Z,(0,esm_extends.Z)({popupClassName:overlayClassName,prefixCls:prefixCls,popup:function(){return react.createElement(Popup,{showArrow:showArrow,arrowContent:arrowContent,key:"content",prefixCls:prefixCls,id:id,overlayInnerStyle:overlayInnerStyle},overlay)},action:void 0===_props$trigger?["hover"]:_props$trigger,builtinPlacements:placements.C,popupPlacement:void 0===_props$placement?"right":_props$placement,ref:domRef,popupAlign:void 0===_props$align?{}:_props$align,getPopupContainer:getTooltipContainer,onPopupVisibleChange:onVisibleChange,afterPopupVisibleChange:afterVisibleChange,popupTransitionName:transitionName,popupAnimation:animation,popupMotion:motion,defaultPopupVisible:defaultVisible,destroyPopupOnHide:destroyTooltip,autoDestroy:autoDestroy,mouseLeaveDelay:void 0===_props$mouseLeaveDela?.1:_props$mouseLeaveDela,popupStyle:overlayStyle,mouseEnterDelay:void 0===_props$mouseEnterDela?0:_props$mouseEnterDela},extraProps),children)})},43159:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return placements}});var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset}}},81263:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return rc_trigger_es}});var Trigger,vendorPrefix,getComputedStyleX,objectSpread2=__webpack_require__(1413),esm_extends=__webpack_require__(87462),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),assertThisInitialized=__webpack_require__(97326),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),defineProperty=__webpack_require__(4942),react=__webpack_require__(67294),react_dom=__webpack_require__(73935),raf=__webpack_require__(75164),contains=__webpack_require__(94999),findDOMNode=__webpack_require__(34203),es_ref=__webpack_require__(42550),addEventListener=__webpack_require__(64019),canUseDom=__webpack_require__(98924),Portal=(0,react.forwardRef)(function(props,ref){var didUpdate=props.didUpdate,getContainer=props.getContainer,children=props.children,parentRef=(0,react.useRef)(),containerRef=(0,react.useRef)();(0,react.useImperativeHandle)(ref,function(){return{}});var initRef=(0,react.useRef)(!1);return!initRef.current&&(0,canUseDom.Z)()&&(containerRef.current=getContainer(),parentRef.current=containerRef.current.parentNode,initRef.current=!0),(0,react.useEffect)(function(){null==didUpdate||didUpdate(props)}),(0,react.useEffect)(function(){return null===containerRef.current.parentNode&&null!==parentRef.current&&parentRef.current.appendChild(containerRef.current),function(){var _containerRef$current,_containerRef$current2;null===(_containerRef$current=containerRef.current)||void 0===_containerRef$current||null===(_containerRef$current2=_containerRef$current.parentNode)||void 0===_containerRef$current2||_containerRef$current2.removeChild(containerRef.current)}},[]),containerRef.current?react_dom.createPortal(children,containerRef.current):null}),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),isMobile=__webpack_require__(31131),es=__webpack_require__(62874);function getMotion(_ref){var prefixCls=_ref.prefixCls,motion=_ref.motion,animation=_ref.animation,transitionName=_ref.transitionName;return motion||(animation?{motionName:"".concat(prefixCls,"-").concat(animation)}:transitionName?{motionName:transitionName}:null)}function Mask(props){var prefixCls=props.prefixCls,visible=props.visible,zIndex=props.zIndex,mask=props.mask,maskMotion=props.maskMotion,maskAnimation=props.maskAnimation,maskTransitionName=props.maskTransitionName;if(!mask)return null;var motion={};return(maskMotion||maskTransitionName||maskAnimation)&&(motion=(0,objectSpread2.Z)({motionAppear:!0},getMotion({motion:maskMotion,prefixCls:prefixCls,transitionName:maskTransitionName,animation:maskAnimation}))),react.createElement(es.Z,(0,esm_extends.Z)({},motion,{visible:visible,removeOnLeave:!0}),function(_ref){var className=_ref.className;return react.createElement("div",{style:{zIndex:zIndex},className:classnames_default()("".concat(prefixCls,"-mask"),className)})})}var esm_typeof=__webpack_require__(71002),isVisible=__webpack_require__(5110);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;iNumber(cssBoxValue))&&(cssBoxValue=elem.style[name]||0),cssBoxValue=parseFloat(cssBoxValue)||0),void 0===extra&&(extra=isBorderBox?1:-1);var borderBoxValueOrIsBorderBox=void 0!==borderBoxValue||isBorderBox,val=borderBoxValue||cssBoxValue;return -1===extra?borderBoxValueOrIsBorderBox?val-getPBMWidth(elem,["border","padding"],which):cssBoxValue:borderBoxValueOrIsBorderBox?1===extra?val:val+(2===extra?-getPBMWidth(elem,["border"],which):getPBMWidth(elem,["margin"],which)):cssBoxValue+getPBMWidth(elem,BOX_MODELS.slice(extra),which)}each(["Width","Height"],function(name){domUtils["doc".concat(name)]=function(refWin){var d=refWin.document;return Math.max(d.documentElement["scroll".concat(name)],d.body["scroll".concat(name)],domUtils["viewport".concat(name)](d))},domUtils["viewport".concat(name)]=function(win){var prop="client".concat(name),doc=win.document,body=doc.body,documentElementProp=doc.documentElement[prop];return"CSS1Compat"===doc.compatMode&&documentElementProp||body&&body[prop]||documentElementProp}});var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var val,_len=arguments.length,args=Array(_len),_key2=0;_key2<_len;_key2++)args[_key2]=arguments[_key2];var elem=args[0];return 0!==elem.offsetWidth?val=getWH.apply(void 0,args):function(elem,options,callback){var name,old={},style=elem.style;for(name in options)options.hasOwnProperty(name)&&(old[name]=style[name],style[name]=options[name]);for(name in callback.call(elem),options)options.hasOwnProperty(name)&&(style[name]=old[name])}(elem,cssShow,function(){val=getWH.apply(void 0,args)}),val}function mix(to,from){for(var i in from)from.hasOwnProperty(i)&&(to[i]=from[i]);return to}each(["width","height"],function(name){var first=name.charAt(0).toUpperCase()+name.slice(1);domUtils["outer".concat(first)]=function(el,includeMargin){return el&&getWHIgnoreDisplay(el,name,includeMargin?0:1)};var which="width"===name?["Left","Right"]:["Top","Bottom"];domUtils[name]=function(elem,v){var val=v;return void 0!==val?elem?(isBorderBoxFn(elem)&&(val+=getPBMWidth(elem,["padding","border"],which)),css(elem,name,val)):void 0:elem&&getWHIgnoreDisplay(elem,name,-1)}});var utils={getWindow:function(node){if(node&&node.document&&node.setTimeout)return node;var doc=node.ownerDocument||node;return doc.defaultView||doc.parentWindow},getDocument:getDocument,offset:function(el,value,option){if(void 0===value)return getOffset(el);!function(elem,offset,option){if(option.ignoreShake){var originalOffset,originalXY,resultXY,oriOffset=getOffset(elem),oLeft=oriOffset.left.toFixed(0),oTop=oriOffset.top.toFixed(0),tLeft=offset.left.toFixed(0),tTop=offset.top.toFixed(0);if(oLeft===tLeft&&oTop===tTop)return}option.useCssRight||option.useCssBottom?setLeftTop(elem,offset,option):option.useCssTransform&&getTransformName() in document.body.style?(originalOffset=getOffset(elem),resultXY={x:(originalXY=function(node){var style=window.getComputedStyle(node,null),transform=style.getPropertyValue("transform")||style.getPropertyValue(getTransformName());if(transform&&"none"!==transform){var matrix=transform.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(matrix[12]||matrix[4],0),y:parseFloat(matrix[13]||matrix[5],0)}}return{x:0,y:0}}(elem)).x,y:originalXY.y},"left"in offset&&(resultXY.x=originalXY.x+offset.left-originalOffset.left),"top"in offset&&(resultXY.y=originalXY.y+offset.top-originalOffset.top),function(node,xy){var style=window.getComputedStyle(node,null),transform=style.getPropertyValue("transform")||style.getPropertyValue(getTransformName());if(transform&&"none"!==transform){var arr,match2d=transform.match(matrix2d);match2d?((arr=(match2d=match2d[1]).split(",").map(function(item){return parseFloat(item,10)}))[4]=xy.x,arr[5]=xy.y,setTransform(node,"matrix(".concat(arr.join(","),")"))):((arr=transform.match(matrix3d)[1].split(",").map(function(item){return parseFloat(item,10)}))[12]=xy.x,arr[13]=xy.y,setTransform(node,"matrix3d(".concat(arr.join(","),")")))}else setTransform(node,"translateX(".concat(xy.x,"px) translateY(").concat(xy.y,"px) translateZ(0)"))}(elem,resultXY)):setLeftTop(elem,offset,option)}(el,value,option||{})},isWindow:isWindow,each:each,css:css,clone:function(obj){var i,ret={};for(i in obj)obj.hasOwnProperty(i)&&(ret[i]=obj[i]);if(obj.overflow)for(i in obj)obj.hasOwnProperty(i)&&(ret.overflow[i]=obj.overflow[i]);return ret},mix:mix,getWindowScrollLeft:function(w){return getScroll(w)},getWindowScrollTop:function(w){return getScroll(w,!0)},merge:function(){for(var ret={},i=0;i=0&&visibleRect.left>=0&&visibleRect.bottom>visibleRect.top&&visibleRect.right>visibleRect.left?visibleRect:null}function getRegion(node){if(utils.isWindow(node)||9===node.nodeType){var offset,w,h,win=utils.getWindow(node);offset={left:utils.getWindowScrollLeft(win),top:utils.getWindowScrollTop(win)},w=utils.viewportWidth(win),h=utils.viewportHeight(win)}else offset=utils.offset(node),w=utils.outerWidth(node),h=utils.outerHeight(node);return offset.width=w,offset.height=h,offset}function getAlignOffset(region,align){var V=align.charAt(0),H=align.charAt(1),w=region.width,h=region.height,x=region.left,y=region.top;return"c"===V?y+=h/2:"b"===V&&(y+=h),"c"===H?x+=w/2:"r"===H&&(x+=w),{left:x,top:y}}function getElFuturePos(elRegion,refNodeRegion,points,offset,targetOffset){var p1=getAlignOffset(refNodeRegion,points[1]),p2=getAlignOffset(elRegion,points[0]),diff=[p2.left-p1.left,p2.top-p1.top];return{left:Math.round(elRegion.left-diff[0]+offset[0]-targetOffset[0]),top:Math.round(elRegion.top-diff[1]+offset[1]-targetOffset[1])}}function isFailX(elFuturePos,elRegion,visibleRect){return elFuturePos.leftvisibleRect.right}function isFailY(elFuturePos,elRegion,visibleRect){return elFuturePos.topvisibleRect.bottom}function flip(points,reg,map){var ret=[];return utils.each(points,function(p){ret.push(p.replace(reg,function(m){return map[m]}))}),ret}function flipOffset(offset,index){return offset[index]=-offset[index],offset}function convertOffset(str,offsetLen){return(/%$/.test(str)?parseInt(str.substring(0,str.length-1),10)/100*offsetLen:parseInt(str,10))||0}function normalizeOffset(offset,el){offset[0]=convertOffset(offset[0],el.width),offset[1]=convertOffset(offset[1],el.height)}function doAlign(el,tgtRegion,align,isTgtRegionVisible){var points=align.points,offset=align.offset||[0,0],targetOffset=align.targetOffset||[0,0],overflow=align.overflow,source=align.source||el;offset=[].concat(offset),targetOffset=[].concat(targetOffset);var newOverflowCfg={},fail=0,visibleRect=getVisibleRectForElement(source,!!(overflow=overflow||{}).alwaysByViewport),elRegion=getRegion(source);normalizeOffset(offset,elRegion),normalizeOffset(targetOffset,tgtRegion);var elFuturePos=getElFuturePos(elRegion,tgtRegion,points,offset,targetOffset),newElRegion=utils.merge(elRegion,elFuturePos);if(visibleRect&&(overflow.adjustX||overflow.adjustY)&&isTgtRegionVisible){if(overflow.adjustX&&isFailX(elFuturePos,elRegion,visibleRect)){var elFuturePos1,pos,size,elFuturePos2,newPoints=flip(points,/[lr]/gi,{l:"r",r:"l"}),newOffset=flipOffset(offset,0),newTargetOffset=flipOffset(targetOffset,0);(elFuturePos2=getElFuturePos(elRegion,tgtRegion,newPoints,newOffset,newTargetOffset)).left>visibleRect.right||elFuturePos2.left+elRegion.widthvisibleRect.bottom||elFuturePos3.top+elRegion.height=visibleRect.left&&pos.left+size.width>visibleRect.right&&(size.width-=pos.left+size.width-visibleRect.right),newOverflowCfg.adjustX&&pos.left+size.width>visibleRect.right&&(pos.left=Math.max(visibleRect.right-size.width,visibleRect.left)),newOverflowCfg.adjustY&&pos.top=visibleRect.top&&pos.top+size.height>visibleRect.bottom&&(size.height-=pos.top+size.height-visibleRect.bottom),newOverflowCfg.adjustY&&pos.top+size.height>visibleRect.bottom&&(pos.top=Math.max(visibleRect.bottom-size.height,visibleRect.top)),newElRegion=utils.mix(pos,size))}return newElRegion.width!==elRegion.width&&utils.css(source,"width",utils.width(source)+newElRegion.width-elRegion.width),newElRegion.height!==elRegion.height&&utils.css(source,"height",utils.height(source)+newElRegion.height-elRegion.height),utils.offset(source,{left:newElRegion.left,top:newElRegion.top},{useCssRight:align.useCssRight,useCssBottom:align.useCssBottom,useCssTransform:align.useCssTransform,ignoreShake:align.ignoreShake}),{points:points,offset:offset,targetOffset:targetOffset,overflow:newOverflowCfg}}function alignElement(el,refNode,align){var visibleRect,targetRegion,target=align.target||refNode,refNodeRegion=getRegion(target),isTargetNotOutOfVisible=(visibleRect=getVisibleRectForElement(target,align.overflow&&align.overflow.alwaysByViewport),targetRegion=getRegion(target),!!visibleRect&&!(targetRegion.left+targetRegion.width<=visibleRect.left)&&!(targetRegion.top+targetRegion.height<=visibleRect.top)&&!(targetRegion.left>=visibleRect.right)&&!(targetRegion.top>=visibleRect.bottom));return doAlign(el,refNodeRegion,align,isTargetNotOutOfVisible)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;var isEqual=__webpack_require__(18446),isEqual_default=__webpack_require__.n(isEqual),ResizeObserver_es=__webpack_require__(91033);function monitorResize(element,callback){var prevWidth=null,prevHeight=null,resizeObserver=new ResizeObserver_es.Z(function(_ref){var target=(0,slicedToArray.Z)(_ref,1)[0].target;if(document.documentElement.contains(target)){var _target$getBoundingCl=target.getBoundingClientRect(),width=_target$getBoundingCl.width,height=_target$getBoundingCl.height,fixedWidth=Math.floor(width),fixedHeight=Math.floor(height);(prevWidth!==fixedWidth||prevHeight!==fixedHeight)&&Promise.resolve().then(function(){callback({width:fixedWidth,height:fixedHeight})}),prevWidth=fixedWidth,prevHeight=fixedHeight}});return element&&resizeObserver.observe(element),function(){resizeObserver.disconnect()}}var useBuffer=function(callback,buffer){var calledRef=react.useRef(!1),timeoutRef=react.useRef(null);function cancelTrigger(){window.clearTimeout(timeoutRef.current)}return[function trigger(force){if(cancelTrigger(),calledRef.current&&!0!==force)timeoutRef.current=window.setTimeout(function(){calledRef.current=!1,trigger()},buffer);else{if(!1===callback())return;calledRef.current=!0,timeoutRef.current=window.setTimeout(function(){calledRef.current=!1},buffer)}},function(){calledRef.current=!1,cancelTrigger()}]};function getElement(func){return"function"!=typeof func?null:func()}function getPoint(point){return"object"===(0,esm_typeof.Z)(point)&&point?point:null}var RcAlign=react.forwardRef(function(_ref,ref){var children=_ref.children,disabled=_ref.disabled,target=_ref.target,align=_ref.align,onAlign=_ref.onAlign,monitorWindowResize=_ref.monitorWindowResize,_ref$monitorBufferTim=_ref.monitorBufferTime,cacheRef=react.useRef({}),nodeRef=react.useRef(),childNode=react.Children.only(children),forceAlignPropsRef=react.useRef({});forceAlignPropsRef.current.disabled=disabled,forceAlignPropsRef.current.target=target,forceAlignPropsRef.current.align=align,forceAlignPropsRef.current.onAlign=onAlign;var _useBuffer=useBuffer(function(){var _forceAlignPropsRef$c=forceAlignPropsRef.current,latestDisabled=_forceAlignPropsRef$c.disabled,latestTarget=_forceAlignPropsRef$c.target,latestAlign=_forceAlignPropsRef$c.align,latestOnAlign=_forceAlignPropsRef$c.onAlign;if(!latestDisabled&&latestTarget){var pageX,pageY,doc,win,scrollX,scrollY,viewportWidth,viewportHeight,tgtRegion,points,result,source=nodeRef.current,element=getElement(latestTarget),point=getPoint(latestTarget);cacheRef.current.element=element,cacheRef.current.point=point,cacheRef.current.align=latestAlign;var activeElement=document.activeElement;return element&&(0,isVisible.Z)(element)?result=alignElement(source,element,latestAlign):point&&(win=(doc=utils.getDocument(source)).defaultView||doc.parentWindow,scrollX=utils.getWindowScrollLeft(win),scrollY=utils.getWindowScrollTop(win),viewportWidth=utils.viewportWidth(win),viewportHeight=utils.viewportHeight(win),tgtRegion={left:pageX="pageX"in point?point.pageX:scrollX+point.clientX,top:pageY="pageY"in point?point.pageY:scrollY+point.clientY,width:0,height:0},points=[latestAlign.points[0],"cc"],result=doAlign(source,tgtRegion,_objectSpread2(_objectSpread2({},latestAlign),{},{points:points}),pageX>=0&&pageX<=scrollX+viewportWidth&&pageY>=0&&pageY<=scrollY+viewportHeight)),activeElement!==document.activeElement&&(0,contains.Z)(source,activeElement)&&"function"==typeof activeElement.focus&&activeElement.focus(),latestOnAlign&&result&&latestOnAlign(source,result),!0}return!1},void 0===_ref$monitorBufferTim?0:_ref$monitorBufferTim),_useBuffer2=(0,slicedToArray.Z)(_useBuffer,2),_forceAlign=_useBuffer2[0],cancelForceAlign=_useBuffer2[1],resizeMonitor=react.useRef({cancel:function(){}}),sourceResizeMonitor=react.useRef({cancel:function(){}});react.useEffect(function(){var prev,element=getElement(target),point=getPoint(target);nodeRef.current!==sourceResizeMonitor.current.element&&(sourceResizeMonitor.current.cancel(),sourceResizeMonitor.current.element=nodeRef.current,sourceResizeMonitor.current.cancel=monitorResize(nodeRef.current,_forceAlign)),cacheRef.current.element===element&&((prev=cacheRef.current.point)===point||prev&&point&&("pageX"in point&&"pageY"in point?prev.pageX===point.pageX&&prev.pageY===point.pageY:"clientX"in point&&"clientY"in point&&prev.clientX===point.clientX&&prev.clientY===point.clientY))&&isEqual_default()(cacheRef.current.align,align)||(_forceAlign(),resizeMonitor.current.element!==element&&(resizeMonitor.current.cancel(),resizeMonitor.current.element=element,resizeMonitor.current.cancel=monitorResize(element,_forceAlign)))}),react.useEffect(function(){disabled?cancelForceAlign():_forceAlign()},[disabled]);var winResizeRef=react.useRef(null);return react.useEffect(function(){monitorWindowResize?winResizeRef.current||(winResizeRef.current=(0,addEventListener.Z)(window,"resize",_forceAlign)):winResizeRef.current&&(winResizeRef.current.remove(),winResizeRef.current=null)},[monitorWindowResize]),react.useEffect(function(){return function(){resizeMonitor.current.cancel(),sourceResizeMonitor.current.cancel(),winResizeRef.current&&winResizeRef.current.remove(),cancelForceAlign()}},[]),react.useImperativeHandle(ref,function(){return{forceAlign:function(){return _forceAlign(!0)}}}),react.isValidElement(childNode)&&(childNode=react.cloneElement(childNode,{ref:(0,es_ref.sQ)(childNode.ref,nodeRef)})),childNode});RcAlign.displayName="Align";var useLayoutEffect=__webpack_require__(8410),regeneratorRuntime=__webpack_require__(74165),asyncToGenerator=__webpack_require__(15861),useState=__webpack_require__(30470),StatusQueue=["measure","alignPre","align",null,"motion"],useVisibleStatus=function(visible,doMeasure){var _useState=(0,useState.Z)(null),_useState2=(0,slicedToArray.Z)(_useState,2),status=_useState2[0],setInternalStatus=_useState2[1],rafRef=(0,react.useRef)();function cancelRaf(){raf.Z.cancel(rafRef.current)}return(0,react.useEffect)(function(){setInternalStatus("measure",!0)},[visible]),(0,react.useEffect)(function(){"measure"===status&&doMeasure(),status&&(rafRef.current=(0,raf.Z)((0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee(){var index,nextStatus;return(0,regeneratorRuntime.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:(nextStatus=StatusQueue[(index=StatusQueue.indexOf(status))+1])&&-1!==index&&setInternalStatus(nextStatus,!0);case 3:case"end":return _context.stop()}},_callee)}))))},[status]),(0,react.useEffect)(function(){return function(){cancelRaf()}},[]),[status,function(callback){cancelRaf(),rafRef.current=(0,raf.Z)(function(){setInternalStatus(function(prev){switch(status){case"align":return"motion";case"motion":return"stable"}return prev},!0),null==callback||callback()})}]},useStretchStyle=function(stretch){var _React$useState=react.useState({width:0,height:0}),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),targetSize=_React$useState2[0],setTargetSize=_React$useState2[1];return[react.useMemo(function(){var sizeStyle={};if(stretch){var width=targetSize.width,height=targetSize.height;-1!==stretch.indexOf("height")&&height?sizeStyle.height=height:-1!==stretch.indexOf("minHeight")&&height&&(sizeStyle.minHeight=height),-1!==stretch.indexOf("width")&&width?sizeStyle.width=width:-1!==stretch.indexOf("minWidth")&&width&&(sizeStyle.minWidth=width)}return sizeStyle},[stretch,targetSize]),function(element){setTargetSize({width:element.offsetWidth,height:element.offsetHeight})}]},PopupInner=react.forwardRef(function(props,ref){var visible=props.visible,prefixCls=props.prefixCls,className=props.className,style=props.style,children=props.children,zIndex=props.zIndex,stretch=props.stretch,destroyPopupOnHide=props.destroyPopupOnHide,forceRender=props.forceRender,align=props.align,point=props.point,getRootDomNode=props.getRootDomNode,getClassNameFromAlign=props.getClassNameFromAlign,onAlign=props.onAlign,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onMouseDown=props.onMouseDown,onTouchStart=props.onTouchStart,onClick=props.onClick,alignRef=(0,react.useRef)(),elementRef=(0,react.useRef)(),_useState=(0,react.useState)(),_useState2=(0,slicedToArray.Z)(_useState,2),alignedClassName=_useState2[0],setAlignedClassName=_useState2[1],_useStretchStyle=useStretchStyle(stretch),_useStretchStyle2=(0,slicedToArray.Z)(_useStretchStyle,2),stretchStyle=_useStretchStyle2[0],measureStretchStyle=_useStretchStyle2[1],_useVisibleStatus=useVisibleStatus(visible,function(){stretch&&measureStretchStyle(getRootDomNode())}),_useVisibleStatus2=(0,slicedToArray.Z)(_useVisibleStatus,2),status=_useVisibleStatus2[0],goNextStatus=_useVisibleStatus2[1],_useState3=(0,react.useState)(0),_useState4=(0,slicedToArray.Z)(_useState3,2),alignTimes=_useState4[0],setAlignTimes=_useState4[1],prepareResolveRef=(0,react.useRef)();function forceAlign(){var _alignRef$current;null===(_alignRef$current=alignRef.current)||void 0===_alignRef$current||_alignRef$current.forceAlign()}function onInternalAlign(popupDomNode,matchAlign){var nextAlignedClassName=getClassNameFromAlign(matchAlign);alignedClassName!==nextAlignedClassName&&setAlignedClassName(nextAlignedClassName),setAlignTimes(function(val){return val+1}),"align"===status&&(null==onAlign||onAlign(popupDomNode,matchAlign))}(0,useLayoutEffect.Z)(function(){"alignPre"===status&&setAlignTimes(0)},[status]),(0,useLayoutEffect.Z)(function(){"align"===status&&(alignTimes<3?forceAlign():goNextStatus(function(){var _prepareResolveRef$cu;null===(_prepareResolveRef$cu=prepareResolveRef.current)||void 0===_prepareResolveRef$cu||_prepareResolveRef$cu.call(prepareResolveRef)}))},[alignTimes]);var motion=(0,objectSpread2.Z)({},getMotion(props));function onShowPrepare(){return new Promise(function(resolve){prepareResolveRef.current=resolve})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(eventName){var originHandler=motion[eventName];motion[eventName]=function(element,event){return goNextStatus(),null==originHandler?void 0:originHandler(element,event)}}),react.useEffect(function(){motion.motionName||"motion"!==status||goNextStatus()},[motion.motionName,status]),react.useImperativeHandle(ref,function(){return{forceAlign:forceAlign,getElement:function(){return elementRef.current}}});var mergedStyle=(0,objectSpread2.Z)((0,objectSpread2.Z)({},stretchStyle),{},{zIndex:zIndex,opacity:"motion"!==status&&"stable"!==status&&visible?0:void 0,pointerEvents:visible||"stable"===status?void 0:"none"},style),alignDisabled=!0;null!=align&&align.points&&("align"===status||"stable"===status)&&(alignDisabled=!1);var childNode=children;return react.Children.count(children)>1&&(childNode=react.createElement("div",{className:"".concat(prefixCls,"-content")},children)),react.createElement(es.Z,(0,esm_extends.Z)({visible:visible,ref:elementRef,leavedClassName:"".concat(prefixCls,"-hidden")},motion,{onAppearPrepare:onShowPrepare,onEnterPrepare:onShowPrepare,removeOnLeave:destroyPopupOnHide,forceRender:forceRender}),function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style,mergedClassName=classnames_default()(prefixCls,className,alignedClassName,motionClassName);return react.createElement(RcAlign,{target:point||getRootDomNode,key:"popup",ref:alignRef,monitorWindowResize:!0,disabled:alignDisabled,align:align,onAlign:onInternalAlign},react.createElement("div",{ref:motionRef,className:mergedClassName,onMouseEnter:onMouseEnter,onMouseLeave:onMouseLeave,onMouseDownCapture:onMouseDown,onTouchStartCapture:onTouchStart,onClick:onClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),mergedStyle)},childNode))})});PopupInner.displayName="PopupInner";var MobilePopupInner=react.forwardRef(function(props,ref){var prefixCls=props.prefixCls,visible=props.visible,zIndex=props.zIndex,children=props.children,_props$mobile=props.mobile,popupClassName=(_props$mobile=void 0===_props$mobile?{}:_props$mobile).popupClassName,popupStyle=_props$mobile.popupStyle,_props$mobile$popupMo=_props$mobile.popupMotion,popupRender=_props$mobile.popupRender,onClick=props.onClick,elementRef=react.useRef();react.useImperativeHandle(ref,function(){return{forceAlign:function(){},getElement:function(){return elementRef.current}}});var mergedStyle=(0,objectSpread2.Z)({zIndex:zIndex},popupStyle),childNode=children;return react.Children.count(children)>1&&(childNode=react.createElement("div",{className:"".concat(prefixCls,"-content")},children)),popupRender&&(childNode=popupRender(childNode)),react.createElement(es.Z,(0,esm_extends.Z)({visible:visible,ref:elementRef,removeOnLeave:!0},void 0===_props$mobile$popupMo?{}:_props$mobile$popupMo),function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style,mergedClassName=classnames_default()(prefixCls,popupClassName,motionClassName);return react.createElement("div",{ref:motionRef,className:mergedClassName,onClick:onClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),mergedStyle)},childNode)})});MobilePopupInner.displayName="MobilePopupInner";var _excluded=["visible","mobile"],Popup=react.forwardRef(function(_ref,ref){var visible=_ref.visible,mobile=_ref.mobile,props=(0,objectWithoutProperties.Z)(_ref,_excluded),_useState=(0,react.useState)(visible),_useState2=(0,slicedToArray.Z)(_useState,2),innerVisible=_useState2[0],serInnerVisible=_useState2[1],_useState3=(0,react.useState)(!1),_useState4=(0,slicedToArray.Z)(_useState3,2),inMobile=_useState4[0],setInMobile=_useState4[1],cloneProps=(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{visible:innerVisible});(0,react.useEffect)(function(){serInnerVisible(visible),visible&&mobile&&setInMobile((0,isMobile.Z)())},[visible,mobile]);var popupNode=inMobile?react.createElement(MobilePopupInner,(0,esm_extends.Z)({},cloneProps,{mobile:mobile,ref:ref})):react.createElement(PopupInner,(0,esm_extends.Z)({},cloneProps,{ref:ref}));return react.createElement("div",null,react.createElement(Mask,cloneProps),popupNode)});Popup.displayName="Popup";var TriggerContext=react.createContext(null);function noop(){}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],rc_trigger_es=(Trigger=function(_React$Component){(0,inherits.Z)(Trigger,_React$Component);var _super=(0,createSuper.Z)(Trigger);function Trigger(props){var _this,_popupVisible;return(0,classCallCheck.Z)(this,Trigger),_this=_super.call(this,props),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"popupRef",react.createRef()),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"triggerRef",react.createRef()),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"portalContainer",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"attachId",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"clickOutsideHandler",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"touchOutsideHandler",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"contextMenuOutsideHandler1",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"contextMenuOutsideHandler2",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"mouseDownTimeout",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"focusTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"preClickTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"preTouchTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"delayTimer",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"hasPopupMouseDown",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseEnter",function(e){var mouseEnterDelay=_this.props.mouseEnterDelay;_this.fireEvents("onMouseEnter",e),_this.delaySetPopupVisible(!0,mouseEnterDelay,mouseEnterDelay?null:e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseMove",function(e){_this.fireEvents("onMouseMove",e),_this.setPoint(e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseLeave",function(e){_this.fireEvents("onMouseLeave",e),_this.delaySetPopupVisible(!1,_this.props.mouseLeaveDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseEnter",function(){_this.clearDelayTimer()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseLeave",function(e){var _this$popupRef$curren;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,contains.Z)(null===(_this$popupRef$curren=_this.popupRef.current)||void 0===_this$popupRef$curren?void 0:_this$popupRef$curren.getElement(),e.relatedTarget)||_this.delaySetPopupVisible(!1,_this.props.mouseLeaveDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onFocus",function(e){_this.fireEvents("onFocus",e),_this.clearDelayTimer(),_this.isFocusToShow()&&(_this.focusTime=Date.now(),_this.delaySetPopupVisible(!0,_this.props.focusDelay))}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseDown",function(e){_this.fireEvents("onMouseDown",e),_this.preClickTime=Date.now()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onTouchStart",function(e){_this.fireEvents("onTouchStart",e),_this.preTouchTime=Date.now()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onBlur",function(e){_this.fireEvents("onBlur",e),_this.clearDelayTimer(),_this.isBlurToHide()&&_this.delaySetPopupVisible(!1,_this.props.blurDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onContextMenu",function(e){e.preventDefault(),_this.fireEvents("onContextMenu",e),_this.setPopupVisible(!0,e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onContextMenuClose",function(){_this.isContextMenuToShow()&&_this.close()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onClick",function(event){if(_this.fireEvents("onClick",event),_this.focusTime){var preTime;if(_this.preClickTime&&_this.preTouchTime?preTime=Math.min(_this.preClickTime,_this.preTouchTime):_this.preClickTime?preTime=_this.preClickTime:_this.preTouchTime&&(preTime=_this.preTouchTime),20>Math.abs(preTime-_this.focusTime))return;_this.focusTime=0}_this.preClickTime=0,_this.preTouchTime=0,_this.isClickToShow()&&(_this.isClickToHide()||_this.isBlurToHide())&&event&&event.preventDefault&&event.preventDefault();var nextVisible=!_this.state.popupVisible;(_this.isClickToHide()&&!nextVisible||nextVisible&&_this.isClickToShow())&&_this.setPopupVisible(!_this.state.popupVisible,event)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseDown",function(){if(_this.hasPopupMouseDown=!0,clearTimeout(_this.mouseDownTimeout),_this.mouseDownTimeout=window.setTimeout(function(){_this.hasPopupMouseDown=!1},0),_this.context){var _this$context;(_this$context=_this.context).onPopupMouseDown.apply(_this$context,arguments)}}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onDocumentClick",function(event){if(!_this.props.mask||_this.props.maskClosable){var target=event.target,root=_this.getRootDomNode(),popupNode=_this.getPopupDomNode();(!(0,contains.Z)(root,target)||_this.isContextMenuOnly())&&!(0,contains.Z)(popupNode,target)&&!_this.hasPopupMouseDown&&_this.close()}}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"getRootDomNode",function(){var getTriggerDOMNode=_this.props.getTriggerDOMNode;if(getTriggerDOMNode)return getTriggerDOMNode(_this.triggerRef.current);try{var domNode=(0,findDOMNode.Z)(_this.triggerRef.current);if(domNode)return domNode}catch(err){}return react_dom.findDOMNode((0,assertThisInitialized.Z)(_this))}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"getPopupClassNameFromAlign",function(align){var className=[],_this$props=_this.props,popupPlacement=_this$props.popupPlacement,builtinPlacements=_this$props.builtinPlacements,prefixCls=_this$props.prefixCls,alignPoint=_this$props.alignPoint,getPopupClassNameFromAlign=_this$props.getPopupClassNameFromAlign;return popupPlacement&&builtinPlacements&&className.push(function(builtinPlacements,prefixCls,align,isAlignPoint){for(var points=align.points,placements=Object.keys(builtinPlacements),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},ret=[];return react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children,function(child){(null!=child||option.keepEmpty)&&(Array.isArray(child)?ret=ret.concat(toArray(child)):(0,react_is__WEBPACK_IMPORTED_MODULE_1__.isFragment)(child)&&child.props?ret=ret.concat(toArray(child.props.children,option)):ret.push(child))}),ret}}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),react_is__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11805)},64019:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return addEventListenerWrap}});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935);function addEventListenerWrap(target,eventType,cb,option){var callback=react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates?function(e){react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates(cb,e)}:cb;return target.addEventListener&&target.addEventListener(eventType,callback,option),{remove:function(){target.removeEventListener&&target.removeEventListener(eventType,callback,option)}}}},98924:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function canUseDom(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}__webpack_require__.d(__webpack_exports__,{Z:function(){return canUseDom}})},94999:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function contains(root,n){if(!root)return!1;if(root.contains)return root.contains(n);for(var node=n;node;){if(node===root)return!0;node=node.parentNode}return!1}__webpack_require__.d(__webpack_exports__,{Z:function(){return contains}})},44958:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hq:function(){return updateCSS},jL:function(){return removeCSS}});var _canUseDom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98924),_contains__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94999),APPEND_ORDER="data-rc-order",containerCache=new Map;function getMark(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},mark=_ref.mark;return mark?mark.startsWith("data-")?mark:"data-".concat(mark):"rc-util-key"}function getContainer(option){return option.attachTo?option.attachTo:document.querySelector("head")||document.body}function findStyles(container){return Array.from((containerCache.get(container)||container).children).filter(function(node){return"STYLE"===node.tagName})}function injectCSS(css){var option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__.Z)())return null;var csp=option.csp,prepend=option.prepend,styleNode=document.createElement("style");styleNode.setAttribute(APPEND_ORDER,"queue"===prepend?"prependQueue":prepend?"prepend":"append"),(null==csp?void 0:csp.nonce)&&(styleNode.nonce=null==csp?void 0:csp.nonce),styleNode.innerHTML=css;var container=getContainer(option),firstChild=container.firstChild;if(prepend){if("queue"===prepend){var existStyle=findStyles(container).filter(function(node){return["prepend","prependQueue"].includes(node.getAttribute(APPEND_ORDER))});if(existStyle.length)return container.insertBefore(styleNode,existStyle[existStyle.length-1].nextSibling),styleNode}container.insertBefore(styleNode,firstChild)}else container.appendChild(styleNode);return styleNode}function findExistNode(key){var option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return findStyles(getContainer(option)).find(function(node){return node.getAttribute(getMark(option))===key})}function removeCSS(key){var _existNode$parentNode,option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},existNode=findExistNode(key,option);null==existNode||null===(_existNode$parentNode=existNode.parentNode)||void 0===_existNode$parentNode||_existNode$parentNode.removeChild(existNode)}function updateCSS(css,key){var _option$csp,_option$csp2,_option$csp3,option=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(container,option){var cachedRealContainer=containerCache.get(container);if(!cachedRealContainer||!(0,_contains__WEBPACK_IMPORTED_MODULE_1__.Z)(document,cachedRealContainer)){var placeholderStyle=injectCSS("",option),parentNode=placeholderStyle.parentNode;containerCache.set(container,parentNode),parentNode.removeChild(placeholderStyle)}}(getContainer(option),option);var existNode=findExistNode(key,option);if(existNode)return(null===(_option$csp=option.csp)||void 0===_option$csp?void 0:_option$csp.nonce)&&existNode.nonce!==(null===(_option$csp2=option.csp)||void 0===_option$csp2?void 0:_option$csp2.nonce)&&(existNode.nonce=null===(_option$csp3=option.csp)||void 0===_option$csp3?void 0:_option$csp3.nonce),existNode.innerHTML!==css&&(existNode.innerHTML=css),existNode;var newNode=injectCSS(css,option);return newNode.setAttribute(getMark(option),key),newNode}},34203:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return findDOMNode}});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935);function findDOMNode(node){return node instanceof HTMLElement?node:react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode(node)}},88603:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{tS:function(){return getFocusNodeList}});var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(74902),_isVisible__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5110);function focusable(node){var includePositive=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,_isVisible__WEBPACK_IMPORTED_MODULE_0__.Z)(node)){var nodeName=node.nodeName.toLowerCase(),isFocusableElement=["input","select","textarea","button"].includes(nodeName)||node.isContentEditable||"a"===nodeName&&!!node.getAttribute("href"),tabIndexAttr=node.getAttribute("tabindex"),tabIndexNum=Number(tabIndexAttr),tabIndex=null;return tabIndexAttr&&!Number.isNaN(tabIndexNum)?tabIndex=tabIndexNum:isFocusableElement&&null===tabIndex&&(tabIndex=0),isFocusableElement&&node.disabled&&(tabIndex=null),null!==tabIndex&&(tabIndex>=0||includePositive&&tabIndex<0)}return!1}function getFocusNodeList(node){var includePositive=arguments.length>1&&void 0!==arguments[1]&&arguments[1],res=(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.Z)(node.querySelectorAll("*")).filter(function(child){return focusable(child,includePositive)});return focusable(node,includePositive)&&res.unshift(node),res}},5110:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function(element){if(!element)return!1;if(element instanceof HTMLElement&&element.offsetParent)return!0;if(element instanceof SVGGraphicsElement&&element.getBBox){var _element$getBBox=element.getBBox(),width=_element$getBBox.width,height=_element$getBBox.height;if(width||height)return!0}if(element instanceof HTMLElement&&element.getBoundingClientRect){var _element$getBoundingC=element.getBoundingClientRect(),_width=_element$getBoundingC.width,_height=_element$getBoundingC.height;if(_width||_height)return!0}return!1}},79370:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return isStyleSupport}});var _canUseDom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98924),isStyleNameSupport=function(styleName){if((0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__.Z)()&&window.document.documentElement){var styleNameList=Array.isArray(styleName)?styleName:[styleName],documentElement=window.document.documentElement;return styleNameList.some(function(name){return name in documentElement.style})}return!1},isStyleValueSupport=function(styleName,value){if(!isStyleNameSupport(styleName))return!1;var ele=document.createElement("div"),origin=ele.style[styleName];return ele.style[styleName]=value,ele.style[styleName]!==origin};function isStyleSupport(styleName,styleValue){return Array.isArray(styleName)||void 0===styleValue?isStyleNameSupport(styleName):isStyleValueSupport(styleName,styleValue)}},15105:function(__unused_webpack_module,__webpack_exports__){"use strict";var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var keyCode=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||keyCode>=KeyCode.F1&&keyCode<=KeyCode.F12)return!1;switch(keyCode){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(keyCode){if(keyCode>=KeyCode.ZERO&&keyCode<=KeyCode.NINE||keyCode>=KeyCode.NUM_ZERO&&keyCode<=KeyCode.NUM_MULTIPLY||keyCode>=KeyCode.A&&keyCode<=KeyCode.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===keyCode)return!0;switch(keyCode){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};__webpack_exports__.Z=KeyCode},38135:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return render},v:function(){return unmount}});var react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache,createRoot,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(74165),_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(15861),_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(71002),_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1413),react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935),fullClone=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__.Z)({},react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_0__,2))),version=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode;try{Number((version||"").split(".")[0])>=18&&(createRoot=fullClone.createRoot)}catch(e){}function toggleWarning(skip){var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED&&"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__.Z)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)&&(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=skip)}var MARK="__rc_react_root__";function render(node,container){if(createRoot){var container1,root;container1=container,toggleWarning(!0),root=container1[MARK]||createRoot(container1),toggleWarning(!1),root.render(node),container1[MARK]=root;return}reactRender(node,container)}function _modernUnmount(){return(_modernUnmount=(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__.Z)((0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().mark(function _callee(container){return(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",Promise.resolve().then(function(){var _container$MARK;null===(_container$MARK=container[MARK])||void 0===_container$MARK||_container$MARK.unmount(),delete container[MARK]}));case 1:case"end":return _context.stop()}},_callee)}))).apply(this,arguments)}function unmount(_x2){return _unmount.apply(this,arguments)}function _unmount(){return(_unmount=(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__.Z)((0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().mark(function _callee2(container){return(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(!(void 0!==createRoot)){_context2.next=2;break}return _context2.abrupt("return",function(_x){return _modernUnmount.apply(this,arguments)}(container));case 2:unmountComponentAtNode(container);case 3:case"end":return _context2.stop()}},_callee2)}))).apply(this,arguments)}},74204:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var cached;function getScrollBarSize(fresh){if("undefined"==typeof document)return 0;if(fresh||void 0===cached){var inner=document.createElement("div");inner.style.width="100%",inner.style.height="200px";var outer=document.createElement("div"),outerStyle=outer.style;outerStyle.position="absolute",outerStyle.top="0",outerStyle.left="0",outerStyle.pointerEvents="none",outerStyle.visibility="hidden",outerStyle.width="200px",outerStyle.height="150px",outerStyle.overflow="hidden",outer.appendChild(inner),document.body.appendChild(outer);var widthContained=inner.offsetWidth;outer.style.overflow="scroll";var widthScroll=inner.offsetWidth;widthContained===widthScroll&&(widthScroll=outer.clientWidth),document.body.removeChild(outer),cached=widthContained-widthScroll}return cached}function ensureSize(str){var match=str.match(/^(.*)px$/),value=Number(null==match?void 0:match[1]);return Number.isNaN(value)?getScrollBarSize():value}function getTargetScrollBarSize(target){if("undefined"==typeof document||!target||!(target instanceof Element))return{width:0,height:0};var _getComputedStyle=getComputedStyle(target,"::-webkit-scrollbar"),width=_getComputedStyle.width,height=_getComputedStyle.height;return{width:ensureSize(width),height:ensureSize(height)}}__webpack_require__.d(__webpack_exports__,{Z:function(){return getScrollBarSize},o:function(){return getTargetScrollBarSize}})},66680:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useEvent}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useEvent(callback){var fnRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return fnRef.current=callback,react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function(){for(var _fnRef$current,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null===(_fnRef$current=fnRef.current)||void 0===_fnRef$current?void 0:_fnRef$current.call.apply(_fnRef$current,[fnRef].concat(args))},[])}},8410:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return useLayoutUpdateEffect}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),useLayoutEffect=(0,__webpack_require__(98924).Z)()?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;__webpack_exports__.Z=useLayoutEffect;var useLayoutUpdateEffect=function(callback,deps){var firstMountRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!0);useLayoutEffect(function(){if(!firstMountRef.current)return callback()},deps),useLayoutEffect(function(){return firstMountRef.current=!1,function(){firstMountRef.current=!0}},[])}},56982:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useMemo}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useMemo(getValue,condition,shouldUpdate){var cacheRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef({});return(!("value"in cacheRef.current)||shouldUpdate(cacheRef.current.condition,condition))&&(cacheRef.current.value=getValue(),cacheRef.current.condition=condition),cacheRef.current.value}},21770:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useMergedState}});var Source,Source1,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_useEvent__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(66680),_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8410),_useState__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(30470);function hasValue(value){return void 0!==value}function useMergedState(defaultStateValue,option){var _ref=option||{},defaultValue=_ref.defaultValue,value=_ref.value,onChange=_ref.onChange,postState=_ref.postState,_useState=(0,_useState__WEBPACK_IMPORTED_MODULE_3__.Z)(function(){var source,finalValue=void 0;return hasValue(value)?(finalValue=value,source=Source1.PROP):hasValue(defaultValue)?(finalValue="function"==typeof defaultValue?defaultValue():defaultValue,source=Source1.PROP):(finalValue="function"==typeof defaultStateValue?defaultStateValue():defaultStateValue,source=Source1.INNER),[finalValue,source,finalValue]}),_useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(_useState,2),mergedValue=_useState2[0],setMergedValue=_useState2[1],chosenValue=hasValue(value)?value:mergedValue[0],postMergedValue=postState?postState(chosenValue):chosenValue;(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__.o)(function(){setMergedValue(function(_ref2){var prevValue=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(_ref2,1)[0];return[value,Source1.PROP,prevValue]})},[value]);var changeEventPrevRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),triggerChange=(0,_useEvent__WEBPACK_IMPORTED_MODULE_1__.Z)(function(updater,ignoreDestroy){setMergedValue(function(prev){var _prev=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(prev,3),prevValue=_prev[0],prevSource=_prev[1],prevPrevValue=_prev[2],nextValue="function"==typeof updater?updater(prevValue):updater;if(nextValue===prevValue)return prev;var overridePrevValue=prevSource===Source1.INNER&&changeEventPrevRef.current!==prevPrevValue?prevPrevValue:prevValue;return[nextValue,Source1.INNER,overridePrevValue]},ignoreDestroy)}),onChangeFn=(0,_useEvent__WEBPACK_IMPORTED_MODULE_1__.Z)(onChange);return(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__.Z)(function(){var _mergedValue=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(mergedValue,3),current=_mergedValue[0],source=_mergedValue[1],prev=_mergedValue[2];current!==prev&&source===Source1.INNER&&(onChangeFn(current,prev),changeEventPrevRef.current=prev)},[mergedValue]),[postMergedValue,triggerChange]}(Source=Source1||(Source1={}))[Source.INNER=0]="INNER",Source[Source.PROP=1]="PROP"},30470:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useSafeState}});var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useSafeState(defaultValue){var destroyRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultValue),_React$useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__.Z)(_React$useState,2),value=_React$useState2[0],setValue=_React$useState2[1];return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){return destroyRef.current=!1,function(){destroyRef.current=!0}},[]),[value,function(updater,ignoreDestroy){ignoreDestroy&&destroyRef.current||setValue(updater)}]}},31131:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var agent=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==agent?void 0:agent.substr(0,4))}},98423:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return omit}});var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1413);function omit(obj,fields){var clone=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.Z)({},obj);return Array.isArray(fields)&&fields.forEach(function(key){delete clone[key]}),clone}},64217:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return pickAttrs}});var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1413),propList="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function match(key,prefix){return 0===key.indexOf(prefix)}function pickAttrs(props){var mergedConfig,ariaOnly=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mergedConfig=!1===ariaOnly?{aria:!0,data:!0,attr:!0}:!0===ariaOnly?{aria:!0}:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.Z)({},ariaOnly);var attrs={};return Object.keys(props).forEach(function(key){(mergedConfig.aria&&("role"===key||match(key,"aria-"))||mergedConfig.data&&match(key,"data-")||mergedConfig.attr&&propList.includes(key))&&(attrs[key]=props[key])}),attrs}},75164:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return wrapperRaf}});var raf=function(callback){return+setTimeout(callback,16)},caf=function(num){return clearTimeout(num)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(raf=function(callback){return window.requestAnimationFrame(callback)},caf=function(handle){return window.cancelAnimationFrame(handle)});var rafUUID=0,rafIds=new Map;function wrapperRaf(callback){var times=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,id=rafUUID+=1;return!function callRef(leftTimes){if(0===leftTimes)rafIds.delete(id),callback();else{var realId=raf(function(){callRef(leftTimes-1)});rafIds.set(id,realId)}}(times),id}wrapperRaf.cancel=function(id){var realId=rafIds.get(id);return rafIds.delete(realId),caf(realId)}},42550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Yr:function(){return supportRef},mH:function(){return fillRef},sQ:function(){return composeRef},x1:function(){return useComposeRef}});var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(71002),react_is__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11805),_hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(56982);function fillRef(ref,node){"function"==typeof ref?ref(node):"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__.Z)(ref)&&ref&&"current"in ref&&(ref.current=node)}function composeRef(){for(var _len=arguments.length,refs=Array(_len),_key=0;_key<_len;_key++)refs[_key]=arguments[_key];var refList=refs.filter(function(ref){return ref});return refList.length<=1?refList[0]:function(node){refs.forEach(function(ref){fillRef(ref,node)})}}function useComposeRef(){for(var _len2=arguments.length,refs=Array(_len2),_key2=0;_key2<_len2;_key2++)refs[_key2]=arguments[_key2];return(0,_hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__.Z)(function(){return composeRef.apply(void 0,refs)},refs,function(prev,next){return prev.length===next.length&&prev.every(function(ref,i){return ref===next[i]})})}function supportRef(nodeOrComponent){var _type$prototype,_nodeOrComponent$prot,type=(0,react_is__WEBPACK_IMPORTED_MODULE_0__.isMemo)(nodeOrComponent)?nodeOrComponent.type.type:nodeOrComponent.type;return("function"!=typeof type||null!==(_type$prototype=type.prototype)&&void 0!==_type$prototype&&!!_type$prototype.render)&&("function"!=typeof nodeOrComponent||null!==(_nodeOrComponent$prot=nodeOrComponent.prototype)&&void 0!==_nodeOrComponent$prot&&!!_nodeOrComponent$prot.render)}},80334:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Kp:function(){return warning}});var warned={};function warning(valid,message){}__webpack_exports__.ZP=function(valid,message){valid||warned[message]||(warned[message]=!0)}},51162:function(__unused_webpack_module,exports){"use strict";/** @license React v16.13.1 +*/ !function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i1?"s":"")+" required, but only "+args.length+" present")}__webpack_require__.d(__webpack_exports__,{Z:function(){return requiredArgs}})},93645:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return getRoundingMethod}});var roundingMap={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(value){return value<0?Math.ceil(value):Math.floor(value)}};function getRoundingMethod(method){return method?roundingMap[method]:roundingMap.trunc}},59910:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return differenceInMilliseconds}});var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19013),_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function differenceInMilliseconds(dateLeft,dateRight){return(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(2,arguments),(0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateLeft).getTime()-(0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateRight).getTime()}},11699:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return differenceInSeconds}});var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(59910),_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882),_lib_roundingMethods_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(93645);function differenceInSeconds(dateLeft,dateRight,options){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(2,arguments);var diff=(0,_differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__.Z)(dateLeft,dateRight)/1e3;return(0,_lib_roundingMethods_index_js__WEBPACK_IMPORTED_MODULE_2__.u)(null==options?void 0:options.roundingMethod)(diff)}},19013:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return toDate}});var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function toDate(argument){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(1,arguments);var argStr=Object.prototype.toString.call(argument);return argument instanceof Date||"object"===_typeof(argument)&&"[object Date]"===argStr?new Date(argument.getTime()):"number"==typeof argument||"[object Number]"===argStr?new Date(argument):(("string"==typeof argument||"[object String]"===argStr)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},18552:function(module,__unused_webpack_exports,__webpack_require__){var DataView=__webpack_require__(10852)(__webpack_require__(55639),"DataView");module.exports=DataView},1989:function(module,__unused_webpack_exports,__webpack_require__){var hashClear=__webpack_require__(51789),hashDelete=__webpack_require__(80401),hashGet=__webpack_require__(57667),hashHas=__webpack_require__(21327),hashSet=__webpack_require__(81866);function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1}},54705:function(module,__unused_webpack_exports,__webpack_require__){var assocIndexOf=__webpack_require__(18470);module.exports=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}},24785:function(module,__unused_webpack_exports,__webpack_require__){var Hash=__webpack_require__(1989),ListCache=__webpack_require__(38407),Map1=__webpack_require__(57071);module.exports=function(){this.size=0,this.__data__={hash:new Hash,map:new(Map1||ListCache),string:new Hash}}},11285:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result}},96e3:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){return getMapData(this,key).get(key)}},49916:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key){return getMapData(this,key).has(key)}},95265:function(module,__unused_webpack_exports,__webpack_require__){var getMapData=__webpack_require__(45050);module.exports=function(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}},68776:function(module){module.exports=function(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}},94536:function(module,__unused_webpack_exports,__webpack_require__){var nativeCreate=__webpack_require__(10852)(Object,"create");module.exports=nativeCreate},86916:function(module,__unused_webpack_exports,__webpack_require__){var nativeKeys=__webpack_require__(5569)(Object.keys,Object);module.exports=nativeKeys},31167:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var freeGlobal=__webpack_require__(31957),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types)return types;return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil},2333:function(module){var nativeObjectToString=Object.prototype.toString;module.exports=function(value){return nativeObjectToString.call(value)}},5569:function(module){module.exports=function(func,transform){return function(arg){return func(transform(arg))}}},55639:function(module,__unused_webpack_exports,__webpack_require__){var freeGlobal=__webpack_require__(31957),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},90619:function(module){module.exports=function(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this}},72385:function(module){module.exports=function(value){return this.__data__.has(value)}},21814:function(module){module.exports=function(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}},37465:function(module,__unused_webpack_exports,__webpack_require__){var ListCache=__webpack_require__(38407);module.exports=function(){this.__data__=new ListCache,this.size=0}},63779:function(module){module.exports=function(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}},67599:function(module){module.exports=function(key){return this.__data__.get(key)}},44758:function(module){module.exports=function(key){return this.__data__.has(key)}},34309:function(module,__unused_webpack_exports,__webpack_require__){var ListCache=__webpack_require__(38407),Map1=__webpack_require__(57071),MapCache=__webpack_require__(83369);module.exports=function(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map1||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}},80346:function(module){var funcToString=Function.prototype.toString;module.exports=function(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e1){}}return""}},77813:function(module){module.exports=function(value,other){return value===other||value!=value&&other!=other}},35694:function(module,__unused_webpack_exports,__webpack_require__){var baseIsArguments=__webpack_require__(9454),isObjectLike=__webpack_require__(37005),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,propertyIsEnumerable=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},1469:function(module){var isArray=Array.isArray;module.exports=isArray},98612:function(module,__unused_webpack_exports,__webpack_require__){var isFunction=__webpack_require__(23560),isLength=__webpack_require__(41780);module.exports=function(value){return null!=value&&isLength(value.length)&&!isFunction(value)}},44144:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var root=__webpack_require__(55639),stubFalse=__webpack_require__(95062),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0;module.exports=nativeIsBuffer||stubFalse},18446:function(module,__unused_webpack_exports,__webpack_require__){var baseIsEqual=__webpack_require__(90939);module.exports=function(value,other){return baseIsEqual(value,other)}},23560:function(module,__unused_webpack_exports,__webpack_require__){var baseGetTag=__webpack_require__(44239),isObject=__webpack_require__(13218);module.exports=function(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}},41780:function(module){module.exports=function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}},13218:function(module){module.exports=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},37005:function(module){module.exports=function(value){return null!=value&&"object"==typeof value}},36719:function(module,__unused_webpack_exports,__webpack_require__){var baseIsTypedArray=__webpack_require__(38749),baseUnary=__webpack_require__(7518),nodeUtil=__webpack_require__(31167),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},3674:function(module,__unused_webpack_exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(14636),baseKeys=__webpack_require__(280),isArrayLike=__webpack_require__(98612);module.exports=function(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},70479:function(module){module.exports=function(){return[]}},95062:function(module){module.exports=function(){return!1}},6840:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return __webpack_require__(6462)}])},50738:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return OwncastLogo}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893);__webpack_require__(67294);var classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(29403),_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3__);let OwncastLogo=param=>{let{variant="simple"}=param,rootClassName=classnames__WEBPACK_IMPORTED_MODULE_2___default()(_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().root,{[_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().simple]:"simple"===variant,[_OwncastLogo_module_scss__WEBPACK_IMPORTED_MODULE_3___default().contrast]:"contrast"===variant});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:rootClassName,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.68623352050781 104.46271514892578",className:"logo-svg",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{transform:"matrix(1 0 0 1 -37.08803939819336 -18.940391540527344)",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1.0445680396949917 0 0 1.0445679172996596 36.34559138380523 18.877718021903796)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient120",gradientTransform:"rotate(-90 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#1f2022",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#635e69",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient120)",d:"M91.5 75.35Q93.05 71.15 91.65 67.7 90.35 64.5 86.65 62.3 83.2 60.3 78.3 59.4 73.85 58.6 68.6 58.7 63.55 58.85 58.8 59.8 54.25 60.75 50.8 62.2 47.4 63.65 45.5 65.35 43.6 67.15 43.5 69.05 43.35 71.3 45.8 73.9 48.05 76.3 52.1 78.6 56.15 80.9 61.05 82.55 66.3 84.3 71.4 84.8 74.7 85.1 77.55 84.9 80.65 84.6 83.3 83.6 86.15 82.5 88.15 80.55 90.4 78.4 91.5 75.35M70.6 67.5Q72.3 68.4 73.1 69.7 73.9 71.15 73.45 73 73.1 74.3 72.3 75.25 71.55 76.1 70.3 76.6 69.25 77.05 67.75 77.25 66.3 77.4 64.85 77.3 62.3 77.15 59.25 76.3 56.6 75.5 54.15 74.3 51.9 73.2 50.45 72 49.05 70.75 49.1 69.8 49.2 69 50.25 68.25 51.3 67.55 53.15 67 55 66.4 57.25 66.1 59.8 65.8 62.1 65.8 64.65 65.85 66.7 66.2 68.9 66.65 70.6 67.5Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient121",gradientTransform:"rotate(-180 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#2087e2",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#b63fff",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient121)",d:"M66.6 15.05Q66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.75 18.45 32.7 23.4 31.7 28.05 31.35 32.85 31.05 37.2 31.3 41.2 31.6 45.15 32.4 48.35 34 54.9 37.3 56.4 37.6 56.55 37.9 56.65L39.2 56.85Q39.45 56.85 39.95 56.8 42.05 56.6 44.7 55.05 47.25 53.5 50.05 50.8 53.05 47.9 55.85 44.05 58.8 40.05 61.1 35.6 63.8 30.35 65.25 25.3 66.75 19.75 66.6 15.05M47.55 23.15Q48.05 23.25 48.4 23.4 52.45 24.8 52.55 29.85 52.6 34 50 39.4 47.85 43.9 44.85 47.3 42.05 50.5 40.15 50.7L39.9 50.75 39.45 50.7 39.2 50.6Q37.8 49.95 37.25 46.35 36.7 42.7 37.3 38 37.95 32.75 39.75 28.8 41.9 24.1 45.05 23.25 45.6 23.1 45.85 23.1 46.25 23.05 46.65 23.05 47.05 23.05 47.55 23.15Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient122",gradientTransform:"rotate(-90 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#100f0f",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient122)",d:"M2.7 33.6Q2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7 0 42.6 2.2 47.2 4 51 8 54.35 11.55 57.3 16 59.15 20.5 61 23.85 60.85 24.5 60.85 25.25 60.7 26 60.55 26.5 60.3 27 60.05 27.45 59.65 27.9 59.25 28.15 58.75 29.35 56.45 27.5 51.65 25.6 47 21.75 42.1 17.75 37 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6M10.1 43.55Q10.35 43.1 10.6 42.85 10.85 42.6 11.2 42.4 11.6 42.25 11.9 42.2 13.5 41.9 15.95 43.6 18.15 45.05 20.35 47.7 22.35 50.1 23.55 52.4 24.7 54.75 24.25 55.7 24.15 55.9 24 56 23.85 56.2 23.65 56.25 23.55 56.35 23.25 56.4L22.7 56.5Q21.1 56.6 18.55 55.6 16.05 54.6 13.85 52.95 11.5 51.2 10.35 49.15 9.05 46.8 9.75 44.45 9.9 43.95 10.1 43.55Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient123",gradientTransform:"rotate(-180 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#222020",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient123)",d:"M34.95 74.2L34.75 74.2Q33.2 74.15 31.9 75.25 30.7 76.3 29.85 78.25 29.1 80 28.8 82.2 28.5 84.4 28.7 86.65 29.1 91.4 31.5 94.7 34.3 98.5 39.3 99.7L39.4 99.7 39.7 99.8 39.85 99.8Q45.3 100.85 47.15 97.75 48 96.3 48 94.05 47.95 91.9 47.2 89.35 46.45 86.75 45.1 84.15 43.75 81.5 42.05 79.35 40.25 77.1 38.45 75.75 36.55 74.35 34.95 74.2M33.55 80.4Q34.35 78.2 35.6 78.3L35.65 78.3Q36.9 78.45 38.6 80.9 40.3 83.35 41.15 86.05 42.1 89 41.55 90.75 40.9 92.6 38.35 92.25L38.3 92.25 38.25 92.2 38.1 92.2Q35.6 91.7 34.25 89.6 33.1 87.7 32.95 85 32.8 82.35 33.55 80.4Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(0.9999999999999999 0 0 1 0 5.684341886080802e-14)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient124",gradientTransform:"rotate(-180 .5 .5)",children:[" ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#1e1c1c",stopOpacity:"1"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient124)",d:"M22.7 69.65Q22.25 69.3 21.6 69.05 20.95 68.8 20.25 68.7 19.6 68.55 18.85 68.5 16.7 68.45 14.65 69.15 12.65 69.8 11.4 71.1 10.15 72.5 10.2 74.2 10.25 76.05 11.95 78.2 12.4 78.75 13.05 79.4 13.55 79.9 14.2 80.3 14.7 80.6 15.3 80.85 16 81.1 16.4 81.1 18.2 81.35 19.9 80.35 21.55 79.4 22.75 77.65 24 75.85 24.3 73.95 24.6 71.85 23.55 70.5 23.15 70 22.7 69.65M21.7 71.7Q22.15 72.3 21.9 73.3 21.7 74.25 21 75.25 20.3 76.2 19.4 76.75 18.45 77.35 17.55 77.25L17 77.15Q16.7 77.05 16.45 76.85 16.25 76.75 15.9 76.45 15.7 76.25 15.4 75.9 14.5 74.75 14.7 73.8 14.8 72.95 15.75 72.3 16.6 71.7 17.8 71.4 19 71.1 20.1 71.15L20.65 71.2 21.1 71.3Q21.3 71.4 21.45 71.5L21.7 71.7Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient125",gradientTransform:"rotate(-360 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient125)",d:"M52.6 19.25Q59.6 19.25 66.2 20.95 66.7 17.8 66.6 15.05 66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.85 18.3 32.8 22.85 42.25 19.25 52.6 19.25Z"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient126",gradientTransform:"rotate(-360 .5 .5)",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"url(#gradient126)",d:"M1.05 37.7Q0 42.6 2.2 47.2 2.95 48.8 4.05 50.25 7.55 41.65 14.4 34.75 14 34.45 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6 2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7Z"})]})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("g",{transform:"matrix(1.219512230276127 0 0 1.2195122143630526 32.82519274395008 88.56945194723018)",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path",{fill:"#000000",fillOpacity:"1",d:""})})]})})})})})}},39664:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return FormStatusIndicator}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893);__webpack_require__(67294);var classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);let FormStatusIndicator=param=>{let{status}=param,{type,icon,message}=status||{},classes=classnames__WEBPACK_IMPORTED_MODULE_2___default()({"status-container":!0,["status-".concat(type)]:type,empty:!message});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:classes,children:[icon?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"status-icon",children:icon}):null,message?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"status-message",children:message}):null]})}},40117:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{mG:function(){return TEXTFIELD_TYPE_NUMBER},A8:function(){return TEXTFIELD_TYPE_PASSWORD},Kx:function(){return TEXTFIELD_TYPE_TEXT},Sk:function(){return TEXTFIELD_TYPE_TEXTAREA},xA:function(){return TEXTFIELD_TYPE_URL},nv:function(){return TextField}});var jsx_runtime=__webpack_require__(85893),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),input=__webpack_require__(69677),esm_extends=__webpack_require__(87462),defineProperty=__webpack_require__(4942),esm_typeof=__webpack_require__(71002),slicedToArray=__webpack_require__(97685),DownOutlined=__webpack_require__(80882),objectSpread2=__webpack_require__(1413),asn_UpOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},AntdIcon=__webpack_require__(42135),UpOutlined_UpOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_UpOutlined}))};UpOutlined_UpOutlined.displayName="UpOutlined";var icons_UpOutlined=react.forwardRef(UpOutlined_UpOutlined),objectWithoutProperties=__webpack_require__(45987),KeyCode=__webpack_require__(15105),useLayoutEffect=__webpack_require__(8410),es_ref=__webpack_require__(42550),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144);function supportBigInt(){return"function"==typeof BigInt}function trimNumber(numStr){var str=numStr.trim(),negative=str.startsWith("-");negative&&(str=str.slice(1)),(str=str.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(str="0".concat(str));var trimStr=str||"0",splitNumber=trimStr.split("."),integerStr=splitNumber[0]||"0",decimalStr=splitNumber[1]||"0";"0"===integerStr&&"0"===decimalStr&&(negative=!1);var negativeStr=negative?"-":"";return{negative:negative,negativeStr:negativeStr,trimStr:trimStr,integerStr:integerStr,decimalStr:decimalStr,fullStr:"".concat(negativeStr).concat(trimStr)}}function isE(number){var str=String(number);return!Number.isNaN(Number(str))&&str.includes("e")}function getNumberPrecision(number){var numStr=String(number);if(isE(number)){var precision=Number(numStr.slice(numStr.indexOf("e-")+2)),decimalMatch=numStr.match(/\.(\d+)/);return(null==decimalMatch?void 0:decimalMatch[1])&&(precision+=decimalMatch[1].length),precision}return numStr.includes(".")&&validateNumber(numStr)?numStr.length-numStr.indexOf(".")-1:0}function num2str(number){var numStr=String(number);if(isE(number)){if(number>Number.MAX_SAFE_INTEGER)return String(supportBigInt()?BigInt(number).toString():Number.MAX_SAFE_INTEGER);if(numberNumber.MAX_SAFE_INTEGER)return new NumberDecimal(Number.MAX_SAFE_INTEGER);if(number=this.add(target.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var safe=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return safe?this.isInvalidate()?"":num2str(this.number):this.origin}}]),NumberDecimal}(),BigIntDecimal=function(){function BigIntDecimal(value){if((0,classCallCheck.Z)(this,BigIntDecimal),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!value&&0!==value||!String(value).trim()){this.empty=!0;return}if(this.origin=String(value),"-"===value){this.nan=!0;return}var mergedValue=value;if(isE(mergedValue)&&(mergedValue=Number(mergedValue)),validateNumber(mergedValue="string"==typeof mergedValue?mergedValue:num2str(mergedValue))){var trimRet=trimNumber(mergedValue);this.negative=trimRet.negative;var numbers=trimRet.trimStr.split(".");this.integer=BigInt(numbers[0]);var decimalStr=numbers[1]||"0";this.decimal=BigInt(decimalStr),this.decimalLen=decimalStr.length}else this.nan=!0}return(0,createClass.Z)(BigIntDecimal,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(decimalLength){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength,"0")))}},{key:"negate",value:function(){var clone=new BigIntDecimal(this.toString());return clone.negative=!clone.negative,clone}},{key:"add",value:function(value){if(this.isInvalidate())return new BigIntDecimal(value);var offset=new BigIntDecimal(value);if(offset.isInvalidate())return this;var maxDecimalLength=Math.max(this.getDecimalStr().length,offset.getDecimalStr().length),_trimNumber=trimNumber((this.alignDecimal(maxDecimalLength)+offset.alignDecimal(maxDecimalLength)).toString()),negativeStr=_trimNumber.negativeStr,trimStr=_trimNumber.trimStr,hydrateValueStr="".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength+1,"0"));return new BigIntDecimal("".concat(hydrateValueStr.slice(0,-maxDecimalLength),".").concat(hydrateValueStr.slice(-maxDecimalLength)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(target){return this.toString()===(null==target?void 0:target.toString())}},{key:"lessEquals",value:function(target){return 0>=this.add(target.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var safe=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return safe?this.isInvalidate()?"":trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),BigIntDecimal}();function getMiniDecimal(value){return supportBigInt()?new BigIntDecimal(value):new NumberDecimal(value)}function toFixed(numStr,separatorStr,precision){var cutOnly=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===numStr)return"";var _trimNumber2=trimNumber(numStr),negativeStr=_trimNumber2.negativeStr,integerStr=_trimNumber2.integerStr,decimalStr=_trimNumber2.decimalStr,precisionDecimalStr="".concat(separatorStr).concat(decimalStr),numberWithoutDecimal="".concat(negativeStr).concat(integerStr);if(precision>=0){var advancedNum=Number(decimalStr[precision]);return advancedNum>=5&&!cutOnly?toFixed(getMiniDecimal(numStr).add("".concat(negativeStr,"0.").concat("0".repeat(precision)).concat(10-advancedNum)).toString(),separatorStr,precision,cutOnly):0===precision?numberWithoutDecimal:"".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision,"0").slice(0,precision))}return".0"===precisionDecimalStr?numberWithoutDecimal:"".concat(numberWithoutDecimal).concat(precisionDecimalStr)}var isMobile=__webpack_require__(31131);function StepHandler(_ref){var prefixCls=_ref.prefixCls,upNode=_ref.upNode,downNode=_ref.downNode,upDisabled=_ref.upDisabled,downDisabled=_ref.downDisabled,onStep=_ref.onStep,stepTimeoutRef=react.useRef(),onStepRef=react.useRef();onStepRef.current=onStep;var onStepMouseDown=function(e,up){e.preventDefault(),onStepRef.current(up),stepTimeoutRef.current=setTimeout(function loopStep(){onStepRef.current(up),stepTimeoutRef.current=setTimeout(loopStep,200)},600)},onStopStep=function(){clearTimeout(stepTimeoutRef.current)};if(react.useEffect(function(){return onStopStep},[]),(0,isMobile.Z)())return null;var handlerClassName="".concat(prefixCls,"-handler"),upClassName=classnames_default()(handlerClassName,"".concat(handlerClassName,"-up"),(0,defineProperty.Z)({},"".concat(handlerClassName,"-up-disabled"),upDisabled)),downClassName=classnames_default()(handlerClassName,"".concat(handlerClassName,"-down"),(0,defineProperty.Z)({},"".concat(handlerClassName,"-down-disabled"),downDisabled)),sharedHandlerProps={unselectable:"on",role:"button",onMouseUp:onStopStep,onMouseLeave:onStopStep};return react.createElement("div",{className:"".concat(handlerClassName,"-wrap")},react.createElement("span",(0,esm_extends.Z)({},sharedHandlerProps,{onMouseDown:function(e){onStepMouseDown(e,!0)},"aria-label":"Increase Value","aria-disabled":upDisabled,className:upClassName}),upNode||react.createElement("span",{unselectable:"on",className:"".concat(prefixCls,"-handler-up-inner")})),react.createElement("span",(0,esm_extends.Z)({},sharedHandlerProps,{onMouseDown:function(e){onStepMouseDown(e,!1)},"aria-label":"Decrease Value","aria-disabled":downDisabled,className:downClassName}),downNode||react.createElement("span",{unselectable:"on",className:"".concat(prefixCls,"-handler-down-inner")})))}var warning=__webpack_require__(80334),raf=__webpack_require__(75164),useFrame=function(){var idRef=(0,react.useRef)(0),cleanUp=function(){raf.Z.cancel(idRef.current)};return(0,react.useEffect)(function(){return cleanUp},[]),function(callback){cleanUp(),idRef.current=(0,raf.Z)(function(){callback()})}},_excluded=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],getDecimalValue=function(stringMode,decimalValue){return stringMode||decimalValue.isEmpty()?decimalValue.toString():decimalValue.toNumber()},getDecimalIfValidate=function(value){var decimal=getMiniDecimal(value);return decimal.isInvalidate()?null:decimal},InputNumber=react.forwardRef(function(props,ref){var input,selectionRef,_classNames,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-input-number":_props$prefixCls,className=props.className,style=props.style,min=props.min,max=props.max,_props$step=props.step,step=void 0===_props$step?1:_props$step,defaultValue=props.defaultValue,value=props.value,disabled=props.disabled,readOnly=props.readOnly,upHandler=props.upHandler,downHandler=props.downHandler,keyboard=props.keyboard,_props$controls=props.controls,stringMode=props.stringMode,parser=props.parser,formatter=props.formatter,precision=props.precision,decimalSeparator=props.decimalSeparator,onChange=props.onChange,onInput=props.onInput,onPressEnter=props.onPressEnter,onStep=props.onStep,inputProps=(0,objectWithoutProperties.Z)(props,_excluded),inputClassName="".concat(prefixCls,"-input"),inputRef=react.useRef(null),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),focus=_React$useState2[0],setFocus=_React$useState2[1],userTypingRef=react.useRef(!1),compositionRef=react.useRef(!1),shiftKeyRef=react.useRef(!1),_React$useState3=react.useState(function(){return getMiniDecimal(null!=value?value:defaultValue)}),_React$useState4=(0,slicedToArray.Z)(_React$useState3,2),decimalValue=_React$useState4[0],setDecimalValue=_React$useState4[1],getPrecision=react.useCallback(function(numStr,userTyping){return userTyping?void 0:precision>=0?precision:Math.max(getNumberPrecision(numStr),getNumberPrecision(step))},[precision,step]),mergedParser=react.useCallback(function(num){var numStr=String(num);if(parser)return parser(numStr);var parsedStr=numStr;return decimalSeparator&&(parsedStr=parsedStr.replace(decimalSeparator,".")),parsedStr.replace(/[^\w.-]+/g,"")},[parser,decimalSeparator]),inputValueRef=react.useRef(""),mergedFormatter=react.useCallback(function(number,userTyping){if(formatter)return formatter(number,{userTyping:userTyping,input:String(inputValueRef.current)});var str="number"==typeof number?num2str(number):number;if(!userTyping){var mergedPrecision=getPrecision(str,userTyping);validateNumber(str)&&(decimalSeparator||mergedPrecision>=0)&&(str=toFixed(str,decimalSeparator||".",mergedPrecision))}return str},[formatter,getPrecision,decimalSeparator]),_React$useState5=react.useState(function(){var initValue=null!=defaultValue?defaultValue:value;return decimalValue.isInvalidate()&&["string","number"].includes((0,esm_typeof.Z)(initValue))?Number.isNaN(initValue)?"":initValue:mergedFormatter(decimalValue.toString(),!1)}),_React$useState6=(0,slicedToArray.Z)(_React$useState5,2),inputValue=_React$useState6[0],setInternalInputValue=_React$useState6[1];function setInputValue(newValue,userTyping){setInternalInputValue(mergedFormatter(newValue.isInvalidate()?newValue.toString(!1):newValue.toString(!userTyping),userTyping))}inputValueRef.current=inputValue;var maxDecimal=react.useMemo(function(){return getDecimalIfValidate(max)},[max,precision]),minDecimal=react.useMemo(function(){return getDecimalIfValidate(min)},[min,precision]),upDisabled=react.useMemo(function(){return!(!maxDecimal||!decimalValue||decimalValue.isInvalidate())&&maxDecimal.lessEquals(decimalValue)},[maxDecimal,decimalValue]),downDisabled=react.useMemo(function(){return!(!minDecimal||!decimalValue||decimalValue.isInvalidate())&&decimalValue.lessEquals(minDecimal)},[minDecimal,decimalValue]),_useCursor=(input=inputRef.current,selectionRef=(0,react.useRef)(null),[function(){try{var start=input.selectionStart,end=input.selectionEnd,value=input.value,beforeTxt=value.substring(0,start),afterTxt=value.substring(end);selectionRef.current={start:start,end:end,value:value,beforeTxt:beforeTxt,afterTxt:afterTxt}}catch(e){}},function(){if(input&&selectionRef.current&&focus)try{var value=input.value,_selectionRef$current=selectionRef.current,beforeTxt=_selectionRef$current.beforeTxt,afterTxt=_selectionRef$current.afterTxt,start=_selectionRef$current.start,startPos=value.length;if(value.endsWith(afterTxt))startPos=value.length-selectionRef.current.afterTxt.length;else if(value.startsWith(beforeTxt))startPos=beforeTxt.length;else{var beforeLastChar=beforeTxt[start-1],newIndex=value.indexOf(beforeLastChar,start-1);-1!==newIndex&&(startPos=newIndex+1)}input.setSelectionRange(startPos,startPos)}catch(e){(0,warning.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),_useCursor2=(0,slicedToArray.Z)(_useCursor,2),recordCursor=_useCursor2[0],restoreCursor=_useCursor2[1],getRangeValue=function(target){return maxDecimal&&!target.lessEquals(maxDecimal)?maxDecimal:minDecimal&&!minDecimal.lessEquals(target)?minDecimal:null},isInRange=function(target){return!getRangeValue(target)},triggerValueUpdate=function(newValue,userTyping){var updateValue=newValue,isRangeValidate=isInRange(updateValue)||updateValue.isEmpty();if(updateValue.isEmpty()||userTyping||(updateValue=getRangeValue(updateValue)||updateValue,isRangeValidate=!0),!readOnly&&!disabled&&isRangeValidate){var newDecimal,numStr=updateValue.toString(),mergedPrecision=getPrecision(numStr,userTyping);return mergedPrecision>=0&&!isInRange(updateValue=getMiniDecimal(toFixed(numStr,".",mergedPrecision)))&&(updateValue=getMiniDecimal(toFixed(numStr,".",mergedPrecision,!0))),updateValue.equals(decimalValue)||(newDecimal=updateValue,void 0===value&&setDecimalValue(newDecimal),null==onChange||onChange(updateValue.isEmpty()?null:getDecimalValue(stringMode,updateValue)),void 0===value&&setInputValue(updateValue,userTyping)),updateValue}return decimalValue},onNextPromise=useFrame(),collectInputValue=function collectInputValue(inputStr){if(recordCursor(),setInternalInputValue(inputStr),!compositionRef.current){var finalDecimal=getMiniDecimal(mergedParser(inputStr));finalDecimal.isNaN()||triggerValueUpdate(finalDecimal,!0)}null==onInput||onInput(inputStr),onNextPromise(function(){var nextInputStr=inputStr;parser||(nextInputStr=inputStr.replace(/。/g,".")),nextInputStr!==inputStr&&collectInputValue(nextInputStr)})},onInternalStep=function(up){if((!up||!upDisabled)&&(up||!downDisabled)){userTypingRef.current=!1;var _inputRef$current,stepDecimal=getMiniDecimal(shiftKeyRef.current?getDecupleSteps(step):step);up||(stepDecimal=stepDecimal.negate());var updatedValue=triggerValueUpdate((decimalValue||getMiniDecimal(0)).add(stepDecimal.toString()),!1);null==onStep||onStep(getDecimalValue(stringMode,updatedValue),{offset:shiftKeyRef.current?getDecupleSteps(step):step,type:up?"up":"down"}),null===(_inputRef$current=inputRef.current)||void 0===_inputRef$current||_inputRef$current.focus()}},flushInputValue=function(userTyping){var parsedValue=getMiniDecimal(mergedParser(inputValue)),formatValue=parsedValue;formatValue=parsedValue.isNaN()?decimalValue:triggerValueUpdate(parsedValue,userTyping),void 0!==value?setInputValue(decimalValue,!1):formatValue.isNaN()||setInputValue(formatValue,!1)};return(0,useLayoutEffect.o)(function(){decimalValue.isInvalidate()||setInputValue(decimalValue,!1)},[precision]),(0,useLayoutEffect.o)(function(){var newValue=getMiniDecimal(value);setDecimalValue(newValue);var currentParsedValue=getMiniDecimal(mergedParser(inputValue));newValue.equals(currentParsedValue)&&userTypingRef.current&&!formatter||setInputValue(newValue,userTypingRef.current)},[value]),(0,useLayoutEffect.o)(function(){formatter&&restoreCursor()},[inputValue]),react.createElement("div",{className:classnames_default()(prefixCls,className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-focused"),focus),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-disabled"),disabled),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-readonly"),readOnly),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-not-a-number"),decimalValue.isNaN()),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-out-of-range"),!decimalValue.isInvalidate()&&!isInRange(decimalValue)),_classNames)),style:style,onFocus:function(){setFocus(!0)},onBlur:function(){flushInputValue(!1),setFocus(!1),userTypingRef.current=!1},onKeyDown:function(event){var which=event.which,shiftKey=event.shiftKey;userTypingRef.current=!0,shiftKey?shiftKeyRef.current=!0:shiftKeyRef.current=!1,which===KeyCode.Z.ENTER&&(compositionRef.current||(userTypingRef.current=!1),flushInputValue(!1),null==onPressEnter||onPressEnter(event)),!1!==keyboard&&!compositionRef.current&&[KeyCode.Z.UP,KeyCode.Z.DOWN].includes(which)&&(onInternalStep(KeyCode.Z.UP===which),event.preventDefault())},onKeyUp:function(){userTypingRef.current=!1,shiftKeyRef.current=!1},onCompositionStart:function(){compositionRef.current=!0},onCompositionEnd:function(){compositionRef.current=!1,collectInputValue(inputRef.current.value)}},(void 0===_props$controls||_props$controls)&&react.createElement(StepHandler,{prefixCls:prefixCls,upNode:upHandler,downNode:downHandler,upDisabled:upDisabled,downDisabled:downDisabled,onStep:onInternalStep}),react.createElement("div",{className:"".concat(inputClassName,"-wrap")},react.createElement("input",(0,esm_extends.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":min,"aria-valuemax":max,"aria-valuenow":decimalValue.isInvalidate()?null:decimalValue.toString(),step:step},inputProps,{ref:(0,es_ref.sQ)(inputRef,ref),className:inputClassName,value:inputValue,onChange:function(e){collectInputValue(e.target.value)},disabled:disabled,readOnly:readOnly}))))});InputNumber.displayName="InputNumber";var context=__webpack_require__(53124),DisabledContext=__webpack_require__(98866),SizeContext=__webpack_require__(97647),form_context=__webpack_require__(65223),Compact=__webpack_require__(4173),reactNode=__webpack_require__(96159),statusUtils=__webpack_require__(9708),__rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&0>e.indexOf(p)&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,p=Object.getOwnPropertySymbols(s);ie.indexOf(p[i])&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},input_number_InputNumber=react.forwardRef(function(props,ref){var _React$useContext=react.useContext(context.E_),getPrefixCls=_React$useContext.getPrefixCls,direction=_React$useContext.direction,size=react.useContext(SizeContext.Z),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),focused=_React$useState2[0],setFocus=_React$useState2[1],inputRef=react.useRef(null);react.useImperativeHandle(ref,function(){return inputRef.current});var className=props.className,customizeSize=props.size,customDisabled=props.disabled,customizePrefixCls=props.prefixCls,addonBefore=props.addonBefore,addonAfter=props.addonAfter,prefix=props.prefix,_props$bordered=props.bordered,bordered=void 0===_props$bordered||_props$bordered,readOnly=props.readOnly,customStatus=props.status,controls=props.controls,others=__rest(props,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),prefixCls=getPrefixCls("input-number",customizePrefixCls),_useCompactItemContex=(0,Compact.ri)(prefixCls,direction),compactSize=_useCompactItemContex.compactSize,compactItemClassnames=_useCompactItemContex.compactItemClassnames,upIcon=react.createElement(icons_UpOutlined,{className:"".concat(prefixCls,"-handler-up-inner")}),downIcon=react.createElement(DownOutlined.Z,{className:"".concat(prefixCls,"-handler-down-inner")});"object"===(0,esm_typeof.Z)(controls)&&(upIcon=void 0===controls.upIcon?upIcon:react.createElement("span",{className:"".concat(prefixCls,"-handler-up-inner")},controls.upIcon),downIcon=void 0===controls.downIcon?downIcon:react.createElement("span",{className:"".concat(prefixCls,"-handler-down-inner")},controls.downIcon));var _useContext=(0,react.useContext)(form_context.aM),hasFeedback=_useContext.hasFeedback,contextStatus=_useContext.status,isFormItemInput=_useContext.isFormItemInput,feedbackIcon=_useContext.feedbackIcon,mergedStatus=(0,statusUtils.F)(contextStatus,customStatus),mergeSize=compactSize||customizeSize||size,disabled=react.useContext(DisabledContext.Z),mergedDisabled=null!=customDisabled?customDisabled:disabled,inputNumberClass=classnames_default()((_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-lg"),"large"===mergeSize),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-sm"),"small"===mergeSize),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-rtl"),"rtl"===direction),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-borderless"),!bordered),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-in-form-item"),isFormItemInput),_classNames),(0,statusUtils.Z)(prefixCls,mergedStatus),compactItemClassnames,className),element=react.createElement(InputNumber,(0,esm_extends.Z)({ref:inputRef,disabled:mergedDisabled,className:inputNumberClass,upHandler:upIcon,downHandler:downIcon,prefixCls:prefixCls,readOnly:readOnly,controls:"boolean"==typeof controls?controls:void 0},others));if(null!=prefix||hasFeedback){var _classNames,_classNames2,affixWrapperCls=classnames_default()("".concat(prefixCls,"-affix-wrapper"),(0,statusUtils.Z)("".concat(prefixCls,"-affix-wrapper"),mergedStatus,hasFeedback),(_classNames2={},(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-focused"),focused),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-disabled"),props.disabled),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-sm"),"small"===size),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-lg"),"large"===size),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-rtl"),"rtl"===direction),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-readonly"),readOnly),(0,defineProperty.Z)(_classNames2,"".concat(prefixCls,"-affix-wrapper-borderless"),!bordered),(0,defineProperty.Z)(_classNames2,"".concat(className),!(addonBefore||addonAfter)&&className),_classNames2));element=react.createElement("div",{className:affixWrapperCls,style:props.style,onMouseUp:function(){return inputRef.current.focus()}},prefix&&react.createElement("span",{className:"".concat(prefixCls,"-prefix")},prefix),(0,reactNode.Tm)(element,{style:null,value:props.value,onFocus:function(event){var _a;setFocus(!0),null===(_a=props.onFocus)||void 0===_a||_a.call(props,event)},onBlur:function(event){var _a;setFocus(!1),null===(_a=props.onBlur)||void 0===_a||_a.call(props,event)}}),hasFeedback&&react.createElement("span",{className:"".concat(prefixCls,"-suffix")},feedbackIcon))}if(null!=addonBefore||null!=addonAfter){var _classNames4,wrapperClassName="".concat(prefixCls,"-group"),addonClassName="".concat(wrapperClassName,"-addon"),addonBeforeNode=addonBefore?react.createElement("div",{className:addonClassName},addonBefore):null,addonAfterNode=addonAfter?react.createElement("div",{className:addonClassName},addonAfter):null,mergedWrapperClassName=classnames_default()("".concat(prefixCls,"-wrapper"),wrapperClassName,(0,defineProperty.Z)({},"".concat(wrapperClassName,"-rtl"),"rtl"===direction)),mergedGroupClassName=classnames_default()("".concat(prefixCls,"-group-wrapper"),(_classNames4={},(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-sm"),"small"===size),(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-lg"),"large"===size),(0,defineProperty.Z)(_classNames4,"".concat(prefixCls,"-group-wrapper-rtl"),"rtl"===direction),_classNames4),(0,statusUtils.Z)("".concat(prefixCls,"-group-wrapper"),mergedStatus,hasFeedback),className);element=react.createElement("div",{className:mergedGroupClassName,style:props.style},react.createElement("div",{className:mergedWrapperClassName},addonBeforeNode&&react.createElement(form_context.Ux,{status:!0,override:!0},addonBeforeNode),(0,reactNode.Tm)(element,{style:null,disabled:mergedDisabled}),addonAfterNode&&react.createElement(form_context.Ux,{status:!0,override:!0},addonAfterNode)))}return element}),FormStatusIndicator=__webpack_require__(39664);let TEXTFIELD_TYPE_TEXT="default",TEXTFIELD_TYPE_PASSWORD="password",TEXTFIELD_TYPE_NUMBER="numeric",TEXTFIELD_TYPE_TEXTAREA="textarea",TEXTFIELD_TYPE_URL="url",TextField=param=>{let{className,disabled,fieldName,label,maxLength,onBlur,onChange,onPressEnter,pattern,placeholder,required,status,tip,type,useTrim,value}=param,handleChange=e=>{if(onChange){let val=type===TEXTFIELD_TYPE_NUMBER?e:e.target.value;onChange({fieldName,value:useTrim?val.trim():val})}},handleBlur=e=>{let val=e.target.value;onBlur&&onBlur({value:val})},handlePressEnter=()=>{onPressEnter&&onPressEnter()},Field=input.Z,fieldProps={};type===TEXTFIELD_TYPE_TEXTAREA?(Field=input.Z.TextArea,fieldProps={autoSize:!0}):type===TEXTFIELD_TYPE_PASSWORD?(Field=input.Z.Password,fieldProps={visibilityToggle:!0}):type===TEXTFIELD_TYPE_NUMBER?(Field=input_number_InputNumber,fieldProps={type:"number",min:1,max:10**maxLength-1}):type===TEXTFIELD_TYPE_URL&&(fieldProps={type:"url",pattern});let fieldId="field-".concat(fieldName),{type:statusType}=status||{},containerClass=classnames_default()({"formfield-container":!0,"textfield-container":!0,["type-".concat(type)]:!0,required,["status-".concat(statusType)]:status});return(0,jsx_runtime.jsxs)("div",{className:containerClass,children:[label?(0,jsx_runtime.jsx)("div",{className:"label-side",children:(0,jsx_runtime.jsx)("label",{htmlFor:fieldId,className:"formfield-label",children:label})}):null,(0,jsx_runtime.jsxs)("div",{className:"input-side",children:[(0,jsx_runtime.jsx)("div",{className:"input-group",children:(0,jsx_runtime.jsx)(Field,{id:fieldId,className:"field ".concat(className," ").concat(fieldId),...fieldProps,...type!==TEXTFIELD_TYPE_NUMBER&&{allowClear:!0},placeholder:placeholder,maxLength:maxLength,onChange:handleChange,onBlur:handleBlur,onPressEnter:handlePressEnter,disabled:disabled,value:value})}),(0,jsx_runtime.jsx)(FormStatusIndicator.E,{status:status}),(0,jsx_runtime.jsx)("p",{className:"field-tip",children:tip})]})]})};TextField.defaultProps={className:"",disabled:!1,label:"",maxLength:255,placeholder:"",required:!1,status:null,tip:"",type:TEXTFIELD_TYPE_TEXT,value:"",pattern:"",useTrim:!1,useTrimLead:!1,onSubmit(){},onBlur(){},onChange(){},onPressEnter(){}}},10135:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$7:function(){return TextFieldWithSubmit},Kx:function(){return TEXTFIELD_TYPE_TEXT},Sk:function(){return TEXTFIELD_TYPE_TEXTAREA},xA:function(){return TEXTFIELD_TYPE_URL}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),antd__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(71577),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(90745),_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(41983),_utils_server_status_context__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(99519),_FormStatusIndicator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(39664),_TextField__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(40117);let TEXTFIELD_TYPE_TEXT="default",TEXTFIELD_TYPE_TEXTAREA="textarea",TEXTFIELD_TYPE_URL="url",TextFieldWithSubmit=param=>{let{apiPath,configPath="",initialValue,useTrim,useTrimLead,...textFieldProps}=param,[submitStatus,setSubmitStatus]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),[hasChanged,setHasChanged]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),serverStatusData=(0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils_server_status_context__WEBPACK_IMPORTED_MODULE_5__.aC),{setFieldInConfigState}=serverStatusData||{},resetTimer=null,{fieldName,required,tip,status,value,onChange,onSubmit}=textFieldProps,resetStates=()=>{setSubmitStatus(null),setHasChanged(!1),clearTimeout(resetTimer),resetTimer=null};(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(()=>{required&&(""===value||null===value)||value===initialValue?setHasChanged(!1):(resetStates(),setHasChanged(!0))},[value]);let handleChange=param=>{let{fieldName:changedFieldName,value:changedValue}=param;if(onChange){let newValue=changedValue;useTrim?newValue=changedValue.trim():useTrimLead&&(newValue=changedValue.replace(/^\s+/g,"")),onChange({fieldName:changedFieldName,value:newValue})}},handleBlur=param=>{let{value:changedValue}=param;onChange&&required&&""===changedValue&&onChange({fieldName,value:initialValue})},handleSubmit=async()=>{(required&&""!==value||value!==initialValue)&&(setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.Jk)),await (0,_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__.Si)({apiPath,data:{value},onSuccess(){setFieldInConfigState({fieldName,value,path:configPath}),setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.zv))},onError(message){setSubmitStatus((0,_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.kg)(_utils_input_statuses__WEBPACK_IMPORTED_MODULE_4__.Un,"There was an error: ".concat(message)))}}),resetTimer=setTimeout(resetStates,_utils_config_constants__WEBPACK_IMPORTED_MODULE_3__.sI),onSubmit&&onSubmit())},textfieldContainerClass=classnames__WEBPACK_IMPORTED_MODULE_1___default()({"textfield-with-submit-container":!0,submittable:hasChanged});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:textfieldContainerClass,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"textfield-component",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_TextField__WEBPACK_IMPORTED_MODULE_7__.nv,{...textFieldProps,onSubmit:null,onBlur:handleBlur,onChange:handleChange})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"formfield-container lower-container",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"label-spacer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"lower-content",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"field-tip",children:tip}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_FormStatusIndicator__WEBPACK_IMPORTED_MODULE_6__.E,{status:status||submitStatus}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"update-button-container",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__.Z,{type:"primary",size:"small",className:"submit-button",onClick:handleSubmit,disabled:!hasChanged,children:"Update"})})]})]})]})};TextFieldWithSubmit.defaultProps={configPath:"",initialValue:""}},10227:function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDomainLocale=function(path,locale,locales,domainLocales){return!1},("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},31551:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _interop_require_default=__webpack_require__(92648).Z,_object_without_properties_loose=__webpack_require__(17273).Z,_react=_interop_require_default(__webpack_require__(67294)),_router=__webpack_require__(41003),_formatUrl=__webpack_require__(67795),_addLocale=__webpack_require__(54465),_routerContext=__webpack_require__(72692),_appRouterContext=__webpack_require__(48245),_useIntersection=__webpack_require__(69246),_getDomainLocale=__webpack_require__(10227),_addBasePath=__webpack_require__(33468);let prefetched=new Set;function prefetch(router,href,as,options){if(_router.isLocalURL(href)){if(!options.bypassPrefetchedCheck){let locale=void 0!==options.locale?options.locale:"locale"in router?router.locale:void 0,prefetchedKey=href+"%"+as+"%"+locale;if(prefetched.has(prefetchedKey))return;prefetched.add(prefetchedKey)}Promise.resolve(router.prefetch(href,as,options)).catch(err=>{})}}function formatStringOrUrl(urlObjOrString){return"string"==typeof urlObjOrString?urlObjOrString:_formatUrl.formatUrl(urlObjOrString)}let Link=_react.default.forwardRef(function(props,forwardedRef){let children,child;let{href:hrefProp,as:asProp,children:childrenProp,prefetch:prefetchProp,passHref,replace,shallow,scroll,locale,onClick,onMouseEnter:onMouseEnterProp,onTouchStart:onTouchStartProp,legacyBehavior=!0!==Boolean(!0)}=props,restProps=_object_without_properties_loose(props,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);children=childrenProp,legacyBehavior&&("string"==typeof children||"number"==typeof children)&&(children=_react.default.createElement("a",null,children));let prefetchEnabled=!1!==prefetchProp,pagesRouter=_react.default.useContext(_routerContext.RouterContext),appRouter=_react.default.useContext(_appRouterContext.AppRouterContext),router=null!=pagesRouter?pagesRouter:appRouter,isAppRouter=!pagesRouter,{href,as}=_react.default.useMemo(()=>{if(!pagesRouter){let resolvedHref=formatStringOrUrl(hrefProp);return{href:resolvedHref,as:asProp?formatStringOrUrl(asProp):resolvedHref}}let[resolvedHref1,resolvedAs]=_router.resolveHref(pagesRouter,hrefProp,!0);return{href:resolvedHref1,as:asProp?_router.resolveHref(pagesRouter,asProp):resolvedAs||resolvedHref1}},[pagesRouter,hrefProp,asProp]),previousHref=_react.default.useRef(href),previousAs=_react.default.useRef(as);legacyBehavior&&(child=_react.default.Children.only(children));let childRef=legacyBehavior?child&&"object"==typeof child&&child.ref:forwardedRef,[setIntersectionRef,isVisible,resetVisible]=_useIntersection.useIntersection({rootMargin:"200px"}),setRef=_react.default.useCallback(el=>{(previousAs.current!==as||previousHref.current!==href)&&(resetVisible(),previousAs.current=as,previousHref.current=href),setIntersectionRef(el),childRef&&("function"==typeof childRef?childRef(el):"object"==typeof childRef&&(childRef.current=el))},[as,childRef,href,resetVisible,setIntersectionRef]);_react.default.useEffect(()=>{router&&isVisible&&prefetchEnabled&&prefetch(router,href,as,{locale})},[as,href,isVisible,locale,prefetchEnabled,null==pagesRouter?void 0:pagesRouter.locale,router]);let childProps={ref:setRef,onClick(e){legacyBehavior||"function"!=typeof onClick||onClick(e),legacyBehavior&&child.props&&"function"==typeof child.props.onClick&&child.props.onClick(e),router&&!e.defaultPrevented&&function(e,router,href,as,replace,shallow,scroll,locale,isAppRouter,prefetchEnabled){let{nodeName}=e.currentTarget,isAnchorNodeName="A"===nodeName.toUpperCase();if(isAnchorNodeName&&(function(event){let{target}=event.currentTarget;return target&&"_self"!==target||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey||event.nativeEvent&&2===event.nativeEvent.which}(e)||!_router.isLocalURL(href)))return;e.preventDefault();let navigate=()=>{"beforePopState"in router?router[replace?"replace":"push"](href,as,{shallow,locale,scroll}):router[replace?"replace":"push"](as||href,{forceOptimisticNavigation:!prefetchEnabled})};isAppRouter?_react.default.startTransition(navigate):navigate()}(e,router,href,as,replace,shallow,scroll,locale,isAppRouter,prefetchEnabled)},onMouseEnter(e){legacyBehavior||"function"!=typeof onMouseEnterProp||onMouseEnterProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onMouseEnter&&child.props.onMouseEnter(e),router&&(prefetchEnabled||!isAppRouter)&&prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart(e){legacyBehavior||"function"!=typeof onTouchStartProp||onTouchStartProp(e),legacyBehavior&&child.props&&"function"==typeof child.props.onTouchStart&&child.props.onTouchStart(e),router&&(prefetchEnabled||!isAppRouter)&&prefetch(router,href,as,{locale,priority:!0,bypassPrefetchedCheck:!0})}};if(!legacyBehavior||passHref||"a"===child.type&&!("href"in child.props)){let curLocale=void 0!==locale?locale:null==pagesRouter?void 0:pagesRouter.locale,localeDomain=(null==pagesRouter?void 0:pagesRouter.isLocaleDomain)&&_getDomainLocale.getDomainLocale(as,curLocale,null==pagesRouter?void 0:pagesRouter.locales,null==pagesRouter?void 0:pagesRouter.domainLocales);childProps.href=localeDomain||_addBasePath.addBasePath(_addLocale.addLocale(as,curLocale,null==pagesRouter?void 0:pagesRouter.defaultLocale))}return legacyBehavior?_react.default.cloneElement(child,childProps):_react.default.createElement("a",Object.assign({},restProps,childProps),children)});exports.default=Link,("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},69246:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useIntersection=function(param){let{rootRef,rootMargin,disabled}=param,isDisabled=disabled||!hasIntersectionObserver,[visible,setVisible]=_react.useState(!1),[element,setElement]=_react.useState(null);_react.useEffect(()=>{if(hasIntersectionObserver){if(!isDisabled&&!visible&&element&&element.tagName){let unobserve=function(element,callback,options){let{id,observer,elements}=function(options){let instance;let id={root:options.root||null,margin:options.rootMargin||""},existing=idList.find(obj=>obj.root===id.root&&obj.margin===id.margin);if(existing&&(instance=observers.get(existing)))return instance;let elements=new Map,observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{let callback=elements.get(entry.target),isVisible=entry.isIntersecting||entry.intersectionRatio>0;callback&&isVisible&&callback(isVisible)})},options);return instance={id,observer,elements},idList.push(id),observers.set(id,instance),instance}(options);return elements.set(element,callback),observer.observe(element),function(){if(elements.delete(element),observer.unobserve(element),0===elements.size){observer.disconnect(),observers.delete(id);let index=idList.findIndex(obj=>obj.root===id.root&&obj.margin===id.margin);index>-1&&idList.splice(index,1)}}}(element,isVisible=>isVisible&&setVisible(isVisible),{root:null==rootRef?void 0:rootRef.current,rootMargin});return unobserve}}else if(!visible){let idleCallback=_requestIdleCallback.requestIdleCallback(()=>setVisible(!0));return()=>_requestIdleCallback.cancelIdleCallback(idleCallback)}},[element,isDisabled,rootMargin,rootRef,visible]);let resetVisible=_react.useCallback(()=>{setVisible(!1)},[]);return[setElement,visible,resetVisible]};var _react=__webpack_require__(67294),_requestIdleCallback=__webpack_require__(44686);let hasIntersectionObserver="function"==typeof IntersectionObserver,observers=new Map,idList=[];("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},6462:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _app}});var jsx_runtime=__webpack_require__(85893);__webpack_require__(63785),__webpack_require__(75575),__webpack_require__(58090),__webpack_require__(45354),__webpack_require__(34146);var next_router=__webpack_require__(11163),es=__webpack_require__(4480),react=__webpack_require__(67294),server_status_context=__webpack_require__(99519),alert_message_context=__webpack_require__(82661),prop_types=__webpack_require__(45697),prop_types_default=__webpack_require__.n(prop_types),next_link=__webpack_require__(41664),link_default=__webpack_require__.n(next_link),head=__webpack_require__(9008),head_default=__webpack_require__.n(head),differenceInSeconds=__webpack_require__(11699),layout=__webpack_require__(97183),es_alert=__webpack_require__(14670),typography=__webpack_require__(84485),popover=__webpack_require__(55241),menu=__webpack_require__(66516),space=__webpack_require__(26713),tooltip=__webpack_require__(94199),es_button=__webpack_require__(71577),objectSpread2=__webpack_require__(1413),asn_PlayCircleFilled={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},AntdIcon=__webpack_require__(42135),PlayCircleFilled_PlayCircleFilled=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_PlayCircleFilled}))};PlayCircleFilled_PlayCircleFilled.displayName="PlayCircleFilled";var icons_PlayCircleFilled=react.forwardRef(PlayCircleFilled_PlayCircleFilled),asn_MinusSquareFilled={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-square",theme:"filled"},MinusSquareFilled_MinusSquareFilled=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_MinusSquareFilled}))};MinusSquareFilled_MinusSquareFilled.displayName="MinusSquareFilled";var icons_MinusSquareFilled=react.forwardRef(MinusSquareFilled_MinusSquareFilled),asn_HomeOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},HomeOutlined_HomeOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_HomeOutlined}))};HomeOutlined_HomeOutlined.displayName="HomeOutlined";var icons_HomeOutlined=react.forwardRef(HomeOutlined_HomeOutlined),asn_LineChartOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},LineChartOutlined_LineChartOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_LineChartOutlined}))};LineChartOutlined_LineChartOutlined.displayName="LineChartOutlined";var icons_LineChartOutlined=react.forwardRef(LineChartOutlined_LineChartOutlined),MessageOutlined=__webpack_require__(38545),asn_SettingOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},SettingOutlined_SettingOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_SettingOutlined}))};SettingOutlined_SettingOutlined.displayName="SettingOutlined";var icons_SettingOutlined=react.forwardRef(SettingOutlined_SettingOutlined),asn_ToolOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},ToolOutlined_ToolOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_ToolOutlined}))};ToolOutlined_ToolOutlined.displayName="ToolOutlined";var icons_ToolOutlined=react.forwardRef(ToolOutlined_ToolOutlined),asn_ExperimentOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},ExperimentOutlined_ExperimentOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_ExperimentOutlined}))};ExperimentOutlined_ExperimentOutlined.displayName="ExperimentOutlined";var icons_ExperimentOutlined=react.forwardRef(ExperimentOutlined_ExperimentOutlined),asn_QuestionCircleOutlined={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},QuestionCircleOutlined_QuestionCircleOutlined=function(props,ref){return react.createElement(AntdIcon.Z,(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{ref:ref,icon:asn_QuestionCircleOutlined}))};QuestionCircleOutlined_QuestionCircleOutlined.displayName="QuestionCircleOutlined";var icons_QuestionCircleOutlined=react.forwardRef(QuestionCircleOutlined_QuestionCircleOutlined),EditOutlined=__webpack_require__(86548),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),apis=__webpack_require__(64777),format=__webpack_require__(70241),OwncastLogo=__webpack_require__(50738),TextFieldWithSubmit=__webpack_require__(10135),config_constants=__webpack_require__(90745),input=__webpack_require__(69677),modal=__webpack_require__(85402),input_statuses=__webpack_require__(41983);let{TextArea}=input.Z,ComposeFederatedPost=param=>{let{open,handleClose}=param,[content,setContent]=(0,react.useState)(""),[postPending,setPostPending]=(0,react.useState)(!1),[postSuccessState,setPostSuccessState]=(0,react.useState)(null);function close(){setPostPending(!1),setPostSuccessState(null),handleClose()}async function sendButtonClicked(){setPostPending(!0);try{await (0,apis.rQ)(apis.e_,{data:{value:content},method:"POST",auth:!0}),setPostSuccessState(input_statuses.zv),setTimeout(close,1e3)}catch(e){console.error(e),setPostSuccessState(input_statuses.Un)}setPostPending(!1)}return(0,jsx_runtime.jsx)(modal.Z,{destroyOnClose:!0,width:600,title:"Post to Followers",open:open,onCancel:handleClose,footer:[(0,jsx_runtime.jsx)(es_button.Z,{onClick:()=>handleClose(),children:"Cancel"}),(0,jsx_runtime.jsx)(es_button.Z,{type:"primary",onClick:sendButtonClicked,disabled:postPending||postSuccessState,loading:postPending,children:(null==postSuccessState?void 0:postSuccessState.toUpperCase())||"Post"})],children:(0,jsx_runtime.jsx)(TextArea,{placeholder:"Tell the world about your streaming plans...",size:"large",showCount:!0,maxLength:500,style:{height:"150px",width:"100%"},onChange:function(e){setContent(e.target.value)}})})},MainLayout=param=>{let{children}=param,context=(0,react.useContext)(server_status_context.aC),{serverConfig,online,broadcaster,versionNumber}=context||{},{instanceDetails,chatDisabled,federation}=serverConfig,{enabled:federationEnabled}=federation,[currentStreamTitle,setCurrentStreamTitle]=(0,react.useState)(""),[postModalDisplayed,setPostModalDisplayed]=(0,react.useState)(!1),alertMessage=(0,react.useContext)(alert_message_context.k),router=(0,next_router.useRouter)(),{route}=router||{},{Header,Footer,Content,Sider}=layout.Z,[upgradeVersion,setUpgradeVersion]=(0,react.useState)(""),checkForUpgrade=async()=>{try{let result=await (0,apis.GR)(versionNumber);setUpgradeVersion(result)}catch(error){console.log("==== error",error)}};(0,react.useEffect)(()=>{checkForUpgrade()},[versionNumber]),(0,react.useEffect)(()=>{setCurrentStreamTitle(instanceDetails.streamTitle)},[instanceDetails]);let handleStreamTitleChanged=param=>{let{value}=param;setCurrentStreamTitle(value)},handleCreatePostButtonPressed=()=>{setPostModalDisplayed(!0)},appClass=classnames_default()({"app-container":!0,online}),clearAlertMessage=()=>{alertMessage.setMessage(null)},headerAlertMessage=alertMessage.message?(0,jsx_runtime.jsx)(es_alert.Z,{message:alertMessage.message,afterClose:clearAlertMessage,banner:!0,closable:!0}):null,streamDurationString=broadcaster?(0,format.wS)((0,differenceInSeconds.Z)(new Date,new Date(broadcaster.time))):"",currentThumbnail=online?(0,jsx_runtime.jsx)("img",{src:"/thumbnail.jpg",className:"online-thumbnail",alt:"current thumbnail",width:"1rem"}):null,statusIcon=online?(0,jsx_runtime.jsx)(icons_PlayCircleFilled,{}):(0,jsx_runtime.jsx)(icons_MinusSquareFilled,{}),popoverTitle=(0,jsx_runtime.jsx)(typography.Z.Text,{children:"Thumbnail"}),statusIndicator=(0,jsx_runtime.jsxs)("div",{className:"online-status-indicator",children:[(0,jsx_runtime.jsx)("span",{className:"status-label",children:online?"Online ".concat(streamDurationString):"Offline"}),(0,jsx_runtime.jsx)("span",{className:"status-icon",children:statusIcon})]}),statusIndicatorWithThumb=online?(0,jsx_runtime.jsx)(popover.Z,{content:currentThumbnail,title:popoverTitle,trigger:"hover",children:statusIndicator}):statusIndicator,integrationsMenu=[{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/webhooks",children:"Webhooks"}),key:"webhooks"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/access-tokens",children:"Access Tokens"}),key:"access-tokens"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/actions",children:"External Actions"}),key:"actions"}],chatMenu=[{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/chat/messages",children:"Messages"}),key:"messages"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/chat/users",children:"Users"}),key:"chat-users"}],utilitiesMenu=[{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/hardware-info",children:"Hardware"}),key:"hardware-info"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/stream-health",children:"Stream Health"}),key:"stream-health"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/logs",children:"Logs"}),key:"logs"},federationEnabled&&{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/federation/actions",children:"Social Actions"}),key:"federation-activities"}],configurationMenu=[{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-public-details",children:"General"}),key:"config-public-details"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-server-details",children:"Server Setup"}),key:"config-server-details"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-video",children:"Video"}),key:"config-video"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-chat",children:"Chat"}),key:"config-chat"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-federation",children:"Social"}),key:"config-federation"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-notify",children:"Notifications"}),key:"config-notify"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config/appearance",children:"Appearance"}),key:"config-appearance"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/config-storage",children:"S3 Storage"}),key:"config-storage"}],menuItems=[{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin",children:"Home"}),icon:(0,jsx_runtime.jsx)(icons_HomeOutlined,{}),key:"home"},{label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/viewer-info",children:"Viewers"}),icon:(0,jsx_runtime.jsx)(icons_LineChartOutlined,{}),key:"viewer-info"},!chatDisabled&&{key:"chat-config",label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/viewer-info",children:"Chat & Users"}),icon:(0,jsx_runtime.jsx)(MessageOutlined.Z,{}),children:chatMenu},federationEnabled&&{key:"fediverse-followers",label:(0,jsx_runtime.jsx)(link_default(),{href:"/admin/federation/followers",children:"Followers"}),icon:(0,jsx_runtime.jsx)("img",{alt:"fediverse icon",src:"/admin/fediverse-white.png",width:"15rem",style:{opacity:.6,position:"relative",top:"-1px"}})},{key:"configuration",label:"Configuration",icon:(0,jsx_runtime.jsx)(icons_SettingOutlined,{}),children:configurationMenu},{key:"utilities",label:"Utilities",icon:(0,jsx_runtime.jsx)(icons_ToolOutlined,{}),children:utilitiesMenu},{key:"integrations",label:"Integrations",icon:(0,jsx_runtime.jsx)(icons_ExperimentOutlined,{}),children:integrationsMenu},upgradeVersion&&{key:"upgrade",label:(0,jsx_runtime.jsx)(link_default(),{href:"/upgrade",children:"Upgrade to v".concat("".concat(upgradeVersion)||"")})},{key:"help",label:"Help",icon:(0,jsx_runtime.jsx)(icons_QuestionCircleOutlined,{})}];return(0,jsx_runtime.jsxs)(layout.Z,{className:appClass,children:[(0,jsx_runtime.jsxs)(head_default(),{children:[(0,jsx_runtime.jsx)("title",{children:"Owncast Admin"}),(0,jsx_runtime.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"})]}),(0,jsx_runtime.jsxs)(Sider,{width:240,className:"side-nav",children:[(0,jsx_runtime.jsxs)("h1",{className:"owncast-title",children:[(0,jsx_runtime.jsx)("span",{className:"logo-container",children:(0,jsx_runtime.jsx)(OwncastLogo.C,{variant:"simple"})}),(0,jsx_runtime.jsx)("span",{className:"title-label",children:"Owncast Admin"})]}),(0,jsx_runtime.jsx)(menu.Z,{defaultSelectedKeys:[route.substring(1)||"home"],defaultOpenKeys:upgradeVersion?["utilities-menu"]:[],mode:"inline",className:"menu-container",items:menuItems})]}),(0,jsx_runtime.jsxs)(layout.Z,{className:"layout-main",children:[(0,jsx_runtime.jsxs)(Header,{className:"layout-header",children:[(0,jsx_runtime.jsx)(space.Z,{direction:"horizontal",children:(0,jsx_runtime.jsx)(tooltip.Z,{title:"Compose post to your followers",children:(0,jsx_runtime.jsx)(es_button.Z,{type:"primary",shape:"circle",icon:(0,jsx_runtime.jsx)(EditOutlined.Z,{}),size:"large",onClick:handleCreatePostButtonPressed,style:{display:federationEnabled?"block":"none"}})})}),(0,jsx_runtime.jsx)("div",{className:"global-stream-title-container",children:(0,jsx_runtime.jsx)(TextFieldWithSubmit.$7,{fieldName:"streamTitle",...config_constants.$t,placeholder:"What are you streaming now",value:currentStreamTitle,initialValue:instanceDetails.streamTitle,onChange:handleStreamTitleChanged})}),(0,jsx_runtime.jsx)(space.Z,{direction:"horizontal",children:statusIndicatorWithThumb})]}),headerAlertMessage,(0,jsx_runtime.jsx)(Content,{className:"main-content-container",children:children}),(0,jsx_runtime.jsx)(Footer,{className:"footer-container",children:(0,jsx_runtime.jsxs)("a",{href:"https://owncast.online/?source=admin",target:"_blank",rel:"noopener noreferrer",children:["About Owncast v",versionNumber]})})]}),(0,jsx_runtime.jsx)(ComposeFederatedPost,{open:postModalDisplayed,handleClose:()=>setPostModalDisplayed(!1)})]})};MainLayout.propTypes={children:prop_types_default().element.isRequired};let AdminLayout=param=>{let{Component,pageProps}=param;return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/main-layout.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/form-textfields.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-socialhandles.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-storage.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-edit-string-tags.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-video-variants.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-public-details.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/home.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/chat.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/pages.css"}),(0,jsx_runtime.jsx)("link",{rel:"stylesheet",href:"/styles/admin/offline-notice.css"}),(0,jsx_runtime.jsx)(server_status_context.ZP,{children:(0,jsx_runtime.jsx)(alert_message_context.Z,{children:(0,jsx_runtime.jsx)(MainLayout,{children:(0,jsx_runtime.jsx)(Component,{...pageProps})})})})]})},SimpleLayout=param=>{let{Component,pageProps}=param;return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(Component,{...pageProps})})},App=param=>{let{Component,pageProps}=param;(0,react.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/serviceWorker.js").then(registration=>{console.debug("Service Worker registration successful with scope: ",registration.scope)},err=>{console.error("Service Worker registration failed: ",err)})})},[]);let router=(0,next_router.useRouter)();return router.pathname.startsWith("/admin")?(0,jsx_runtime.jsx)(AdminLayout,{pageProps:pageProps,Component:Component,router:router}):(0,jsx_runtime.jsx)(es.Wh,{children:(0,jsx_runtime.jsx)(SimpleLayout,{pageProps:pageProps,Component:Component,router:router})})};var _app=App},82661:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return AlertMessageContext}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);let AlertMessageContext=react__WEBPACK_IMPORTED_MODULE_1__.createContext({message:null,setMessage:text=>null}),AlertMessageProvider=param=>{let{children}=param,[message,setMessage]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)("");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(AlertMessageContext.Provider,{value:{message,setMessage},children:children})};AlertMessageProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().element.isRequired},__webpack_exports__.Z=AlertMessageProvider},64777:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$i:function(){return SOCIAL_PLATFORMS_LIST},$l:function(){return getUnauthedData},Bu:function(){return BANNED_IPS},E8:function(){return FOLLOWERS_PENDING},GC:function(){return MODERATORS},GR:function(){return upgradeVersionAvailable},HP:function(){return FOLLOWERS},IO:function(){return CREATE_ACCESS_TOKEN},Kp:function(){return CONNECTED_CLIENTS},Kt:function(){return getGithubRelease},M_:function(){return DELETE_WEBHOOK},N$:function(){return API_STREAM_HEALTH_METRICS},NE:function(){return FETCH_INTERVAL},NM:function(){return USER_ENABLED_TOGGLE},Q_:function(){return STATUS},RB:function(){return BANNED_IP_REMOVE},UJ:function(){return API_YP_RESET},WB:function(){return NEXT_PUBLIC_API_HOST},WE:function(){return CHAT_HISTORY},WQ:function(){return LOGS_WARN},Wr:function(){return DELETE_ACCESS_TOKEN},XA:function(){return WEBHOOKS},Y9:function(){return FOLLOWERS_BLOCKED},a_:function(){return ACTIVE_VIEWER_DETAILS},ao:function(){return SERVER_CONFIG_UPDATE_URL},bl:function(){return SERVER_CONFIG},e_:function(){return FEDERATION_MESSAGE_SEND},hn:function(){return UPDATE_CHAT_MESSGAE_VIZ},iG:function(){return CREATE_WEBHOOK},iV:function(){return VIEWERS_OVER_TIME},jr:function(){return USER_SET_MODERATOR},kb:function(){return SET_FOLLOWER_APPROVAL},kg:function(){return fetchExternalData},ms:function(){return ACCESS_TOKENS},nx:function(){return HARDWARE_STATS},op:function(){return FEDERATION_ACTIONS},qk:function(){return DISABLED_USERS},rQ:function(){return fetchData},sG:function(){return LOGS_ALL}});var process=__webpack_require__(34155);let ADMIN_USERNAME=process.env.NEXT_PUBLIC_ADMIN_USERNAME,ADMIN_STREAMKEY=process.env.NEXT_PUBLIC_ADMIN_STREAMKEY,NEXT_PUBLIC_API_HOST="/",API_LOCATION="".concat(NEXT_PUBLIC_API_HOST,"api/admin/"),FETCH_INTERVAL=15e3,STATUS="".concat(API_LOCATION,"status"),SERVER_CONFIG="".concat(API_LOCATION,"serverconfig"),SERVER_CONFIG_UPDATE_URL="".concat(API_LOCATION,"config"),VIEWERS_OVER_TIME="".concat(API_LOCATION,"viewersOverTime"),ACTIVE_VIEWER_DETAILS="".concat(API_LOCATION,"viewers"),CONNECTED_CLIENTS="".concat(API_LOCATION,"chat/clients"),DISABLED_USERS="".concat(API_LOCATION,"chat/users/disabled"),USER_ENABLED_TOGGLE="".concat(API_LOCATION,"chat/users/setenabled"),BANNED_IPS="".concat(API_LOCATION,"chat/users/ipbans"),BANNED_IP_REMOVE="".concat(API_LOCATION,"chat/users/ipbans/remove"),USER_SET_MODERATOR="".concat(API_LOCATION,"chat/users/setmoderator"),MODERATORS="".concat(API_LOCATION,"chat/users/moderators"),HARDWARE_STATS="".concat(API_LOCATION,"hardwarestats"),LOGS_ALL="".concat(API_LOCATION,"logs"),LOGS_WARN="".concat(API_LOCATION,"logs/warnings"),CHAT_HISTORY="".concat(API_LOCATION,"chat/messages"),UPDATE_CHAT_MESSGAE_VIZ="/api/admin/chat/messagevisibility",ACCESS_TOKENS="".concat(API_LOCATION,"accesstokens"),DELETE_ACCESS_TOKEN="".concat(API_LOCATION,"accesstokens/delete"),CREATE_ACCESS_TOKEN="".concat(API_LOCATION,"accesstokens/create"),WEBHOOKS="".concat(API_LOCATION,"webhooks"),DELETE_WEBHOOK="".concat(API_LOCATION,"webhooks/delete"),CREATE_WEBHOOK="".concat(API_LOCATION,"webhooks/create"),SOCIAL_PLATFORMS_LIST="".concat(NEXT_PUBLIC_API_HOST,"api/socialplatforms"),FEDERATION_MESSAGE_SEND="".concat(API_LOCATION,"federation/send"),FOLLOWERS="".concat(API_LOCATION,"followers"),FOLLOWERS_PENDING="".concat(API_LOCATION,"followers/pending"),FOLLOWERS_BLOCKED="".concat(API_LOCATION,"followers/blocked"),SET_FOLLOWER_APPROVAL="".concat(API_LOCATION,"followers/approve"),FEDERATION_ACTIONS="".concat(API_LOCATION,"federation/actions"),API_STREAM_HEALTH_METRICS="".concat(API_LOCATION,"metrics/video"),API_YP_RESET="".concat(API_LOCATION,"yp/reset");async function fetchData(url,options){let{data,method="GET",auth=!0}=options||{},requestOptions={method};if(data&&(requestOptions.body=JSON.stringify(data)),auth&&ADMIN_USERNAME&&ADMIN_STREAMKEY){let encoded=btoa("".concat(ADMIN_USERNAME,":").concat(ADMIN_STREAMKEY));requestOptions.headers={Authorization:"Basic ".concat(encoded)},requestOptions.mode="cors",requestOptions.credentials="include"}try{let response=await fetch(url,requestOptions),json=await response.json();if(!response.ok){let message=json.message||"An error has occurred: ".concat(response.status);throw Error(message)}return json}catch(error){return console.error(error),error}}async function getUnauthedData(url,options){let opts={method:"GET",auth:!1,...options};return fetchData(url,opts)}async function fetchExternalData(url){try{let response=await fetch(url,{referrerPolicy:"no-referrer",referrer:""});if(!response.ok){let message="An error has occured: ".concat(response.status);throw Error(message)}let json=await response.json();return json}catch(error){console.log(error)}return{}}async function getGithubRelease(){return fetchExternalData("https://api.github.com/repos/owncast/owncast/releases/latest")}let VPAT=/^\d+(\.\d+){0,2}$/;async function upgradeVersionAvailable(currentVersion){let recentRelease=await getGithubRelease(),recentReleaseVersion=recentRelease.tag_name;return("v"===recentReleaseVersion.substr(0,1)&&(recentReleaseVersion=recentReleaseVersion.substr(1)),!function(local,remote){if(!local||!remote||0===local.length||0===remote.length)return!1;if(local===remote)return!0;if(VPAT.test(local)&&VPAT.test(remote)){let lparts=local.split(".");for(;lparts.length<3;)lparts.push("0");let rparts=remote.split(".");for(;rparts.length<3;)rparts.push("0");for(let i=0;i<3;i++){let l=parseInt(lparts[i],10),r=parseInt(rparts[i],10);if(l!==r)return l>r}return!0}return local>=remote}(currentVersion,recentReleaseVersion))?recentReleaseVersion:null}},90745:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$Z:function(){return TWITTER_CONFIG_FIELDS},$t:function(){return TEXTFIELD_PROPS_STREAM_TITLE},$w:function(){return API_S3_INFO},AA:function(){return API_CUSTOM_CONTENT},AN:function(){return TEXTFIELD_PROPS_CHAT_SUGGESTED_USERNAMES},AP:function(){return API_YP_SWITCH},BF:function(){return TEXTFIELD_PROPS_FEDERATION_LIVE_MESSAGE},B_:function(){return FIELD_PROPS_FEDERATION_NSFW},CJ:function(){return API_CHAT_FORBIDDEN_USERNAMES},CQ:function(){return API_VIDEO_CODEC},Dg:function(){return TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES},EY:function(){return FIELD_PROPS_NSFW},FE:function(){return FIELD_PROPS_SHOW_FEDERATION_ENGAGEMENT},HM:function(){return VIDEO_BITRATE_SLIDER_MARKS},I$:function(){return ENCODER_PRESET_TOOLTIPS},IX:function(){return TEXTFIELD_PROPS_SERVER_WELCOME_MESSAGE},KB:function(){return TEXTFIELD_PROPS_FFMPEG},Kl:function(){return FIELD_PROPS_ENABLE_FEDERATION},LC:function(){return FIELD_PROPS_FEDERATION_IS_PRIVATE},ME:function(){return TEXTFIELD_PROPS_SOCKET_HOST_OVERRIDE},P:function(){return FIELD_PROPS_YP},RE:function(){return TEXTFIELD_PROPS_SERVER_NAME},Ri:function(){return TEXTFIELD_PROPS_STREAM_KEY},SS:function(){return VIDEO_NAME_DEFAULTS},Si:function(){return postConfigUpdateToAPI},Xc:function(){return TEXTFIELD_PROPS_FEDERATION_DEFAULT_USER},Xq:function(){return FRAMERATE_SLIDER_MARKS},ZQ:function(){return TEXTFIELD_PROPS_LOGO},_X:function(){return FIELD_PROPS_HIDE_VIEWER_COUNT},c9:function(){return API_SOCIAL_HANDLES},cf:function(){return API_CHAT_SUGGESTED_USERNAMES},cj:function(){return TEXTFIELD_PROPS_INSTANCE_URL},d$:function(){return API_CUSTOM_CSS_STYLES},dL:function(){return VIDEO_VARIANT_SETTING_DEFAULTS},dR:function(){return FIELD_PROPS_FEDERATION_BLOCKED_DOMAINS},dj:function(){return CHAT_ESTABLISHED_USER_MODE},gX:function(){return DEFAULT_VARIANT_STATE},i3:function(){return ENCODER_RECOMMENDATION_THRESHOLD},kB:function(){return FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED},lT:function(){return TEXTFIELD_PROPS_RTMP_PORT},mv:function(){return BROWSER_PUSH_CONFIG_FIELDS},nm:function(){return FRAMERATE_DEFAULTS},os:function(){return API_EXTERNAL_ACTIONS},oy:function(){return DISCORD_CONFIG_FIELDS},pE:function(){return API_FEDERATION_BLOCKED_DOMAINS},rE:function(){return TEXTFIELD_PROPS_WEB_PORT},rd:function(){return TEXTFIELD_PROPS_SERVER_OFFLINE_MESSAGE},rs:function(){return TEXTFIELD_PROPS_SERVER_SUMMARY},sI:function(){return RESET_TIMEOUT},sv:function(){return API_VIDEO_SEGMENTS},t$:function(){return ENCODER_PRESET_SLIDER_MARKS},vv:function(){return API_VIDEO_VARIANTS},wC:function(){return DEFAULT_SOCIAL_HANDLE},x8:function(){return FRAMERATE_TOOLTIPS},yC:function(){return VIDEO_BITRATE_DEFAULTS},y_:function(){return FIELD_PROPS_TAGS},yi:function(){return TEXTFIELD_PROPS_FEDERATION_INSTANCE_URL},yj:function(){return FIELD_PROPS_DISABLE_CHAT},z_:function(){return OTHER_SOCIAL_HANDLE_OPTION},zm:function(){return S3_TEXT_FIELDS_INFO}});var _apis__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(64777),_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(40117),_urls__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(37174);let RESET_TIMEOUT=3e3,API_CUSTOM_CONTENT="/pagecontent",API_CUSTOM_CSS_STYLES="/customstyles",API_INSTANCE_URL="/serverurl",API_NSFW_SWITCH="/nsfw",API_S3_INFO="/s3",API_SOCIAL_HANDLES="/socialhandles",API_VIDEO_SEGMENTS="/video/streamlatencylevel",API_VIDEO_VARIANTS="/video/streamoutputvariants",API_YP_SWITCH="/directoryenabled",API_CHAT_FORBIDDEN_USERNAMES="/chat/forbiddenusernames",API_CHAT_SUGGESTED_USERNAMES="/chat/suggestedusernames",API_EXTERNAL_ACTIONS="/externalactions",API_VIDEO_CODEC="/video/codec",API_FEDERATION_BLOCKED_DOMAINS="/federation/blockdomains";async function postConfigUpdateToAPI(args){let{apiPath,data,onSuccess,onError}=args,result=await (0,_apis__WEBPACK_IMPORTED_MODULE_0__.rQ)("".concat(_apis__WEBPACK_IMPORTED_MODULE_0__.ao).concat(apiPath),{data,method:"POST",auth:!0});result.success&&onSuccess?onSuccess(result.message):onError&&onError(result.message)}let TEXTFIELD_PROPS_SERVER_NAME={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},TEXTFIELD_PROPS_STREAM_TITLE={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},TEXTFIELD_PROPS_SERVER_SUMMARY={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},TEXTFIELD_PROPS_SERVER_OFFLINE_MESSAGE={apiPath:"/offlinemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"An optional message you can leave people when your stream is not live.",label:"Offline Message",tip:"An optional message you can leave people when your stream is not live."},TEXTFIELD_PROPS_SERVER_WELCOME_MESSAGE={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},TEXTFIELD_PROPS_LOGO={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms."},TEXTFIELD_PROPS_STREAM_KEY={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},TEXTFIELD_PROPS_FFMPEG={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},TEXTFIELD_PROPS_WEB_PORT={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},TEXTFIELD_PROPS_RTMP_PORT={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},TEXTFIELD_PROPS_INSTANCE_URL={apiPath:API_INSTANCE_URL,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},TEXTFIELD_PROPS_SOCKET_HOST_OVERRIDE={apiPath:"/sockethostoverride",configPath:"",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Websocket host override",tip:"The direct URL of your Owncast server.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},FIELD_PROPS_TAGS={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},FIELD_PROPS_NSFW={apiPath:API_NSFW_SWITCH,configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},FIELD_PROPS_YP={apiPath:API_YP_SWITCH,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},FIELD_PROPS_HIDE_VIEWER_COUNT={apiPath:"/hideviewercount",configPath:"",label:"Hide viewer count",tip:"Turn this ON to hide the viewer count the web page."},DEFAULT_VARIANT_STATE={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},FIELD_PROPS_DISABLE_CHAT={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED={apiPath:"/chat/joinmessagesenabled",configPath:"",label:"Join Messages",tip:"Show when a viewer joins the chat.",useSubmit:!0},CHAT_ESTABLISHED_USER_MODE={apiPath:"/chat/establishedusermode",configPath:"",label:"Established users only",tip:"Only users who have previously been established for some time may chat.",useSubmit:!0},TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES={apiPath:API_CHAT_FORBIDDEN_USERNAMES,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},TEXTFIELD_PROPS_CHAT_SUGGESTED_USERNAMES={apiPath:API_CHAT_SUGGESTED_USERNAMES,placeholder:"username",label:"Default usernames",tip:"An optional list of chat usernames that new users get assigned. If the list holds less then 10 items, random names will be generated. Users can change their usernames afterwards and the same username may be given out multple times.",min_not_reached:"At least 10 items are required for this feature.",no_entries:"The default name generator is used."},FIELD_PROPS_ENABLE_FEDERATION={apiPath:"/federation/enable",configPath:"federation",label:"Enable Social Features",tip:"Send and receive activities on the Fediverse.",useSubmit:!0},FIELD_PROPS_FEDERATION_IS_PRIVATE={apiPath:"/federation/private",configPath:"federation",label:"Private",tip:"Follow requests will require approval and only followers will see your activity.",useSubmit:!0},FIELD_PROPS_SHOW_FEDERATION_ENGAGEMENT={apiPath:"/federation/showengagement",configPath:"showEngagement",label:"Show engagement",tip:"Following, liking and sharing will appear in the chat feed.",useSubmit:!0},TEXTFIELD_PROPS_FEDERATION_LIVE_MESSAGE={apiPath:"/federation/livemessage",configPath:"federation",maxLength:500,placeholder:"My stream has started, tune in!",label:"Now Live message",tip:"The message sent announcing that your live stream has begun. Tags will be automatically added. Leave blank to disable."},TEXTFIELD_PROPS_FEDERATION_DEFAULT_USER={apiPath:"/federation/username",configPath:"federation",maxLength:10,placeholder:"owncast",default:"owncast",label:"Username",tip:'The username used for sending and receiving activities from the Fediverse. For example, if you use "bob" as a username you would send messages to the fediverse from @bob@yourserver. Once people start following your instance you should not change this.'},TEXTFIELD_PROPS_FEDERATION_INSTANCE_URL={apiPath:API_INSTANCE_URL,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},FIELD_PROPS_FEDERATION_NSFW={apiPath:API_NSFW_SWITCH,configPath:"instanceDetails",label:"Potentially NSFW",tip:"Turn this ON if you plan to steam explicit or adult content so previews of your stream can be marked as potentially sensitive."},FIELD_PROPS_FEDERATION_BLOCKED_DOMAINS={apiPath:API_FEDERATION_BLOCKED_DOMAINS,configPath:"federation",label:"Blocked domains",placeholder:"bad.domain.biz",tip:"You can block specific domains from interacting with you."},VIDEO_VARIANT_SETTING_DEFAULTS={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},FRAMERATE_DEFAULTS={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},FRAMERATE_SLIDER_MARKS={[FRAMERATE_DEFAULTS.min]:"".concat(FRAMERATE_DEFAULTS.min," ").concat(FRAMERATE_DEFAULTS.unit),25:" ",30:" ",50:" ",60:" ",90:" ",[FRAMERATE_DEFAULTS.max]:"".concat(FRAMERATE_DEFAULTS.max," ").concat(FRAMERATE_DEFAULTS.unit)},FRAMERATE_TOOLTIPS={[FRAMERATE_DEFAULTS.min]:"".concat(FRAMERATE_DEFAULTS.min,"fps - Good for film, presentations, music, low power/bandwidth servers."),25:"25fps - Good for film, presentations, music, low power/bandwidth servers.",30:"30fps - Good for slow/casual games, chat, general purpose.",50:"50fps - Good for fast/action games, sports, HD video.",60:"60fps - Good for fast/action games, sports, HD video.",90:"90fps - Good for newer fast games and hardware.",[FRAMERATE_DEFAULTS.max]:"".concat(FRAMERATE_DEFAULTS.max,"fps - Experimental, use at your own risk!")},VIDEO_BITRATE_DEFAULTS={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},VIDEO_NAME_DEFAULTS={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},VIDEO_BITRATE_SLIDER_MARKS={[VIDEO_BITRATE_DEFAULTS.min]:"".concat(VIDEO_BITRATE_DEFAULTS.min," ").concat(VIDEO_BITRATE_DEFAULTS.unit),3e3:3e3,4500:4500,[VIDEO_BITRATE_DEFAULTS.max]:"".concat(VIDEO_BITRATE_DEFAULTS.max," ").concat(VIDEO_BITRATE_DEFAULTS.unit)},ENCODER_PRESET_SLIDER_MARKS={1:"lowest",2:"",3:"",4:"",5:"highest"},ENCODER_PRESET_TOOLTIPS={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},ENCODER_RECOMMENDATION_THRESHOLD={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},DEFAULT_SOCIAL_HANDLE={url:"",platform:""},OTHER_SOCIAL_HANDLE_OPTION="OTHER_SOCIAL_HANDLE_OPTION",S3_TEXT_FIELDS_INFO={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}},DISCORD_CONFIG_FIELDS={webhookUrl:{fieldName:"webhook",label:"Webhook URL",maxLength:255,placeholder:"https://discord.com/api/webhooks/837/jf38-6iNEv",tip:"The webhook assigned to your channel.",type:_components_config_TextField__WEBPACK_IMPORTED_MODULE_1__.xA,pattern:_urls__WEBPACK_IMPORTED_MODULE_2__.a,useTrim:!0},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:300,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},BROWSER_PUSH_CONFIG_FIELDS={goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},TWITTER_CONFIG_FIELDS={apiKey:{fieldName:"apiKey",label:"API Key",maxLength:200,tip:"",placeholder:"gaUQhRC2lqfrEFfElBXJgOctU"},apiSecret:{fieldName:"apiSecret",label:"API Secret",maxLength:200,tip:"",placeholder:"IIz4jFZMWbUKdFOEGUprFjRwIslG56d1SPQlolJYjXwJ2y2qKS"},accessToken:{fieldName:"accessToken",label:"Access Token",maxLength:200,tip:"",placeholder:"952540400-EEiwe9fkuSvWjnNC82YFa9kgpqbyAP3J7FjE2dkka"},accessTokenSecret:{fieldName:"accessTokenSecret",label:"Access Token Secret",maxLength:200,tip:"",placeholder:"xO0AZWNGfZxpNsYPg3zNEKhAsPPGvNZFlzQArA2khI9Kg"},bearerToken:{fieldName:"bearerToken",label:"Bearer Token",maxLength:200,tip:"",placeholder:"AAAAAAAAAAAAAAFqpXwEAAnnepHkjA8XD5ftx5jUadYIRtPtaq7AAAAwpXPpDWKDcdhiWr0tVDjsgW%2B4awGOM9VQ%3XPoMFuWcHsE42TK"},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}}},70241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AB:function(){return formatUAstring},Qr:function(){return isEmptyObject},t5:function(){return formatIPAddress},wS:function(){return parseSecondsToDurationString}});var ua_parser_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(42238),ua_parser_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ua_parser_js__WEBPACK_IMPORTED_MODULE_0__);function formatIPAddress(ipAddress){let ipAddressComponents=ipAddress.split(":");ipAddressComponents[ipAddressComponents.length-1]="";let ip=ipAddressComponents.join(":");return"[::1]"===(ip=ip.slice(0,ip.length-1))||"127.0.0.1"===ip?"Localhost":ip}function isEmptyObject(obj){return!obj||0===Object.keys(obj).length&&obj.constructor===Object}function padLeft(text,pad,size){return String(pad.repeat(size)+text).slice(-size)}function parseSecondsToDurationString(){let seconds=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,finiteSeconds=Number.isFinite(+seconds)?Math.abs(seconds):0,days=Math.floor(finiteSeconds/86400),daysString=days>0?"".concat(days," day").concat(days>1?"s":""," "):"",hours=Math.floor(finiteSeconds/3600%24),hoursString=hours||days?padLeft("".concat(hours,":"),"0",3):"",minString=padLeft("".concat(Math.floor(finiteSeconds/60%60),":"),"0",3),secsString=padLeft("".concat(Math.floor(finiteSeconds%60)),"0",2);return daysString+hoursString+minString+secsString}function formatUAstring(uaString){let parser=ua_parser_js__WEBPACK_IMPORTED_MODULE_0___default()(uaString),{device,os,browser}=parser,{major:browserVersion,name}=browser,{version:osVersion,name:osName}=os,{model,type}=device;return"libmpv"===uaString?"mpv media player":name&&browserVersion&&osName?"".concat(name," ").concat(browserVersion," on ").concat(osName," ").concat(osVersion,"\n ").concat(model||type?" (".concat(model||type,")"):""):uaString}},41983:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Jk:function(){return STATUS_PROCESSING},Un:function(){return STATUS_ERROR},dG:function(){return STATUS_WARNING},kg:function(){return createInputStatus},zv:function(){return STATUS_SUCCESS}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),_ant_design_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(89739),_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(21640),_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(50888),_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(28058);let STATUS_ERROR="error",STATUS_INVALID="invalid",STATUS_PROCESSING="proessing",STATUS_SUCCESS="success",STATUS_WARNING="warning",INPUT_STATES={[STATUS_SUCCESS]:{type:STATUS_SUCCESS,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_1__.Z,{style:{color:"green"}}),message:"Success!"},[STATUS_ERROR]:{type:STATUS_ERROR,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__.Z,{style:{color:"red"}}),message:"An error occurred."},[STATUS_INVALID]:{type:STATUS_INVALID,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_2__.Z,{style:{color:"red"}}),message:"An error occurred."},[STATUS_PROCESSING]:{type:STATUS_PROCESSING,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.Z,{}),message:""},[STATUS_WARNING]:{type:STATUS_WARNING,icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__.Z,{style:{color:"#fc0"}}),message:""}};function createInputStatus(type,message){return type&&INPUT_STATES[type]?message?{type,icon:INPUT_STATES[type].icon,message}:INPUT_STATES[type]:null}},99519:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{aC:function(){return ServerStatusContext}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),_apis__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(64777),_config_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(90745);let initialServerConfigState={streamKey:"",instanceDetails:{customStyles:"",extraPageContent:"",logo:"",name:"",nsfw:!1,socialHandles:[],streamTitle:"",summary:"",tags:[],title:"",welcomeMessage:"",offlineMessage:"",appearanceVariables:{}},ffmpegPath:"",rtmpServerPort:"",webServerPort:"",socketHostOverride:null,s3:{accessKey:"",acl:"",bucket:"",enabled:!1,endpoint:"",region:"",secret:"",servingEndpoint:"",forcePathStyle:!1},yp:{enabled:!1,instanceUrl:""},videoSettings:{latencyLevel:4,cpuUsageLevel:3,videoQualityVariants:[_config_constants__WEBPACK_IMPORTED_MODULE_3__.gX]},federation:{enabled:!1,isPrivate:!1,username:"",goLiveMessage:"",showEngagement:!0,blockedDomains:[]},notifications:{browser:{enabled:!1,goLiveMessage:""},discord:{enabled:!1,webhook:"",goLiveMessage:""},twitter:{enabled:!1,goLiveMessage:"",apiKey:"",apiSecret:"",accessToken:"",accessTokenSecret:"",bearerToken:""}},externalActions:[],supportedCodecs:[],videoCodec:"",forbiddenUsernames:[],suggestedUsernames:[],chatDisabled:!1,chatJoinMessagesEnabled:!0,chatEstablishedUserMode:!1,hideViewerCount:!1},initialServerStatusState={broadcastActive:!1,broadcaster:null,currentBroadcast:null,online:!1,viewerCount:0,sessionMaxViewerCount:0,sessionPeakViewerCount:0,overallPeakViewerCount:0,versionNumber:"0.0.0",streamTitle:"",chatDisabled:!1,health:{healthy:!0,healthPercentage:100,message:"",representation:0}},ServerStatusContext=react__WEBPACK_IMPORTED_MODULE_1__.createContext({...initialServerStatusState,serverConfig:initialServerConfigState,setFieldInConfigState:args=>null}),ServerStatusProvider=param=>{let{children}=param,[status,setStatus]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialServerStatusState),[config,setConfig]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialServerConfigState),getStatus=async()=>{try{let result=await (0,_apis__WEBPACK_IMPORTED_MODULE_2__.rQ)(_apis__WEBPACK_IMPORTED_MODULE_2__.Q_);setStatus({...result})}catch(error){}},getConfig=async()=>{try{let result=await (0,_apis__WEBPACK_IMPORTED_MODULE_2__.rQ)(_apis__WEBPACK_IMPORTED_MODULE_2__.bl);setConfig(result)}catch(error){}},setFieldInConfigState=param=>{let{fieldName,value,path}=param,updatedConfig=path?{...config,[path]:{...config[path],[fieldName]:value}}:{...config,[fieldName]:value};setConfig(updatedConfig)};(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{let getStatusIntervalId=null;return getStatus(),getStatusIntervalId=setInterval(getStatus,_apis__WEBPACK_IMPORTED_MODULE_2__.NE),getConfig(),()=>{clearInterval(getStatusIntervalId)}},[]);let providerValue={...status,serverConfig:config,setFieldInConfigState};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ServerStatusContext.Provider,{value:providerValue,children:children})};ServerStatusProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_4___default().element.isRequired},__webpack_exports__.ZP=ServerStatusProvider},37174:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isValidUrl},a:function(){return DEFAULT_TEXTFIELD_URL_PATTERN}});let DEFAULT_TEXTFIELD_URL_PATTERN="https?://.*";function isValidUrl(url){try{let validationObject=new URL(url);if(""===validationObject.protocol||""===validationObject.hostname||!["http:","https:"].includes(validationObject.protocol))return!1}catch(e){return!1}return!0}},63785:function(){},34146:function(){},45354:function(){},58090:function(){},75575:function(){},29403:function(module){module.exports={root:"OwncastLogo_root__uDVJf",contrast:"OwncastLogo_contrast__rDMJY",simple:"OwncastLogo_simple___hC9r"}},9008:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(83121)},41664:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(31551)},11163:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(80880)},34155:function(module){var cachedSetTimeout,cachedClearTimeout,currentQueue,process=module.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e1){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e1){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,dynamicCSS.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(isOverflow?"width: calc(100% - ".concat(scrollbarSize,"px);"):"","\n}"),id)}else(0,dynamicCSS.jL)(id);return function(){(0,dynamicCSS.jL)(id)}},[mergedLock,id]);var childRef=null;children&&(0,es_ref.Yr)(children)&&ref&&(childRef=children.ref);var mergedRef=(0,es_ref.x1)(childRef,ref);if(!mergedRender||!(0,canUseDom.Z)()||void 0===innerContainer)return null;var renderInline=!1===mergedContainer||("boolean"==typeof nextInline&&(inline=nextInline),inline),reffedChildren=children;return ref&&(reffedChildren=react.cloneElement(children,{ref:mergedRef})),react.createElement(OrderContext.Provider,{value:queueCreate},renderInline?reffedChildren:(0,react_dom.createPortal)(reffedChildren,mergedContainer))}),objectSpread2=__webpack_require__(1413),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),KeyCode=__webpack_require__(15105),useId_uuid=0,contains=__webpack_require__(94999),pickAttrs=__webpack_require__(64217),rc_motion_es=__webpack_require__(62874);function Mask(props){var prefixCls=props.prefixCls,style=props.style,visible=props.visible,maskProps=props.maskProps,motionName=props.motionName;return react.createElement(rc_motion_es.Z,{key:"mask",visible:visible,motionName:motionName,leavedClassName:"".concat(prefixCls,"-mask-hidden")},function(_ref,ref){var motionClassName=_ref.className,motionStyle=_ref.style;return react.createElement("div",(0,esm_extends.Z)({ref:ref,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),style),className:classnames_default()("".concat(prefixCls,"-mask"),motionClassName)},maskProps))})}function getMotionName(prefixCls,transitionName,animationName){var motionName=transitionName;return!motionName&&animationName&&(motionName="".concat(prefixCls,"-").concat(animationName)),motionName}function getScroll(w,top){var ret=w["page".concat(top?"Y":"X","Offset")],method="scroll".concat(top?"Top":"Left");if("number"!=typeof ret){var d=w.document;"number"!=typeof(ret=d.documentElement[method])&&(ret=d.body[method])}return ret}var MemoChildren=react.memo(function(_ref){return _ref.children},function(_,_ref2){return!_ref2.shouldUpdate}),sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"},Panel=react.forwardRef(function(props,ref){var footerNode,headerNode,closer,prefixCls=props.prefixCls,className=props.className,style=props.style,title=props.title,ariaId=props.ariaId,footer=props.footer,closable=props.closable,closeIcon=props.closeIcon,onClose=props.onClose,children=props.children,bodyStyle=props.bodyStyle,bodyProps=props.bodyProps,modalRender=props.modalRender,onMouseDown=props.onMouseDown,onMouseUp=props.onMouseUp,holderRef=props.holderRef,visible=props.visible,forceRender=props.forceRender,width=props.width,height=props.height,sentinelStartRef=(0,react.useRef)(),sentinelEndRef=(0,react.useRef)();react.useImperativeHandle(ref,function(){return{focus:function(){var _sentinelStartRef$cur;null===(_sentinelStartRef$cur=sentinelStartRef.current)||void 0===_sentinelStartRef$cur||_sentinelStartRef$cur.focus()},changeActive:function(next){var activeElement=document.activeElement;next&&activeElement===sentinelEndRef.current?sentinelStartRef.current.focus():next||activeElement!==sentinelStartRef.current||sentinelEndRef.current.focus()}}});var contentStyle={};void 0!==width&&(contentStyle.width=width),void 0!==height&&(contentStyle.height=height),footer&&(footerNode=react.createElement("div",{className:"".concat(prefixCls,"-footer")},footer)),title&&(headerNode=react.createElement("div",{className:"".concat(prefixCls,"-header")},react.createElement("div",{className:"".concat(prefixCls,"-title"),id:ariaId},title))),closable&&(closer=react.createElement("button",{type:"button",onClick:onClose,"aria-label":"Close",className:"".concat(prefixCls,"-close")},closeIcon||react.createElement("span",{className:"".concat(prefixCls,"-close-x")})));var content=react.createElement("div",{className:"".concat(prefixCls,"-content")},closer,headerNode,react.createElement("div",(0,esm_extends.Z)({className:"".concat(prefixCls,"-body"),style:bodyStyle},bodyProps),children),footerNode);return react.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":title?ariaId:null,"aria-modal":"true",ref:holderRef,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},style),contentStyle),className:classnames_default()(prefixCls,className),onMouseDown:onMouseDown,onMouseUp:onMouseUp},react.createElement("div",{tabIndex:0,ref:sentinelStartRef,style:sentinelStyle,"aria-hidden":"true"}),react.createElement(MemoChildren,{shouldUpdate:visible||forceRender},modalRender?modalRender(content):content),react.createElement("div",{tabIndex:0,ref:sentinelEndRef,style:sentinelStyle,"aria-hidden":"true"}))}),Content=react.forwardRef(function(props,ref){var prefixCls=props.prefixCls,title=props.title,style=props.style,className=props.className,visible=props.visible,forceRender=props.forceRender,destroyOnClose=props.destroyOnClose,motionName=props.motionName,ariaId=props.ariaId,onVisibleChanged=props.onVisibleChanged,mousePosition=props.mousePosition,dialogRef=(0,react.useRef)(),_React$useState=react.useState(),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),transformOrigin=_React$useState2[0],setTransformOrigin=_React$useState2[1],contentStyle={};function onPrepare(){var el,rect,pos,doc,w,elementOffset=(pos={left:(rect=(el=dialogRef.current).getBoundingClientRect()).left,top:rect.top},w=(doc=el.ownerDocument).defaultView||doc.parentWindow,pos.left+=getScroll(w),pos.top+=getScroll(w,!0),pos);setTransformOrigin(mousePosition?"".concat(mousePosition.x-elementOffset.left,"px ").concat(mousePosition.y-elementOffset.top,"px"):"")}return transformOrigin&&(contentStyle.transformOrigin=transformOrigin),react.createElement(rc_motion_es.Z,{visible:visible,onVisibleChanged:onVisibleChanged,onAppearPrepare:onPrepare,onEnterPrepare:onPrepare,forceRender:forceRender,motionName:motionName,removeOnLeave:destroyOnClose,ref:dialogRef},function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style;return react.createElement(Panel,(0,esm_extends.Z)({},props,{ref:ref,title:title,ariaId:ariaId,prefixCls:prefixCls,holderRef:motionRef,style:(0,objectSpread2.Z)((0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),style),contentStyle),className:classnames_default()(className,motionClassName)}))})});function Dialog(props){var id,_React$useState,_React$useState2,innerId,setInnerId,useOriginId,reactNativeId,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-dialog":_props$prefixCls,zIndex=props.zIndex,_props$visible=props.visible,visible=void 0!==_props$visible&&_props$visible,_props$keyboard=props.keyboard,keyboard=void 0===_props$keyboard||_props$keyboard,_props$focusTriggerAf=props.focusTriggerAfterClose,focusTriggerAfterClose=void 0===_props$focusTriggerAf||_props$focusTriggerAf,wrapStyle=props.wrapStyle,wrapClassName=props.wrapClassName,wrapProps=props.wrapProps,onClose=props.onClose,afterClose=props.afterClose,transitionName=props.transitionName,animation=props.animation,_props$closable=props.closable,_props$mask=props.mask,mask=void 0===_props$mask||_props$mask,maskTransitionName=props.maskTransitionName,maskAnimation=props.maskAnimation,_props$maskClosable=props.maskClosable,maskStyle=props.maskStyle,maskProps=props.maskProps,rootClassName=props.rootClassName,lastOutSideActiveElementRef=(0,react.useRef)(),wrapperRef=(0,react.useRef)(),contentRef=(0,react.useRef)(),_React$useState1=react.useState(visible),_React$useState21=(0,slicedToArray.Z)(_React$useState1,2),animatedVisible=_React$useState21[0],setAnimatedVisible=_React$useState21[1],ariaId=(_React$useState=react.useState("ssr-id"),innerId=(_React$useState2=(0,slicedToArray.Z)(_React$useState,2))[0],setInnerId=_React$useState2[1],reactNativeId=null==(useOriginId=(0,objectSpread2.Z)({},react_namespaceObject).useId)?void 0:useOriginId(),(react.useEffect(function(){if(!useOriginId){var nextId=useId_uuid;useId_uuid+=1,setInnerId("rc_unique_".concat(nextId))}},[]),id)?id:reactNativeId||innerId);function onInternalClose(e){null==onClose||onClose(e)}var contentClickRef=(0,react.useRef)(!1),contentTimeoutRef=(0,react.useRef)(),onWrapperClick=null;return(void 0===_props$maskClosable||_props$maskClosable)&&(onWrapperClick=function(e){contentClickRef.current?contentClickRef.current=!1:wrapperRef.current===e.target&&onInternalClose(e)}),(0,react.useEffect)(function(){visible&&(setAnimatedVisible(!0),(0,contains.Z)(wrapperRef.current,document.activeElement)||(lastOutSideActiveElementRef.current=document.activeElement))},[visible]),(0,react.useEffect)(function(){return function(){clearTimeout(contentTimeoutRef.current)}},[]),react.createElement("div",(0,esm_extends.Z)({className:classnames_default()("".concat(prefixCls,"-root"),rootClassName)},(0,pickAttrs.Z)(props,{data:!0})),react.createElement(Mask,{prefixCls:prefixCls,visible:mask&&visible,motionName:getMotionName(prefixCls,maskTransitionName,maskAnimation),style:(0,objectSpread2.Z)({zIndex:zIndex},maskStyle),maskProps:maskProps}),react.createElement("div",(0,esm_extends.Z)({tabIndex:-1,onKeyDown:function(e){if(keyboard&&e.keyCode===KeyCode.Z.ESC){e.stopPropagation(),onInternalClose(e);return}visible&&e.keyCode===KeyCode.Z.TAB&&contentRef.current.changeActive(!e.shiftKey)},className:classnames_default()("".concat(prefixCls,"-wrap"),wrapClassName),ref:wrapperRef,onClick:onWrapperClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({zIndex:zIndex},wrapStyle),{},{display:animatedVisible?null:"none"})},wrapProps),react.createElement(Content,(0,esm_extends.Z)({},props,{onMouseDown:function(){clearTimeout(contentTimeoutRef.current),contentClickRef.current=!0},onMouseUp:function(){contentTimeoutRef.current=setTimeout(function(){contentClickRef.current=!1})},ref:contentRef,closable:void 0===_props$closable||_props$closable,ariaId:ariaId,prefixCls:prefixCls,visible:visible&&animatedVisible,onClose:onInternalClose,onVisibleChanged:function(newVisible){if(newVisible)!function(){if(!(0,contains.Z)(wrapperRef.current,document.activeElement)){var _contentRef$current;null===(_contentRef$current=contentRef.current)||void 0===_contentRef$current||_contentRef$current.focus()}}();else{if(setAnimatedVisible(!1),mask&&lastOutSideActiveElementRef.current&&focusTriggerAfterClose){try{lastOutSideActiveElementRef.current.focus({preventScroll:!0})}catch(e){}lastOutSideActiveElementRef.current=null}animatedVisible&&(null==afterClose||afterClose())}},motionName:getMotionName(prefixCls,transitionName,animation)}))))}Content.displayName="Content";var DialogWrap=function(props){var visible=props.visible,getContainer=props.getContainer,forceRender=props.forceRender,_props$destroyOnClose=props.destroyOnClose,destroyOnClose=void 0!==_props$destroyOnClose&&_props$destroyOnClose,_afterClose=props.afterClose,_React$useState=react.useState(visible),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),animatedVisible=_React$useState2[0],setAnimatedVisible=_React$useState2[1];return(react.useEffect(function(){visible&&setAnimatedVisible(!0)},[visible]),forceRender||!destroyOnClose||animatedVisible)?react.createElement(Portal,{open:visible||forceRender||animatedVisible,autoDestroy:!1,getContainer:getContainer,autoLock:visible||animatedVisible},react.createElement(Dialog,(0,esm_extends.Z)({},props,{destroyOnClose:destroyOnClose,afterClose:function(){null==_afterClose||_afterClose(),setAnimatedVisible(!1)}}))):null};DialogWrap.displayName="Dialog";var rc_dialog_es=DialogWrap},71990:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Field:function(){return es_Field},FieldContext:function(){return FieldContext},FormProvider:function(){return FormProvider},List:function(){return es_List},ListContext:function(){return es_ListContext},default:function(){return es},useForm:function(){return es_useForm},useWatch:function(){return es_useWatch}});var urlReg,react=__webpack_require__(67294),esm_extends=__webpack_require__(87462),objectWithoutProperties=__webpack_require__(45987),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),toConsumableArray=__webpack_require__(74902),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),assertThisInitialized=__webpack_require__(97326),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),toArray=__webpack_require__(50344),warning=__webpack_require__(80334),HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){(0,warning.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},FieldContext=react.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}});function typeUtil_toArray(value){return null==value?[]:Array.isArray(value)?value:[value]}var regeneratorRuntime=__webpack_require__(74165),asyncToGenerator=__webpack_require__(15861),process=__webpack_require__(34155);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var i=0,len=args.length;return"function"==typeof template?template.apply(null,args):"string"==typeof template?template.replace(formatRegExp,function(x){if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}break;default:return x}}):template}function isEmptyValue(value,type){return!!(null==value||"array"===type&&Array.isArray(value)&&!value.length)||("string"===type||"url"===type||"hex"===type||"email"===type||"date"===type||"pattern"===type)&&"string"==typeof value&&!value}function asyncSerialArray(arr,func,callback){var index=0,arrLength=arr.length;!function next(errors){if(errors&&errors.length){callback(errors);return}var original=index;index+=1,original()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(value){return types.number(value)&&parseInt(value,10)===value},float:function(value){return types.number(value)&&!types.integer(value)},array:function(value){return Array.isArray(value)},regexp:function(value){if(value instanceof RegExp)return!0;try{return RegExp(value),!0}catch(e){return!1}},date:function(value){return"function"==typeof value.getTime&&"function"==typeof value.getMonth&&"function"==typeof value.getYear&&!isNaN(value.getTime())},number:function(value){return!isNaN(value)&&"number"==typeof value},object:function(value){return"object"==typeof value&&!types.array(value)},method:function(value){return"function"==typeof value},email:function(value){return"string"==typeof value&&value.length<=320&&!!value.match(pattern$2.email)},url:function(value){return"string"==typeof value&&value.length<=2048&&!!value.match(getUrlRegex())},hex:function(value){return"string"==typeof value&&!!value.match(pattern$2.hex)}},ENUM$1="enum",rules={required:required$1,whitespace:function(rule,value,source,errors,options){(/^\s+$/.test(value)||""===value)&&errors.push(format(options.messages.whitespace,rule.fullField))},type:function(rule,value,source,errors,options){if(rule.required&&void 0===value){required$1(rule,value,source,errors,options);return}var ruleType=rule.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(ruleType)>-1?types[ruleType](value)||errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type)):ruleType&&typeof value!==rule.type&&errors.push(format(options.messages.types[ruleType],rule.fullField,rule.type))},range:function(rule,value,source,errors,options){var len="number"==typeof rule.len,min="number"==typeof rule.min,max="number"==typeof rule.max,val=value,key=null,str="string"==typeof value,arr=Array.isArray(value);if("number"==typeof value?key="number":str?key="string":arr&&(key="array"),!key)return!1;arr&&(val=value.length),str&&(val=value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),len?val!==rule.len&&errors.push(format(options.messages[key].len,rule.fullField,rule.len)):min&&!max&&valrule.max?errors.push(format(options.messages[key].max,rule.fullField,rule.max)):min&&max&&(valrule.max)&&errors.push(format(options.messages[key].range,rule.fullField,rule.min,rule.max))},enum:function(rule,value,source,errors,options){rule[ENUM$1]=Array.isArray(rule[ENUM$1])?rule[ENUM$1]:[],-1===rule[ENUM$1].indexOf(value)&&errors.push(format(options.messages[ENUM$1],rule.fullField,rule[ENUM$1].join(", ")))},pattern:function(rule,value,source,errors,options){!rule.pattern||(rule.pattern instanceof RegExp?(rule.pattern.lastIndex=0,rule.pattern.test(value)||errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern))):"string"!=typeof rule.pattern||RegExp(rule.pattern).test(value)||errors.push(format(options.messages.pattern.mismatch,rule.fullField,value,rule.pattern)))}},type=function(rule,value,callback,source,options){var ruleType=rule.type,errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,ruleType)&&!rule.required)return callback();rules.required(rule,value,source,errors,options,ruleType),isEmptyValue(value,ruleType)||rules.type(rule,value,source,errors,options)}callback(errors)},validators={string:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"string")&&!rule.required)return callback();rules.required(rule,value,source,errors,options,"string"),isEmptyValue(value,"string")||(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options),rules.pattern(rule,value,source,errors,options),!0===rule.whitespace&&rules.whitespace(rule,value,source,errors,options))}callback(errors)},method:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},number:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(""===value&&(value=void 0),isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},boolean:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},regexp:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),isEmptyValue(value)||rules.type(rule,value,source,errors,options)}callback(errors)},integer:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},float:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},array:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(null==value&&!rule.required)return callback();rules.required(rule,value,source,errors,options,"array"),null!=value&&(rules.type(rule,value,source,errors,options),rules.range(rule,value,source,errors,options))}callback(errors)},object:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.type(rule,value,source,errors,options)}callback(errors)},enum:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options),void 0!==value&&rules.enum(rule,value,source,errors,options)}callback(errors)},pattern:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"string")&&!rule.required)return callback();rules.required(rule,value,source,errors,options),isEmptyValue(value,"string")||rules.pattern(rule,value,source,errors,options)}callback(errors)},date:function(rule,value,callback,source,options){var dateObject,errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value,"date")&&!rule.required)return callback();rules.required(rule,value,source,errors,options),!isEmptyValue(value,"date")&&(dateObject=value instanceof Date?value:new Date(value),rules.type(rule,dateObject,source,errors,options),dateObject&&rules.range(rule,dateObject.getTime(),source,errors,options))}callback(errors)},url:type,hex:type,email:type,required:function(rule,value,callback,source,options){var errors=[],type=Array.isArray(value)?"array":typeof value;rules.required(rule,value,source,errors,options,type),callback(errors)},any:function(rule,value,callback,source,options){var errors=[];if(rule.required||!rule.required&&source.hasOwnProperty(rule.field)){if(isEmptyValue(value)&&!rule.required)return callback();rules.required(rule,value,source,errors,options)}callback(errors)}};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var cloned=JSON.parse(JSON.stringify(this));return cloned.clone=this.clone,cloned}}}var messages=newMessages(),Schema=function(){function Schema(descriptor){this.rules=null,this._messages=messages,this.define(descriptor)}var _proto=Schema.prototype;return _proto.define=function(rules){var _this=this;if(!rules)throw Error("Cannot configure a schema with no rules");if("object"!=typeof rules||Array.isArray(rules))throw Error("Rules must be an object");this.rules={},Object.keys(rules).forEach(function(name){var item=rules[name];_this.rules[name]=Array.isArray(item)?item:[item]})},_proto.messages=function(_messages){return _messages&&(this._messages=deepMerge(newMessages(),_messages)),this._messages},_proto.validate=function(source_,o,oc){var _this2=this;void 0===o&&(o={}),void 0===oc&&(oc=function(){});var source=source_,options=o,callback=oc;if("function"==typeof options&&(callback=options,options={}),!this.rules||0===Object.keys(this.rules).length)return callback&&callback(null,source),Promise.resolve(source);if(options.messages){var messages$1=this.messages();messages$1===messages&&(messages$1=newMessages()),deepMerge(messages$1,options.messages),options.messages=messages$1}else options.messages=this.messages();var series={};(options.keys||Object.keys(this.rules)).forEach(function(z){var arr=_this2.rules[z],value=source[z];arr.forEach(function(r){var rule=r;"function"==typeof rule.transform&&(source===source_&&(source=_extends({},source)),value=source[z]=rule.transform(value)),(rule="function"==typeof rule?{validator:rule}:_extends({},rule)).validator=_this2.getValidationMethod(rule),rule.validator&&(rule.field=z,rule.fullField=rule.fullField||z,rule.type=_this2.getType(rule),series[z]=series[z]||[],series[z].push({rule:rule,value:value,source:source,field:z}))})});var errorFields={};return function(objArr,option,func,callback,source){if(option.first){var _pending=new Promise(function(resolve,reject){var ret;asyncSerialArray((ret=[],Object.keys(objArr).forEach(function(k){ret.push.apply(ret,objArr[k]||[])}),ret),func,function(errors){return callback(errors),errors.length?reject(new AsyncValidationError(errors,convertFieldsError(errors))):resolve(source)})});return _pending.catch(function(e){return e}),_pending}var firstFields=!0===option.firstFields?Object.keys(objArr):option.firstFields||[],objArrKeys=Object.keys(objArr),objArrLength=objArrKeys.length,total=0,results=[],pending=new Promise(function(resolve,reject){var next=function(errors){if(results.push.apply(results,errors),++total===objArrLength)return callback(results),results.length?reject(new AsyncValidationError(results,convertFieldsError(results))):resolve(source)};objArrKeys.length||(callback(results),resolve(source)),objArrKeys.forEach(function(key){var arr=objArr[key];-1!==firstFields.indexOf(key)?asyncSerialArray(arr,func,next):function(arr,func,callback){var results=[],total=0,arrLength=arr.length;function count(errors){results.push.apply(results,errors||[]),++total===arrLength&&callback(results)}arr.forEach(function(a){func(a,count)})}(arr,func,next)})});return pending.catch(function(e){return e}),pending}(series,options,function(data,doIt){var res,rule=data.rule,deep=("object"===rule.type||"array"===rule.type)&&("object"==typeof rule.fields||"object"==typeof rule.defaultField);function addFullField(key,schema){return _extends({},schema,{fullField:rule.fullField+"."+key,fullFields:rule.fullFields?[].concat(rule.fullFields,[key]):[key]})}function cb(e){void 0===e&&(e=[]);var errorList=Array.isArray(e)?e:[e];!options.suppressWarning&&errorList.length&&Schema.warning("async-validator:",errorList),errorList.length&&void 0!==rule.message&&(errorList=[].concat(rule.message));var filledErrors=errorList.map(complementError(rule,source));if(options.first&&filledErrors.length)return errorFields[rule.field]=1,doIt(filledErrors);if(deep){if(rule.required&&!data.value)return void 0!==rule.message?filledErrors=[].concat(rule.message).map(complementError(rule,source)):options.error&&(filledErrors=[options.error(rule,format(options.messages.required,rule.field))]),doIt(filledErrors);var fieldsSchema={};rule.defaultField&&Object.keys(data.value).map(function(key){fieldsSchema[key]=rule.defaultField});var paredFieldsSchema={};Object.keys(fieldsSchema=_extends({},fieldsSchema,data.rule.fields)).forEach(function(field){var fieldSchema=fieldsSchema[field],fieldSchemaList=Array.isArray(fieldSchema)?fieldSchema:[fieldSchema];paredFieldsSchema[field]=fieldSchemaList.map(addFullField.bind(null,field))});var schema=new Schema(paredFieldsSchema);schema.messages(options.messages),data.rule.options&&(data.rule.options.messages=options.messages,data.rule.options.error=options.error),schema.validate(data.value,data.rule.options||options,function(errs){var finalErrors=[];filledErrors&&filledErrors.length&&finalErrors.push.apply(finalErrors,filledErrors),errs&&errs.length&&finalErrors.push.apply(finalErrors,errs),doIt(finalErrors.length?finalErrors:null)})}else doIt(filledErrors)}if(deep=deep&&(rule.required||!rule.required&&data.value),rule.field=data.field,rule.asyncValidator)res=rule.asyncValidator(rule,data.value,cb,data.source,options);else if(rule.validator){try{res=rule.validator(rule,data.value,cb,data.source,options)}catch(error){null==console.error||console.error(error),options.suppressValidatorError||setTimeout(function(){throw error},0),cb(error.message)}!0===res?cb():!1===res?cb("function"==typeof rule.message?rule.message(rule.fullField||rule.field):rule.message||(rule.fullField||rule.field)+" fails"):res instanceof Array?cb(res):res instanceof Error&&cb(res.message)}res&&res.then&&res.then(function(){return cb()},function(e){return cb(e)})},function(results){!function(results){for(var errors=[],fields={},i=0;i3&&void 0!==arguments[3]&&arguments[3];return function(entity,paths,value){var removeIfUndefined=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return paths.length&&removeIfUndefined&&void 0===value&&!get(entity,paths.slice(0,-1))?entity:function internalSet(entity,paths,value,removeIfUndefined){if(!paths.length)return value;var clone,_paths=(0,esm_toArray.Z)(paths),path=_paths[0],restPath=_paths.slice(1);return clone=entity||"number"!=typeof path?Array.isArray(entity)?(0,toConsumableArray.Z)(entity):(0,objectSpread2.Z)({},entity):[],removeIfUndefined&&void 0===value&&1===restPath.length?delete clone[path][restPath[0]]:clone[path]=internalSet(clone[path],restPath,value,removeIfUndefined),clone}(entity,paths,value,removeIfUndefined)}(store,namePath,value,removeIfUndefined)}function cloneByNamePathList(store,namePathList){var newStore={};return namePathList.forEach(function(namePath){var value=get(store,namePath);newStore=setValue(newStore,namePath,value)}),newStore}function containsNamePath(namePathList,namePath){return namePathList&&namePathList.some(function(path){return matchNamePath(path,namePath)})}function isObject(obj){return"object"===(0,esm_typeof.Z)(obj)&&null!==obj&&Object.getPrototypeOf(obj)===Object.prototype}function setValues(store){for(var _len=arguments.length,restValues=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)restValues[_key-1]=arguments[_key];return restValues.reduce(function(current,newStore){return function internalSetValues(store,values){var newStore=Array.isArray(store)?(0,toConsumableArray.Z)(store):(0,objectSpread2.Z)({},store);return values&&Object.keys(values).forEach(function(key){var prevValue=newStore[key],value=values[key],recursive=isObject(prevValue)&&isObject(value);newStore[key]=recursive?internalSetValues(prevValue,value||{}):cloneDeep(value)}),newStore}(current,newStore)},store)}function matchNamePath(namePath,changedNamePath){return!!namePath&&!!changedNamePath&&namePath.length===changedNamePath.length&&namePath.every(function(nameUnit,i){return changedNamePath[i]===nameUnit})}function defaultGetValueFromEvent(valuePropName){var event=arguments.length<=1?void 0:arguments[1];return event&&event.target&&"object"===(0,esm_typeof.Z)(event.target)&&valuePropName in event.target?event.target[valuePropName]:event}function valueUtil_move(array,moveIndex,toIndex){var length=array.length;if(moveIndex<0||moveIndex>=length||toIndex<0||toIndex>=length)return array;var item=array[moveIndex],diff=moveIndex-toIndex;return diff>0?[].concat((0,toConsumableArray.Z)(array.slice(0,toIndex)),[item],(0,toConsumableArray.Z)(array.slice(toIndex,moveIndex)),(0,toConsumableArray.Z)(array.slice(moveIndex+1,length))):diff<0?[].concat((0,toConsumableArray.Z)(array.slice(0,moveIndex)),(0,toConsumableArray.Z)(array.slice(moveIndex+1,toIndex+1)),[item],(0,toConsumableArray.Z)(array.slice(toIndex+1,length))):array}var CODE_LOGIC_ERROR="CODE_LOGIC_ERROR";function validateRule(_x,_x2,_x3,_x4,_x5){return _validateRule.apply(this,arguments)}function _validateRule(){return(_validateRule=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee2(name,value,rule,options,messageVariables){var cloneRule,originValidator,subRuleField,validator,messages,result,subResults,kv,fillVariableResult;return(0,regeneratorRuntime.Z)().wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return delete(cloneRule=(0,objectSpread2.Z)({},rule)).ruleIndex,cloneRule.validator&&(originValidator=cloneRule.validator,cloneRule.validator=function(){try{return originValidator.apply(void 0,arguments)}catch(error){return console.error(error),Promise.reject(CODE_LOGIC_ERROR)}}),subRuleField=null,cloneRule&&"array"===cloneRule.type&&cloneRule.defaultField&&(subRuleField=cloneRule.defaultField,delete cloneRule.defaultField),validator=new Schema((0,defineProperty.Z)({},name,[cloneRule])),messages=setValues({},defaultValidateMessages,options.validateMessages),validator.messages(messages),result=[],_context2.prev=9,_context2.next=12,Promise.resolve(validator.validate((0,defineProperty.Z)({},name,value),(0,objectSpread2.Z)({},options)));case 12:_context2.next=17;break;case 14:_context2.prev=14,_context2.t0=_context2.catch(9),_context2.t0.errors&&(result=_context2.t0.errors.map(function(_ref4,index){var message=_ref4.message,mergedMessage=message===CODE_LOGIC_ERROR?messages.default:message;return react.isValidElement(mergedMessage)?react.cloneElement(mergedMessage,{key:"error_".concat(index)}):mergedMessage}));case 17:if(!(!result.length&&subRuleField)){_context2.next=22;break}return _context2.next=20,Promise.all(value.map(function(subValue,i){return validateRule("".concat(name,".").concat(i),subValue,subRuleField,options,messageVariables)}));case 20:return subResults=_context2.sent,_context2.abrupt("return",subResults.reduce(function(prev,errors){return[].concat((0,toConsumableArray.Z)(prev),(0,toConsumableArray.Z)(errors))},[]));case 22:return kv=(0,objectSpread2.Z)((0,objectSpread2.Z)({},rule),{},{name:name,enum:(rule.enum||[]).join(", ")},messageVariables),fillVariableResult=result.map(function(error){return"string"==typeof error?function(template,kv){return template.replace(/\$\{\w+\}/g,function(str){return kv[str.slice(2,-1)]})}(error,kv):error}),_context2.abrupt("return",fillVariableResult);case 25:case"end":return _context2.stop()}},_callee2,null,[[9,14]])}))).apply(this,arguments)}function _finishOnAllFailed(){return(_finishOnAllFailed=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee3(rulePromises){return(0,regeneratorRuntime.Z)().wrap(function(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.abrupt("return",Promise.all(rulePromises).then(function(errorsList){var _ref5;return(_ref5=[]).concat.apply(_ref5,(0,toConsumableArray.Z)(errorsList))}));case 1:case"end":return _context3.stop()}},_callee3)}))).apply(this,arguments)}function _finishOnFirstFailed(){return(_finishOnFirstFailed=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee4(rulePromises){var count;return(0,regeneratorRuntime.Z)().wrap(function(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:return count=0,_context4.abrupt("return",new Promise(function(resolve){rulePromises.forEach(function(promise){promise.then(function(ruleError){ruleError.errors.length&&resolve([ruleError]),(count+=1)===rulePromises.length&&resolve([])})})}));case 2:case"end":return _context4.stop()}},_callee4)}))).apply(this,arguments)}var _excluded=["name"],EMPTY_ERRORS=[];function requireUpdate(shouldUpdate,prev,next,prevValue,nextValue,info){return"function"==typeof shouldUpdate?shouldUpdate(prev,next,"source"in info?{source:info.source}:{}):prevValue!==nextValue}var Field=function(_React$Component){(0,inherits.Z)(Field,_React$Component);var _super=(0,createSuper.Z)(Field);function Field(props){var _this;return(0,classCallCheck.Z)(this,Field),(_this=_super.call(this,props)).state={resetCount:0},_this.cancelRegisterFunc=null,_this.mounted=!1,_this.touched=!1,_this.dirty=!1,_this.validatePromise=null,_this.prevValidating=void 0,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.cancelRegister=function(){var _this$props=_this.props,preserve=_this$props.preserve,isListField=_this$props.isListField,name=_this$props.name;_this.cancelRegisterFunc&&_this.cancelRegisterFunc(isListField,preserve,getNamePath(name)),_this.cancelRegisterFunc=null},_this.getNamePath=function(){var _this$props2=_this.props,name=_this$props2.name,_fieldContext$prefixN=_this$props2.fieldContext.prefixName;return void 0!==name?[].concat((0,toConsumableArray.Z)(void 0===_fieldContext$prefixN?[]:_fieldContext$prefixN),(0,toConsumableArray.Z)(name)):[]},_this.getRules=function(){var _this$props3=_this.props,_this$props3$rules=_this$props3.rules,fieldContext=_this$props3.fieldContext;return(void 0===_this$props3$rules?[]:_this$props3$rules).map(function(rule){return"function"==typeof rule?rule(fieldContext):rule})},_this.refresh=function(){_this.mounted&&_this.setState(function(_ref){return{resetCount:_ref.resetCount+1}})},_this.triggerMetaEvent=function(destroy){var onMetaChange=_this.props.onMetaChange;null==onMetaChange||onMetaChange((0,objectSpread2.Z)((0,objectSpread2.Z)({},_this.getMeta()),{},{destroy:destroy}))},_this.onStoreChange=function(prevStore,namePathList,info){var _this$props4=_this.props,shouldUpdate=_this$props4.shouldUpdate,_this$props4$dependen=_this$props4.dependencies,dependencies=void 0===_this$props4$dependen?[]:_this$props4$dependen,onReset=_this$props4.onReset,store=info.store,namePath=_this.getNamePath(),prevValue=_this.getValue(prevStore),curValue=_this.getValue(store),namePathMatch=namePathList&&containsNamePath(namePathList,namePath);switch("valueUpdate"===info.type&&"external"===info.source&&prevValue!==curValue&&(_this.touched=!0,_this.dirty=!0,_this.validatePromise=null,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent()),info.type){case"reset":if(!namePathList||namePathMatch){_this.touched=!1,_this.dirty=!1,_this.validatePromise=null,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent(),null==onReset||onReset(),_this.refresh();return}break;case"remove":if(shouldUpdate){_this.reRender();return}break;case"setField":if(namePathMatch){var data=info.data;"touched"in data&&(_this.touched=data.touched),"validating"in data&&!("originRCField"in data)&&(_this.validatePromise=data.validating?Promise.resolve([]):null),"errors"in data&&(_this.errors=data.errors||EMPTY_ERRORS),"warnings"in data&&(_this.warnings=data.warnings||EMPTY_ERRORS),_this.dirty=!0,_this.triggerMetaEvent(),_this.reRender();return}if(shouldUpdate&&!namePath.length&&requireUpdate(shouldUpdate,prevStore,store,prevValue,curValue,info)){_this.reRender();return}break;case"dependenciesUpdate":if(dependencies.map(getNamePath).some(function(dependency){return containsNamePath(info.relatedFields,dependency)})){_this.reRender();return}break;default:if(namePathMatch||(!dependencies.length||namePath.length||shouldUpdate)&&requireUpdate(shouldUpdate,prevStore,store,prevValue,curValue,info)){_this.reRender();return}}!0===shouldUpdate&&_this.reRender()},_this.validateRules=function(options){var namePath=_this.getNamePath(),currentValue=_this.getValue(),rootPromise=Promise.resolve().then(function(){if(!_this.mounted)return[];var _this$props5=_this.props,_this$props5$validate=_this$props5.validateFirst,messageVariables=_this$props5.messageVariables,triggerName=(options||{}).triggerName,filteredRules=_this.getRules();triggerName&&(filteredRules=filteredRules.filter(function(rule){return rule}).filter(function(rule){var validateTrigger=rule.validateTrigger;return!validateTrigger||typeUtil_toArray(validateTrigger).includes(triggerName)}));var promise=function(namePath,value,rules,options,validateFirst,messageVariables){var _ref3,summaryPromise,name=namePath.join("."),filledRules=rules.map(function(currentRule,ruleIndex){var originValidatorFunc=currentRule.validator,cloneRule=(0,objectSpread2.Z)((0,objectSpread2.Z)({},currentRule),{},{ruleIndex:ruleIndex});return originValidatorFunc&&(cloneRule.validator=function(rule,val,callback){var hasPromise=!1,promise=originValidatorFunc(rule,val,function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];Promise.resolve().then(function(){(0,warning.ZP)(!hasPromise,"Your validator function has already return a promise. `callback` will be ignored."),hasPromise||callback.apply(void 0,args)})});hasPromise=promise&&"function"==typeof promise.then&&"function"==typeof promise.catch,(0,warning.ZP)(hasPromise,"`callback` is deprecated. Please return a promise instead."),hasPromise&&promise.then(function(){callback()}).catch(function(err){callback(err||" ")})}),cloneRule}).sort(function(_ref,_ref2){var w1=_ref.warningOnly,i1=_ref.ruleIndex,w2=_ref2.warningOnly,i2=_ref2.ruleIndex;return!!w1==!!w2?i1-i2:w1?1:-1});if(!0===validateFirst)summaryPromise=new Promise((_ref3=(0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee(resolve,reject){var i,rule,errors;return(0,regeneratorRuntime.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:i=0;case 1:if(!(i0&&void 0!==arguments[0]?arguments[0]:EMPTY_ERRORS;if(_this.validatePromise===rootPromise){_this.validatePromise=null;var _ruleErrors$forEach,nextErrors=[],nextWarnings=[];null===(_ruleErrors$forEach=ruleErrors.forEach)||void 0===_ruleErrors$forEach||_ruleErrors$forEach.call(ruleErrors,function(_ref3){var warningOnly=_ref3.rule.warningOnly,_ref3$errors=_ref3.errors,errors=void 0===_ref3$errors?EMPTY_ERRORS:_ref3$errors;warningOnly?nextWarnings.push.apply(nextWarnings,(0,toConsumableArray.Z)(errors)):nextErrors.push.apply(nextErrors,(0,toConsumableArray.Z)(errors))}),_this.errors=nextErrors,_this.warnings=nextWarnings,_this.triggerMetaEvent(),_this.reRender()}}),promise});return _this.validatePromise=rootPromise,_this.dirty=!0,_this.errors=EMPTY_ERRORS,_this.warnings=EMPTY_ERRORS,_this.triggerMetaEvent(),_this.reRender(),rootPromise},_this.isFieldValidating=function(){return!!_this.validatePromise},_this.isFieldTouched=function(){return _this.touched},_this.isFieldDirty=function(){return!!_this.dirty||void 0!==_this.props.initialValue||void 0!==(0,_this.props.fieldContext.getInternalHooks(HOOK_MARK).getInitialValue)(_this.getNamePath())},_this.getErrors=function(){return _this.errors},_this.getWarnings=function(){return _this.warnings},_this.isListField=function(){return _this.props.isListField},_this.isList=function(){return _this.props.isList},_this.isPreserve=function(){return _this.props.preserve},_this.getMeta=function(){return _this.prevValidating=_this.isFieldValidating(),{touched:_this.isFieldTouched(),validating:_this.prevValidating,errors:_this.errors,warnings:_this.warnings,name:_this.getNamePath()}},_this.getOnlyChild=function(children){if("function"==typeof children){var meta=_this.getMeta();return(0,objectSpread2.Z)((0,objectSpread2.Z)({},_this.getOnlyChild(children(_this.getControlled(),meta,_this.props.fieldContext))),{},{isFunction:!0})}var childList=(0,toArray.Z)(children);return 1===childList.length&&react.isValidElement(childList[0])?{child:childList[0],isFunction:!1}:{child:childList,isFunction:!1}},_this.getValue=function(store){var getFieldsValue=_this.props.fieldContext.getFieldsValue,namePath=_this.getNamePath();return get(store||getFieldsValue(!0),namePath)},_this.getControlled=function(){var childProps=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_this$props6=_this.props,trigger=_this$props6.trigger,validateTrigger=_this$props6.validateTrigger,getValueFromEvent=_this$props6.getValueFromEvent,normalize=_this$props6.normalize,valuePropName=_this$props6.valuePropName,getValueProps=_this$props6.getValueProps,fieldContext=_this$props6.fieldContext,mergedValidateTrigger=void 0!==validateTrigger?validateTrigger:fieldContext.validateTrigger,namePath=_this.getNamePath(),getInternalHooks=fieldContext.getInternalHooks,getFieldsValue=fieldContext.getFieldsValue,dispatch=getInternalHooks(HOOK_MARK).dispatch,value=_this.getValue(),originTriggerFunc=childProps[trigger],control=(0,objectSpread2.Z)((0,objectSpread2.Z)({},childProps),(getValueProps||function(val){return(0,defineProperty.Z)({},valuePropName,val)})(value));return control[trigger]=function(){_this.touched=!0,_this.dirty=!0,_this.triggerMetaEvent();for(var newValue,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];newValue=getValueFromEvent?getValueFromEvent.apply(void 0,args):defaultGetValueFromEvent.apply(void 0,[valuePropName].concat(args)),normalize&&(newValue=normalize(newValue,value,getFieldsValue(!0))),dispatch({type:"updateValue",namePath:namePath,value:newValue}),originTriggerFunc&&originTriggerFunc.apply(void 0,args)},typeUtil_toArray(mergedValidateTrigger||[]).forEach(function(triggerName){var originTrigger=control[triggerName];control[triggerName]=function(){originTrigger&&originTrigger.apply(void 0,arguments);var rules=_this.props.rules;rules&&rules.length&&dispatch({type:"validateField",namePath:namePath,triggerName:triggerName})}}),control},props.fieldContext&&(0,(0,props.fieldContext.getInternalHooks)(HOOK_MARK).initEntityValue)((0,assertThisInitialized.Z)(_this)),_this}return(0,createClass.Z)(Field,[{key:"componentDidMount",value:function(){var _this$props7=this.props,shouldUpdate=_this$props7.shouldUpdate,fieldContext=_this$props7.fieldContext;if(this.mounted=!0,fieldContext){var registerField=(0,fieldContext.getInternalHooks)(HOOK_MARK).registerField;this.cancelRegisterFunc=registerField(this)}!0===shouldUpdate&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var returnChildNode,resetCount=this.state.resetCount,children=this.props.children,_this$getOnlyChild=this.getOnlyChild(children),child=_this$getOnlyChild.child;return _this$getOnlyChild.isFunction?returnChildNode=child:react.isValidElement(child)?returnChildNode=react.cloneElement(child,this.getControlled(child.props)):((0,warning.ZP)(!child,"`children` of Field is not validate ReactElement."),returnChildNode=child),react.createElement(react.Fragment,{key:resetCount},returnChildNode)}}]),Field}(react.Component);Field.contextType=FieldContext,Field.defaultProps={trigger:"onChange",valuePropName:"value"};var es_Field=function(_ref5){var name=_ref5.name,restProps=(0,objectWithoutProperties.Z)(_ref5,_excluded),fieldContext=react.useContext(FieldContext),namePath=void 0!==name?getNamePath(name):void 0,key="keep";return restProps.isListField||(key="_".concat((namePath||[]).join("_"))),react.createElement(Field,(0,esm_extends.Z)({key:key,name:namePath},restProps,{fieldContext:fieldContext}))},es_ListContext=react.createContext(null),es_List=function(_ref){var name=_ref.name,initialValue=_ref.initialValue,children=_ref.children,rules=_ref.rules,validateTrigger=_ref.validateTrigger,context=react.useContext(FieldContext),keyManager=react.useRef({keys:[],id:0}).current,prefixName=react.useMemo(function(){var parentPrefixName=getNamePath(context.prefixName)||[];return[].concat((0,toConsumableArray.Z)(parentPrefixName),(0,toConsumableArray.Z)(getNamePath(name)))},[context.prefixName,name]),fieldContext=react.useMemo(function(){return(0,objectSpread2.Z)((0,objectSpread2.Z)({},context),{},{prefixName:prefixName})},[context,prefixName]),listContext=react.useMemo(function(){return{getKey:function(namePath){var len=prefixName.length,pathName=namePath[len];return[keyManager.keys[pathName],namePath.slice(len+1)]}}},[prefixName]);return"function"!=typeof children?((0,warning.ZP)(!1,"Form.List only accepts function as children."),null):react.createElement(es_ListContext.Provider,{value:listContext},react.createElement(FieldContext.Provider,{value:fieldContext},react.createElement(es_Field,{name:[],shouldUpdate:function(prevValue,nextValue,_ref2){return"internal"!==_ref2.source&&prevValue!==nextValue},rules:rules,validateTrigger:validateTrigger,initialValue:initialValue,isList:!0},function(_ref3,meta){var _ref3$value=_ref3.value,onChange=_ref3.onChange,getFieldValue=context.getFieldValue,getNewValue=function(){return getFieldValue(prefixName||[])||[]},listValue=(void 0===_ref3$value?[]:_ref3$value)||[];return Array.isArray(listValue)||(listValue=[]),children(listValue.map(function(__,index){var key=keyManager.keys[index];return void 0===key&&(keyManager.keys[index]=keyManager.id,key=keyManager.keys[index],keyManager.id+=1),{name:index,key:key,isListField:!0}}),{add:function(defaultValue,index){var newValue=getNewValue();index>=0&&index<=newValue.length?(keyManager.keys=[].concat((0,toConsumableArray.Z)(keyManager.keys.slice(0,index)),[keyManager.id],(0,toConsumableArray.Z)(keyManager.keys.slice(index))),onChange([].concat((0,toConsumableArray.Z)(newValue.slice(0,index)),[defaultValue],(0,toConsumableArray.Z)(newValue.slice(index))))):(keyManager.keys=[].concat((0,toConsumableArray.Z)(keyManager.keys),[keyManager.id]),onChange([].concat((0,toConsumableArray.Z)(newValue),[defaultValue]))),keyManager.id+=1},remove:function(index){var newValue=getNewValue(),indexSet=new Set(Array.isArray(index)?index:[index]);indexSet.size<=0||(keyManager.keys=keyManager.keys.filter(function(_,keysIndex){return!indexSet.has(keysIndex)}),onChange(newValue.filter(function(_,valueIndex){return!indexSet.has(valueIndex)})))},move:function(from,to){if(from!==to){var newValue=getNewValue();from<0||from>=newValue.length||to<0||to>=newValue.length||(keyManager.keys=valueUtil_move(keyManager.keys,from,to),onChange(valueUtil_move(newValue,from,to)))}}},meta)})))},slicedToArray=__webpack_require__(97685),SPLIT="__@field_split__";function normalize(namePath){return namePath.map(function(cell){return"".concat((0,esm_typeof.Z)(cell),":").concat(cell)}).join(SPLIT)}var NameMap=function(){function NameMap(){(0,classCallCheck.Z)(this,NameMap),this.kvs=new Map}return(0,createClass.Z)(NameMap,[{key:"set",value:function(key,value){this.kvs.set(normalize(key),value)}},{key:"get",value:function(key){return this.kvs.get(normalize(key))}},{key:"update",value:function(key,updater){var next=updater(this.get(key));next?this.set(key,next):this.delete(key)}},{key:"delete",value:function(key){this.kvs.delete(normalize(key))}},{key:"map",value:function(callback){return(0,toConsumableArray.Z)(this.kvs.entries()).map(function(_ref){var _ref2=(0,slicedToArray.Z)(_ref,2),key=_ref2[0],value=_ref2[1];return callback({key:key.split(SPLIT).map(function(cell){var _cell$match=cell.match(/^([^:]*):(.*)$/),_cell$match2=(0,slicedToArray.Z)(_cell$match,3),type=_cell$match2[1],unit=_cell$match2[2];return"number"===type?Number(unit):unit}),value:value})})}},{key:"toJSON",value:function(){var json={};return this.map(function(_ref3){var key=_ref3.key,value=_ref3.value;return json[key.join(".")]=value,null}),json}}]),NameMap}(),useForm_excluded=["name","errors"],FormStore=(0,createClass.Z)(function FormStore(forceRootUpdate){var _this=this;(0,classCallCheck.Z)(this,FormStore),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:_this.getFieldValue,getFieldsValue:_this.getFieldsValue,getFieldError:_this.getFieldError,getFieldWarning:_this.getFieldWarning,getFieldsError:_this.getFieldsError,isFieldsTouched:_this.isFieldsTouched,isFieldTouched:_this.isFieldTouched,isFieldValidating:_this.isFieldValidating,isFieldsValidating:_this.isFieldsValidating,resetFields:_this.resetFields,setFields:_this.setFields,setFieldValue:_this.setFieldValue,setFieldsValue:_this.setFieldsValue,validateFields:_this.validateFields,submit:_this.submit,_init:!0,getInternalHooks:_this.getInternalHooks}},this.getInternalHooks=function(key){return key===HOOK_MARK?(_this.formHooked=!0,{dispatch:_this.dispatch,initEntityValue:_this.initEntityValue,registerField:_this.registerField,useSubscribe:_this.useSubscribe,setInitialValues:_this.setInitialValues,destroyForm:_this.destroyForm,setCallbacks:_this.setCallbacks,setValidateMessages:_this.setValidateMessages,getFields:_this.getFields,setPreserve:_this.setPreserve,getInitialValue:_this.getInitialValue,registerWatch:_this.registerWatch}):((0,warning.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(subscribable){_this.subscribable=subscribable},this.prevWithoutPreserves=null,this.setInitialValues=function(initialValues,init){if(_this.initialValues=initialValues||{},init){var _this$prevWithoutPres,nextStore=setValues({},initialValues,_this.store);null===(_this$prevWithoutPres=_this.prevWithoutPreserves)||void 0===_this$prevWithoutPres||_this$prevWithoutPres.map(function(_ref){var namePath=_ref.key;nextStore=setValue(nextStore,namePath,get(initialValues,namePath))}),_this.prevWithoutPreserves=null,_this.updateStore(nextStore)}},this.destroyForm=function(){var prevWithoutPreserves=new NameMap;_this.getFieldEntities(!0).forEach(function(entity){_this.isMergedPreserve(entity.isPreserve())||prevWithoutPreserves.set(entity.getNamePath(),!0)}),_this.prevWithoutPreserves=prevWithoutPreserves},this.getInitialValue=function(namePath){var initValue=get(_this.initialValues,namePath);return namePath.length?cloneDeep(initValue):initValue},this.setCallbacks=function(callbacks){_this.callbacks=callbacks},this.setValidateMessages=function(validateMessages){_this.validateMessages=validateMessages},this.setPreserve=function(preserve){_this.preserve=preserve},this.watchList=[],this.registerWatch=function(callback){return _this.watchList.push(callback),function(){_this.watchList=_this.watchList.filter(function(fn){return fn!==callback})}},this.notifyWatch=function(){var namePath=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(_this.watchList.length){var values=_this.getFieldsValue();_this.watchList.forEach(function(callback){callback(values,namePath)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(nextStore){_this.store=nextStore},this.getFieldEntities=function(){var pure=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return pure?_this.fieldEntities.filter(function(field){return field.getNamePath().length}):_this.fieldEntities},this.getFieldsMap=function(){var pure=arguments.length>0&&void 0!==arguments[0]&&arguments[0],cache=new NameMap;return _this.getFieldEntities(pure).forEach(function(field){var namePath=field.getNamePath();cache.set(namePath,field)}),cache},this.getFieldEntitiesForNamePathList=function(nameList){if(!nameList)return _this.getFieldEntities(!0);var cache=_this.getFieldsMap(!0);return nameList.map(function(name){var namePath=getNamePath(name);return cache.get(namePath)||{INVALIDATE_NAME_PATH:getNamePath(name)}})},this.getFieldsValue=function(nameList,filterFunc){if(_this.warningUnhooked(),!0===nameList&&!filterFunc)return _this.store;var fieldEntities=_this.getFieldEntitiesForNamePathList(Array.isArray(nameList)?nameList:null),filteredNameList=[];return fieldEntities.forEach(function(entity){var _entity$isListField,namePath="INVALIDATE_NAME_PATH"in entity?entity.INVALIDATE_NAME_PATH:entity.getNamePath();!(!nameList&&(null===(_entity$isListField=entity.isListField)||void 0===_entity$isListField?void 0:_entity$isListField.call(entity)))&&(filterFunc?filterFunc("getMeta"in entity?entity.getMeta():null)&&filteredNameList.push(namePath):filteredNameList.push(namePath))}),cloneByNamePathList(_this.store,filteredNameList.map(getNamePath))},this.getFieldValue=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return get(_this.store,namePath)},this.getFieldsError=function(nameList){return _this.warningUnhooked(),_this.getFieldEntitiesForNamePathList(nameList).map(function(entity,index){return!entity||"INVALIDATE_NAME_PATH"in entity?{name:getNamePath(nameList[index]),errors:[],warnings:[]}:{name:entity.getNamePath(),errors:entity.getErrors(),warnings:entity.getWarnings()}})},this.getFieldError=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return _this.getFieldsError([namePath])[0].errors},this.getFieldWarning=function(name){_this.warningUnhooked();var namePath=getNamePath(name);return _this.getFieldsError([namePath])[0].warnings},this.isFieldsTouched=function(){_this.warningUnhooked();for(var namePathList,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var arg0=args[0],arg1=args[1],isAllFieldsTouched=!1;0===args.length?namePathList=null:1===args.length?Array.isArray(arg0)?(namePathList=arg0.map(getNamePath),isAllFieldsTouched=!1):(namePathList=null,isAllFieldsTouched=arg0):(namePathList=arg0.map(getNamePath),isAllFieldsTouched=arg1);var fieldEntities=_this.getFieldEntities(!0),isFieldTouched=function(field){return field.isFieldTouched()};if(!namePathList)return isAllFieldsTouched?fieldEntities.every(isFieldTouched):fieldEntities.some(isFieldTouched);var map=new NameMap;namePathList.forEach(function(shortNamePath){map.set(shortNamePath,[])}),fieldEntities.forEach(function(field){var fieldNamePath=field.getNamePath();namePathList.forEach(function(shortNamePath){shortNamePath.every(function(nameUnit,i){return fieldNamePath[i]===nameUnit})&&map.update(shortNamePath,function(list){return[].concat((0,toConsumableArray.Z)(list),[field])})})});var isNamePathListTouched=function(entities){return entities.some(isFieldTouched)},namePathListEntities=map.map(function(_ref2){return _ref2.value});return isAllFieldsTouched?namePathListEntities.every(isNamePathListTouched):namePathListEntities.some(isNamePathListTouched)},this.isFieldTouched=function(name){return _this.warningUnhooked(),_this.isFieldsTouched([name])},this.isFieldsValidating=function(nameList){_this.warningUnhooked();var fieldEntities=_this.getFieldEntities();if(!nameList)return fieldEntities.some(function(testField){return testField.isFieldValidating()});var namePathList=nameList.map(getNamePath);return fieldEntities.some(function(testField){return containsNamePath(namePathList,testField.getNamePath())&&testField.isFieldValidating()})},this.isFieldValidating=function(name){return _this.warningUnhooked(),_this.isFieldsValidating([name])},this.resetWithFieldInitialValue=function(){var requiredFieldEntities,info=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},cache=new NameMap,fieldEntities=_this.getFieldEntities(!0);fieldEntities.forEach(function(field){var initialValue=field.props.initialValue,namePath=field.getNamePath();if(void 0!==initialValue){var records=cache.get(namePath)||new Set;records.add({entity:field,value:initialValue}),cache.set(namePath,records)}}),info.entities?requiredFieldEntities=info.entities:info.namePathList?(requiredFieldEntities=[],info.namePathList.forEach(function(namePath){var _requiredFieldEntitie,records=cache.get(namePath);records&&(_requiredFieldEntitie=requiredFieldEntities).push.apply(_requiredFieldEntitie,(0,toConsumableArray.Z)((0,toConsumableArray.Z)(records).map(function(r){return r.entity})))})):requiredFieldEntities=fieldEntities,function(entities){entities.forEach(function(field){if(void 0!==field.props.initialValue){var namePath=field.getNamePath();if(void 0!==_this.getInitialValue(namePath))(0,warning.ZP)(!1,"Form already set 'initialValues' with path '".concat(namePath.join("."),"'. Field can not overwrite it."));else{var records=cache.get(namePath);if(records&&records.size>1)(0,warning.ZP)(!1,"Multiple Field with path '".concat(namePath.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(records){var originValue=_this.getFieldValue(namePath);info.skipExist&&void 0!==originValue||_this.updateStore(setValue(_this.store,namePath,(0,toConsumableArray.Z)(records)[0].value))}}}})}(requiredFieldEntities)},this.resetFields=function(nameList){_this.warningUnhooked();var prevStore=_this.store;if(!nameList){_this.updateStore(setValues({},_this.initialValues)),_this.resetWithFieldInitialValue(),_this.notifyObservers(prevStore,null,{type:"reset"}),_this.notifyWatch();return}var namePathList=nameList.map(getNamePath);namePathList.forEach(function(namePath){var initialValue=_this.getInitialValue(namePath);_this.updateStore(setValue(_this.store,namePath,initialValue))}),_this.resetWithFieldInitialValue({namePathList:namePathList}),_this.notifyObservers(prevStore,namePathList,{type:"reset"}),_this.notifyWatch(namePathList)},this.setFields=function(fields){_this.warningUnhooked();var prevStore=_this.store,namePathList=[];fields.forEach(function(fieldData){var name=fieldData.name,data=(fieldData.errors,(0,objectWithoutProperties.Z)(fieldData,useForm_excluded)),namePath=getNamePath(name);namePathList.push(namePath),"value"in data&&_this.updateStore(setValue(_this.store,namePath,data.value)),_this.notifyObservers(prevStore,[namePath],{type:"setField",data:fieldData})}),_this.notifyWatch(namePathList)},this.getFields=function(){return _this.getFieldEntities(!0).map(function(field){var namePath=field.getNamePath(),meta=field.getMeta(),fieldData=(0,objectSpread2.Z)((0,objectSpread2.Z)({},meta),{},{name:namePath,value:_this.getFieldValue(namePath)});return Object.defineProperty(fieldData,"originRCField",{value:!0}),fieldData})},this.initEntityValue=function(entity){var initialValue=entity.props.initialValue;if(void 0!==initialValue){var namePath=entity.getNamePath();void 0===get(_this.store,namePath)&&_this.updateStore(setValue(_this.store,namePath,initialValue))}},this.isMergedPreserve=function(fieldPreserve){var mergedPreserve=void 0!==fieldPreserve?fieldPreserve:_this.preserve;return null==mergedPreserve||mergedPreserve},this.registerField=function(entity){_this.fieldEntities.push(entity);var namePath=entity.getNamePath();if(_this.notifyWatch([namePath]),void 0!==entity.props.initialValue){var prevStore=_this.store;_this.resetWithFieldInitialValue({entities:[entity],skipExist:!0}),_this.notifyObservers(prevStore,[entity.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(isListField,preserve){var subNamePath=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(_this.fieldEntities=_this.fieldEntities.filter(function(item){return item!==entity}),!_this.isMergedPreserve(preserve)&&(!isListField||subNamePath.length>1)){var defaultValue=isListField?void 0:_this.getInitialValue(namePath);if(namePath.length&&_this.getFieldValue(namePath)!==defaultValue&&_this.fieldEntities.every(function(field){return!matchNamePath(field.getNamePath(),namePath)})){var _prevStore=_this.store;_this.updateStore(setValue(_prevStore,namePath,defaultValue,!0)),_this.notifyObservers(_prevStore,[namePath],{type:"remove"}),_this.triggerDependenciesUpdate(_prevStore,namePath)}}_this.notifyWatch([namePath])}},this.dispatch=function(action){switch(action.type){case"updateValue":var namePath=action.namePath,value=action.value;_this.updateValue(namePath,value);break;case"validateField":var _namePath=action.namePath,triggerName=action.triggerName;_this.validateFields([_namePath],{triggerName:triggerName})}},this.notifyObservers=function(prevStore,namePathList,info){if(_this.subscribable){var mergedInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},info),{},{store:_this.getFieldsValue(!0)});_this.getFieldEntities().forEach(function(_ref3){(0,_ref3.onStoreChange)(prevStore,namePathList,mergedInfo)})}else _this.forceRootUpdate()},this.triggerDependenciesUpdate=function(prevStore,namePath){var childrenFields=_this.getDependencyChildrenFields(namePath);return childrenFields.length&&_this.validateFields(childrenFields),_this.notifyObservers(prevStore,childrenFields,{type:"dependenciesUpdate",relatedFields:[namePath].concat((0,toConsumableArray.Z)(childrenFields))}),childrenFields},this.updateValue=function(name,value){var namePath=getNamePath(name),prevStore=_this.store;_this.updateStore(setValue(_this.store,namePath,value)),_this.notifyObservers(prevStore,[namePath],{type:"valueUpdate",source:"internal"}),_this.notifyWatch([namePath]);var childrenFields=_this.triggerDependenciesUpdate(prevStore,namePath),onValuesChange=_this.callbacks.onValuesChange;onValuesChange&&onValuesChange(cloneByNamePathList(_this.store,[namePath]),_this.getFieldsValue()),_this.triggerOnFieldsChange([namePath].concat((0,toConsumableArray.Z)(childrenFields)))},this.setFieldsValue=function(store){_this.warningUnhooked();var prevStore=_this.store;if(store){var nextStore=setValues(_this.store,store);_this.updateStore(nextStore)}_this.notifyObservers(prevStore,null,{type:"valueUpdate",source:"external"}),_this.notifyWatch()},this.setFieldValue=function(name,value){_this.setFields([{name:name,value:value}])},this.getDependencyChildrenFields=function(rootNamePath){var children=new Set,childrenFields=[],dependencies2fields=new NameMap;return _this.getFieldEntities().forEach(function(field){(field.props.dependencies||[]).forEach(function(dependency){var dependencyNamePath=getNamePath(dependency);dependencies2fields.update(dependencyNamePath,function(){var fields=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return fields.add(field),fields})})}),function fillChildren(namePath){(dependencies2fields.get(namePath)||new Set).forEach(function(field){if(!children.has(field)){children.add(field);var fieldNamePath=field.getNamePath();field.isFieldDirty()&&fieldNamePath.length&&(childrenFields.push(fieldNamePath),fillChildren(fieldNamePath))}})}(rootNamePath),childrenFields},this.triggerOnFieldsChange=function(namePathList,filedErrors){var onFieldsChange=_this.callbacks.onFieldsChange;if(onFieldsChange){var fields=_this.getFields();if(filedErrors){var cache=new NameMap;filedErrors.forEach(function(_ref4){var name=_ref4.name,errors=_ref4.errors;cache.set(name,errors)}),fields.forEach(function(field){field.errors=cache.get(field.name)||field.errors})}onFieldsChange(fields.filter(function(_ref5){return containsNamePath(namePathList,_ref5.name)}),fields)}},this.validateFields=function(nameList,options){_this.warningUnhooked();var hasError,count,results,provideNameList=!!nameList,namePathList=provideNameList?nameList.map(getNamePath):[],promiseList=[];_this.getFieldEntities(!0).forEach(function(field){if(provideNameList||namePathList.push(field.getNamePath()),(null==options?void 0:options.recursive)&&provideNameList){var namePath=field.getNamePath();namePath.every(function(nameUnit,i){return nameList[i]===nameUnit||void 0===nameList[i]})&&namePathList.push(namePath)}if(field.props.rules&&field.props.rules.length){var fieldNamePath=field.getNamePath();if(!provideNameList||containsNamePath(namePathList,fieldNamePath)){var promise=field.validateRules((0,objectSpread2.Z)({validateMessages:(0,objectSpread2.Z)((0,objectSpread2.Z)({},defaultValidateMessages),_this.validateMessages)},options));promiseList.push(promise.then(function(){return{name:fieldNamePath,errors:[],warnings:[]}}).catch(function(ruleErrors){var _ruleErrors$forEach,mergedErrors=[],mergedWarnings=[];return(null===(_ruleErrors$forEach=ruleErrors.forEach)||void 0===_ruleErrors$forEach||_ruleErrors$forEach.call(ruleErrors,function(_ref6){var warningOnly=_ref6.rule.warningOnly,errors=_ref6.errors;warningOnly?mergedWarnings.push.apply(mergedWarnings,(0,toConsumableArray.Z)(errors)):mergedErrors.push.apply(mergedErrors,(0,toConsumableArray.Z)(errors))}),mergedErrors.length)?Promise.reject({name:fieldNamePath,errors:mergedErrors,warnings:mergedWarnings}):{name:fieldNamePath,errors:mergedErrors,warnings:mergedWarnings}}))}}});var summaryPromise=(hasError=!1,count=promiseList.length,results=[],promiseList.length?new Promise(function(resolve,reject){promiseList.forEach(function(promise,index){promise.catch(function(e){return hasError=!0,e}).then(function(result){count-=1,results[index]=result,count>0||(hasError&&reject(results),resolve(results))})})}):Promise.resolve([]));_this.lastValidatePromise=summaryPromise,summaryPromise.catch(function(results){return results}).then(function(results){var resultNamePathList=results.map(function(_ref7){return _ref7.name});_this.notifyObservers(_this.store,resultNamePathList,{type:"validateFinish"}),_this.triggerOnFieldsChange(resultNamePathList,results)});var returnPromise=summaryPromise.then(function(){return _this.lastValidatePromise===summaryPromise?Promise.resolve(_this.getFieldsValue(namePathList)):Promise.reject([])}).catch(function(results){var errorList=results.filter(function(result){return result&&result.errors.length});return Promise.reject({values:_this.getFieldsValue(namePathList),errorFields:errorList,outOfDate:_this.lastValidatePromise!==summaryPromise})});return returnPromise.catch(function(e){return e}),returnPromise},this.submit=function(){_this.warningUnhooked(),_this.validateFields().then(function(values){var onFinish=_this.callbacks.onFinish;if(onFinish)try{onFinish(values)}catch(err){console.error(err)}}).catch(function(e){var onFinishFailed=_this.callbacks.onFinishFailed;onFinishFailed&&onFinishFailed(e)})},this.forceRootUpdate=forceRootUpdate}),es_useForm=function(form){var formRef=react.useRef(),_React$useState=react.useState({}),forceUpdate=(0,slicedToArray.Z)(_React$useState,2)[1];if(!formRef.current){if(form)formRef.current=form;else{var formStore=new FormStore(function(){forceUpdate({})});formRef.current=formStore.getForm()}}return[formRef.current]},FormContext=react.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(_ref){var validateMessages=_ref.validateMessages,onFormChange=_ref.onFormChange,onFormFinish=_ref.onFormFinish,children=_ref.children,formContext=react.useContext(FormContext),formsRef=react.useRef({});return react.createElement(FormContext.Provider,{value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext),{},{validateMessages:(0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext.validateMessages),validateMessages),triggerFormChange:function(name,changedFields){onFormChange&&onFormChange(name,{changedFields:changedFields,forms:formsRef.current}),formContext.triggerFormChange(name,changedFields)},triggerFormFinish:function(name,values){onFormFinish&&onFormFinish(name,{values:values,forms:formsRef.current}),formContext.triggerFormFinish(name,values)},registerForm:function(name,form){name&&(formsRef.current=(0,objectSpread2.Z)((0,objectSpread2.Z)({},formsRef.current),{},(0,defineProperty.Z)({},name,form))),formContext.registerForm(name,form)},unregisterForm:function(name){var newForms=(0,objectSpread2.Z)({},formsRef.current);delete newForms[name],formsRef.current=newForms,formContext.unregisterForm(name)}})},children)},Form_excluded=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function stringify(value){try{return JSON.stringify(value)}catch(err){return Math.random()}}var es_useWatch=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var _args$=args[0],form=args[1],_useState=(0,react.useState)(),_useState2=(0,slicedToArray.Z)(_useState,2),value=_useState2[0],setValue=_useState2[1],valueStr=(0,react.useMemo)(function(){return stringify(value)},[value]),valueStrRef=(0,react.useRef)(valueStr);valueStrRef.current=valueStr;var fieldContext=(0,react.useContext)(FieldContext),formInstance=form||fieldContext,isValidForm=formInstance&&formInstance._init,namePath=getNamePath(void 0===_args$?[]:_args$),namePathRef=(0,react.useRef)(namePath);return namePathRef.current=namePath,(0,react.useEffect)(function(){if(isValidForm){var getFieldsValue=formInstance.getFieldsValue,cancelRegister=(0,(0,formInstance.getInternalHooks)(HOOK_MARK).registerWatch)(function(store){var newValue=get(store,namePathRef.current),nextValueStr=stringify(newValue);valueStrRef.current!==nextValueStr&&(valueStrRef.current=nextValueStr,setValue(newValue))});return setValue(get(getFieldsValue(),namePathRef.current)),cancelRegister}},[isValidForm]),value},RefForm=react.forwardRef(function(_ref,ref){var childrenNode,name=_ref.name,initialValues=_ref.initialValues,fields=_ref.fields,form=_ref.form,preserve=_ref.preserve,children=_ref.children,_ref$component=_ref.component,Component=void 0===_ref$component?"form":_ref$component,validateMessages=_ref.validateMessages,_ref$validateTrigger=_ref.validateTrigger,validateTrigger=void 0===_ref$validateTrigger?"onChange":_ref$validateTrigger,onValuesChange=_ref.onValuesChange,_onFieldsChange=_ref.onFieldsChange,_onFinish=_ref.onFinish,onFinishFailed=_ref.onFinishFailed,restProps=(0,objectWithoutProperties.Z)(_ref,Form_excluded),formContext=react.useContext(FormContext),_useForm=es_useForm(form),formInstance=(0,slicedToArray.Z)(_useForm,1)[0],_formInstance$getInte=formInstance.getInternalHooks(HOOK_MARK),useSubscribe=_formInstance$getInte.useSubscribe,setInitialValues=_formInstance$getInte.setInitialValues,setCallbacks=_formInstance$getInte.setCallbacks,setValidateMessages=_formInstance$getInte.setValidateMessages,setPreserve=_formInstance$getInte.setPreserve,destroyForm=_formInstance$getInte.destroyForm;react.useImperativeHandle(ref,function(){return formInstance}),react.useEffect(function(){return formContext.registerForm(name,formInstance),function(){formContext.unregisterForm(name)}},[formContext,formInstance,name]),setValidateMessages((0,objectSpread2.Z)((0,objectSpread2.Z)({},formContext.validateMessages),validateMessages)),setCallbacks({onValuesChange:onValuesChange,onFieldsChange:function(changedFields){if(formContext.triggerFormChange(name,changedFields),_onFieldsChange){for(var _len=arguments.length,rest=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];_onFieldsChange.apply(void 0,[changedFields].concat(rest))}},onFinish:function(values){formContext.triggerFormFinish(name,values),_onFinish&&_onFinish(values)},onFinishFailed:onFinishFailed}),setPreserve(preserve);var mountRef=react.useRef(null);setInitialValues(initialValues,!mountRef.current),mountRef.current||(mountRef.current=!0),react.useEffect(function(){return destroyForm},[]);var childrenRenderProps="function"==typeof children;childrenNode=childrenRenderProps?children(formInstance.getFieldsValue(!0),formInstance):children,useSubscribe(!childrenRenderProps);var prevFieldsRef=react.useRef();react.useEffect(function(){!function(source,target){if(source===target)return!0;if(!source&&target||source&&!target||!source||!target||"object"!==(0,esm_typeof.Z)(source)||"object"!==(0,esm_typeof.Z)(target))return!1;var sourceKeys=Object.keys(source),targetKeys=Object.keys(target),keys=new Set([].concat(sourceKeys,targetKeys));return(0,toConsumableArray.Z)(keys).every(function(key){var sourceValue=source[key],targetValue=target[key];return"function"==typeof sourceValue&&"function"==typeof targetValue||sourceValue===targetValue})}(prevFieldsRef.current||[],fields||[])&&formInstance.setFields(fields||[]),prevFieldsRef.current=fields},[fields,formInstance]);var formContextValue=react.useMemo(function(){return(0,objectSpread2.Z)((0,objectSpread2.Z)({},formInstance),{},{validateTrigger:validateTrigger})},[formInstance,validateTrigger]),wrapperNode=react.createElement(FieldContext.Provider,{value:formContextValue},childrenNode);return!1===Component?wrapperNode:react.createElement(Component,(0,esm_extends.Z)({},restProps,{onSubmit:function(event){event.preventDefault(),event.stopPropagation(),formInstance.submit()},onReset:function(event){var _restProps$onReset;event.preventDefault(),formInstance.resetFields(),null===(_restProps$onReset=restProps.onReset)||void 0===_restProps$onReset||_restProps$onReset.call(restProps,event)}}),wrapperNode)});RefForm.FormProvider=FormProvider,RefForm.Field=es_Field,RefForm.List=es_List,RefForm.useForm=es_useForm,RefForm.useWatch=es_useWatch;var es=RefForm},59775:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BaseInput:function(){return es_BaseInput},default:function(){return es}});var defineProperty=__webpack_require__(4942),esm_typeof=__webpack_require__(71002),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames);function hasAddon(props){return!!(props.addonBefore||props.addonAfter)}function hasPrefixSuffix(props){return!!(props.prefix||props.suffix||props.allowClear)}function resolveOnChange(target,e,onChange,targetValue){if(onChange){var event=e;if("click"===e.type){var currentTarget=target.cloneNode(!0);event=Object.create(e,{target:{value:currentTarget},currentTarget:{value:currentTarget}}),currentTarget.value="",onChange(event);return}if(void 0!==targetValue){event=Object.create(e,{target:{value:target},currentTarget:{value:target}}),target.value=targetValue,onChange(event);return}onChange(event)}}function fixControlledValue(value){return null==value?"":String(value)}var es_BaseInput=function(props){var inputElement=props.inputElement,prefixCls=props.prefixCls,prefix=props.prefix,suffix=props.suffix,addonBefore=props.addonBefore,addonAfter=props.addonAfter,className=props.className,style=props.style,affixWrapperClassName=props.affixWrapperClassName,groupClassName=props.groupClassName,wrapperClassName=props.wrapperClassName,disabled=props.disabled,readOnly=props.readOnly,focused=props.focused,triggerFocus=props.triggerFocus,allowClear=props.allowClear,value=props.value,handleReset=props.handleReset,hidden=props.hidden,containerRef=(0,react.useRef)(null),element=(0,react.cloneElement)(inputElement,{value:value,hidden:hidden});if(hasPrefixSuffix(props)){var _classNames2,affixWrapperPrefixCls="".concat(prefixCls,"-affix-wrapper"),affixWrapperCls=classnames_default()(affixWrapperPrefixCls,(_classNames2={},(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-disabled"),disabled),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-focused"),focused),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-readonly"),readOnly),(0,defineProperty.Z)(_classNames2,"".concat(affixWrapperPrefixCls,"-input-with-clear-btn"),suffix&&allowClear&&value),_classNames2),!hasAddon(props)&&className,affixWrapperClassName),suffixNode=(suffix||allowClear)&&react.createElement("span",{className:"".concat(prefixCls,"-suffix")},function(){if(!allowClear)return null;var _classNames,clearIconCls="".concat(prefixCls,"-clear-icon"),iconNode="object"===(0,esm_typeof.Z)(allowClear)&&null!=allowClear&&allowClear.clearIcon?allowClear.clearIcon:"✖";return react.createElement("span",{onClick:handleReset,onMouseDown:function(e){return e.preventDefault()},className:classnames_default()(clearIconCls,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(clearIconCls,"-hidden"),!(!disabled&&!readOnly&&value)),(0,defineProperty.Z)(_classNames,"".concat(clearIconCls,"-has-suffix"),!!suffix),_classNames)),role:"button",tabIndex:-1},iconNode)}(),suffix);element=react.createElement("span",{className:affixWrapperCls,style:style,hidden:!hasAddon(props)&&hidden,onClick:function(e){var _containerRef$current;null!==(_containerRef$current=containerRef.current)&&void 0!==_containerRef$current&&_containerRef$current.contains(e.target)&&(null==triggerFocus||triggerFocus())},ref:containerRef},prefix&&react.createElement("span",{className:"".concat(prefixCls,"-prefix")},prefix),(0,react.cloneElement)(inputElement,{style:null,value:value,hidden:null}),suffixNode)}if(hasAddon(props)){var wrapperCls="".concat(prefixCls,"-group"),addonCls="".concat(wrapperCls,"-addon"),mergedWrapperClassName=classnames_default()("".concat(prefixCls,"-wrapper"),wrapperCls,wrapperClassName),mergedGroupClassName=classnames_default()("".concat(prefixCls,"-group-wrapper"),className,groupClassName);return react.createElement("span",{className:mergedGroupClassName,style:style,hidden:hidden},react.createElement("span",{className:mergedWrapperClassName},addonBefore&&react.createElement("span",{className:addonCls},addonBefore),(0,react.cloneElement)(element,{style:null,hidden:null}),addonAfter&&react.createElement("span",{className:addonCls},addonAfter)))}return element},toConsumableArray=__webpack_require__(74902),esm_extends=__webpack_require__(87462),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),omit=__webpack_require__(98423),useMergedState=__webpack_require__(21770),_excluded=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],es=(0,react.forwardRef)(function(props,ref){var otherProps,autoComplete=props.autoComplete,onChange=props.onChange,onFocus=props.onFocus,onBlur=props.onBlur,onPressEnter=props.onPressEnter,onKeyDown=props.onKeyDown,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-input":_props$prefixCls,disabled=props.disabled,htmlSize=props.htmlSize,className=props.className,maxLength=props.maxLength,suffix=props.suffix,showCount=props.showCount,_props$type=props.type,inputClassName=props.inputClassName,rest=(0,objectWithoutProperties.Z)(props,_excluded),_useMergedState=(0,useMergedState.Z)(props.defaultValue,{value:props.value}),_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2),value=_useMergedState2[0],setValue=_useMergedState2[1],_useState=(0,react.useState)(!1),_useState2=(0,slicedToArray.Z)(_useState,2),focused=_useState2[0],setFocused=_useState2[1],inputRef=(0,react.useRef)(null),focus=function(option){inputRef.current&&function(element,option){if(element){element.focus(option);var cursor=(option||{}).cursor;if(cursor){var len=element.value.length;switch(cursor){case"start":element.setSelectionRange(0,0);break;case"end":element.setSelectionRange(len,len);break;default:element.setSelectionRange(0,len)}}}}(inputRef.current,option)};return(0,react.useImperativeHandle)(ref,function(){return{focus:focus,blur:function(){var _inputRef$current;null===(_inputRef$current=inputRef.current)||void 0===_inputRef$current||_inputRef$current.blur()},setSelectionRange:function(start,end,direction){var _inputRef$current2;null===(_inputRef$current2=inputRef.current)||void 0===_inputRef$current2||_inputRef$current2.setSelectionRange(start,end,direction)},select:function(){var _inputRef$current3;null===(_inputRef$current3=inputRef.current)||void 0===_inputRef$current3||_inputRef$current3.select()},input:inputRef.current}}),(0,react.useEffect)(function(){setFocused(function(prev){return(!prev||!disabled)&&prev})},[disabled]),react.createElement(es_BaseInput,(0,esm_extends.Z)({},rest,{prefixCls:prefixCls,className:className,inputElement:(otherProps=(0,omit.Z)(props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]),react.createElement("input",(0,esm_extends.Z)({autoComplete:autoComplete},otherProps,{onChange:function(e){void 0===props.value&&setValue(e.target.value),inputRef.current&&resolveOnChange(inputRef.current,e,onChange)},onFocus:function(e){setFocused(!0),null==onFocus||onFocus(e)},onBlur:function(e){setFocused(!1),null==onBlur||onBlur(e)},onKeyDown:function(e){onPressEnter&&"Enter"===e.key&&onPressEnter(e),null==onKeyDown||onKeyDown(e)},className:classnames_default()(prefixCls,(0,defineProperty.Z)({},"".concat(prefixCls,"-disabled"),disabled),inputClassName,!hasAddon(props)&&!hasPrefixSuffix(props)&&className),ref:inputRef,size:htmlSize,type:void 0===_props$type?"text":_props$type}))),handleReset:function(e){setValue(""),focus(),inputRef.current&&resolveOnChange(inputRef.current,e,onChange)},value:fixControlledValue(value),focused:focused,triggerFocus:focus,suffix:function(){var hasMaxLength=Number(maxLength)>0;if(suffix||showCount){var val=fixControlledValue(value),valueLength=(0,toConsumableArray.Z)(val).length,dataCount="object"===(0,esm_typeof.Z)(showCount)?showCount.formatter({value:val,count:valueLength,maxLength:maxLength}):"".concat(valueLength).concat(hasMaxLength?" / ".concat(maxLength):"");return react.createElement(react.Fragment,null,!!showCount&&react.createElement("span",{className:classnames_default()("".concat(prefixCls,"-show-count-suffix"),(0,defineProperty.Z)({},"".concat(prefixCls,"-show-count-has-suffix"),!!suffix))},dataCount),suffix)}return null}(),disabled:disabled}))})},97868:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{iz:function(){return Divider},ck:function(){return es_MenuItem},BW:function(){return MenuItemGroup},sN:function(){return es_MenuItem},GP:function(){return MenuItemGroup},Wd:function(){return SubMenu},ZP:function(){return rc_menu_es},Xl:function(){return useFullPath}});var esm_extends=__webpack_require__(87462),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),toConsumableArray=__webpack_require__(74902),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),shallowequal=__webpack_require__(96774),shallowequal_default=__webpack_require__.n(shallowequal),useMergedState=__webpack_require__(21770),warning=__webpack_require__(80334),es=__webpack_require__(34243),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),KeyCode=__webpack_require__(15105),omit=__webpack_require__(98423),useMemo=__webpack_require__(56982),_excluded=["children","locked"],MenuContext=react.createContext(null);function InheritableContextProvider(_ref){var children=_ref.children,locked=_ref.locked,restProps=(0,objectWithoutProperties.Z)(_ref,_excluded),context=react.useContext(MenuContext),inheritableContext=(0,useMemo.Z)(function(){var clone;return clone=(0,objectSpread2.Z)({},context),Object.keys(restProps).forEach(function(key){var value=restProps[key];void 0!==value&&(clone[key]=value)}),clone},[context,restProps],function(prev,next){return!locked&&(prev[0]!==next[0]||!shallowequal_default()(prev[1],next[1]))});return react.createElement(MenuContext.Provider,{value:inheritableContext},children)}function useActive(eventKey,disabled,onMouseEnter,onMouseLeave){var _React$useContext=react.useContext(MenuContext),activeKey=_React$useContext.activeKey,onActive=_React$useContext.onActive,onInactive=_React$useContext.onInactive,ret={active:activeKey===eventKey};return disabled||(ret.onMouseEnter=function(domEvent){null==onMouseEnter||onMouseEnter({key:eventKey,domEvent:domEvent}),onActive(eventKey)},ret.onMouseLeave=function(domEvent){null==onMouseLeave||onMouseLeave({key:eventKey,domEvent:domEvent}),onInactive(eventKey)}),ret}var warnUtil_excluded=["item"];function warnItemProp(_ref){var item=_ref.item,restInfo=(0,objectWithoutProperties.Z)(_ref,warnUtil_excluded);return Object.defineProperty(restInfo,"item",{get:function(){return(0,warning.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),item}}),restInfo}function Icon(_ref){var icon=_ref.icon,props=_ref.props,children=_ref.children;return("function"==typeof icon?react.createElement(icon,(0,objectSpread2.Z)({},props)):icon)||children||null}function useDirectionStyle(level){var _React$useContext=react.useContext(MenuContext),mode=_React$useContext.mode,rtl=_React$useContext.rtl,inlineIndent=_React$useContext.inlineIndent;return"inline"!==mode?null:rtl?{paddingRight:level*inlineIndent}:{paddingLeft:level*inlineIndent}}var PathRegisterContext=react.createContext(null);function useMeasure(){return react.useContext(PathRegisterContext)}var PathTrackerContext=react.createContext([]);function useFullPath(eventKey){var parentKeyPath=react.useContext(PathTrackerContext);return react.useMemo(function(){return void 0!==eventKey?[].concat((0,toConsumableArray.Z)(parentKeyPath),[eventKey]):parentKeyPath},[parentKeyPath,eventKey])}var PathUserContext=react.createContext(null),IdContext=react.createContext(null);function getMenuId(uuid,eventKey){return void 0===uuid?null:"".concat(uuid,"-").concat(eventKey)}function useMenuId(eventKey){return getMenuId(react.useContext(IdContext),eventKey)}var PrivateContext=react.createContext({}),MenuItem_excluded=["title","attribute","elementRef"],_excluded2=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_excluded3=["active"],LegacyMenuItem=function(_React$Component){(0,inherits.Z)(LegacyMenuItem,_React$Component);var _super=(0,createSuper.Z)(LegacyMenuItem);function LegacyMenuItem(){return(0,classCallCheck.Z)(this,LegacyMenuItem),_super.apply(this,arguments)}return(0,createClass.Z)(LegacyMenuItem,[{key:"render",value:function(){var _this$props=this.props,title=_this$props.title,attribute=_this$props.attribute,elementRef=_this$props.elementRef,restProps=(0,objectWithoutProperties.Z)(_this$props,MenuItem_excluded),passedProps=(0,omit.Z)(restProps,["eventKey"]);return(0,warning.ZP)(!attribute,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),react.createElement(es.Z.Item,(0,esm_extends.Z)({},attribute,{title:"string"==typeof title?title:void 0},passedProps,{ref:elementRef}))}}]),LegacyMenuItem}(react.Component),InternalMenuItem=function(props){var _classNames,style=props.style,className=props.className,eventKey=props.eventKey,disabled=(props.warnKey,props.disabled),itemIcon=props.itemIcon,children=props.children,role=props.role,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onClick=props.onClick,onKeyDown=props.onKeyDown,onFocus=props.onFocus,restProps=(0,objectWithoutProperties.Z)(props,_excluded2),domDataId=useMenuId(eventKey),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,onItemClick=_React$useContext.onItemClick,contextDisabled=_React$useContext.disabled,overflowDisabled=_React$useContext.overflowDisabled,contextItemIcon=_React$useContext.itemIcon,selectedKeys=_React$useContext.selectedKeys,onActive=_React$useContext.onActive,_internalRenderMenuItem=react.useContext(PrivateContext)._internalRenderMenuItem,itemCls="".concat(prefixCls,"-item"),legacyMenuItemRef=react.useRef(),elementRef=react.useRef(),mergedDisabled=contextDisabled||disabled,connectedKeys=useFullPath(eventKey),getEventInfo=function(e){return{key:eventKey,keyPath:(0,toConsumableArray.Z)(connectedKeys).reverse(),item:legacyMenuItemRef.current,domEvent:e}},_useActive=useActive(eventKey,mergedDisabled,onMouseEnter,onMouseLeave),active=_useActive.active,activeProps=(0,objectWithoutProperties.Z)(_useActive,_excluded3),selected=selectedKeys.includes(eventKey),directionStyle=useDirectionStyle(connectedKeys.length),optionRoleProps={};"option"===props.role&&(optionRoleProps["aria-selected"]=selected);var renderNode=react.createElement(LegacyMenuItem,(0,esm_extends.Z)({ref:legacyMenuItemRef,elementRef:elementRef,role:null===role?"none":role||"menuitem",tabIndex:disabled?null:-1,"data-menu-id":overflowDisabled&&domDataId?null:domDataId},restProps,activeProps,optionRoleProps,{component:"li","aria-disabled":disabled,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},directionStyle),style),className:classnames_default()(itemCls,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-active"),active),(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-selected"),selected),(0,defineProperty.Z)(_classNames,"".concat(itemCls,"-disabled"),mergedDisabled),_classNames),className),onClick:function(e){if(!mergedDisabled){var info=getEventInfo(e);null==onClick||onClick(warnItemProp(info)),onItemClick(info)}},onKeyDown:function(e){if(null==onKeyDown||onKeyDown(e),e.which===KeyCode.Z.ENTER){var info=getEventInfo(e);null==onClick||onClick(warnItemProp(info)),onItemClick(info)}},onFocus:function(e){onActive(eventKey),null==onFocus||onFocus(e)}}),children,react.createElement(Icon,{props:(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{isSelected:selected}),icon:itemIcon||contextItemIcon}));return _internalRenderMenuItem&&(renderNode=_internalRenderMenuItem(renderNode,props,{selected:selected})),renderNode},es_MenuItem=function(props){var eventKey=props.eventKey,measure=useMeasure(),connectedKeyPath=useFullPath(eventKey);return(react.useEffect(function(){if(measure)return measure.registerPath(eventKey,connectedKeyPath),function(){measure.unregisterPath(eventKey,connectedKeyPath)}},[connectedKeyPath]),measure)?null:react.createElement(InternalMenuItem,props)},esm_typeof=__webpack_require__(71002),toArray=__webpack_require__(50344),nodeUtil_excluded=["label","children","key","type"];function parseChildren(children,keyPath){return(0,toArray.Z)(children).map(function(child,index){if(react.isValidElement(child)){var _child$props$eventKey,_child$props,key=child.key,eventKey=null!==(_child$props$eventKey=null===(_child$props=child.props)||void 0===_child$props?void 0:_child$props.eventKey)&&void 0!==_child$props$eventKey?_child$props$eventKey:key;null==eventKey&&(eventKey="tmp_key-".concat([].concat((0,toConsumableArray.Z)(keyPath),[index]).join("-")));var cloneProps={key:eventKey,eventKey:eventKey};return react.cloneElement(child,cloneProps)}return child})}function useMemoCallback(func){var funRef=react.useRef(func);funRef.current=func;var callback=react.useCallback(function(){for(var _funRef$current,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null===(_funRef$current=funRef.current)||void 0===_funRef$current?void 0:_funRef$current.call.apply(_funRef$current,[funRef].concat(args))},[]);return func?callback:void 0}var SubMenuList_excluded=["className","children"],SubMenuList=react.forwardRef(function(_ref,ref){var className=_ref.className,children=_ref.children,restProps=(0,objectWithoutProperties.Z)(_ref,SubMenuList_excluded),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,mode=_React$useContext.mode,rtl=_React$useContext.rtl;return react.createElement("ul",(0,esm_extends.Z)({className:classnames_default()(prefixCls,rtl&&"".concat(prefixCls,"-rtl"),"".concat(prefixCls,"-sub"),"".concat(prefixCls,"-").concat("inline"===mode?"inline":"vertical"),className)},restProps,{"data-menu-list":!0,ref:ref}),children)});SubMenuList.displayName="SubMenuList";var rc_trigger_es=__webpack_require__(81263),raf=__webpack_require__(75164),autoAdjustOverflow={adjustX:1,adjustY:1},placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}},placementsRtl={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}};function getMotion(mode,motion,defaultMotions){return motion||(defaultMotions?defaultMotions[mode]||defaultMotions.other:void 0)}var popupPlacementMap={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function PopupTrigger(_ref){var prefixCls=_ref.prefixCls,visible=_ref.visible,children=_ref.children,popup=_ref.popup,popupClassName=_ref.popupClassName,popupOffset=_ref.popupOffset,disabled=_ref.disabled,mode=_ref.mode,onVisibleChange=_ref.onVisibleChange,_React$useContext=react.useContext(MenuContext),getPopupContainer=_React$useContext.getPopupContainer,rtl=_React$useContext.rtl,subMenuOpenDelay=_React$useContext.subMenuOpenDelay,subMenuCloseDelay=_React$useContext.subMenuCloseDelay,builtinPlacements=_React$useContext.builtinPlacements,triggerSubMenuAction=_React$useContext.triggerSubMenuAction,forceSubMenuRender=_React$useContext.forceSubMenuRender,rootClassName=_React$useContext.rootClassName,motion=_React$useContext.motion,defaultMotions=_React$useContext.defaultMotions,_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),innerVisible=_React$useState2[0],setInnerVisible=_React$useState2[1],placement=rtl?(0,objectSpread2.Z)((0,objectSpread2.Z)({},placementsRtl),builtinPlacements):(0,objectSpread2.Z)((0,objectSpread2.Z)({},placements),builtinPlacements),popupPlacement=popupPlacementMap[mode],targetMotion=getMotion(mode,motion,defaultMotions),mergedMotion=(0,objectSpread2.Z)((0,objectSpread2.Z)({},targetMotion),{},{leavedClassName:"".concat(prefixCls,"-hidden"),removeOnLeave:!1,motionAppear:!0}),visibleRef=react.useRef();return react.useEffect(function(){return visibleRef.current=(0,raf.Z)(function(){setInnerVisible(visible)}),function(){raf.Z.cancel(visibleRef.current)}},[visible]),react.createElement(rc_trigger_es.Z,{prefixCls:prefixCls,popupClassName:classnames_default()("".concat(prefixCls,"-popup"),(0,defineProperty.Z)({},"".concat(prefixCls,"-rtl"),rtl),popupClassName,rootClassName),stretch:"horizontal"===mode?"minWidth":null,getPopupContainer:getPopupContainer,builtinPlacements:placement,popupPlacement:popupPlacement,popupVisible:innerVisible,popup:popup,popupAlign:popupOffset&&{offset:popupOffset},action:disabled?[]:[triggerSubMenuAction],mouseEnterDelay:subMenuOpenDelay,mouseLeaveDelay:subMenuCloseDelay,onPopupVisibleChange:onVisibleChange,forceRender:forceSubMenuRender,popupMotion:mergedMotion},children)}var rc_motion_es=__webpack_require__(62874);function InlineSubMenuList(_ref){var id=_ref.id,open=_ref.open,keyPath=_ref.keyPath,children=_ref.children,fixedMode="inline",_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,forceSubMenuRender=_React$useContext.forceSubMenuRender,motion=_React$useContext.motion,defaultMotions=_React$useContext.defaultMotions,mode=_React$useContext.mode,sameModeRef=react.useRef(!1);sameModeRef.current=mode===fixedMode;var _React$useState=react.useState(!sameModeRef.current),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),destroy=_React$useState2[0],setDestroy=_React$useState2[1],mergedOpen=!!sameModeRef.current&&open;react.useEffect(function(){sameModeRef.current&&setDestroy(!1)},[mode]);var mergedMotion=(0,objectSpread2.Z)({},getMotion(fixedMode,motion,defaultMotions));keyPath.length>1&&(mergedMotion.motionAppear=!1);var originOnVisibleChanged=mergedMotion.onVisibleChanged;return(mergedMotion.onVisibleChanged=function(newVisible){return sameModeRef.current||newVisible||setDestroy(!0),null==originOnVisibleChanged?void 0:originOnVisibleChanged(newVisible)},destroy)?null:react.createElement(InheritableContextProvider,{mode:fixedMode,locked:!sameModeRef.current},react.createElement(rc_motion_es.Z,(0,esm_extends.Z)({visible:mergedOpen},mergedMotion,{forceRender:forceSubMenuRender,removeOnLeave:!1,leavedClassName:"".concat(prefixCls,"-hidden")}),function(_ref2){var motionClassName=_ref2.className,motionStyle=_ref2.style;return react.createElement(SubMenuList,{id:id,className:motionClassName,style:motionStyle},children)}))}var SubMenu_excluded=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],SubMenu_excluded2=["active"],InternalSubMenu=function(props){var _classNames,style=props.style,className=props.className,title=props.title,eventKey=props.eventKey,disabled=(props.warnKey,props.disabled),internalPopupClose=props.internalPopupClose,children=props.children,itemIcon=props.itemIcon,expandIcon=props.expandIcon,popupClassName=props.popupClassName,popupOffset=props.popupOffset,onClick=props.onClick,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onTitleClick=props.onTitleClick,onTitleMouseEnter=props.onTitleMouseEnter,onTitleMouseLeave=props.onTitleMouseLeave,restProps=(0,objectWithoutProperties.Z)(props,SubMenu_excluded),domDataId=useMenuId(eventKey),_React$useContext=react.useContext(MenuContext),prefixCls=_React$useContext.prefixCls,mode=_React$useContext.mode,openKeys=_React$useContext.openKeys,contextDisabled=_React$useContext.disabled,overflowDisabled=_React$useContext.overflowDisabled,activeKey=_React$useContext.activeKey,selectedKeys=_React$useContext.selectedKeys,contextItemIcon=_React$useContext.itemIcon,contextExpandIcon=_React$useContext.expandIcon,onItemClick=_React$useContext.onItemClick,onOpenChange=_React$useContext.onOpenChange,onActive=_React$useContext.onActive,_internalRenderSubMenuItem=react.useContext(PrivateContext)._internalRenderSubMenuItem,isSubPathKey=react.useContext(PathUserContext).isSubPathKey,connectedPath=useFullPath(),subMenuPrefixCls="".concat(prefixCls,"-submenu"),mergedDisabled=contextDisabled||disabled,elementRef=react.useRef(),popupRef=react.useRef(),mergedExpandIcon=expandIcon||contextExpandIcon,originOpen=openKeys.includes(eventKey),open=!overflowDisabled&&originOpen,childrenSelected=isSubPathKey(selectedKeys,eventKey),_useActive=useActive(eventKey,mergedDisabled,onTitleMouseEnter,onTitleMouseLeave),active=_useActive.active,activeProps=(0,objectWithoutProperties.Z)(_useActive,SubMenu_excluded2),_React$useState=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),childrenActive=_React$useState2[0],setChildrenActive=_React$useState2[1],triggerChildrenActive=function(newActive){mergedDisabled||setChildrenActive(newActive)},mergedActive=react.useMemo(function(){return active||"inline"!==mode&&(childrenActive||isSubPathKey([activeKey],eventKey))},[mode,active,activeKey,childrenActive,eventKey,isSubPathKey]),directionStyle=useDirectionStyle(connectedPath.length),onMergedItemClick=useMemoCallback(function(info){null==onClick||onClick(warnItemProp(info)),onItemClick(info)}),popupId=domDataId&&"".concat(domDataId,"-popup"),titleNode=react.createElement("div",(0,esm_extends.Z)({role:"menuitem",style:directionStyle,className:"".concat(subMenuPrefixCls,"-title"),tabIndex:mergedDisabled?null:-1,ref:elementRef,title:"string"==typeof title?title:null,"data-menu-id":overflowDisabled&&domDataId?null:domDataId,"aria-expanded":open,"aria-haspopup":!0,"aria-controls":popupId,"aria-disabled":mergedDisabled,onClick:function(e){mergedDisabled||(null==onTitleClick||onTitleClick({key:eventKey,domEvent:e}),"inline"===mode&&onOpenChange(eventKey,!originOpen))},onFocus:function(){onActive(eventKey)}},activeProps),title,react.createElement(Icon,{icon:"horizontal"!==mode?mergedExpandIcon:null,props:(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{isOpen:open,isSubMenu:!0})},react.createElement("i",{className:"".concat(subMenuPrefixCls,"-arrow")}))),triggerModeRef=react.useRef(mode);if("inline"!==mode&&(triggerModeRef.current=connectedPath.length>1?"vertical":mode),!overflowDisabled){var triggerMode=triggerModeRef.current;titleNode=react.createElement(PopupTrigger,{mode:triggerMode,prefixCls:subMenuPrefixCls,visible:!internalPopupClose&&open&&"inline"!==mode,popupClassName:popupClassName,popupOffset:popupOffset,popup:react.createElement(InheritableContextProvider,{mode:"horizontal"===triggerMode?"vertical":triggerMode},react.createElement(SubMenuList,{id:popupId,ref:popupRef},children)),disabled:mergedDisabled,onVisibleChange:function(newVisible){"inline"!==mode&&onOpenChange(eventKey,newVisible)}},titleNode)}var listNode=react.createElement(es.Z.Item,(0,esm_extends.Z)({role:"none"},restProps,{component:"li",style:style,className:classnames_default()(subMenuPrefixCls,"".concat(subMenuPrefixCls,"-").concat(mode),className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-open"),open),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-active"),mergedActive),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-selected"),childrenSelected),(0,defineProperty.Z)(_classNames,"".concat(subMenuPrefixCls,"-disabled"),mergedDisabled),_classNames)),onMouseEnter:function(domEvent){triggerChildrenActive(!0),null==onMouseEnter||onMouseEnter({key:eventKey,domEvent:domEvent})},onMouseLeave:function(domEvent){triggerChildrenActive(!1),null==onMouseLeave||onMouseLeave({key:eventKey,domEvent:domEvent})}}),titleNode,!overflowDisabled&&react.createElement(InlineSubMenuList,{id:popupId,open:open,keyPath:connectedPath},children));return _internalRenderSubMenuItem&&(listNode=_internalRenderSubMenuItem(listNode,props,{selected:childrenSelected,active:mergedActive,open:open,disabled:mergedDisabled})),react.createElement(InheritableContextProvider,{onItemClick:onMergedItemClick,mode:"horizontal"===mode?"vertical":mode,itemIcon:itemIcon||contextItemIcon,expandIcon:mergedExpandIcon},listNode)};function SubMenu(props){var renderNode,eventKey=props.eventKey,children=props.children,connectedKeyPath=useFullPath(eventKey),childList=parseChildren(children,connectedKeyPath),measure=useMeasure();return react.useEffect(function(){if(measure)return measure.registerPath(eventKey,connectedKeyPath),function(){measure.unregisterPath(eventKey,connectedKeyPath)}},[connectedKeyPath]),renderNode=measure?childList:react.createElement(InternalSubMenu,props,childList),react.createElement(PathTrackerContext.Provider,{value:connectedKeyPath},renderNode)}var Dom_focus=__webpack_require__(88603),LEFT=KeyCode.Z.LEFT,RIGHT=KeyCode.Z.RIGHT,UP=KeyCode.Z.UP,DOWN=KeyCode.Z.DOWN,ENTER=KeyCode.Z.ENTER,ESC=KeyCode.Z.ESC,HOME=KeyCode.Z.HOME,END=KeyCode.Z.END,ArrowKeys=[UP,DOWN,LEFT,RIGHT];function getFocusableElements(container,elements){return(0,Dom_focus.tS)(container,!0).filter(function(ele){return elements.has(ele)})}function getNextFocusElement(parentQueryContainer,elements,focusMenuElement){var offset=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!parentQueryContainer)return null;var sameLevelFocusableMenuElementList=getFocusableElements(parentQueryContainer,elements),count=sameLevelFocusableMenuElementList.length,focusIndex=sameLevelFocusableMenuElementList.findIndex(function(ele){return focusMenuElement===ele});return offset<0?-1===focusIndex?focusIndex=count-1:focusIndex-=1:offset>0&&(focusIndex+=1),sameLevelFocusableMenuElementList[focusIndex=(focusIndex+count)%count]}var uniquePrefix=Math.random().toFixed(5).toString().slice(2),internalId=0,PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function(keyPath){return keyPath.join(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more",Menu_excluded=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],EMPTY_LIST=[],Menu=react.forwardRef(function(props,ref){var _useMergedState,_useMergedState2,uuid,setUUID,_React$useState,internalForceUpdate,key2pathRef,path2keyRef,_React$useState3,_React$useState4,overflowKeys,setOverflowKeys,updateRef,destroyRef,forceUpdate,registerPath,unregisterPath,refreshOverflowKeys,getKeyPath,isSubPathKey,getSubPathKeys,triggerAccessibilityOpen,rafRef,activeRef,cleanRaf,_childList$,_classNames,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-menu":_props$prefixCls,rootClassName=props.rootClassName,style=props.style,className=props.className,_props$tabIndex=props.tabIndex,items=props.items,children=props.children,direction=props.direction,id=props.id,_props$mode=props.mode,mode=void 0===_props$mode?"vertical":_props$mode,inlineCollapsed=props.inlineCollapsed,disabled=props.disabled,disabledOverflow=props.disabledOverflow,_props$subMenuOpenDel=props.subMenuOpenDelay,_props$subMenuCloseDe=props.subMenuCloseDelay,forceSubMenuRender=props.forceSubMenuRender,defaultOpenKeys=props.defaultOpenKeys,openKeys=props.openKeys,activeKey=props.activeKey,defaultActiveFirst=props.defaultActiveFirst,_props$selectable=props.selectable,selectable=void 0===_props$selectable||_props$selectable,_props$multiple=props.multiple,multiple=void 0!==_props$multiple&&_props$multiple,defaultSelectedKeys=props.defaultSelectedKeys,selectedKeys=props.selectedKeys,onSelect=props.onSelect,onDeselect=props.onDeselect,_props$inlineIndent=props.inlineIndent,motion=props.motion,defaultMotions=props.defaultMotions,_props$triggerSubMenu=props.triggerSubMenuAction,builtinPlacements=props.builtinPlacements,itemIcon=props.itemIcon,expandIcon=props.expandIcon,_props$overflowedIndi=props.overflowedIndicator,overflowedIndicator=void 0===_props$overflowedIndi?"...":_props$overflowedIndi,overflowedIndicatorPopupClassName=props.overflowedIndicatorPopupClassName,getPopupContainer=props.getPopupContainer,onClick=props.onClick,onOpenChange=props.onOpenChange,onKeyDown=props.onKeyDown,_internalRenderMenuItem=(props.openAnimation,props.openTransitionName,props._internalRenderMenuItem),_internalRenderSubMenuItem=props._internalRenderSubMenuItem,restProps=(0,objectWithoutProperties.Z)(props,Menu_excluded),childList=react.useMemo(function(){var childNodes;return childNodes=children,items&&(childNodes=function convertItemsToNodes(list){return(list||[]).map(function(opt,index){if(opt&&"object"===(0,esm_typeof.Z)(opt)){var label=opt.label,children=opt.children,key=opt.key,type=opt.type,restProps=(0,objectWithoutProperties.Z)(opt,nodeUtil_excluded),mergedKey=null!=key?key:"tmp-".concat(index);return children||"group"===type?"group"===type?react.createElement(MenuItemGroup,(0,esm_extends.Z)({key:mergedKey},restProps,{title:label}),convertItemsToNodes(children)):react.createElement(SubMenu,(0,esm_extends.Z)({key:mergedKey},restProps,{title:label}),convertItemsToNodes(children)):"divider"===type?react.createElement(Divider,(0,esm_extends.Z)({key:mergedKey},restProps)):react.createElement(es_MenuItem,(0,esm_extends.Z)({key:mergedKey},restProps),label)}return null}).filter(function(opt){return opt})}(items)),parseChildren(childNodes,EMPTY_LIST)},[children,items]),_React$useState1=react.useState(!1),_React$useState2=(0,slicedToArray.Z)(_React$useState1,2),mounted=_React$useState2[0],setMounted=_React$useState2[1],containerRef=react.useRef(),uuid1=(_useMergedState=(0,useMergedState.Z)(id,{value:id}),uuid=(_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2))[0],setUUID=_useMergedState2[1],react.useEffect(function(){internalId+=1;var newId="".concat(uniquePrefix,"-").concat(internalId);setUUID("rc-menu-uuid-".concat(newId))},[]),uuid),isRtl="rtl"===direction,_React$useMemo=react.useMemo(function(){return("inline"===mode||"vertical"===mode)&&inlineCollapsed?["vertical",inlineCollapsed]:[mode,!1]},[mode,inlineCollapsed]),_React$useMemo2=(0,slicedToArray.Z)(_React$useMemo,2),mergedMode=_React$useMemo2[0],mergedInlineCollapsed=_React$useMemo2[1],_React$useState31=react.useState(0),_React$useState41=(0,slicedToArray.Z)(_React$useState31,2),lastVisibleIndex=_React$useState41[0],setLastVisibleIndex=_React$useState41[1],allVisible=lastVisibleIndex>=childList.length-1||"horizontal"!==mergedMode||disabledOverflow,_useMergedState1=(0,useMergedState.Z)(defaultOpenKeys,{value:openKeys,postState:function(keys){return keys||EMPTY_LIST}}),_useMergedState21=(0,slicedToArray.Z)(_useMergedState1,2),mergedOpenKeys=_useMergedState21[0],setMergedOpenKeys=_useMergedState21[1],triggerOpenKeys=function(keys){setMergedOpenKeys(keys),null==onOpenChange||onOpenChange(keys)},_React$useState5=react.useState(mergedOpenKeys),_React$useState6=(0,slicedToArray.Z)(_React$useState5,2),inlineCacheOpenKeys=_React$useState6[0],setInlineCacheOpenKeys=_React$useState6[1],isInlineMode="inline"===mergedMode,mountRef=react.useRef(!1);react.useEffect(function(){isInlineMode&&setInlineCacheOpenKeys(mergedOpenKeys)},[mergedOpenKeys]),react.useEffect(function(){mountRef.current&&(isInlineMode?setMergedOpenKeys(inlineCacheOpenKeys):triggerOpenKeys(EMPTY_LIST))},[isInlineMode]),react.useEffect(function(){return mountRef.current=!0,function(){mountRef.current=!1}},[]);var _useKeyRecords=(_React$useState=react.useState({}),internalForceUpdate=(0,slicedToArray.Z)(_React$useState,2)[1],key2pathRef=(0,react.useRef)(new Map),path2keyRef=(0,react.useRef)(new Map),_React$useState3=react.useState([]),overflowKeys=(_React$useState4=(0,slicedToArray.Z)(_React$useState3,2))[0],setOverflowKeys=_React$useState4[1],updateRef=(0,react.useRef)(0),destroyRef=(0,react.useRef)(!1),forceUpdate=function(){destroyRef.current||internalForceUpdate({})},registerPath=(0,react.useCallback)(function(key,keyPath){var connectedPath=getPathStr(keyPath);path2keyRef.current.set(connectedPath,key),key2pathRef.current.set(key,connectedPath),updateRef.current+=1;var id=updateRef.current;Promise.resolve().then(function(){id===updateRef.current&&forceUpdate()})},[]),unregisterPath=(0,react.useCallback)(function(key,keyPath){var connectedPath=getPathStr(keyPath);path2keyRef.current.delete(connectedPath),key2pathRef.current.delete(key)},[]),refreshOverflowKeys=(0,react.useCallback)(function(keys){setOverflowKeys(keys)},[]),getKeyPath=(0,react.useCallback)(function(eventKey,includeOverflow){var keys=(key2pathRef.current.get(eventKey)||"").split(PATH_SPLIT);return includeOverflow&&overflowKeys.includes(keys[0])&&keys.unshift(OVERFLOW_KEY),keys},[overflowKeys]),isSubPathKey=(0,react.useCallback)(function(pathKeys,eventKey){return pathKeys.some(function(pathKey){return getKeyPath(pathKey,!0).includes(eventKey)})},[getKeyPath]),getSubPathKeys=(0,react.useCallback)(function(key){var connectedPath="".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT),pathKeys=new Set;return(0,toConsumableArray.Z)(path2keyRef.current.keys()).forEach(function(pathKey){pathKey.startsWith(connectedPath)&&pathKeys.add(path2keyRef.current.get(pathKey))}),pathKeys},[]),react.useEffect(function(){return function(){destroyRef.current=!0}},[]),{registerPath:registerPath,unregisterPath:unregisterPath,refreshOverflowKeys:refreshOverflowKeys,isSubPathKey:isSubPathKey,getKeyPath:getKeyPath,getKeys:function(){var keys=(0,toConsumableArray.Z)(key2pathRef.current.keys());return overflowKeys.length&&keys.push(OVERFLOW_KEY),keys},getSubPathKeys:getSubPathKeys}),registerPath1=_useKeyRecords.registerPath,unregisterPath1=_useKeyRecords.unregisterPath,refreshOverflowKeys1=_useKeyRecords.refreshOverflowKeys,isSubPathKey1=_useKeyRecords.isSubPathKey,getKeyPath1=_useKeyRecords.getKeyPath,getKeys=_useKeyRecords.getKeys,getSubPathKeys1=_useKeyRecords.getSubPathKeys,registerPathContext=react.useMemo(function(){return{registerPath:registerPath1,unregisterPath:unregisterPath1}},[registerPath1,unregisterPath1]),pathUserContext=react.useMemo(function(){return{isSubPathKey:isSubPathKey1}},[isSubPathKey1]);react.useEffect(function(){refreshOverflowKeys1(allVisible?EMPTY_LIST:childList.slice(lastVisibleIndex+1).map(function(child){return child.key}))},[lastVisibleIndex,allVisible]);var _useMergedState3=(0,useMergedState.Z)(activeKey||defaultActiveFirst&&(null===(_childList$=childList[0])||void 0===_childList$?void 0:_childList$.key),{value:activeKey}),_useMergedState4=(0,slicedToArray.Z)(_useMergedState3,2),mergedActiveKey=_useMergedState4[0],setMergedActiveKey=_useMergedState4[1],onActive=useMemoCallback(function(key){setMergedActiveKey(key)}),onInactive=useMemoCallback(function(){setMergedActiveKey(void 0)});(0,react.useImperativeHandle)(ref,function(){return{list:containerRef.current,focus:function(options){var _childList$find,_containerRef$current,_containerRef$current2,_containerRef$current3,shouldFocusKey=null!=mergedActiveKey?mergedActiveKey:null===(_childList$find=childList.find(function(node){return!node.props.disabled}))||void 0===_childList$find?void 0:_childList$find.key;shouldFocusKey&&(null===(_containerRef$current=containerRef.current)||void 0===_containerRef$current||null===(_containerRef$current2=_containerRef$current.querySelector("li[data-menu-id='".concat(getMenuId(uuid1,shouldFocusKey),"']")))||void 0===_containerRef$current2||null===(_containerRef$current3=_containerRef$current2.focus)||void 0===_containerRef$current3||_containerRef$current3.call(_containerRef$current2,options))}}});var _useMergedState5=(0,useMergedState.Z)(defaultSelectedKeys||[],{value:selectedKeys,postState:function(keys){return Array.isArray(keys)?keys:null==keys?EMPTY_LIST:[keys]}}),_useMergedState6=(0,slicedToArray.Z)(_useMergedState5,2),mergedSelectKeys=_useMergedState6[0],setMergedSelectKeys=_useMergedState6[1],triggerSelection=function(info){if(selectable){var newSelectKeys,targetKey=info.key,exist=mergedSelectKeys.includes(targetKey);setMergedSelectKeys(newSelectKeys=multiple?exist?mergedSelectKeys.filter(function(key){return key!==targetKey}):[].concat((0,toConsumableArray.Z)(mergedSelectKeys),[targetKey]):[targetKey]);var selectInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},info),{},{selectedKeys:newSelectKeys});exist?null==onDeselect||onDeselect(selectInfo):null==onSelect||onSelect(selectInfo)}!multiple&&mergedOpenKeys.length&&"inline"!==mergedMode&&triggerOpenKeys(EMPTY_LIST)},onInternalClick=useMemoCallback(function(info){null==onClick||onClick(warnItemProp(info)),triggerSelection(info)}),onInternalOpenChange=useMemoCallback(function(key,open){var newOpenKeys=mergedOpenKeys.filter(function(k){return k!==key});if(open)newOpenKeys.push(key);else if("inline"!==mergedMode){var subPathKeys=getSubPathKeys1(key);newOpenKeys=newOpenKeys.filter(function(k){return!subPathKeys.has(k)})}shallowequal_default()(mergedOpenKeys,newOpenKeys)||triggerOpenKeys(newOpenKeys)}),getInternalPopupContainer=useMemoCallback(getPopupContainer),onInternalKeyDown=(triggerAccessibilityOpen=function(key,open){var nextOpen=null!=open?open:!mergedOpenKeys.includes(key);onInternalOpenChange(key,nextOpen)},rafRef=react.useRef(),(activeRef=react.useRef()).current=mergedActiveKey,cleanRaf=function(){raf.Z.cancel(rafRef.current)},react.useEffect(function(){return function(){cleanRaf()}},[]),function(e){var which=e.which;if([].concat(ArrowKeys,[ENTER,ESC,HOME,END]).includes(which)){var refreshElements=function(){return elements=new Set,key2element=new Map,element2key=new Map,getKeys().forEach(function(key){var element=document.querySelector("[data-menu-id='".concat(getMenuId(uuid1,key),"']"));element&&(elements.add(element),element2key.set(element,key),key2element.set(key,element))}),elements};refreshElements();var focusMenuElement=function(activeElement,elements){for(var current=activeElement||document.activeElement;current;){if(elements.has(current))return current;current=current.parentElement}return null}(key2element.get(mergedActiveKey),elements),focusMenuKey=element2key.get(focusMenuElement),offsetObj=function(mode,isRootLevel,isRtl,which){var _inline,_horizontal,_vertical,_offsets,prev="prev",next="next",children="children",parent="parent";if("inline"===mode&&which===ENTER)return{inlineTrigger:!0};var inline=(_inline={},(0,defineProperty.Z)(_inline,UP,prev),(0,defineProperty.Z)(_inline,DOWN,next),_inline),horizontal=(_horizontal={},(0,defineProperty.Z)(_horizontal,LEFT,isRtl?next:prev),(0,defineProperty.Z)(_horizontal,RIGHT,isRtl?prev:next),(0,defineProperty.Z)(_horizontal,DOWN,children),(0,defineProperty.Z)(_horizontal,ENTER,children),_horizontal),vertical=(_vertical={},(0,defineProperty.Z)(_vertical,UP,prev),(0,defineProperty.Z)(_vertical,DOWN,next),(0,defineProperty.Z)(_vertical,ENTER,children),(0,defineProperty.Z)(_vertical,ESC,parent),(0,defineProperty.Z)(_vertical,LEFT,isRtl?children:parent),(0,defineProperty.Z)(_vertical,RIGHT,isRtl?parent:children),_vertical);switch(null===(_offsets=({inline:inline,horizontal:horizontal,vertical:vertical,inlineSub:inline,horizontalSub:vertical,verticalSub:vertical})["".concat(mode).concat(isRootLevel?"":"Sub")])||void 0===_offsets?void 0:_offsets[which]){case prev:return{offset:-1,sibling:!0};case next:return{offset:1,sibling:!0};case parent:return{offset:-1,sibling:!1};case children:return{offset:1,sibling:!1};default:return null}}(mergedMode,1===getKeyPath1(focusMenuKey,!0).length,isRtl,which);if(!offsetObj&&which!==HOME&&which!==END)return;(ArrowKeys.includes(which)||[HOME,END].includes(which))&&e.preventDefault();var tryFocus=function(menuElement){if(menuElement){var focusTargetElement=menuElement,link=menuElement.querySelector("a");(null==link?void 0:link.getAttribute("href"))&&(focusTargetElement=link);var targetKey=element2key.get(menuElement);setMergedActiveKey(targetKey),cleanRaf(),rafRef.current=(0,raf.Z)(function(){activeRef.current===targetKey&&focusTargetElement.focus()})}};if([HOME,END].includes(which)||offsetObj.sibling||!focusMenuElement){var elements,key2element,element2key,parentQueryContainer,focusableElements=getFocusableElements(parentQueryContainer=focusMenuElement&&"inline"!==mergedMode?function(element){for(var current=element;current;){if(current.getAttribute("data-menu-list"))return current;current=current.parentElement}return null}(focusMenuElement):containerRef.current,elements);tryFocus(which===HOME?focusableElements[0]:which===END?focusableElements[focusableElements.length-1]:getNextFocusElement(parentQueryContainer,elements,focusMenuElement,offsetObj.offset))}else if(offsetObj.inlineTrigger)triggerAccessibilityOpen(focusMenuKey);else if(offsetObj.offset>0)triggerAccessibilityOpen(focusMenuKey,!0),cleanRaf(),rafRef.current=(0,raf.Z)(function(){refreshElements();var controlId=focusMenuElement.getAttribute("aria-controls");tryFocus(getNextFocusElement(document.getElementById(controlId),elements))},5);else if(offsetObj.offset<0){var keyPath=getKeyPath1(focusMenuKey,!0),parentKey=keyPath[keyPath.length-2],parentMenuElement=key2element.get(parentKey);triggerAccessibilityOpen(parentKey,!1),tryFocus(parentMenuElement)}}null==onKeyDown||onKeyDown(e)});react.useEffect(function(){setMounted(!0)},[]);var privateContext=react.useMemo(function(){return{_internalRenderMenuItem:_internalRenderMenuItem,_internalRenderSubMenuItem:_internalRenderSubMenuItem}},[_internalRenderMenuItem,_internalRenderSubMenuItem]),wrappedChildList="horizontal"!==mergedMode||disabledOverflow?childList:childList.map(function(child,index){return react.createElement(InheritableContextProvider,{key:child.key,overflowDisabled:index>lastVisibleIndex},child)}),container=react.createElement(es.Z,(0,esm_extends.Z)({id:id,ref:containerRef,prefixCls:"".concat(prefixCls,"-overflow"),component:"ul",itemComponent:es_MenuItem,className:classnames_default()(prefixCls,"".concat(prefixCls,"-root"),"".concat(prefixCls,"-").concat(mergedMode),className,(_classNames={},(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-inline-collapsed"),mergedInlineCollapsed),(0,defineProperty.Z)(_classNames,"".concat(prefixCls,"-rtl"),isRtl),_classNames),rootClassName),dir:direction,style:style,role:"menu",tabIndex:void 0===_props$tabIndex?0:_props$tabIndex,data:wrappedChildList,renderRawItem:function(node){return node},renderRawRest:function(omitItems){var len=omitItems.length,originOmitItems=len?childList.slice(-len):null;return react.createElement(SubMenu,{eventKey:OVERFLOW_KEY,title:overflowedIndicator,disabled:allVisible,internalPopupClose:0===len,popupClassName:overflowedIndicatorPopupClassName},originOmitItems)},maxCount:"horizontal"!==mergedMode||disabledOverflow?es.Z.INVALIDATE:es.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(newLastIndex){setLastVisibleIndex(newLastIndex)},onKeyDown:onInternalKeyDown},restProps));return react.createElement(PrivateContext.Provider,{value:privateContext},react.createElement(IdContext.Provider,{value:uuid1},react.createElement(InheritableContextProvider,{prefixCls:prefixCls,rootClassName:rootClassName,mode:mergedMode,openKeys:mergedOpenKeys,rtl:isRtl,disabled:disabled,motion:mounted?motion:null,defaultMotions:mounted?defaultMotions:null,activeKey:mergedActiveKey,onActive:onActive,onInactive:onInactive,selectedKeys:mergedSelectKeys,inlineIndent:void 0===_props$inlineIndent?24:_props$inlineIndent,subMenuOpenDelay:void 0===_props$subMenuOpenDel?.1:_props$subMenuOpenDel,subMenuCloseDelay:void 0===_props$subMenuCloseDe?.1:_props$subMenuCloseDe,forceSubMenuRender:forceSubMenuRender,builtinPlacements:builtinPlacements,triggerSubMenuAction:void 0===_props$triggerSubMenu?"hover":_props$triggerSubMenu,getPopupContainer:getInternalPopupContainer,itemIcon:itemIcon,expandIcon:expandIcon,onItemClick:onInternalClick,onOpenChange:onInternalOpenChange},react.createElement(PathUserContext.Provider,{value:pathUserContext},container),react.createElement("div",{style:{display:"none"},"aria-hidden":!0},react.createElement(PathRegisterContext.Provider,{value:registerPathContext},childList)))))}),MenuItemGroup_excluded=["className","title","eventKey","children"],MenuItemGroup_excluded2=["children"],InternalMenuItemGroup=function(_ref){var className=_ref.className,title=_ref.title,children=(_ref.eventKey,_ref.children),restProps=(0,objectWithoutProperties.Z)(_ref,MenuItemGroup_excluded),prefixCls=react.useContext(MenuContext).prefixCls,groupPrefixCls="".concat(prefixCls,"-item-group");return react.createElement("li",(0,esm_extends.Z)({},restProps,{onClick:function(e){return e.stopPropagation()},className:classnames_default()(groupPrefixCls,className)}),react.createElement("div",{className:"".concat(groupPrefixCls,"-title"),title:"string"==typeof title?title:void 0},title),react.createElement("ul",{className:"".concat(groupPrefixCls,"-list")},children))};function MenuItemGroup(_ref2){var children=_ref2.children,props=(0,objectWithoutProperties.Z)(_ref2,MenuItemGroup_excluded2),childList=parseChildren(children,useFullPath(props.eventKey));return useMeasure()?childList:react.createElement(InternalMenuItemGroup,(0,omit.Z)(props,["warnKey"]),childList)}function Divider(_ref){var className=_ref.className,style=_ref.style,prefixCls=react.useContext(MenuContext).prefixCls;return useMeasure()?null:react.createElement("li",{className:classnames_default()("".concat(prefixCls,"-item-divider"),className),style:style})}var ExportMenu=Menu;ExportMenu.Item=es_MenuItem,ExportMenu.SubMenu=SubMenu,ExportMenu.ItemGroup=MenuItemGroup,ExportMenu.Divider=Divider;var rc_menu_es=ExportMenu},62874:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return CSSMotionList},Z:function(){return es}});var domSupport,win,prefixes,defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),slicedToArray=__webpack_require__(97685),esm_typeof=__webpack_require__(71002),react=__webpack_require__(67294),findDOMNode=__webpack_require__(34203),es_ref=__webpack_require__(42550),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),canUseDom=__webpack_require__(98924);function makePrefixMap(styleProp,eventName){var prefixes={};return prefixes[styleProp.toLowerCase()]=eventName.toLowerCase(),prefixes["Webkit".concat(styleProp)]="webkit".concat(eventName),prefixes["Moz".concat(styleProp)]="moz".concat(eventName),prefixes["ms".concat(styleProp)]="MS".concat(eventName),prefixes["O".concat(styleProp)]="o".concat(eventName.toLowerCase()),prefixes}var vendorPrefixes=(domSupport=(0,canUseDom.Z)(),win="undefined"!=typeof window?window:{},prefixes={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")},!domSupport||("AnimationEvent"in win||delete prefixes.animationend.animation,"TransitionEvent"in win||delete prefixes.transitionend.transition),prefixes),style={};(0,canUseDom.Z)()&&(style=document.createElement("div").style);var prefixedEventNames={};function getVendorPrefixedEventName(eventName){if(prefixedEventNames[eventName])return prefixedEventNames[eventName];var prefixMap=vendorPrefixes[eventName];if(prefixMap)for(var stylePropList=Object.keys(prefixMap),len=stylePropList.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;cancelNextFrame();var nextFrameId=(0,raf.Z)(function(){delay<=1?callback({isCanceled:function(){return nextFrameId!==nextFrameRef.current}}):nextFrame(callback,delay-1)});nextFrameRef.current=nextFrameId},cancelNextFrame]},useIsomorphicLayoutEffect=(0,canUseDom.Z)()?react.useLayoutEffect:react.useEffect,STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,"end"];function isActive(step){return step===STEP_ACTIVE||"end"===step}var useStepQueue=function(status,callback){var _useState=(0,useState.Z)(STEP_NONE),_useState2=(0,slicedToArray.Z)(_useState,2),step=_useState2[0],setStep=_useState2[1],_useNextFrame=useNextFrame(),_useNextFrame2=(0,slicedToArray.Z)(_useNextFrame,2),nextFrame=_useNextFrame2[0],cancelNextFrame=_useNextFrame2[1];return useIsomorphicLayoutEffect(function(){if(step!==STEP_NONE&&"end"!==step){var nextStep=STEP_QUEUE[STEP_QUEUE.indexOf(step)+1],result=callback(step);!1===result?setStep(nextStep,!0):nextFrame(function(info){function doNext(){info.isCanceled()||setStep(nextStep,!0)}!0===result?doNext():Promise.resolve(result).then(doNext)})}},[status,step]),react.useEffect(function(){return function(){cancelNextFrame()}},[]),[function(){setStep(STEP_PREPARE,!0)},step]},useDomMotionEvents=function(callback){var cacheElementRef=(0,react.useRef)(),callbackRef=(0,react.useRef)(callback);callbackRef.current=callback;var onInternalMotionEnd=react.useCallback(function(event){callbackRef.current(event)},[]);function removeMotionEvents(element){element&&(element.removeEventListener(transitionEndName,onInternalMotionEnd),element.removeEventListener(animationEndName,onInternalMotionEnd))}return react.useEffect(function(){return function(){removeMotionEvents(cacheElementRef.current)}},[]),[function(element){cacheElementRef.current&&cacheElementRef.current!==element&&removeMotionEvents(cacheElementRef.current),element&&element!==cacheElementRef.current&&(element.addEventListener(transitionEndName,onInternalMotionEnd),element.addEventListener(animationEndName,onInternalMotionEnd),cacheElementRef.current=element)},removeMotionEvents]},classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),DomWrapper=function(_React$Component){(0,inherits.Z)(DomWrapper,_React$Component);var _super=(0,createSuper.Z)(DomWrapper);function DomWrapper(){return(0,classCallCheck.Z)(this,DomWrapper),_super.apply(this,arguments)}return(0,createClass.Z)(DomWrapper,[{key:"render",value:function(){return this.props.children}}]),DomWrapper}(react.Component),es_CSSMotion=function(config){var transitionSupport=config;function isSupportTransition(props){return!!(props.motionName&&transitionSupport)}"object"===(0,esm_typeof.Z)(config)&&(transitionSupport=config.transitionSupport);var CSSMotion=react.forwardRef(function(props,ref){var motionChildren,_classNames,statusSuffix,_props$visible=props.visible,visible=void 0===_props$visible||_props$visible,_props$removeOnLeave=props.removeOnLeave,forceRender=props.forceRender,children=props.children,motionName=props.motionName,leavedClassName=props.leavedClassName,eventProps=props.eventProps,supportMotion=isSupportTransition(props),nodeRef=(0,react.useRef)(),wrapperNodeRef=(0,react.useRef)(),_useStatus=function(supportMotion,visible,getElement,_ref){var _ref$motionEnter=_ref.motionEnter,motionEnter=void 0===_ref$motionEnter||_ref$motionEnter,_ref$motionAppear=_ref.motionAppear,motionAppear=void 0===_ref$motionAppear||_ref$motionAppear,_ref$motionLeave=_ref.motionLeave,motionLeave=void 0===_ref$motionLeave||_ref$motionLeave,motionDeadline=_ref.motionDeadline,motionLeaveImmediately=_ref.motionLeaveImmediately,onAppearPrepare=_ref.onAppearPrepare,onEnterPrepare=_ref.onEnterPrepare,onLeavePrepare=_ref.onLeavePrepare,onAppearStart=_ref.onAppearStart,onEnterStart=_ref.onEnterStart,onLeaveStart=_ref.onLeaveStart,onAppearActive=_ref.onAppearActive,onEnterActive=_ref.onEnterActive,onLeaveActive=_ref.onLeaveActive,onAppearEnd=_ref.onAppearEnd,onEnterEnd=_ref.onEnterEnd,onLeaveEnd=_ref.onLeaveEnd,onVisibleChanged=_ref.onVisibleChanged,_useState=(0,useState.Z)(),_useState2=(0,slicedToArray.Z)(_useState,2),asyncVisible=_useState2[0],setAsyncVisible=_useState2[1],_useState3=(0,useState.Z)(STATUS_NONE),_useState4=(0,slicedToArray.Z)(_useState3,2),status=_useState4[0],setStatus=_useState4[1],_useState5=(0,useState.Z)(null),_useState6=(0,slicedToArray.Z)(_useState5,2),style=_useState6[0],setStyle=_useState6[1],mountedRef=(0,react.useRef)(!1),deadlineRef=(0,react.useRef)(null),activeRef=(0,react.useRef)(!1);function onInternalMotionEnd(event){var canEnd,element=getElement();if(!event||event.deadline||event.target===element){var currentActive=activeRef.current;status===STATUS_APPEAR&¤tActive?canEnd=null==onAppearEnd?void 0:onAppearEnd(element,event):status===STATUS_ENTER&¤tActive?canEnd=null==onEnterEnd?void 0:onEnterEnd(element,event):status===STATUS_LEAVE&¤tActive&&(canEnd=null==onLeaveEnd?void 0:onLeaveEnd(element,event)),status!==STATUS_NONE&¤tActive&&!1!==canEnd&&(setStatus(STATUS_NONE,!0),setStyle(null,!0))}}var _useDomMotionEvents=useDomMotionEvents(onInternalMotionEnd),patchMotionEvents=(0,slicedToArray.Z)(_useDomMotionEvents,1)[0],eventHandlers=react.useMemo(function(){var _ref2,_ref3,_ref4;switch(status){case STATUS_APPEAR:return _ref2={},(0,defineProperty.Z)(_ref2,STEP_PREPARE,onAppearPrepare),(0,defineProperty.Z)(_ref2,STEP_START,onAppearStart),(0,defineProperty.Z)(_ref2,STEP_ACTIVE,onAppearActive),_ref2;case STATUS_ENTER:return _ref3={},(0,defineProperty.Z)(_ref3,STEP_PREPARE,onEnterPrepare),(0,defineProperty.Z)(_ref3,STEP_START,onEnterStart),(0,defineProperty.Z)(_ref3,STEP_ACTIVE,onEnterActive),_ref3;case STATUS_LEAVE:return _ref4={},(0,defineProperty.Z)(_ref4,STEP_PREPARE,onLeavePrepare),(0,defineProperty.Z)(_ref4,STEP_START,onLeaveStart),(0,defineProperty.Z)(_ref4,STEP_ACTIVE,onLeaveActive),_ref4;default:return{}}},[status]),_useStepQueue=useStepQueue(status,function(newStep){if(newStep===STEP_PREPARE){var _eventHandlers$step,onPrepare=eventHandlers[STEP_PREPARE];return!!onPrepare&&onPrepare(getElement())}return step in eventHandlers&&setStyle((null===(_eventHandlers$step=eventHandlers[step])||void 0===_eventHandlers$step?void 0:_eventHandlers$step.call(eventHandlers,getElement(),null))||null),step===STEP_ACTIVE&&(patchMotionEvents(getElement()),motionDeadline>0&&(clearTimeout(deadlineRef.current),deadlineRef.current=setTimeout(function(){onInternalMotionEnd({deadline:!0})},motionDeadline))),!0}),_useStepQueue2=(0,slicedToArray.Z)(_useStepQueue,2),startStep=_useStepQueue2[0],step=_useStepQueue2[1],active=isActive(step);activeRef.current=active,useIsomorphicLayoutEffect(function(){setAsyncVisible(visible);var nextStatus,isMounted=mountedRef.current;mountedRef.current=!0,supportMotion&&(!isMounted&&visible&&motionAppear&&(nextStatus=STATUS_APPEAR),isMounted&&visible&&motionEnter&&(nextStatus=STATUS_ENTER),(isMounted&&!visible&&motionLeave||!isMounted&&motionLeaveImmediately&&!visible&&motionLeave)&&(nextStatus=STATUS_LEAVE),nextStatus&&(setStatus(nextStatus),startStep()))},[visible]),(0,react.useEffect)(function(){(status!==STATUS_APPEAR||motionAppear)&&(status!==STATUS_ENTER||motionEnter)&&(status!==STATUS_LEAVE||motionLeave)||setStatus(STATUS_NONE)},[motionAppear,motionEnter,motionLeave]),(0,react.useEffect)(function(){return function(){mountedRef.current=!1,clearTimeout(deadlineRef.current)}},[]);var firstMountChangeRef=react.useRef(!1);(0,react.useEffect)(function(){asyncVisible&&(firstMountChangeRef.current=!0),void 0!==asyncVisible&&status===STATUS_NONE&&((firstMountChangeRef.current||asyncVisible)&&(null==onVisibleChanged||onVisibleChanged(asyncVisible)),firstMountChangeRef.current=!0)},[asyncVisible,status]);var mergedStyle=style;return eventHandlers[STEP_PREPARE]&&step===STEP_START&&(mergedStyle=(0,objectSpread2.Z)({transition:"none"},mergedStyle)),[status,step,mergedStyle,null!=asyncVisible?asyncVisible:visible]}(supportMotion,visible,function(){try{return nodeRef.current instanceof HTMLElement?nodeRef.current:(0,findDOMNode.Z)(wrapperNodeRef.current)}catch(e){return null}},props),_useStatus2=(0,slicedToArray.Z)(_useStatus,4),status=_useStatus2[0],statusStep=_useStatus2[1],statusStyle=_useStatus2[2],mergedVisible=_useStatus2[3],renderedRef=react.useRef(mergedVisible);mergedVisible&&(renderedRef.current=!0);var setNodeRef=react.useCallback(function(node){nodeRef.current=node,(0,es_ref.mH)(ref,node)},[ref]),mergedProps=(0,objectSpread2.Z)((0,objectSpread2.Z)({},eventProps),{},{visible:visible});return children?status!==STATUS_NONE&&isSupportTransition(props)?(statusStep===STEP_PREPARE?statusSuffix="prepare":isActive(statusStep)?statusSuffix="active":statusStep===STEP_START&&(statusSuffix="start"),motionChildren=children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{className:classnames_default()(getTransitionName(motionName,status),(_classNames={},(0,defineProperty.Z)(_classNames,getTransitionName(motionName,"".concat(status,"-").concat(statusSuffix)),statusSuffix),(0,defineProperty.Z)(_classNames,motionName,"string"==typeof motionName),_classNames)),style:statusStyle}),setNodeRef)):motionChildren=mergedVisible?children((0,objectSpread2.Z)({},mergedProps),setNodeRef):!(void 0===_props$removeOnLeave||_props$removeOnLeave)&&renderedRef.current?children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{className:leavedClassName}),setNodeRef):forceRender?children((0,objectSpread2.Z)((0,objectSpread2.Z)({},mergedProps),{},{style:{display:"none"}}),setNodeRef):null:motionChildren=null,react.isValidElement(motionChildren)&&(0,es_ref.Yr)(motionChildren)&&!motionChildren.ref&&(motionChildren=react.cloneElement(motionChildren,{ref:setNodeRef})),react.createElement(DomWrapper,{ref:wrapperNodeRef},motionChildren)});return CSSMotion.displayName="CSSMotion",CSSMotion}(supportTransition),esm_extends=__webpack_require__(87462),objectWithoutProperties=__webpack_require__(45987),STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(key){var keyObj;return keyObj=key&&"object"===(0,esm_typeof.Z)(key)&&"key"in key?key:{key:key},(0,objectSpread2.Z)((0,objectSpread2.Z)({},keyObj),{},{key:String(keyObj.key)})}function parseKeys(){var keys=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return keys.map(wrapKeyToObject)}var _excluded=["component","children","onVisibleChanged","onAllRemoved"],_excluded2=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],CSSMotionList=function(transitionSupport){var CSSMotion=arguments.length>1&&void 0!==arguments[1]?arguments[1]:es_CSSMotion,CSSMotionList=function(_React$Component){(0,inherits.Z)(CSSMotionList,_React$Component);var _super=(0,createSuper.Z)(CSSMotionList);function CSSMotionList(){var _this;(0,classCallCheck.Z)(this,CSSMotionList);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).state={keyEntities:[]},_this.removeKey=function(removeKey){var nextKeyEntities=_this.state.keyEntities.map(function(entity){return entity.key!==removeKey?entity:(0,objectSpread2.Z)((0,objectSpread2.Z)({},entity),{},{status:STATUS_REMOVED})});return _this.setState({keyEntities:nextKeyEntities}),nextKeyEntities.filter(function(_ref){return _ref.status!==STATUS_REMOVED}).length},_this}return(0,createClass.Z)(CSSMotionList,[{key:"render",value:function(){var _this2=this,keyEntities=this.state.keyEntities,_this$props=this.props,component=_this$props.component,children=_this$props.children,_onVisibleChanged=_this$props.onVisibleChanged,onAllRemoved=_this$props.onAllRemoved,restProps=(0,objectWithoutProperties.Z)(_this$props,_excluded),Component=component||react.Fragment,motionProps={};return MOTION_PROP_NAMES.forEach(function(prop){motionProps[prop]=restProps[prop],delete restProps[prop]}),delete restProps.keys,react.createElement(Component,restProps,keyEntities.map(function(_ref2){var status=_ref2.status,eventProps=(0,objectWithoutProperties.Z)(_ref2,_excluded2);return react.createElement(CSSMotion,(0,esm_extends.Z)({},motionProps,{key:eventProps.key,visible:"add"===status||status===STATUS_KEEP,eventProps:eventProps,onVisibleChanged:function(changedVisible){null==_onVisibleChanged||_onVisibleChanged(changedVisible,{key:eventProps.key}),!changedVisible&&0===_this2.removeKey(eventProps.key)&&onAllRemoved&&onAllRemoved()}}),children)}))}}],[{key:"getDerivedStateFromProps",value:function(_ref3,_ref4){var keys=_ref3.keys,keyEntities=_ref4.keyEntities;return{keyEntities:(function(){var prevKeys=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],currentKeys=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],list=[],currentIndex=0,currentLen=currentKeys.length,prevKeyObjects=parseKeys(prevKeys),currentKeyObjects=parseKeys(currentKeys);prevKeyObjects.forEach(function(keyObj){for(var hit=!1,i=currentIndex;i1}).forEach(function(matchKey){(list=list.filter(function(_ref2){var key=_ref2.key,status=_ref2.status;return key!==matchKey||status!==STATUS_REMOVE})).forEach(function(node){node.key===matchKey&&(node.status=STATUS_KEEP)})}),list})(keyEntities,parseKeys(keys)).filter(function(entity){var prevEntity=keyEntities.find(function(_ref5){var key=_ref5.key;return entity.key===key});return!prevEntity||prevEntity.status!==STATUS_REMOVED||entity.status!==STATUS_REMOVE})}}}]),CSSMotionList}(react.Component);return CSSMotionList.defaultProps={component:"div"},CSSMotionList}(supportTransition),es=es_CSSMotion},51784:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Notice}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(87462),_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4942),_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(15671),_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(43144),_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(60136),_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(33643),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(73935),classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(94184),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),Notice=function(_Component){(0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__.Z)(Notice,_Component);var _super=(0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__.Z)(Notice);function Notice(){var _this;(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.Z)(this,Notice);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).closeTimer=null,_this.close=function(e){e&&e.stopPropagation(),_this.clearCloseTimer();var _this$props=_this.props,onClose=_this$props.onClose,noticeKey=_this$props.noticeKey;onClose&&onClose(noticeKey)},_this.startCloseTimer=function(){_this.props.duration&&(_this.closeTimer=window.setTimeout(function(){_this.close()},1e3*_this.props.duration))},_this.clearCloseTimer=function(){_this.closeTimer&&(clearTimeout(_this.closeTimer),_this.closeTimer=null)},_this}return(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__.Z)(Notice,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(prevProps){(this.props.duration!==prevProps.duration||this.props.updateMark!==prevProps.updateMark||this.props.visible!==prevProps.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var _this2=this,_this$props2=this.props,prefixCls=_this$props2.prefixCls,className=_this$props2.className,closable=_this$props2.closable,closeIcon=_this$props2.closeIcon,style=_this$props2.style,onClick=_this$props2.onClick,children=_this$props2.children,holder=_this$props2.holder,componentClass="".concat(prefixCls,"-notice"),dataOrAriaAttributeProps=Object.keys(this.props).reduce(function(acc,key){return("data-"===key.substr(0,5)||"aria-"===key.substr(0,5)||"role"===key)&&(acc[key]=_this2.props[key]),acc},{}),node=react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__.Z)({className:classnames__WEBPACK_IMPORTED_MODULE_2___default()(componentClass,className,(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__.Z)({},"".concat(componentClass,"-closable"),closable)),style:style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:onClick},dataOrAriaAttributeProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"".concat(componentClass,"-content")},children),closable?react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(componentClass,"-close")},closeIcon||react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"".concat(componentClass,"-close-x")})):null);return holder?react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(node,holder):node}}]),Notice}(react__WEBPACK_IMPORTED_MODULE_0__.Component);Notice.defaultProps={onClose:function(){},duration:1.5}},91127:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return rc_notification_es}});var objectWithoutProperties=__webpack_require__(45987),esm_extends=__webpack_require__(87462),objectSpread2=__webpack_require__(1413),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),react=__webpack_require__(67294),render=__webpack_require__(38135),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),es=__webpack_require__(62874),Notice=__webpack_require__(51784),es_useNotification=__webpack_require__(51550),_excluded=["getContainer"],seed=0,now=Date.now();function getUuid(){var id=seed;return seed+=1,"rcNotification_".concat(now,"_").concat(id)}var Notification=function(_Component){(0,inherits.Z)(Notification,_Component);var _super=(0,createSuper.Z)(Notification);function Notification(){var _this;(0,classCallCheck.Z)(this,Notification);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_super.call.apply(_super,[this].concat(args))).state={notices:[]},_this.hookRefs=new Map,_this.add=function(originNotice,holderCallback){var _originNotice$key,key=null!==(_originNotice$key=originNotice.key)&&void 0!==_originNotice$key?_originNotice$key:getUuid(),notice=(0,objectSpread2.Z)((0,objectSpread2.Z)({},originNotice),{},{key:key}),maxCount=_this.props.maxCount;_this.setState(function(previousState){var notices=previousState.notices,noticeIndex=notices.map(function(v){return v.notice.key}).indexOf(key),updatedNotices=notices.concat();return -1!==noticeIndex?updatedNotices.splice(noticeIndex,1,{notice:notice,holderCallback:holderCallback}):(maxCount&¬ices.length>=maxCount&&(notice.key=updatedNotices[0].notice.key,notice.updateMark=getUuid(),notice.userPassKey=key,updatedNotices.shift()),updatedNotices.push({notice:notice,holderCallback:holderCallback})),{notices:updatedNotices}})},_this.remove=function(removeKey){_this.setState(function(_ref){return{notices:_ref.notices.filter(function(_ref2){var _ref2$notice=_ref2.notice,key=_ref2$notice.key,userPassKey=_ref2$notice.userPassKey;return(null!=userPassKey?userPassKey:key)!==removeKey})}})},_this.noticePropsMap={},_this}return(0,createClass.Z)(Notification,[{key:"getTransitionName",value:function(){var _this$props=this.props,prefixCls=_this$props.prefixCls,animation=_this$props.animation,transitionName=this.props.transitionName;return!transitionName&&animation&&(transitionName="".concat(prefixCls,"-").concat(animation)),transitionName}},{key:"render",value:function(){var _this2=this,notices=this.state.notices,_this$props2=this.props,prefixCls=_this$props2.prefixCls,className=_this$props2.className,closeIcon=_this$props2.closeIcon,style=_this$props2.style,noticeKeys=[];return notices.forEach(function(_ref3,index){var notice=_ref3.notice,holderCallback=_ref3.holderCallback,updateMark=index===notices.length-1?notice.updateMark:void 0,key=notice.key,userPassKey=notice.userPassKey,noticeProps=(0,objectSpread2.Z)((0,objectSpread2.Z)((0,objectSpread2.Z)({prefixCls:prefixCls,closeIcon:closeIcon},notice),notice.props),{},{key:key,noticeKey:userPassKey||key,updateMark:updateMark,onClose:function(noticeKey){var _notice$onClose;_this2.remove(noticeKey),null===(_notice$onClose=notice.onClose)||void 0===_notice$onClose||_notice$onClose.call(notice)},onClick:notice.onClick,children:notice.content});noticeKeys.push(key),_this2.noticePropsMap[key]={props:noticeProps,holderCallback:holderCallback}}),react.createElement("div",{className:classnames_default()(prefixCls,className),style:style},react.createElement(es.V,{keys:noticeKeys,motionName:this.getTransitionName(),onVisibleChanged:function(changedVisible,_ref4){var key=_ref4.key;changedVisible||delete _this2.noticePropsMap[key]}},function(_ref5){var key=_ref5.key,motionClassName=_ref5.className,motionStyle=_ref5.style,visible=_ref5.visible,_this2$noticePropsMap=_this2.noticePropsMap[key],noticeProps=_this2$noticePropsMap.props,holderCallback=_this2$noticePropsMap.holderCallback;return holderCallback?react.createElement("div",{key:key,className:classnames_default()(motionClassName,"".concat(prefixCls,"-hook-holder")),style:(0,objectSpread2.Z)({},motionStyle),ref:function(div){void 0!==key&&(div?(_this2.hookRefs.set(key,div),holderCallback(div,noticeProps)):_this2.hookRefs.delete(key))}}):react.createElement(Notice.Z,(0,esm_extends.Z)({},noticeProps,{className:classnames_default()(motionClassName,null==noticeProps?void 0:noticeProps.className),style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),null==noticeProps?void 0:noticeProps.style),visible:visible}))}))}}]),Notification}(react.Component);Notification.newInstance=void 0,Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(properties,callback){var _ref6=properties||{},getContainer=_ref6.getContainer,props=(0,objectWithoutProperties.Z)(_ref6,_excluded),div=document.createElement("div");getContainer?getContainer().appendChild(div):document.body.appendChild(div);var called=!1;(0,render.s)(react.createElement(Notification,(0,esm_extends.Z)({},props,{ref:function(notification){called||(called=!0,callback({notice:function(noticeProps){notification.add(noticeProps)},removeNotice:function(key){notification.remove(key)},component:notification,destroy:function(){(0,render.v)(div),div.parentNode&&div.parentNode.removeChild(div)},useNotification:function(){return(0,es_useNotification.Z)(notification)}}))}})),div)};var rc_notification_es=Notification},51550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useNotification}});var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(74902),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(87462),_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_Notice__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(51784);function useNotification(notificationInstance){var createdRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState([]),_React$useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__.Z)(_React$useState,2),elements=_React$useState2[0],setElements=_React$useState2[1];return[function(noticeProps){var firstMount=!0;notificationInstance.add(noticeProps,function(div,props){var key=props.key;if(div&&(!createdRef.current[key]||firstMount)){var noticeEle=react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Notice__WEBPACK_IMPORTED_MODULE_1__.Z,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},props,{holder:div}));createdRef.current[key]=noticeEle,setElements(function(originElements){var index=originElements.findIndex(function(ele){return ele.key===props.key});if(-1===index)return[].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__.Z)(originElements),[noticeEle]);var cloneList=(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__.Z)(originElements);return cloneList[index]=noticeEle,cloneList})}firstMount=!1})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,elements)]}},34243:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return rc_overflow_es}});var esm_extends=__webpack_require__(87462),objectSpread2=__webpack_require__(1413),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),es=__webpack_require__(48555),useLayoutEffect=__webpack_require__(8410),_excluded=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0,Item=react.forwardRef(function(props,ref){var overflowStyle,prefixCls=props.prefixCls,invalidate=props.invalidate,item=props.item,renderItem=props.renderItem,responsive=props.responsive,responsiveDisabled=props.responsiveDisabled,registerSize=props.registerSize,itemKey=props.itemKey,className=props.className,style=props.style,children=props.children,display=props.display,order=props.order,_props$component=props.component,restProps=(0,objectWithoutProperties.Z)(props,_excluded),mergedHidden=responsive&&!display;react.useEffect(function(){return function(){registerSize(itemKey,null)}},[]);var childNode=renderItem&&item!==UNDEFINED?renderItem(item):children;invalidate||(overflowStyle={opacity:mergedHidden?0:1,height:mergedHidden?0:UNDEFINED,overflowY:mergedHidden?"hidden":UNDEFINED,order:responsive?order:UNDEFINED,pointerEvents:mergedHidden?"none":UNDEFINED,position:mergedHidden?"absolute":UNDEFINED});var overflowProps={};mergedHidden&&(overflowProps["aria-hidden"]=!0);var itemNode=react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({className:classnames_default()(!invalidate&&prefixCls,className),style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},overflowStyle),style)},overflowProps,restProps,{ref:ref}),childNode);return responsive&&(itemNode=react.createElement(es.default,{onResize:function(_ref){registerSize(itemKey,_ref.offsetWidth)},disabled:responsiveDisabled},itemNode)),itemNode});Item.displayName="Item";var raf=__webpack_require__(75164),useState=__webpack_require__(30470),RawItem_excluded=["component"],_excluded2=["className"],_excluded3=["className"],RawItem=react.forwardRef(function(props,ref){var context=react.useContext(OverflowContext);if(!context){var _props$component=props.component,_restProps=(0,objectWithoutProperties.Z)(props,RawItem_excluded);return react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({},_restProps,{ref:ref}))}var contextClassName=context.className,restContext=(0,objectWithoutProperties.Z)(context,_excluded2),className=props.className,restProps=(0,objectWithoutProperties.Z)(props,_excluded3);return react.createElement(OverflowContext.Provider,{value:null},react.createElement(Item,(0,esm_extends.Z)({ref:ref,className:classnames_default()(contextClassName,className)},restContext,restProps)))});RawItem.displayName="RawItem";var Overflow_excluded=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OverflowContext=react.createContext(null),RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(omittedItems){return"+ ".concat(omittedItems.length," ...")}var ForwardOverflow=react.forwardRef(function(props,ref){var _useState,forceUpdate,statesRef,walkingIndex,beforeFrameId,restNode,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-overflow":_props$prefixCls,_props$data=props.data,data=void 0===_props$data?[]:_props$data,renderItem=props.renderItem,renderRawItem=props.renderRawItem,itemKey=props.itemKey,_props$itemWidth=props.itemWidth,itemWidth=void 0===_props$itemWidth?10:_props$itemWidth,ssr=props.ssr,style=props.style,className=props.className,maxCount=props.maxCount,renderRest=props.renderRest,renderRawRest=props.renderRawRest,suffix=props.suffix,_props$component=props.component,itemComponent=props.itemComponent,onVisibleChange=props.onVisibleChange,restProps=(0,objectWithoutProperties.Z)(props,Overflow_excluded),createUseState=(_useState=(0,useState.Z)({}),forceUpdate=(0,slicedToArray.Z)(_useState,2)[1],statesRef=(0,react.useRef)([]),walkingIndex=0,beforeFrameId=0,function(defaultValue){var myIndex=walkingIndex;return walkingIndex+=1,statesRef.current.lengthmaxCount,mergedData=(0,react.useMemo)(function(){var items=data;return shouldResponsive?items=null===containerWidth&&fullySSR?data:data.slice(0,Math.min(data.length,mergedContainerWidth/itemWidth)):"number"==typeof maxCount&&(items=data.slice(0,maxCount)),items},[data,itemWidth,containerWidth,maxCount,shouldResponsive]),omittedItems=(0,react.useMemo)(function(){return shouldResponsive?data.slice(mergedDisplayCount+1):data.slice(mergedData.length)},[data,mergedData,shouldResponsive,mergedDisplayCount]),getKey=(0,react.useCallback)(function(item,index){var _ref;return"function"==typeof itemKey?itemKey(item):null!==(_ref=itemKey&&(null==item?void 0:item[itemKey]))&&void 0!==_ref?_ref:index},[itemKey]),mergedRenderItem=(0,react.useCallback)(renderItem||function(item){return item},[renderItem]);function updateDisplayCount(count,suffixFixedStartVal,notReady){(displayCount!==count||void 0!==suffixFixedStartVal&&suffixFixedStartVal!==suffixFixedStart)&&(setDisplayCount(count),notReady||(setRestReady(countmergedContainerWidth){updateDisplayCount(i-1,totalWidth-currentItemWidth-suffixWidth+restWidth);break}}suffix&&getItemWidth(0)+suffixWidth>mergedContainerWidth&&setSuffixFixedStart(null)}},[mergedContainerWidth,itemWidths,restWidth,suffixWidth,getKey,mergedData]);var displayRest=restReady&&!!omittedItems.length,suffixStyle={};null!==suffixFixedStart&&shouldResponsive&&(suffixStyle={position:"absolute",left:suffixFixedStart,top:0});var itemSharedProps={prefixCls:itemPrefixCls,responsive:shouldResponsive,component:itemComponent,invalidate:invalidate},internalRenderItemNode=renderRawItem?function(item,index){var key=getKey(item,index);return react.createElement(OverflowContext.Provider,{key:key,value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},itemSharedProps),{},{order:index,item:item,itemKey:key,registerSize:registerSize,display:index<=mergedDisplayCount})},renderRawItem(item,index))}:function(item,index){var key=getKey(item,index);return react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,{order:index,key:key,item:item,renderItem:mergedRenderItem,itemKey:key,registerSize:registerSize,display:index<=mergedDisplayCount}))},restContextProps={order:displayRest?mergedDisplayCount:Number.MAX_SAFE_INTEGER,className:"".concat(itemPrefixCls,"-rest"),registerSize:function(_,width){setRestWidth(width),setPrevRestWidth(restWidth)},display:displayRest};if(renderRawRest)renderRawRest&&(restNode=react.createElement(OverflowContext.Provider,{value:(0,objectSpread2.Z)((0,objectSpread2.Z)({},itemSharedProps),restContextProps)},renderRawRest(omittedItems)));else{var mergedRenderRest=renderRest||defaultRenderRest;restNode=react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,restContextProps),"function"==typeof mergedRenderRest?mergedRenderRest(omittedItems):mergedRenderRest)}var overflowNode=react.createElement(void 0===_props$component?"div":_props$component,(0,esm_extends.Z)({className:classnames_default()(!invalidate&&prefixCls,className),style:style,ref:ref},restProps),mergedData.map(internalRenderItemNode),showRest?restNode:null,suffix&&react.createElement(Item,(0,esm_extends.Z)({},itemSharedProps,{responsive:isResponsive,responsiveDisabled:!shouldResponsive,order:mergedDisplayCount,className:"".concat(itemPrefixCls,"-suffix"),registerSize:function(_,width){setSuffixWidth(width)},display:!0,style:suffixStyle}),suffix));return isResponsive&&(overflowNode=react.createElement(es.default,{onResize:function(_,element){setContainerWidth(element.clientWidth)},disabled:!shouldResponsive},overflowNode)),overflowNode});ForwardOverflow.displayName="Overflow",ForwardOverflow.Item=RawItem,ForwardOverflow.RESPONSIVE=RESPONSIVE,ForwardOverflow.INVALIDATE=INVALIDATE;var rc_overflow_es=ForwardOverflow},62906:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},48555:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return es}});var esm_extends=__webpack_require__(87462),react=__webpack_require__(67294),toArray=__webpack_require__(50344);__webpack_require__(80334);var objectSpread2=__webpack_require__(1413),ref=__webpack_require__(42550),findDOMNode=__webpack_require__(34203),ResizeObserver_es=__webpack_require__(91033),elementListeners=new Map,resizeObserver=new ResizeObserver_es.Z(function(entities){entities.forEach(function(entity){var _elementListeners$get,target=entity.target;null===(_elementListeners$get=elementListeners.get(target))||void 0===_elementListeners$get||_elementListeners$get.forEach(function(listener){return listener(target)})})}),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),DomWrapper=function(_React$Component){(0,inherits.Z)(DomWrapper,_React$Component);var _super=(0,createSuper.Z)(DomWrapper);function DomWrapper(){return(0,classCallCheck.Z)(this,DomWrapper),_super.apply(this,arguments)}return(0,createClass.Z)(DomWrapper,[{key:"render",value:function(){return this.props.children}}]),DomWrapper}(react.Component),CollectionContext=react.createContext(null);function SingleObserver(props){var children=props.children,disabled=props.disabled,elementRef=react.useRef(null),wrapperRef=react.useRef(null),onCollectionResize=react.useContext(CollectionContext),isRenderProps="function"==typeof children,mergedChildren=isRenderProps?children(elementRef):children,sizeRef=react.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),canRef=!isRenderProps&&react.isValidElement(mergedChildren)&&(0,ref.Yr)(mergedChildren),originRef=canRef?mergedChildren.ref:null,mergedRef=react.useMemo(function(){return(0,ref.sQ)(originRef,elementRef)},[originRef,elementRef]),propsRef=react.useRef(props);propsRef.current=props;var onInternalResize=react.useCallback(function(target){var _propsRef$current=propsRef.current,onResize=_propsRef$current.onResize,data=_propsRef$current.data,_target$getBoundingCl=target.getBoundingClientRect(),width=_target$getBoundingCl.width,height=_target$getBoundingCl.height,offsetWidth=target.offsetWidth,offsetHeight=target.offsetHeight,fixedWidth=Math.floor(width),fixedHeight=Math.floor(height);if(sizeRef.current.width!==fixedWidth||sizeRef.current.height!==fixedHeight||sizeRef.current.offsetWidth!==offsetWidth||sizeRef.current.offsetHeight!==offsetHeight){var size={width:fixedWidth,height:fixedHeight,offsetWidth:offsetWidth,offsetHeight:offsetHeight};sizeRef.current=size;var sizeInfo=(0,objectSpread2.Z)((0,objectSpread2.Z)({},size),{},{offsetWidth:offsetWidth===Math.round(width)?width:offsetWidth,offsetHeight:offsetHeight===Math.round(height)?height:offsetHeight});null==onCollectionResize||onCollectionResize(sizeInfo,target,data),onResize&&Promise.resolve().then(function(){onResize(sizeInfo,target)})}},[]);return react.useEffect(function(){var currentElement=(0,findDOMNode.Z)(elementRef.current)||(0,findDOMNode.Z)(wrapperRef.current);return currentElement&&!disabled&&(elementListeners.has(currentElement)||(elementListeners.set(currentElement,new Set),resizeObserver.observe(currentElement)),elementListeners.get(currentElement).add(onInternalResize)),function(){elementListeners.has(currentElement)&&(elementListeners.get(currentElement).delete(onInternalResize),elementListeners.get(currentElement).size||(resizeObserver.unobserve(currentElement),elementListeners.delete(currentElement)))}},[elementRef.current,disabled]),react.createElement(DomWrapper,{ref:wrapperRef},canRef?react.cloneElement(mergedChildren,{ref:mergedRef}):mergedChildren)}function ResizeObserver(props){var children=props.children;return("function"==typeof children?[children]:(0,toArray.Z)(children)).map(function(child,index){var key=(null==child?void 0:child.key)||"".concat("rc-observer-key","-").concat(index);return react.createElement(SingleObserver,(0,esm_extends.Z)({},props,{key:key}),child)})}ResizeObserver.Collection=function(_ref){var children=_ref.children,onBatchResize=_ref.onBatchResize,resizeIdRef=react.useRef(0),resizeInfosRef=react.useRef([]),onCollectionResize=react.useContext(CollectionContext),onResize=react.useCallback(function(size,element,data){resizeIdRef.current+=1;var currentId=resizeIdRef.current;resizeInfosRef.current.push({size:size,element:element,data:data}),Promise.resolve().then(function(){currentId===resizeIdRef.current&&(null==onBatchResize||onBatchResize(resizeInfosRef.current),resizeInfosRef.current=[])}),null==onCollectionResize||onCollectionResize(size,element,data)},[onBatchResize,onCollectionResize]);return react.createElement(CollectionContext.Provider,{value:onResize},children)};var es=ResizeObserver},57239:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ResizableTextArea:function(){return es_ResizableTextArea},default:function(){return rc_textarea_es}});var hiddenTextarea,esm_extends=__webpack_require__(87462),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),react=__webpack_require__(67294),defineProperty=__webpack_require__(4942),objectSpread2=__webpack_require__(1413),esm_typeof=__webpack_require__(71002),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),es=__webpack_require__(48555),useLayoutEffect=__webpack_require__(8410),raf=__webpack_require__(75164),useMergedState=__webpack_require__(21770),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],computedStyleCache={},_excluded=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],es_ResizableTextArea=react.forwardRef(function(props,ref){var _props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-textarea":_props$prefixCls,defaultValue=(props.onPressEnter,props.defaultValue),value=props.value,autoSize=props.autoSize,onResize=props.onResize,className=props.className,style=props.style,disabled=props.disabled,onChange=props.onChange,restProps=(props.onInternalAutoSize,(0,objectWithoutProperties.Z)(props,_excluded)),_useMergedState=(0,useMergedState.Z)(defaultValue,{value:value,postState:function(val){return null!=val?val:""}}),_useMergedState2=(0,slicedToArray.Z)(_useMergedState,2),mergedValue=_useMergedState2[0],setMergedValue=_useMergedState2[1],textareaRef=react.useRef();react.useImperativeHandle(ref,function(){return{textArea:textareaRef.current}});var _React$useMemo=react.useMemo(function(){return autoSize&&"object"===(0,esm_typeof.Z)(autoSize)?[autoSize.minRows,autoSize.maxRows]:[]},[autoSize]),_React$useMemo2=(0,slicedToArray.Z)(_React$useMemo,2),minRows=_React$useMemo2[0],maxRows=_React$useMemo2[1],needAutoSize=!!autoSize,fixFirefoxAutoScroll=function(){try{if(document.activeElement===textareaRef.current){var _textareaRef$current=textareaRef.current,selectionStart=_textareaRef$current.selectionStart,selectionEnd=_textareaRef$current.selectionEnd,scrollTop=_textareaRef$current.scrollTop;textareaRef.current.setSelectionRange(selectionStart,selectionEnd),textareaRef.current.scrollTop=scrollTop}}catch(e){}},_React$useState=react.useState(2),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),resizeState=_React$useState2[0],setResizeState=_React$useState2[1],_React$useState3=react.useState(),_React$useState4=(0,slicedToArray.Z)(_React$useState3,2),autoSizeStyle=_React$useState4[0],setAutoSizeStyle=_React$useState4[1],startResize=function(){setResizeState(0)};(0,useLayoutEffect.Z)(function(){needAutoSize&&startResize()},[value,minRows,maxRows,needAutoSize]),(0,useLayoutEffect.Z)(function(){if(0===resizeState)setResizeState(1);else if(1===resizeState){var textareaStyles=function(uiTextNode){var overflowY,useCache=arguments.length>1&&void 0!==arguments[1]&&arguments[1],minRows=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,maxRows=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),uiTextNode.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",uiTextNode.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var _calculateNodeStyling=function(node){var useCache=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nodeRef=node.getAttribute("id")||node.getAttribute("data-reactid")||node.getAttribute("name");if(useCache&&computedStyleCache[nodeRef])return computedStyleCache[nodeRef];var style=window.getComputedStyle(node),boxSizing=style.getPropertyValue("box-sizing")||style.getPropertyValue("-moz-box-sizing")||style.getPropertyValue("-webkit-box-sizing"),paddingSize=parseFloat(style.getPropertyValue("padding-bottom"))+parseFloat(style.getPropertyValue("padding-top")),borderSize=parseFloat(style.getPropertyValue("border-bottom-width"))+parseFloat(style.getPropertyValue("border-top-width")),nodeInfo={sizingStyle:SIZING_STYLE.map(function(name){return"".concat(name,":").concat(style.getPropertyValue(name))}).join(";"),paddingSize:paddingSize,borderSize:borderSize,boxSizing:boxSizing};return useCache&&nodeRef&&(computedStyleCache[nodeRef]=nodeInfo),nodeInfo}(uiTextNode,useCache),paddingSize=_calculateNodeStyling.paddingSize,borderSize=_calculateNodeStyling.borderSize,boxSizing=_calculateNodeStyling.boxSizing,sizingStyle=_calculateNodeStyling.sizingStyle;hiddenTextarea.setAttribute("style","".concat(sizingStyle,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),hiddenTextarea.value=uiTextNode.value||uiTextNode.placeholder||"";var minHeight=void 0,maxHeight=void 0,height=hiddenTextarea.scrollHeight;if("border-box"===boxSizing?height+=borderSize:"content-box"===boxSizing&&(height-=paddingSize),null!==minRows||null!==maxRows){hiddenTextarea.value=" ";var singleRowHeight=hiddenTextarea.scrollHeight-paddingSize;null!==minRows&&(minHeight=singleRowHeight*minRows,"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height)),null!==maxRows&&(maxHeight=singleRowHeight*maxRows,"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),overflowY=height>maxHeight?"":"hidden",height=Math.min(maxHeight,height))}var style={height:height,overflowY:overflowY,resize:"none"};return minHeight&&(style.minHeight=minHeight),maxHeight&&(style.maxHeight=maxHeight),style}(textareaRef.current,!1,minRows,maxRows);setResizeState(2),setAutoSizeStyle(textareaStyles)}else fixFirefoxAutoScroll()},[resizeState]);var resizeRafRef=react.useRef(),cleanRaf=function(){raf.Z.cancel(resizeRafRef.current)};react.useEffect(function(){return cleanRaf},[]);var mergedStyle=(0,objectSpread2.Z)((0,objectSpread2.Z)({},style),needAutoSize?autoSizeStyle:null);return(0===resizeState||1===resizeState)&&(mergedStyle.overflowY="hidden",mergedStyle.overflowX="hidden"),react.createElement(es.default,{onResize:function(size){2===resizeState&&(null==onResize||onResize(size),autoSize&&(cleanRaf(),resizeRafRef.current=(0,raf.Z)(function(){startResize()})))},disabled:!(autoSize||onResize)},react.createElement("textarea",(0,esm_extends.Z)({},restProps,{ref:textareaRef,style:mergedStyle,className:classnames_default()(prefixCls,className,(0,defineProperty.Z)({},"".concat(prefixCls,"-disabled"),disabled)),disabled:disabled,value:mergedValue,onChange:function(event){setMergedValue(event.target.value),null==onChange||onChange(event)}})))}),rc_textarea_es=function(_React$Component){(0,inherits.Z)(TextArea,_React$Component);var _super=(0,createSuper.Z)(TextArea);function TextArea(props){(0,classCallCheck.Z)(this,TextArea),(_this=_super.call(this,props)).resizableTextArea=void 0,_this.focus=function(){_this.resizableTextArea.textArea.focus()},_this.saveTextArea=function(resizableTextArea){_this.resizableTextArea=resizableTextArea},_this.handleChange=function(e){var onChange=_this.props.onChange;_this.setValue(e.target.value),onChange&&onChange(e)},_this.handleKeyDown=function(e){var _this$props=_this.props,onPressEnter=_this$props.onPressEnter,onKeyDown=_this$props.onKeyDown;13===e.keyCode&&onPressEnter&&onPressEnter(e),onKeyDown&&onKeyDown(e)};var _this,value=void 0===props.value||null===props.value?props.defaultValue:props.value;return _this.state={value:value},_this}return(0,createClass.Z)(TextArea,[{key:"setValue",value:function(value,callback){"value"in this.props||this.setState({value:value},callback)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return react.createElement(es_ResizableTextArea,(0,esm_extends.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(nextProps){return"value"in nextProps?{value:nextProps.value}:null}}]),TextArea}(react.Component)},43763:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Popup:function(){return Popup},default:function(){return rc_tooltip_es}});var esm_extends=__webpack_require__(87462),esm_typeof=__webpack_require__(71002),objectSpread2=__webpack_require__(1413),objectWithoutProperties=__webpack_require__(45987),react=__webpack_require__(67294),es=__webpack_require__(81263),placements=__webpack_require__(43159),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames);function Popup(props){var showArrow=props.showArrow,arrowContent=props.arrowContent,children=props.children,prefixCls=props.prefixCls,id=props.id,overlayInnerStyle=props.overlayInnerStyle,className=props.className,style=props.style;return react.createElement("div",{className:classnames_default()("".concat(prefixCls,"-content"),className),style:style},!1!==showArrow&&react.createElement("div",{className:"".concat(prefixCls,"-arrow"),key:"arrow"},arrowContent),react.createElement("div",{className:"".concat(prefixCls,"-inner"),id:id,role:"tooltip",style:overlayInnerStyle},"function"==typeof children?children():children))}var rc_tooltip_es=(0,react.forwardRef)(function(props,ref){var overlayClassName=props.overlayClassName,_props$trigger=props.trigger,_props$mouseEnterDela=props.mouseEnterDelay,_props$mouseLeaveDela=props.mouseLeaveDelay,overlayStyle=props.overlayStyle,_props$prefixCls=props.prefixCls,prefixCls=void 0===_props$prefixCls?"rc-tooltip":_props$prefixCls,children=props.children,onVisibleChange=props.onVisibleChange,afterVisibleChange=props.afterVisibleChange,transitionName=props.transitionName,animation=props.animation,motion=props.motion,_props$placement=props.placement,_props$align=props.align,_props$destroyTooltip=props.destroyTooltipOnHide,destroyTooltipOnHide=void 0!==_props$destroyTooltip&&_props$destroyTooltip,defaultVisible=props.defaultVisible,getTooltipContainer=props.getTooltipContainer,overlayInnerStyle=props.overlayInnerStyle,arrowContent=props.arrowContent,overlay=props.overlay,id=props.id,showArrow=props.showArrow,restProps=(0,objectWithoutProperties.Z)(props,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),domRef=(0,react.useRef)(null);(0,react.useImperativeHandle)(ref,function(){return domRef.current});var extraProps=(0,objectSpread2.Z)({},restProps);"visible"in props&&(extraProps.popupVisible=props.visible);var destroyTooltip=!1,autoDestroy=!1;if("boolean"==typeof destroyTooltipOnHide)destroyTooltip=destroyTooltipOnHide;else if(destroyTooltipOnHide&&"object"===(0,esm_typeof.Z)(destroyTooltipOnHide)){var keepParent=destroyTooltipOnHide.keepParent;destroyTooltip=!0===keepParent,autoDestroy=!1===keepParent}return react.createElement(es.Z,(0,esm_extends.Z)({popupClassName:overlayClassName,prefixCls:prefixCls,popup:function(){return react.createElement(Popup,{showArrow:showArrow,arrowContent:arrowContent,key:"content",prefixCls:prefixCls,id:id,overlayInnerStyle:overlayInnerStyle},overlay)},action:void 0===_props$trigger?["hover"]:_props$trigger,builtinPlacements:placements.C,popupPlacement:void 0===_props$placement?"right":_props$placement,ref:domRef,popupAlign:void 0===_props$align?{}:_props$align,getPopupContainer:getTooltipContainer,onPopupVisibleChange:onVisibleChange,afterPopupVisibleChange:afterVisibleChange,popupTransitionName:transitionName,popupAnimation:animation,popupMotion:motion,defaultPopupVisible:defaultVisible,destroyPopupOnHide:destroyTooltip,autoDestroy:autoDestroy,mouseLeaveDelay:void 0===_props$mouseLeaveDela?.1:_props$mouseLeaveDela,popupStyle:overlayStyle,mouseEnterDelay:void 0===_props$mouseEnterDela?0:_props$mouseEnterDela},extraProps),children)})},43159:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return placements}});var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset:targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset:targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset:targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset:targetOffset}}},81263:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return rc_trigger_es}});var Trigger,vendorPrefix,getComputedStyleX,objectSpread2=__webpack_require__(1413),esm_extends=__webpack_require__(87462),classCallCheck=__webpack_require__(15671),createClass=__webpack_require__(43144),assertThisInitialized=__webpack_require__(97326),inherits=__webpack_require__(60136),createSuper=__webpack_require__(33643),defineProperty=__webpack_require__(4942),react=__webpack_require__(67294),react_dom=__webpack_require__(73935),raf=__webpack_require__(75164),contains=__webpack_require__(94999),findDOMNode=__webpack_require__(34203),es_ref=__webpack_require__(42550),addEventListener=__webpack_require__(64019),canUseDom=__webpack_require__(98924),Portal=(0,react.forwardRef)(function(props,ref){var didUpdate=props.didUpdate,getContainer=props.getContainer,children=props.children,parentRef=(0,react.useRef)(),containerRef=(0,react.useRef)();(0,react.useImperativeHandle)(ref,function(){return{}});var initRef=(0,react.useRef)(!1);return!initRef.current&&(0,canUseDom.Z)()&&(containerRef.current=getContainer(),parentRef.current=containerRef.current.parentNode,initRef.current=!0),(0,react.useEffect)(function(){null==didUpdate||didUpdate(props)}),(0,react.useEffect)(function(){return null===containerRef.current.parentNode&&null!==parentRef.current&&parentRef.current.appendChild(containerRef.current),function(){var _containerRef$current,_containerRef$current2;null===(_containerRef$current=containerRef.current)||void 0===_containerRef$current||null===(_containerRef$current2=_containerRef$current.parentNode)||void 0===_containerRef$current2||_containerRef$current2.removeChild(containerRef.current)}},[]),containerRef.current?react_dom.createPortal(children,containerRef.current):null}),classnames=__webpack_require__(94184),classnames_default=__webpack_require__.n(classnames),slicedToArray=__webpack_require__(97685),objectWithoutProperties=__webpack_require__(45987),isMobile=__webpack_require__(31131),es=__webpack_require__(62874);function getMotion(_ref){var prefixCls=_ref.prefixCls,motion=_ref.motion,animation=_ref.animation,transitionName=_ref.transitionName;return motion||(animation?{motionName:"".concat(prefixCls,"-").concat(animation)}:transitionName?{motionName:transitionName}:null)}function Mask(props){var prefixCls=props.prefixCls,visible=props.visible,zIndex=props.zIndex,mask=props.mask,maskMotion=props.maskMotion,maskAnimation=props.maskAnimation,maskTransitionName=props.maskTransitionName;if(!mask)return null;var motion={};return(maskMotion||maskTransitionName||maskAnimation)&&(motion=(0,objectSpread2.Z)({motionAppear:!0},getMotion({motion:maskMotion,prefixCls:prefixCls,transitionName:maskTransitionName,animation:maskAnimation}))),react.createElement(es.Z,(0,esm_extends.Z)({},motion,{visible:visible,removeOnLeave:!0}),function(_ref){var className=_ref.className;return react.createElement("div",{style:{zIndex:zIndex},className:classnames_default()("".concat(prefixCls,"-mask"),className)})})}var esm_typeof=__webpack_require__(71002),isVisible=__webpack_require__(5110);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;iNumber(cssBoxValue))&&(cssBoxValue=elem.style[name]||0),cssBoxValue=parseFloat(cssBoxValue)||0),void 0===extra&&(extra=isBorderBox?1:-1);var borderBoxValueOrIsBorderBox=void 0!==borderBoxValue||isBorderBox,val=borderBoxValue||cssBoxValue;return -1===extra?borderBoxValueOrIsBorderBox?val-getPBMWidth(elem,["border","padding"],which):cssBoxValue:borderBoxValueOrIsBorderBox?1===extra?val:val+(2===extra?-getPBMWidth(elem,["border"],which):getPBMWidth(elem,["margin"],which)):cssBoxValue+getPBMWidth(elem,BOX_MODELS.slice(extra),which)}each(["Width","Height"],function(name){domUtils["doc".concat(name)]=function(refWin){var d=refWin.document;return Math.max(d.documentElement["scroll".concat(name)],d.body["scroll".concat(name)],domUtils["viewport".concat(name)](d))},domUtils["viewport".concat(name)]=function(win){var prop="client".concat(name),doc=win.document,body=doc.body,documentElementProp=doc.documentElement[prop];return"CSS1Compat"===doc.compatMode&&documentElementProp||body&&body[prop]||documentElementProp}});var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var val,_len=arguments.length,args=Array(_len),_key2=0;_key2<_len;_key2++)args[_key2]=arguments[_key2];var elem=args[0];return 0!==elem.offsetWidth?val=getWH.apply(void 0,args):function(elem,options,callback){var name,old={},style=elem.style;for(name in options)options.hasOwnProperty(name)&&(old[name]=style[name],style[name]=options[name]);for(name in callback.call(elem),options)options.hasOwnProperty(name)&&(style[name]=old[name])}(elem,cssShow,function(){val=getWH.apply(void 0,args)}),val}function mix(to,from){for(var i in from)from.hasOwnProperty(i)&&(to[i]=from[i]);return to}each(["width","height"],function(name){var first=name.charAt(0).toUpperCase()+name.slice(1);domUtils["outer".concat(first)]=function(el,includeMargin){return el&&getWHIgnoreDisplay(el,name,includeMargin?0:1)};var which="width"===name?["Left","Right"]:["Top","Bottom"];domUtils[name]=function(elem,v){var val=v;return void 0!==val?elem?(isBorderBoxFn(elem)&&(val+=getPBMWidth(elem,["padding","border"],which)),css(elem,name,val)):void 0:elem&&getWHIgnoreDisplay(elem,name,-1)}});var utils={getWindow:function(node){if(node&&node.document&&node.setTimeout)return node;var doc=node.ownerDocument||node;return doc.defaultView||doc.parentWindow},getDocument:getDocument,offset:function(el,value,option){if(void 0===value)return getOffset(el);!function(elem,offset,option){if(option.ignoreShake){var originalOffset,originalXY,resultXY,oriOffset=getOffset(elem),oLeft=oriOffset.left.toFixed(0),oTop=oriOffset.top.toFixed(0),tLeft=offset.left.toFixed(0),tTop=offset.top.toFixed(0);if(oLeft===tLeft&&oTop===tTop)return}option.useCssRight||option.useCssBottom?setLeftTop(elem,offset,option):option.useCssTransform&&getTransformName() in document.body.style?(originalOffset=getOffset(elem),resultXY={x:(originalXY=function(node){var style=window.getComputedStyle(node,null),transform=style.getPropertyValue("transform")||style.getPropertyValue(getTransformName());if(transform&&"none"!==transform){var matrix=transform.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(matrix[12]||matrix[4],0),y:parseFloat(matrix[13]||matrix[5],0)}}return{x:0,y:0}}(elem)).x,y:originalXY.y},"left"in offset&&(resultXY.x=originalXY.x+offset.left-originalOffset.left),"top"in offset&&(resultXY.y=originalXY.y+offset.top-originalOffset.top),function(node,xy){var style=window.getComputedStyle(node,null),transform=style.getPropertyValue("transform")||style.getPropertyValue(getTransformName());if(transform&&"none"!==transform){var arr,match2d=transform.match(matrix2d);match2d?((arr=(match2d=match2d[1]).split(",").map(function(item){return parseFloat(item,10)}))[4]=xy.x,arr[5]=xy.y,setTransform(node,"matrix(".concat(arr.join(","),")"))):((arr=transform.match(matrix3d)[1].split(",").map(function(item){return parseFloat(item,10)}))[12]=xy.x,arr[13]=xy.y,setTransform(node,"matrix3d(".concat(arr.join(","),")")))}else setTransform(node,"translateX(".concat(xy.x,"px) translateY(").concat(xy.y,"px) translateZ(0)"))}(elem,resultXY)):setLeftTop(elem,offset,option)}(el,value,option||{})},isWindow:isWindow,each:each,css:css,clone:function(obj){var i,ret={};for(i in obj)obj.hasOwnProperty(i)&&(ret[i]=obj[i]);if(obj.overflow)for(i in obj)obj.hasOwnProperty(i)&&(ret.overflow[i]=obj.overflow[i]);return ret},mix:mix,getWindowScrollLeft:function(w){return getScroll(w)},getWindowScrollTop:function(w){return getScroll(w,!0)},merge:function(){for(var ret={},i=0;i=0&&visibleRect.left>=0&&visibleRect.bottom>visibleRect.top&&visibleRect.right>visibleRect.left?visibleRect:null}function getRegion(node){if(utils.isWindow(node)||9===node.nodeType){var offset,w,h,win=utils.getWindow(node);offset={left:utils.getWindowScrollLeft(win),top:utils.getWindowScrollTop(win)},w=utils.viewportWidth(win),h=utils.viewportHeight(win)}else offset=utils.offset(node),w=utils.outerWidth(node),h=utils.outerHeight(node);return offset.width=w,offset.height=h,offset}function getAlignOffset(region,align){var V=align.charAt(0),H=align.charAt(1),w=region.width,h=region.height,x=region.left,y=region.top;return"c"===V?y+=h/2:"b"===V&&(y+=h),"c"===H?x+=w/2:"r"===H&&(x+=w),{left:x,top:y}}function getElFuturePos(elRegion,refNodeRegion,points,offset,targetOffset){var p1=getAlignOffset(refNodeRegion,points[1]),p2=getAlignOffset(elRegion,points[0]),diff=[p2.left-p1.left,p2.top-p1.top];return{left:Math.round(elRegion.left-diff[0]+offset[0]-targetOffset[0]),top:Math.round(elRegion.top-diff[1]+offset[1]-targetOffset[1])}}function isFailX(elFuturePos,elRegion,visibleRect){return elFuturePos.leftvisibleRect.right}function isFailY(elFuturePos,elRegion,visibleRect){return elFuturePos.topvisibleRect.bottom}function flip(points,reg,map){var ret=[];return utils.each(points,function(p){ret.push(p.replace(reg,function(m){return map[m]}))}),ret}function flipOffset(offset,index){return offset[index]=-offset[index],offset}function convertOffset(str,offsetLen){return(/%$/.test(str)?parseInt(str.substring(0,str.length-1),10)/100*offsetLen:parseInt(str,10))||0}function normalizeOffset(offset,el){offset[0]=convertOffset(offset[0],el.width),offset[1]=convertOffset(offset[1],el.height)}function doAlign(el,tgtRegion,align,isTgtRegionVisible){var points=align.points,offset=align.offset||[0,0],targetOffset=align.targetOffset||[0,0],overflow=align.overflow,source=align.source||el;offset=[].concat(offset),targetOffset=[].concat(targetOffset);var newOverflowCfg={},fail=0,visibleRect=getVisibleRectForElement(source,!!(overflow=overflow||{}).alwaysByViewport),elRegion=getRegion(source);normalizeOffset(offset,elRegion),normalizeOffset(targetOffset,tgtRegion);var elFuturePos=getElFuturePos(elRegion,tgtRegion,points,offset,targetOffset),newElRegion=utils.merge(elRegion,elFuturePos);if(visibleRect&&(overflow.adjustX||overflow.adjustY)&&isTgtRegionVisible){if(overflow.adjustX&&isFailX(elFuturePos,elRegion,visibleRect)){var elFuturePos1,pos,size,elFuturePos2,newPoints=flip(points,/[lr]/gi,{l:"r",r:"l"}),newOffset=flipOffset(offset,0),newTargetOffset=flipOffset(targetOffset,0);(elFuturePos2=getElFuturePos(elRegion,tgtRegion,newPoints,newOffset,newTargetOffset)).left>visibleRect.right||elFuturePos2.left+elRegion.widthvisibleRect.bottom||elFuturePos3.top+elRegion.height=visibleRect.left&&pos.left+size.width>visibleRect.right&&(size.width-=pos.left+size.width-visibleRect.right),newOverflowCfg.adjustX&&pos.left+size.width>visibleRect.right&&(pos.left=Math.max(visibleRect.right-size.width,visibleRect.left)),newOverflowCfg.adjustY&&pos.top=visibleRect.top&&pos.top+size.height>visibleRect.bottom&&(size.height-=pos.top+size.height-visibleRect.bottom),newOverflowCfg.adjustY&&pos.top+size.height>visibleRect.bottom&&(pos.top=Math.max(visibleRect.bottom-size.height,visibleRect.top)),newElRegion=utils.mix(pos,size))}return newElRegion.width!==elRegion.width&&utils.css(source,"width",utils.width(source)+newElRegion.width-elRegion.width),newElRegion.height!==elRegion.height&&utils.css(source,"height",utils.height(source)+newElRegion.height-elRegion.height),utils.offset(source,{left:newElRegion.left,top:newElRegion.top},{useCssRight:align.useCssRight,useCssBottom:align.useCssBottom,useCssTransform:align.useCssTransform,ignoreShake:align.ignoreShake}),{points:points,offset:offset,targetOffset:targetOffset,overflow:newOverflowCfg}}function alignElement(el,refNode,align){var visibleRect,targetRegion,target=align.target||refNode,refNodeRegion=getRegion(target),isTargetNotOutOfVisible=(visibleRect=getVisibleRectForElement(target,align.overflow&&align.overflow.alwaysByViewport),targetRegion=getRegion(target),!!visibleRect&&!(targetRegion.left+targetRegion.width<=visibleRect.left)&&!(targetRegion.top+targetRegion.height<=visibleRect.top)&&!(targetRegion.left>=visibleRect.right)&&!(targetRegion.top>=visibleRect.bottom));return doAlign(el,refNodeRegion,align,isTargetNotOutOfVisible)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;var isEqual=__webpack_require__(18446),isEqual_default=__webpack_require__.n(isEqual),ResizeObserver_es=__webpack_require__(91033);function monitorResize(element,callback){var prevWidth=null,prevHeight=null,resizeObserver=new ResizeObserver_es.Z(function(_ref){var target=(0,slicedToArray.Z)(_ref,1)[0].target;if(document.documentElement.contains(target)){var _target$getBoundingCl=target.getBoundingClientRect(),width=_target$getBoundingCl.width,height=_target$getBoundingCl.height,fixedWidth=Math.floor(width),fixedHeight=Math.floor(height);(prevWidth!==fixedWidth||prevHeight!==fixedHeight)&&Promise.resolve().then(function(){callback({width:fixedWidth,height:fixedHeight})}),prevWidth=fixedWidth,prevHeight=fixedHeight}});return element&&resizeObserver.observe(element),function(){resizeObserver.disconnect()}}var useBuffer=function(callback,buffer){var calledRef=react.useRef(!1),timeoutRef=react.useRef(null);function cancelTrigger(){window.clearTimeout(timeoutRef.current)}return[function trigger(force){if(cancelTrigger(),calledRef.current&&!0!==force)timeoutRef.current=window.setTimeout(function(){calledRef.current=!1,trigger()},buffer);else{if(!1===callback())return;calledRef.current=!0,timeoutRef.current=window.setTimeout(function(){calledRef.current=!1},buffer)}},function(){calledRef.current=!1,cancelTrigger()}]};function getElement(func){return"function"!=typeof func?null:func()}function getPoint(point){return"object"===(0,esm_typeof.Z)(point)&&point?point:null}var RcAlign=react.forwardRef(function(_ref,ref){var children=_ref.children,disabled=_ref.disabled,target=_ref.target,align=_ref.align,onAlign=_ref.onAlign,monitorWindowResize=_ref.monitorWindowResize,_ref$monitorBufferTim=_ref.monitorBufferTime,cacheRef=react.useRef({}),nodeRef=react.useRef(),childNode=react.Children.only(children),forceAlignPropsRef=react.useRef({});forceAlignPropsRef.current.disabled=disabled,forceAlignPropsRef.current.target=target,forceAlignPropsRef.current.align=align,forceAlignPropsRef.current.onAlign=onAlign;var _useBuffer=useBuffer(function(){var _forceAlignPropsRef$c=forceAlignPropsRef.current,latestDisabled=_forceAlignPropsRef$c.disabled,latestTarget=_forceAlignPropsRef$c.target,latestAlign=_forceAlignPropsRef$c.align,latestOnAlign=_forceAlignPropsRef$c.onAlign;if(!latestDisabled&&latestTarget){var pageX,pageY,doc,win,scrollX,scrollY,viewportWidth,viewportHeight,tgtRegion,points,result,source=nodeRef.current,element=getElement(latestTarget),point=getPoint(latestTarget);cacheRef.current.element=element,cacheRef.current.point=point,cacheRef.current.align=latestAlign;var activeElement=document.activeElement;return element&&(0,isVisible.Z)(element)?result=alignElement(source,element,latestAlign):point&&(win=(doc=utils.getDocument(source)).defaultView||doc.parentWindow,scrollX=utils.getWindowScrollLeft(win),scrollY=utils.getWindowScrollTop(win),viewportWidth=utils.viewportWidth(win),viewportHeight=utils.viewportHeight(win),tgtRegion={left:pageX="pageX"in point?point.pageX:scrollX+point.clientX,top:pageY="pageY"in point?point.pageY:scrollY+point.clientY,width:0,height:0},points=[latestAlign.points[0],"cc"],result=doAlign(source,tgtRegion,_objectSpread2(_objectSpread2({},latestAlign),{},{points:points}),pageX>=0&&pageX<=scrollX+viewportWidth&&pageY>=0&&pageY<=scrollY+viewportHeight)),activeElement!==document.activeElement&&(0,contains.Z)(source,activeElement)&&"function"==typeof activeElement.focus&&activeElement.focus(),latestOnAlign&&result&&latestOnAlign(source,result),!0}return!1},void 0===_ref$monitorBufferTim?0:_ref$monitorBufferTim),_useBuffer2=(0,slicedToArray.Z)(_useBuffer,2),_forceAlign=_useBuffer2[0],cancelForceAlign=_useBuffer2[1],resizeMonitor=react.useRef({cancel:function(){}}),sourceResizeMonitor=react.useRef({cancel:function(){}});react.useEffect(function(){var prev,element=getElement(target),point=getPoint(target);nodeRef.current!==sourceResizeMonitor.current.element&&(sourceResizeMonitor.current.cancel(),sourceResizeMonitor.current.element=nodeRef.current,sourceResizeMonitor.current.cancel=monitorResize(nodeRef.current,_forceAlign)),cacheRef.current.element===element&&((prev=cacheRef.current.point)===point||prev&&point&&("pageX"in point&&"pageY"in point?prev.pageX===point.pageX&&prev.pageY===point.pageY:"clientX"in point&&"clientY"in point&&prev.clientX===point.clientX&&prev.clientY===point.clientY))&&isEqual_default()(cacheRef.current.align,align)||(_forceAlign(),resizeMonitor.current.element!==element&&(resizeMonitor.current.cancel(),resizeMonitor.current.element=element,resizeMonitor.current.cancel=monitorResize(element,_forceAlign)))}),react.useEffect(function(){disabled?cancelForceAlign():_forceAlign()},[disabled]);var winResizeRef=react.useRef(null);return react.useEffect(function(){monitorWindowResize?winResizeRef.current||(winResizeRef.current=(0,addEventListener.Z)(window,"resize",_forceAlign)):winResizeRef.current&&(winResizeRef.current.remove(),winResizeRef.current=null)},[monitorWindowResize]),react.useEffect(function(){return function(){resizeMonitor.current.cancel(),sourceResizeMonitor.current.cancel(),winResizeRef.current&&winResizeRef.current.remove(),cancelForceAlign()}},[]),react.useImperativeHandle(ref,function(){return{forceAlign:function(){return _forceAlign(!0)}}}),react.isValidElement(childNode)&&(childNode=react.cloneElement(childNode,{ref:(0,es_ref.sQ)(childNode.ref,nodeRef)})),childNode});RcAlign.displayName="Align";var useLayoutEffect=__webpack_require__(8410),regeneratorRuntime=__webpack_require__(74165),asyncToGenerator=__webpack_require__(15861),useState=__webpack_require__(30470),StatusQueue=["measure","alignPre","align",null,"motion"],useVisibleStatus=function(visible,doMeasure){var _useState=(0,useState.Z)(null),_useState2=(0,slicedToArray.Z)(_useState,2),status=_useState2[0],setInternalStatus=_useState2[1],rafRef=(0,react.useRef)();function cancelRaf(){raf.Z.cancel(rafRef.current)}return(0,react.useEffect)(function(){setInternalStatus("measure",!0)},[visible]),(0,react.useEffect)(function(){"measure"===status&&doMeasure(),status&&(rafRef.current=(0,raf.Z)((0,asyncToGenerator.Z)((0,regeneratorRuntime.Z)().mark(function _callee(){var index,nextStatus;return(0,regeneratorRuntime.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:(nextStatus=StatusQueue[(index=StatusQueue.indexOf(status))+1])&&-1!==index&&setInternalStatus(nextStatus,!0);case 3:case"end":return _context.stop()}},_callee)}))))},[status]),(0,react.useEffect)(function(){return function(){cancelRaf()}},[]),[status,function(callback){cancelRaf(),rafRef.current=(0,raf.Z)(function(){setInternalStatus(function(prev){switch(status){case"align":return"motion";case"motion":return"stable"}return prev},!0),null==callback||callback()})}]},useStretchStyle=function(stretch){var _React$useState=react.useState({width:0,height:0}),_React$useState2=(0,slicedToArray.Z)(_React$useState,2),targetSize=_React$useState2[0],setTargetSize=_React$useState2[1];return[react.useMemo(function(){var sizeStyle={};if(stretch){var width=targetSize.width,height=targetSize.height;-1!==stretch.indexOf("height")&&height?sizeStyle.height=height:-1!==stretch.indexOf("minHeight")&&height&&(sizeStyle.minHeight=height),-1!==stretch.indexOf("width")&&width?sizeStyle.width=width:-1!==stretch.indexOf("minWidth")&&width&&(sizeStyle.minWidth=width)}return sizeStyle},[stretch,targetSize]),function(element){setTargetSize({width:element.offsetWidth,height:element.offsetHeight})}]},PopupInner=react.forwardRef(function(props,ref){var visible=props.visible,prefixCls=props.prefixCls,className=props.className,style=props.style,children=props.children,zIndex=props.zIndex,stretch=props.stretch,destroyPopupOnHide=props.destroyPopupOnHide,forceRender=props.forceRender,align=props.align,point=props.point,getRootDomNode=props.getRootDomNode,getClassNameFromAlign=props.getClassNameFromAlign,onAlign=props.onAlign,onMouseEnter=props.onMouseEnter,onMouseLeave=props.onMouseLeave,onMouseDown=props.onMouseDown,onTouchStart=props.onTouchStart,onClick=props.onClick,alignRef=(0,react.useRef)(),elementRef=(0,react.useRef)(),_useState=(0,react.useState)(),_useState2=(0,slicedToArray.Z)(_useState,2),alignedClassName=_useState2[0],setAlignedClassName=_useState2[1],_useStretchStyle=useStretchStyle(stretch),_useStretchStyle2=(0,slicedToArray.Z)(_useStretchStyle,2),stretchStyle=_useStretchStyle2[0],measureStretchStyle=_useStretchStyle2[1],_useVisibleStatus=useVisibleStatus(visible,function(){stretch&&measureStretchStyle(getRootDomNode())}),_useVisibleStatus2=(0,slicedToArray.Z)(_useVisibleStatus,2),status=_useVisibleStatus2[0],goNextStatus=_useVisibleStatus2[1],_useState3=(0,react.useState)(0),_useState4=(0,slicedToArray.Z)(_useState3,2),alignTimes=_useState4[0],setAlignTimes=_useState4[1],prepareResolveRef=(0,react.useRef)();function forceAlign(){var _alignRef$current;null===(_alignRef$current=alignRef.current)||void 0===_alignRef$current||_alignRef$current.forceAlign()}function onInternalAlign(popupDomNode,matchAlign){var nextAlignedClassName=getClassNameFromAlign(matchAlign);alignedClassName!==nextAlignedClassName&&setAlignedClassName(nextAlignedClassName),setAlignTimes(function(val){return val+1}),"align"===status&&(null==onAlign||onAlign(popupDomNode,matchAlign))}(0,useLayoutEffect.Z)(function(){"alignPre"===status&&setAlignTimes(0)},[status]),(0,useLayoutEffect.Z)(function(){"align"===status&&(alignTimes<3?forceAlign():goNextStatus(function(){var _prepareResolveRef$cu;null===(_prepareResolveRef$cu=prepareResolveRef.current)||void 0===_prepareResolveRef$cu||_prepareResolveRef$cu.call(prepareResolveRef)}))},[alignTimes]);var motion=(0,objectSpread2.Z)({},getMotion(props));function onShowPrepare(){return new Promise(function(resolve){prepareResolveRef.current=resolve})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(eventName){var originHandler=motion[eventName];motion[eventName]=function(element,event){return goNextStatus(),null==originHandler?void 0:originHandler(element,event)}}),react.useEffect(function(){motion.motionName||"motion"!==status||goNextStatus()},[motion.motionName,status]),react.useImperativeHandle(ref,function(){return{forceAlign:forceAlign,getElement:function(){return elementRef.current}}});var mergedStyle=(0,objectSpread2.Z)((0,objectSpread2.Z)({},stretchStyle),{},{zIndex:zIndex,opacity:"motion"!==status&&"stable"!==status&&visible?0:void 0,pointerEvents:visible||"stable"===status?void 0:"none"},style),alignDisabled=!0;null!=align&&align.points&&("align"===status||"stable"===status)&&(alignDisabled=!1);var childNode=children;return react.Children.count(children)>1&&(childNode=react.createElement("div",{className:"".concat(prefixCls,"-content")},children)),react.createElement(es.Z,(0,esm_extends.Z)({visible:visible,ref:elementRef,leavedClassName:"".concat(prefixCls,"-hidden")},motion,{onAppearPrepare:onShowPrepare,onEnterPrepare:onShowPrepare,removeOnLeave:destroyPopupOnHide,forceRender:forceRender}),function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style,mergedClassName=classnames_default()(prefixCls,className,alignedClassName,motionClassName);return react.createElement(RcAlign,{target:point||getRootDomNode,key:"popup",ref:alignRef,monitorWindowResize:!0,disabled:alignDisabled,align:align,onAlign:onInternalAlign},react.createElement("div",{ref:motionRef,className:mergedClassName,onMouseEnter:onMouseEnter,onMouseLeave:onMouseLeave,onMouseDownCapture:onMouseDown,onTouchStartCapture:onTouchStart,onClick:onClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),mergedStyle)},childNode))})});PopupInner.displayName="PopupInner";var MobilePopupInner=react.forwardRef(function(props,ref){var prefixCls=props.prefixCls,visible=props.visible,zIndex=props.zIndex,children=props.children,_props$mobile=props.mobile,popupClassName=(_props$mobile=void 0===_props$mobile?{}:_props$mobile).popupClassName,popupStyle=_props$mobile.popupStyle,_props$mobile$popupMo=_props$mobile.popupMotion,popupRender=_props$mobile.popupRender,onClick=props.onClick,elementRef=react.useRef();react.useImperativeHandle(ref,function(){return{forceAlign:function(){},getElement:function(){return elementRef.current}}});var mergedStyle=(0,objectSpread2.Z)({zIndex:zIndex},popupStyle),childNode=children;return react.Children.count(children)>1&&(childNode=react.createElement("div",{className:"".concat(prefixCls,"-content")},children)),popupRender&&(childNode=popupRender(childNode)),react.createElement(es.Z,(0,esm_extends.Z)({visible:visible,ref:elementRef,removeOnLeave:!0},void 0===_props$mobile$popupMo?{}:_props$mobile$popupMo),function(_ref,motionRef){var motionClassName=_ref.className,motionStyle=_ref.style,mergedClassName=classnames_default()(prefixCls,popupClassName,motionClassName);return react.createElement("div",{ref:motionRef,className:mergedClassName,onClick:onClick,style:(0,objectSpread2.Z)((0,objectSpread2.Z)({},motionStyle),mergedStyle)},childNode)})});MobilePopupInner.displayName="MobilePopupInner";var _excluded=["visible","mobile"],Popup=react.forwardRef(function(_ref,ref){var visible=_ref.visible,mobile=_ref.mobile,props=(0,objectWithoutProperties.Z)(_ref,_excluded),_useState=(0,react.useState)(visible),_useState2=(0,slicedToArray.Z)(_useState,2),innerVisible=_useState2[0],serInnerVisible=_useState2[1],_useState3=(0,react.useState)(!1),_useState4=(0,slicedToArray.Z)(_useState3,2),inMobile=_useState4[0],setInMobile=_useState4[1],cloneProps=(0,objectSpread2.Z)((0,objectSpread2.Z)({},props),{},{visible:innerVisible});(0,react.useEffect)(function(){serInnerVisible(visible),visible&&mobile&&setInMobile((0,isMobile.Z)())},[visible,mobile]);var popupNode=inMobile?react.createElement(MobilePopupInner,(0,esm_extends.Z)({},cloneProps,{mobile:mobile,ref:ref})):react.createElement(PopupInner,(0,esm_extends.Z)({},cloneProps,{ref:ref}));return react.createElement("div",null,react.createElement(Mask,cloneProps),popupNode)});Popup.displayName="Popup";var TriggerContext=react.createContext(null);function noop(){}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],rc_trigger_es=(Trigger=function(_React$Component){(0,inherits.Z)(Trigger,_React$Component);var _super=(0,createSuper.Z)(Trigger);function Trigger(props){var _this,_popupVisible;return(0,classCallCheck.Z)(this,Trigger),_this=_super.call(this,props),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"popupRef",react.createRef()),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"triggerRef",react.createRef()),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"portalContainer",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"attachId",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"clickOutsideHandler",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"touchOutsideHandler",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"contextMenuOutsideHandler1",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"contextMenuOutsideHandler2",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"mouseDownTimeout",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"focusTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"preClickTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"preTouchTime",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"delayTimer",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"hasPopupMouseDown",void 0),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseEnter",function(e){var mouseEnterDelay=_this.props.mouseEnterDelay;_this.fireEvents("onMouseEnter",e),_this.delaySetPopupVisible(!0,mouseEnterDelay,mouseEnterDelay?null:e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseMove",function(e){_this.fireEvents("onMouseMove",e),_this.setPoint(e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseLeave",function(e){_this.fireEvents("onMouseLeave",e),_this.delaySetPopupVisible(!1,_this.props.mouseLeaveDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseEnter",function(){_this.clearDelayTimer()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseLeave",function(e){var _this$popupRef$curren;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,contains.Z)(null===(_this$popupRef$curren=_this.popupRef.current)||void 0===_this$popupRef$curren?void 0:_this$popupRef$curren.getElement(),e.relatedTarget)||_this.delaySetPopupVisible(!1,_this.props.mouseLeaveDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onFocus",function(e){_this.fireEvents("onFocus",e),_this.clearDelayTimer(),_this.isFocusToShow()&&(_this.focusTime=Date.now(),_this.delaySetPopupVisible(!0,_this.props.focusDelay))}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onMouseDown",function(e){_this.fireEvents("onMouseDown",e),_this.preClickTime=Date.now()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onTouchStart",function(e){_this.fireEvents("onTouchStart",e),_this.preTouchTime=Date.now()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onBlur",function(e){_this.fireEvents("onBlur",e),_this.clearDelayTimer(),_this.isBlurToHide()&&_this.delaySetPopupVisible(!1,_this.props.blurDelay)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onContextMenu",function(e){e.preventDefault(),_this.fireEvents("onContextMenu",e),_this.setPopupVisible(!0,e)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onContextMenuClose",function(){_this.isContextMenuToShow()&&_this.close()}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onClick",function(event){if(_this.fireEvents("onClick",event),_this.focusTime){var preTime;if(_this.preClickTime&&_this.preTouchTime?preTime=Math.min(_this.preClickTime,_this.preTouchTime):_this.preClickTime?preTime=_this.preClickTime:_this.preTouchTime&&(preTime=_this.preTouchTime),20>Math.abs(preTime-_this.focusTime))return;_this.focusTime=0}_this.preClickTime=0,_this.preTouchTime=0,_this.isClickToShow()&&(_this.isClickToHide()||_this.isBlurToHide())&&event&&event.preventDefault&&event.preventDefault();var nextVisible=!_this.state.popupVisible;(_this.isClickToHide()&&!nextVisible||nextVisible&&_this.isClickToShow())&&_this.setPopupVisible(!_this.state.popupVisible,event)}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onPopupMouseDown",function(){if(_this.hasPopupMouseDown=!0,clearTimeout(_this.mouseDownTimeout),_this.mouseDownTimeout=window.setTimeout(function(){_this.hasPopupMouseDown=!1},0),_this.context){var _this$context;(_this$context=_this.context).onPopupMouseDown.apply(_this$context,arguments)}}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"onDocumentClick",function(event){if(!_this.props.mask||_this.props.maskClosable){var target=event.target,root=_this.getRootDomNode(),popupNode=_this.getPopupDomNode();(!(0,contains.Z)(root,target)||_this.isContextMenuOnly())&&!(0,contains.Z)(popupNode,target)&&!_this.hasPopupMouseDown&&_this.close()}}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"getRootDomNode",function(){var getTriggerDOMNode=_this.props.getTriggerDOMNode;if(getTriggerDOMNode)return getTriggerDOMNode(_this.triggerRef.current);try{var domNode=(0,findDOMNode.Z)(_this.triggerRef.current);if(domNode)return domNode}catch(err){}return react_dom.findDOMNode((0,assertThisInitialized.Z)(_this))}),(0,defineProperty.Z)((0,assertThisInitialized.Z)(_this),"getPopupClassNameFromAlign",function(align){var className=[],_this$props=_this.props,popupPlacement=_this$props.popupPlacement,builtinPlacements=_this$props.builtinPlacements,prefixCls=_this$props.prefixCls,alignPoint=_this$props.alignPoint,getPopupClassNameFromAlign=_this$props.getPopupClassNameFromAlign;return popupPlacement&&builtinPlacements&&className.push(function(builtinPlacements,prefixCls,align,isAlignPoint){for(var points=align.points,placements=Object.keys(builtinPlacements),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},ret=[];return react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children,function(child){(null!=child||option.keepEmpty)&&(Array.isArray(child)?ret=ret.concat(toArray(child)):(0,react_is__WEBPACK_IMPORTED_MODULE_1__.isFragment)(child)&&child.props?ret=ret.concat(toArray(child.props.children,option)):ret.push(child))}),ret}}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),react_is__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11805)},64019:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return addEventListenerWrap}});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935);function addEventListenerWrap(target,eventType,cb,option){var callback=react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates?function(e){react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates(cb,e)}:cb;return target.addEventListener&&target.addEventListener(eventType,callback,option),{remove:function(){target.removeEventListener&&target.removeEventListener(eventType,callback,option)}}}},98924:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function canUseDom(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}__webpack_require__.d(__webpack_exports__,{Z:function(){return canUseDom}})},94999:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function contains(root,n){if(!root)return!1;if(root.contains)return root.contains(n);for(var node=n;node;){if(node===root)return!0;node=node.parentNode}return!1}__webpack_require__.d(__webpack_exports__,{Z:function(){return contains}})},44958:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hq:function(){return updateCSS},jL:function(){return removeCSS}});var _canUseDom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98924),_contains__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94999),APPEND_ORDER="data-rc-order",containerCache=new Map;function getMark(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},mark=_ref.mark;return mark?mark.startsWith("data-")?mark:"data-".concat(mark):"rc-util-key"}function getContainer(option){return option.attachTo?option.attachTo:document.querySelector("head")||document.body}function findStyles(container){return Array.from((containerCache.get(container)||container).children).filter(function(node){return"STYLE"===node.tagName})}function injectCSS(css){var option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__.Z)())return null;var csp=option.csp,prepend=option.prepend,styleNode=document.createElement("style");styleNode.setAttribute(APPEND_ORDER,"queue"===prepend?"prependQueue":prepend?"prepend":"append"),(null==csp?void 0:csp.nonce)&&(styleNode.nonce=null==csp?void 0:csp.nonce),styleNode.innerHTML=css;var container=getContainer(option),firstChild=container.firstChild;if(prepend){if("queue"===prepend){var existStyle=findStyles(container).filter(function(node){return["prepend","prependQueue"].includes(node.getAttribute(APPEND_ORDER))});if(existStyle.length)return container.insertBefore(styleNode,existStyle[existStyle.length-1].nextSibling),styleNode}container.insertBefore(styleNode,firstChild)}else container.appendChild(styleNode);return styleNode}function findExistNode(key){var option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return findStyles(getContainer(option)).find(function(node){return node.getAttribute(getMark(option))===key})}function removeCSS(key){var _existNode$parentNode,option=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},existNode=findExistNode(key,option);null==existNode||null===(_existNode$parentNode=existNode.parentNode)||void 0===_existNode$parentNode||_existNode$parentNode.removeChild(existNode)}function updateCSS(css,key){var _option$csp,_option$csp2,_option$csp3,option=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(container,option){var cachedRealContainer=containerCache.get(container);if(!cachedRealContainer||!(0,_contains__WEBPACK_IMPORTED_MODULE_1__.Z)(document,cachedRealContainer)){var placeholderStyle=injectCSS("",option),parentNode=placeholderStyle.parentNode;containerCache.set(container,parentNode),parentNode.removeChild(placeholderStyle)}}(getContainer(option),option);var existNode=findExistNode(key,option);if(existNode)return(null===(_option$csp=option.csp)||void 0===_option$csp?void 0:_option$csp.nonce)&&existNode.nonce!==(null===(_option$csp2=option.csp)||void 0===_option$csp2?void 0:_option$csp2.nonce)&&(existNode.nonce=null===(_option$csp3=option.csp)||void 0===_option$csp3?void 0:_option$csp3.nonce),existNode.innerHTML!==css&&(existNode.innerHTML=css),existNode;var newNode=injectCSS(css,option);return newNode.setAttribute(getMark(option),key),newNode}},34203:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return findDOMNode}});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935);function findDOMNode(node){return node instanceof HTMLElement?node:react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode(node)}},88603:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{tS:function(){return getFocusNodeList}});var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(74902),_isVisible__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5110);function focusable(node){var includePositive=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,_isVisible__WEBPACK_IMPORTED_MODULE_0__.Z)(node)){var nodeName=node.nodeName.toLowerCase(),isFocusableElement=["input","select","textarea","button"].includes(nodeName)||node.isContentEditable||"a"===nodeName&&!!node.getAttribute("href"),tabIndexAttr=node.getAttribute("tabindex"),tabIndexNum=Number(tabIndexAttr),tabIndex=null;return tabIndexAttr&&!Number.isNaN(tabIndexNum)?tabIndex=tabIndexNum:isFocusableElement&&null===tabIndex&&(tabIndex=0),isFocusableElement&&node.disabled&&(tabIndex=null),null!==tabIndex&&(tabIndex>=0||includePositive&&tabIndex<0)}return!1}function getFocusNodeList(node){var includePositive=arguments.length>1&&void 0!==arguments[1]&&arguments[1],res=(0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.Z)(node.querySelectorAll("*")).filter(function(child){return focusable(child,includePositive)});return focusable(node,includePositive)&&res.unshift(node),res}},5110:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function(element){if(!element)return!1;if(element instanceof HTMLElement&&element.offsetParent)return!0;if(element instanceof SVGGraphicsElement&&element.getBBox){var _element$getBBox=element.getBBox(),width=_element$getBBox.width,height=_element$getBBox.height;if(width||height)return!0}if(element instanceof HTMLElement&&element.getBoundingClientRect){var _element$getBoundingC=element.getBoundingClientRect(),_width=_element$getBoundingC.width,_height=_element$getBoundingC.height;if(_width||_height)return!0}return!1}},79370:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return isStyleSupport}});var _canUseDom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98924),isStyleNameSupport=function(styleName){if((0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__.Z)()&&window.document.documentElement){var styleNameList=Array.isArray(styleName)?styleName:[styleName],documentElement=window.document.documentElement;return styleNameList.some(function(name){return name in documentElement.style})}return!1},isStyleValueSupport=function(styleName,value){if(!isStyleNameSupport(styleName))return!1;var ele=document.createElement("div"),origin=ele.style[styleName];return ele.style[styleName]=value,ele.style[styleName]!==origin};function isStyleSupport(styleName,styleValue){return Array.isArray(styleName)||void 0===styleValue?isStyleNameSupport(styleName):isStyleValueSupport(styleName,styleValue)}},15105:function(__unused_webpack_module,__webpack_exports__){"use strict";var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var keyCode=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||keyCode>=KeyCode.F1&&keyCode<=KeyCode.F12)return!1;switch(keyCode){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(keyCode){if(keyCode>=KeyCode.ZERO&&keyCode<=KeyCode.NINE||keyCode>=KeyCode.NUM_ZERO&&keyCode<=KeyCode.NUM_MULTIPLY||keyCode>=KeyCode.A&&keyCode<=KeyCode.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===keyCode)return!0;switch(keyCode){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};__webpack_exports__.Z=KeyCode},38135:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return render},v:function(){return unmount}});var react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache,createRoot,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(74165),_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(15861),_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(71002),_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1413),react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(73935),fullClone=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__.Z)({},react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_0__,2))),version=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode;try{Number((version||"").split(".")[0])>=18&&(createRoot=fullClone.createRoot)}catch(e){}function toggleWarning(skip){var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED&&"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__.Z)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)&&(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=skip)}var MARK="__rc_react_root__";function render(node,container){if(createRoot){var container1,root;container1=container,toggleWarning(!0),root=container1[MARK]||createRoot(container1),toggleWarning(!1),root.render(node),container1[MARK]=root;return}reactRender(node,container)}function _modernUnmount(){return(_modernUnmount=(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__.Z)((0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().mark(function _callee(container){return(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",Promise.resolve().then(function(){var _container$MARK;null===(_container$MARK=container[MARK])||void 0===_container$MARK||_container$MARK.unmount(),delete container[MARK]}));case 1:case"end":return _context.stop()}},_callee)}))).apply(this,arguments)}function unmount(_x2){return _unmount.apply(this,arguments)}function _unmount(){return(_unmount=(0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__.Z)((0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().mark(function _callee2(container){return(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__.Z)().wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(!(void 0!==createRoot)){_context2.next=2;break}return _context2.abrupt("return",function(_x){return _modernUnmount.apply(this,arguments)}(container));case 2:unmountComponentAtNode(container);case 3:case"end":return _context2.stop()}},_callee2)}))).apply(this,arguments)}},74204:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var cached;function getScrollBarSize(fresh){if("undefined"==typeof document)return 0;if(fresh||void 0===cached){var inner=document.createElement("div");inner.style.width="100%",inner.style.height="200px";var outer=document.createElement("div"),outerStyle=outer.style;outerStyle.position="absolute",outerStyle.top="0",outerStyle.left="0",outerStyle.pointerEvents="none",outerStyle.visibility="hidden",outerStyle.width="200px",outerStyle.height="150px",outerStyle.overflow="hidden",outer.appendChild(inner),document.body.appendChild(outer);var widthContained=inner.offsetWidth;outer.style.overflow="scroll";var widthScroll=inner.offsetWidth;widthContained===widthScroll&&(widthScroll=outer.clientWidth),document.body.removeChild(outer),cached=widthContained-widthScroll}return cached}function ensureSize(str){var match=str.match(/^(.*)px$/),value=Number(null==match?void 0:match[1]);return Number.isNaN(value)?getScrollBarSize():value}function getTargetScrollBarSize(target){if("undefined"==typeof document||!target||!(target instanceof Element))return{width:0,height:0};var _getComputedStyle=getComputedStyle(target,"::-webkit-scrollbar"),width=_getComputedStyle.width,height=_getComputedStyle.height;return{width:ensureSize(width),height:ensureSize(height)}}__webpack_require__.d(__webpack_exports__,{Z:function(){return getScrollBarSize},o:function(){return getTargetScrollBarSize}})},66680:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useEvent}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useEvent(callback){var fnRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return fnRef.current=callback,react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function(){for(var _fnRef$current,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null===(_fnRef$current=fnRef.current)||void 0===_fnRef$current?void 0:_fnRef$current.call.apply(_fnRef$current,[fnRef].concat(args))},[])}},8410:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return useLayoutUpdateEffect}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),useLayoutEffect=(0,__webpack_require__(98924).Z)()?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;__webpack_exports__.Z=useLayoutEffect;var useLayoutUpdateEffect=function(callback,deps){var firstMountRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!0);useLayoutEffect(function(){if(!firstMountRef.current)return callback()},deps),useLayoutEffect(function(){return firstMountRef.current=!1,function(){firstMountRef.current=!0}},[])}},56982:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useMemo}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useMemo(getValue,condition,shouldUpdate){var cacheRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef({});return(!("value"in cacheRef.current)||shouldUpdate(cacheRef.current.condition,condition))&&(cacheRef.current.value=getValue(),cacheRef.current.condition=condition),cacheRef.current.value}},21770:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useMergedState}});var Source,Source1,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_useEvent__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(66680),_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8410),_useState__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(30470);function hasValue(value){return void 0!==value}function useMergedState(defaultStateValue,option){var _ref=option||{},defaultValue=_ref.defaultValue,value=_ref.value,onChange=_ref.onChange,postState=_ref.postState,_useState=(0,_useState__WEBPACK_IMPORTED_MODULE_3__.Z)(function(){var source,finalValue=void 0;return hasValue(value)?(finalValue=value,source=Source1.PROP):hasValue(defaultValue)?(finalValue="function"==typeof defaultValue?defaultValue():defaultValue,source=Source1.PROP):(finalValue="function"==typeof defaultStateValue?defaultStateValue():defaultStateValue,source=Source1.INNER),[finalValue,source,finalValue]}),_useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(_useState,2),mergedValue=_useState2[0],setMergedValue=_useState2[1],chosenValue=hasValue(value)?value:mergedValue[0],postMergedValue=postState?postState(chosenValue):chosenValue;(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__.o)(function(){setMergedValue(function(_ref2){var prevValue=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(_ref2,1)[0];return[value,Source1.PROP,prevValue]})},[value]);var changeEventPrevRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),triggerChange=(0,_useEvent__WEBPACK_IMPORTED_MODULE_1__.Z)(function(updater,ignoreDestroy){setMergedValue(function(prev){var _prev=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(prev,3),prevValue=_prev[0],prevSource=_prev[1],prevPrevValue=_prev[2],nextValue="function"==typeof updater?updater(prevValue):updater;if(nextValue===prevValue)return prev;var overridePrevValue=prevSource===Source1.INNER&&changeEventPrevRef.current!==prevPrevValue?prevPrevValue:prevValue;return[nextValue,Source1.INNER,overridePrevValue]},ignoreDestroy)}),onChangeFn=(0,_useEvent__WEBPACK_IMPORTED_MODULE_1__.Z)(onChange);return(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__.Z)(function(){var _mergedValue=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__.Z)(mergedValue,3),current=_mergedValue[0],source=_mergedValue[1],prev=_mergedValue[2];current!==prev&&source===Source1.INNER&&(onChangeFn(current,prev),changeEventPrevRef.current=prev)},[mergedValue]),[postMergedValue,triggerChange]}(Source=Source1||(Source1={}))[Source.INNER=0]="INNER",Source[Source.PROP=1]="PROP"},30470:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useSafeState}});var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97685),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294);function useSafeState(defaultValue){var destroyRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),_React$useState=react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultValue),_React$useState2=(0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__.Z)(_React$useState,2),value=_React$useState2[0],setValue=_React$useState2[1];return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){return destroyRef.current=!1,function(){destroyRef.current=!0}},[]),[value,function(updater,ignoreDestroy){ignoreDestroy&&destroyRef.current||setValue(updater)}]}},31131:function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var agent=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==agent?void 0:agent.substr(0,4))}},98423:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return omit}});var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1413);function omit(obj,fields){var clone=(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.Z)({},obj);return Array.isArray(fields)&&fields.forEach(function(key){delete clone[key]}),clone}},64217:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return pickAttrs}});var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1413),propList="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function match(key,prefix){return 0===key.indexOf(prefix)}function pickAttrs(props){var mergedConfig,ariaOnly=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mergedConfig=!1===ariaOnly?{aria:!0,data:!0,attr:!0}:!0===ariaOnly?{aria:!0}:(0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.Z)({},ariaOnly);var attrs={};return Object.keys(props).forEach(function(key){(mergedConfig.aria&&("role"===key||match(key,"aria-"))||mergedConfig.data&&match(key,"data-")||mergedConfig.attr&&propList.includes(key))&&(attrs[key]=props[key])}),attrs}},75164:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return wrapperRaf}});var raf=function(callback){return+setTimeout(callback,16)},caf=function(num){return clearTimeout(num)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(raf=function(callback){return window.requestAnimationFrame(callback)},caf=function(handle){return window.cancelAnimationFrame(handle)});var rafUUID=0,rafIds=new Map;function wrapperRaf(callback){var times=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,id=rafUUID+=1;return!function callRef(leftTimes){if(0===leftTimes)rafIds.delete(id),callback();else{var realId=raf(function(){callRef(leftTimes-1)});rafIds.set(id,realId)}}(times),id}wrapperRaf.cancel=function(id){var realId=rafIds.get(id);return rafIds.delete(realId),caf(realId)}},42550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Yr:function(){return supportRef},mH:function(){return fillRef},sQ:function(){return composeRef},x1:function(){return useComposeRef}});var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(71002),react_is__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11805),_hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(56982);function fillRef(ref,node){"function"==typeof ref?ref(node):"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__.Z)(ref)&&ref&&"current"in ref&&(ref.current=node)}function composeRef(){for(var _len=arguments.length,refs=Array(_len),_key=0;_key<_len;_key++)refs[_key]=arguments[_key];var refList=refs.filter(function(ref){return ref});return refList.length<=1?refList[0]:function(node){refs.forEach(function(ref){fillRef(ref,node)})}}function useComposeRef(){for(var _len2=arguments.length,refs=Array(_len2),_key2=0;_key2<_len2;_key2++)refs[_key2]=arguments[_key2];return(0,_hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__.Z)(function(){return composeRef.apply(void 0,refs)},refs,function(prev,next){return prev.length===next.length&&prev.every(function(ref,i){return ref===next[i]})})}function supportRef(nodeOrComponent){var _type$prototype,_nodeOrComponent$prot,type=(0,react_is__WEBPACK_IMPORTED_MODULE_0__.isMemo)(nodeOrComponent)?nodeOrComponent.type.type:nodeOrComponent.type;return("function"!=typeof type||null!==(_type$prototype=type.prototype)&&void 0!==_type$prototype&&!!_type$prototype.render)&&("function"!=typeof nodeOrComponent||null!==(_nodeOrComponent$prot=nodeOrComponent.prototype)&&void 0!==_nodeOrComponent$prot&&!!_nodeOrComponent$prot.render)}},80334:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Kp:function(){return warning}});var warned={};function warning(valid,message){}__webpack_exports__.ZP=function(valid,message){valid||warned[message]||(warned[message]=!0)}},51162:function(__unused_webpack_module,exports){"use strict";/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. diff --git a/static/web/_next/static/chunks/webpack-d9f1581428206e85.js b/static/web/_next/static/chunks/webpack-9dc50f38fd018b1f.js similarity index 99% rename from static/web/_next/static/chunks/webpack-d9f1581428206e85.js rename to static/web/_next/static/chunks/webpack-9dc50f38fd018b1f.js index 06b4bdbb4..cfa324dbb 100644 --- a/static/web/_next/static/chunks/webpack-d9f1581428206e85.js +++ b/static/web/_next/static/chunks/webpack-9dc50f38fd018b1f.js @@ -1 +1 @@ -!function(){"use strict";var deferred,leafPrototypes,getProto,inProgress,dataWebpackPrefix,policy,createStylesheet,findStylesheet,installedCssChunks,installedChunks,webpackJsonpCallback,chunkLoadingGlobal,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}},threw=!0;try{__webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),threw=!1}finally{threw&&delete __webpack_module_cache__[moduleId]}return module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=function(result,chunkIds,fn,priority){if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i=priority&&Object.keys(__webpack_require__.O).every(function(key){return __webpack_require__.O[key](chunkIds[j])})?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i=priority&&Object.keys(__webpack_require__.O).every(function(key){return __webpack_require__.O[key](chunkIds[j])})?chunkIds.splice(j--,1):(fulfilled=!1,priorityOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index a8d12847d..27444f999 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index fe257013b..06f29c065 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index 1f7e6673b..45b0c3aee 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 51adc79ad..e6111eb14 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index a7dd0c255..59e1196d2 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index 844e76262..3d007f8a9 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Custom

Build your own notifications by using custom webhooks.

\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index 47ec1a377..3fc0b690d 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index f1b66eed4..596341e11 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index a73c1e803..e9642a412 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index d80a80105..dd14ed1ce 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index e70482b52..87ccb4893 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/config/appearance/index.html b/static/web/admin/config/appearance/index.html index d7b07b3f3..f4a57eb38 100644 --- a/static/web/admin/config/appearance/index.html +++ b/static/web/admin/config/appearance/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
Loading...
\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 13841fe99..7a1c0084f 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index 9358301a1..0a6e26263 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 92469b5fb..25a6545ae 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index f32b77e67..5198ce784 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index def0ba4f8..c39936676 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 530522e07..9331b8b5d 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index 2d341a568..e7b76687e 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 90ec5f3ce..8c760af63 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index ef3dd3719..af0af5445 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index 0c79bc739..90aef0191 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index bd355b7bf..a9e11c2ed 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index 460c36b8d..2a8293fc5 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index 301db30cc..e34a82ae7 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index 52d4cd6bf..b1ead17f5 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,9 +1,9 @@ {{.Name}}
{{.Name}}
Logo
Preview
\ No newline at end of file +
Logo
Preview
\ No newline at end of file