@infinilabs/ui-web-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/webCli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- "use strict";var vC=Object.defineProperty;var yC=(e,t,n)=>t in e?vC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ep=(e,t,n)=>yC(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),Cr=require("@ant-design/icons"),bC=require("re-resizable"),iu=require("react-dnd"),_C=require("react-dnd-html5-backend"),de=require("classnames"),_o=require("react-dom"),pv=require("resize-observer-polyfill"),Ze=require("brace"),tn=require("react-intl"),be=require("lodash"),Rt=require("jquery"),wC=require("query-string");require("minimatch");require("@hapi/boom");const hl=require("immer"),CC=require("rxjs"),xC=require("uuid");function Vf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Vf(I),SC=Vf(_o),EC=Vf(xC);function RC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hv={exports:{}},Vt=hv.exports={},rr,or;function au(){throw new Error("setTimeout has not been defined")}function su(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?rr=setTimeout:rr=au}catch{rr=au}try{typeof clearTimeout=="function"?or=clearTimeout:or=su}catch{or=su}})();function mv(e){if(rr===setTimeout)return setTimeout(e,0);if((rr===au||!rr)&&setTimeout)return rr=setTimeout,setTimeout(e,0);try{return rr(e,0)}catch{try{return rr.call(null,e,0)}catch{return rr.call(this,e,0)}}}function OC(e){if(or===clearTimeout)return clearTimeout(e);if((or===su||!or)&&clearTimeout)return or=clearTimeout,clearTimeout(e);try{return or(e)}catch{try{return or.call(null,e)}catch{return or.call(this,e)}}}var _r=[],ai=!1,co,_s=-1;function $C(){!ai||!co||(ai=!1,co.length?_r=co.concat(_r):_s=-1,_r.length&&gv())}function gv(){if(!ai){var e=mv($C);ai=!0;for(var t=_r.length;t;){for(co=_r,_r=[];++_s<t;)co&&co[_s].run();_s=-1,t=_r.length}co=null,ai=!1,OC(e)}}Vt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];_r.push(new vv(e,t)),_r.length===1&&!ai&&mv(gv)};function vv(e,t){this.fun=e,this.array=t}vv.prototype.run=function(){this.fun.apply(null,this.array)};Vt.title="browser";Vt.browser=!0;Vt.env={};Vt.argv=[];Vt.version="";Vt.versions={};function Tr(){}Vt.on=Tr;Vt.addListener=Tr;Vt.once=Tr;Vt.off=Tr;Vt.removeListener=Tr;Vt.removeAllListeners=Tr;Vt.emit=Tr;Vt.prependListener=Tr;Vt.prependOnceListener=Tr;Vt.listeners=function(e){return[]};Vt.binding=function(e){throw new Error("process.binding is not supported")};Vt.cwd=function(){return"/"};Vt.chdir=function(e){throw new Error("process.chdir is not supported")};Vt.umask=function(){return 0};var TC=hv.exports;const ne=RC(TC);var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var lu={exports:{}},Ai={};/**
2
+ "use strict";var vC=Object.defineProperty;var yC=(e,t,n)=>t in e?vC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ep=(e,t,n)=>yC(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),Cr=require("@ant-design/icons"),bC=require("re-resizable"),iu=require("react-dnd"),_C=require("react-dnd-html5-backend"),de=require("classnames"),_o=require("react-dom"),pv=require("resize-observer-polyfill"),Qe=require("brace"),tn=require("react-intl"),be=require("lodash"),Rt=require("jquery"),wC=require("query-string");require("minimatch");require("@hapi/boom");const hl=require("immer"),CC=require("rxjs"),xC=require("uuid");function Vf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Vf(I),SC=Vf(_o),EC=Vf(xC);function RC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hv={exports:{}},Vt=hv.exports={},rr,or;function au(){throw new Error("setTimeout has not been defined")}function su(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?rr=setTimeout:rr=au}catch{rr=au}try{typeof clearTimeout=="function"?or=clearTimeout:or=su}catch{or=su}})();function mv(e){if(rr===setTimeout)return setTimeout(e,0);if((rr===au||!rr)&&setTimeout)return rr=setTimeout,setTimeout(e,0);try{return rr(e,0)}catch{try{return rr.call(null,e,0)}catch{return rr.call(this,e,0)}}}function OC(e){if(or===clearTimeout)return clearTimeout(e);if((or===su||!or)&&clearTimeout)return or=clearTimeout,clearTimeout(e);try{return or(e)}catch{try{return or.call(null,e)}catch{return or.call(this,e)}}}var _r=[],ai=!1,co,_s=-1;function $C(){!ai||!co||(ai=!1,co.length?_r=co.concat(_r):_s=-1,_r.length&&gv())}function gv(){if(!ai){var e=mv($C);ai=!0;for(var t=_r.length;t;){for(co=_r,_r=[];++_s<t;)co&&co[_s].run();_s=-1,t=_r.length}co=null,ai=!1,OC(e)}}Vt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];_r.push(new vv(e,t)),_r.length===1&&!ai&&mv(gv)};function vv(e,t){this.fun=e,this.array=t}vv.prototype.run=function(){this.fun.apply(null,this.array)};Vt.title="browser";Vt.browser=!0;Vt.env={};Vt.argv=[];Vt.version="";Vt.versions={};function Tr(){}Vt.on=Tr;Vt.addListener=Tr;Vt.once=Tr;Vt.off=Tr;Vt.removeListener=Tr;Vt.removeAllListeners=Tr;Vt.emit=Tr;Vt.prependListener=Tr;Vt.prependOnceListener=Tr;Vt.listeners=function(e){return[]};Vt.binding=function(e){throw new Error("process.binding is not supported")};Vt.cwd=function(){return"/"};Vt.chdir=function(e){throw new Error("process.chdir is not supported")};Vt.umask=function(){return 0};var TC=hv.exports;const ne=RC(TC);var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var lu={exports:{}},Ai={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -11,16 +11,16 @@
11
11
  `+q+X}}var re=!1,se;{var k=typeof WeakMap=="function"?WeakMap:Map;se=new k}function F(X,ue){if(!X||re)return"";{var ye=se.get(X);if(ye!==void 0)return ye}var Re;re=!0;var Le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var je;je=B.current,B.current=null,H();try{if(ue){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(At){Re=At}Reflect.construct(X,[],De)}else{try{De.call()}catch(At){Re=At}X.call(De.prototype)}}else{try{throw Error()}catch(At){Re=At}X()}}catch(At){if(At&&Re&&typeof At.stack=="string"){for(var qe=At.stack.split(`
12
12
  `),_t=Re.stack.split(`
13
13
  `),dt=qe.length-1,Ke=_t.length-1;dt>=1&&Ke>=0&&qe[dt]!==_t[Ke];)Ke--;for(;dt>=1&&Ke>=0;dt--,Ke--)if(qe[dt]!==_t[Ke]){if(dt!==1||Ke!==1)do if(dt--,Ke--,Ke<0||qe[dt]!==_t[Ke]){var Mt=`
14
- `+qe[dt].replace(" at new "," at ");return X.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",X.displayName)),typeof X=="function"&&se.set(X,Mt),Mt}while(dt>=1&&Ke>=0);break}}}finally{re=!1,B.current=je,J(),Error.prepareStackTrace=Le}var hn=X?X.displayName||X.name:"",Gt=hn?K(hn):"";return typeof X=="function"&&se.set(X,Gt),Gt}function ae(X,ue,ye){return F(X,!1)}function Z(X){var ue=X.prototype;return!!(ue&&ue.isReactComponent)}function me(X,ue,ye){if(X==null)return"";if(typeof X=="function")return F(X,Z(X));if(typeof X=="string")return K(X);switch(X){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case l:return ae(X.render);case p:return me(X.type,ue,ye);case d:{var Re=X,Le=Re._payload,je=Re._init;try{return me(je(Le),ue,ye)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,Ce={},Me=v.ReactDebugCurrentFrame;function ce(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Me.setExtraStackFrame(ye)}else Me.setExtraStackFrame(null)}function Ie(X,ue,ye,Re,Le){{var je=Function.call.bind(pe);for(var De in X)if(je(X,De)){var qe=void 0;try{if(typeof X[De]!="function"){var _t=Error((Re||"React class")+": "+ye+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _t.name="Invariant Violation",_t}qe=X[De](ue,De,Re,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(dt){qe=dt}qe&&!(qe instanceof Error)&&(ce(Le),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Re||"React class",ye,De,typeof qe),ce(null)),qe instanceof Error&&!(qe.message in Ce)&&(Ce[qe.message]=!0,ce(Le),f("Failed %s type: %s",ye,qe.message),ce(null))}}}var Pe=Array.isArray;function Oe(X){return Pe(X)}function ve(X){{var ue=typeof Symbol=="function"&&Symbol.toStringTag,ye=ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return ye}}function we(X){try{return Se(X),!1}catch{return!0}}function Se(X){return""+X}function Ee(X){if(we(X))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(X)),Se(X)}var Ve=v.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Xe,ft,mt;mt={};function ct(X){if(pe.call(X,"ref")){var ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(ue&&ue.isReactWarning)return!1}return X.ref!==void 0}function ze(X){if(pe.call(X,"key")){var ue=Object.getOwnPropertyDescriptor(X,"key").get;if(ue&&ue.isReactWarning)return!1}return X.key!==void 0}function Ne(X,ue){if(typeof X.ref=="string"&&Ve.current&&ue&&Ve.current.stateNode!==ue){var ye=L(Ve.current.type);mt[ye]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Ve.current.type),X.ref),mt[ye]=!0)}}function st(X,ue){{var ye=function(){Xe||(Xe=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"key",{get:ye,configurable:!0})}}function rt(X,ue){{var ye=function(){ft||(ft=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"ref",{get:ye,configurable:!0})}}var Ye=function(X,ue,ye,Re,Le,je,De){var qe={$$typeof:t,type:X,key:ue,ref:ye,props:De,_owner:je};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Ot(X,ue,ye,Re,Le){{var je,De={},qe=null,_t=null;ye!==void 0&&(Ee(ye),qe=""+ye),ze(ue)&&(Ee(ue.key),qe=""+ue.key),ct(ue)&&(_t=ue.ref,Ne(ue,Le));for(je in ue)pe.call(ue,je)&&!He.hasOwnProperty(je)&&(De[je]=ue[je]);if(X&&X.defaultProps){var dt=X.defaultProps;for(je in dt)De[je]===void 0&&(De[je]=dt[je])}if(qe||_t){var Ke=typeof X=="function"?X.displayName||X.name||"Unknown":X;qe&&st(De,Ke),_t&&rt(De,Ke)}return Ye(X,qe,_t,Le,Re,Ve.current,De)}}var Dt=v.ReactCurrentOwner,Ut=v.ReactDebugCurrentFrame;function gt(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Ut.setExtraStackFrame(ye)}else Ut.setExtraStackFrame(null)}var $t;$t=!1;function Qe(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function lt(){{if(Dt.current){var X=L(Dt.current.type);if(X)return`
14
+ `+qe[dt].replace(" at new "," at ");return X.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",X.displayName)),typeof X=="function"&&se.set(X,Mt),Mt}while(dt>=1&&Ke>=0);break}}}finally{re=!1,B.current=je,J(),Error.prepareStackTrace=Le}var hn=X?X.displayName||X.name:"",Gt=hn?K(hn):"";return typeof X=="function"&&se.set(X,Gt),Gt}function ae(X,ue,ye){return F(X,!1)}function Z(X){var ue=X.prototype;return!!(ue&&ue.isReactComponent)}function me(X,ue,ye){if(X==null)return"";if(typeof X=="function")return F(X,Z(X));if(typeof X=="string")return K(X);switch(X){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case l:return ae(X.render);case p:return me(X.type,ue,ye);case d:{var Re=X,Le=Re._payload,je=Re._init;try{return me(je(Le),ue,ye)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,Ce={},Me=v.ReactDebugCurrentFrame;function ce(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Me.setExtraStackFrame(ye)}else Me.setExtraStackFrame(null)}function Ie(X,ue,ye,Re,Le){{var je=Function.call.bind(pe);for(var De in X)if(je(X,De)){var qe=void 0;try{if(typeof X[De]!="function"){var _t=Error((Re||"React class")+": "+ye+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _t.name="Invariant Violation",_t}qe=X[De](ue,De,Re,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(dt){qe=dt}qe&&!(qe instanceof Error)&&(ce(Le),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Re||"React class",ye,De,typeof qe),ce(null)),qe instanceof Error&&!(qe.message in Ce)&&(Ce[qe.message]=!0,ce(Le),f("Failed %s type: %s",ye,qe.message),ce(null))}}}var Pe=Array.isArray;function Oe(X){return Pe(X)}function ve(X){{var ue=typeof Symbol=="function"&&Symbol.toStringTag,ye=ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return ye}}function we(X){try{return Se(X),!1}catch{return!0}}function Se(X){return""+X}function Ee(X){if(we(X))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(X)),Se(X)}var Ve=v.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Xe,ft,mt;mt={};function ct(X){if(pe.call(X,"ref")){var ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(ue&&ue.isReactWarning)return!1}return X.ref!==void 0}function ze(X){if(pe.call(X,"key")){var ue=Object.getOwnPropertyDescriptor(X,"key").get;if(ue&&ue.isReactWarning)return!1}return X.key!==void 0}function Ne(X,ue){if(typeof X.ref=="string"&&Ve.current&&ue&&Ve.current.stateNode!==ue){var ye=L(Ve.current.type);mt[ye]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Ve.current.type),X.ref),mt[ye]=!0)}}function st(X,ue){{var ye=function(){Xe||(Xe=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"key",{get:ye,configurable:!0})}}function rt(X,ue){{var ye=function(){ft||(ft=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"ref",{get:ye,configurable:!0})}}var Ye=function(X,ue,ye,Re,Le,je,De){var qe={$$typeof:t,type:X,key:ue,ref:ye,props:De,_owner:je};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Ot(X,ue,ye,Re,Le){{var je,De={},qe=null,_t=null;ye!==void 0&&(Ee(ye),qe=""+ye),ze(ue)&&(Ee(ue.key),qe=""+ue.key),ct(ue)&&(_t=ue.ref,Ne(ue,Le));for(je in ue)pe.call(ue,je)&&!He.hasOwnProperty(je)&&(De[je]=ue[je]);if(X&&X.defaultProps){var dt=X.defaultProps;for(je in dt)De[je]===void 0&&(De[je]=dt[je])}if(qe||_t){var Ke=typeof X=="function"?X.displayName||X.name||"Unknown":X;qe&&st(De,Ke),_t&&rt(De,Ke)}return Ye(X,qe,_t,Le,Re,Ve.current,De)}}var Dt=v.ReactCurrentOwner,Ut=v.ReactDebugCurrentFrame;function gt(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Ut.setExtraStackFrame(ye)}else Ut.setExtraStackFrame(null)}var $t;$t=!1;function Je(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function lt(){{if(Dt.current){var X=L(Dt.current.type);if(X)return`
15
15
 
16
16
  Check the render method of \``+X+"`."}return""}}function Tt(X){return""}var Ge={};function ke(X){{var ue=lt();if(!ue){var ye=typeof X=="string"?X:X.displayName||X.name;ye&&(ue=`
17
17
 
18
- Check the top-level render call using <`+ye+">.")}return ue}}function N(X,ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var ye=ke(ue);if(Ge[ye])return;Ge[ye]=!0;var Re="";X&&X._owner&&X._owner!==Dt.current&&(Re=" It was passed a child from "+L(X._owner.type)+"."),gt(X),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Re),gt(null)}}function R(X,ue){{if(typeof X!="object")return;if(Oe(X))for(var ye=0;ye<X.length;ye++){var Re=X[ye];Qe(Re)&&N(Re,ue)}else if(Qe(X))X._store&&(X._store.validated=!0);else if(X){var Le=g(X);if(typeof Le=="function"&&Le!==X.entries)for(var je=Le.call(X),De;!(De=je.next()).done;)Qe(De.value)&&N(De.value,ue)}}}function $(X){{var ue=X.type;if(ue==null||typeof ue=="string")return;var ye;if(typeof ue=="function")ye=ue.propTypes;else if(typeof ue=="object"&&(ue.$$typeof===l||ue.$$typeof===p))ye=ue.propTypes;else return;if(ye){var Re=L(ue);Ie(ye,X.props,"prop",Re,X)}else if(ue.PropTypes!==void 0&&!$t){$t=!0;var Le=L(ue);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof ue.getDefaultProps=="function"&&!ue.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(X){{for(var ue=Object.keys(X.props),ye=0;ye<ue.length;ye++){var Re=ue[ye];if(Re!=="children"&&Re!=="key"){gt(X),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),gt(null);break}}X.ref!==null&&(gt(X),f("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var te={};function le(X,ue,ye,Re,Le,je){{var De=P(X);if(!De){var qe="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _t=Tt();_t?qe+=_t:qe+=lt();var dt;X===null?dt="null":Oe(X)?dt="array":X!==void 0&&X.$$typeof===t?(dt="<"+(L(X.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):dt=typeof X,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dt,qe)}var Ke=Ot(X,ue,ye,Le,je);if(Ke==null)return Ke;if(De){var Mt=ue.children;if(Mt!==void 0)if(Re)if(Oe(Mt)){for(var hn=0;hn<Mt.length;hn++)R(Mt[hn],X);Object.freeze&&Object.freeze(Mt)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(Mt,X)}if(pe.call(ue,"key")){var Gt=L(X),At=Object.keys(ue).filter(function(Rn){return Rn!=="key"}),fr=At.length>0?"{key: someKey, "+At.join(": ..., ")+": ...}":"{key: someKey}";if(!te[Gt+fr]){var dr=At.length>0?"{"+At.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+ye+">.")}return ue}}function N(X,ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var ye=ke(ue);if(Ge[ye])return;Ge[ye]=!0;var Re="";X&&X._owner&&X._owner!==Dt.current&&(Re=" It was passed a child from "+L(X._owner.type)+"."),gt(X),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Re),gt(null)}}function R(X,ue){{if(typeof X!="object")return;if(Oe(X))for(var ye=0;ye<X.length;ye++){var Re=X[ye];Je(Re)&&N(Re,ue)}else if(Je(X))X._store&&(X._store.validated=!0);else if(X){var Le=g(X);if(typeof Le=="function"&&Le!==X.entries)for(var je=Le.call(X),De;!(De=je.next()).done;)Je(De.value)&&N(De.value,ue)}}}function $(X){{var ue=X.type;if(ue==null||typeof ue=="string")return;var ye;if(typeof ue=="function")ye=ue.propTypes;else if(typeof ue=="object"&&(ue.$$typeof===l||ue.$$typeof===p))ye=ue.propTypes;else return;if(ye){var Re=L(ue);Ie(ye,X.props,"prop",Re,X)}else if(ue.PropTypes!==void 0&&!$t){$t=!0;var Le=L(ue);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof ue.getDefaultProps=="function"&&!ue.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(X){{for(var ue=Object.keys(X.props),ye=0;ye<ue.length;ye++){var Re=ue[ye];if(Re!=="children"&&Re!=="key"){gt(X),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),gt(null);break}}X.ref!==null&&(gt(X),f("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var te={};function le(X,ue,ye,Re,Le,je){{var De=P(X);if(!De){var qe="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _t=Tt();_t?qe+=_t:qe+=lt();var dt;X===null?dt="null":Oe(X)?dt="array":X!==void 0&&X.$$typeof===t?(dt="<"+(L(X.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):dt=typeof X,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dt,qe)}var Ke=Ot(X,ue,ye,Le,je);if(Ke==null)return Ke;if(De){var Mt=ue.children;if(Mt!==void 0)if(Re)if(Oe(Mt)){for(var hn=0;hn<Mt.length;hn++)R(Mt[hn],X);Object.freeze&&Object.freeze(Mt)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(Mt,X)}if(pe.call(ue,"key")){var Gt=L(X),At=Object.keys(ue).filter(function(Rn){return Rn!=="key"}),fr=At.length>0?"{key: someKey, "+At.join(": ..., ")+": ...}":"{key: someKey}";if(!te[Gt+fr]){var dr=At.length>0?"{"+At.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,fr,Gt,dr,Gt),te[Gt+fr]=!0}}return X===r?V(Ke):$(Ke),Ke}}function ge(X,ue,ye){return le(X,ue,ye,!0)}function Fe(X,ue,ye){return le(X,ue,ye,!1)}var Je=Fe,et=ge;Mi.Fragment=r,Mi.jsx=Je,Mi.jsxs=et}()),Mi}ne.env.NODE_ENV==="production"?lu.exports=PC():lu.exports=NC();var fe=lu.exports;function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}var cu={exports:{}},vt={};/**
23
+ <%s key={someKey} {...props} />`,fr,Gt,dr,Gt),te[Gt+fr]=!0}}return X===r?V(Ke):$(Ke),Ke}}function ge(X,ue,ye){return le(X,ue,ye,!0)}function Fe(X,ue,ye){return le(X,ue,ye,!1)}var Ze=Fe,et=ge;Mi.Fragment=r,Mi.jsx=Ze,Mi.jsxs=et}()),Mi}ne.env.NODE_ENV==="production"?lu.exports=PC():lu.exports=NC();var fe=lu.exports;function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}var cu={exports:{}},vt={};/**
24
24
  * @license React
25
25
  * react-is.production.min.js
26
26
  *
@@ -71,7 +71,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
71
71
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
72
72
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
73
73
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
74
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ah=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gy={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},rE={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},oE={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},vy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ah(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=my(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,p=ah(c,["theme"]);let d=p;u&&(d=vy(Object.assign(Object.assign({},a),p),{override:p},u)),a[l]=d}),a};function Jn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=I.useContext(fy),i=`${tE}-${t||""}`,a=n||uy,[s,l,c]=Rx(a,[da,e],{salt:i,override:r,getComputedToken:vy,formatToken:my,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:gy,ignore:rE,preserve:oE}});return[a,c,t?l:"",s,o]}const iE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},aE=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),yy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),lE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},cE=e=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ea=e=>({"&:focus-visible":Object.assign({},cE(e))}),by=(e,t)=>{const[n,r]=Jn();return Cu({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},aE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:un,genComponentStyleHook:uE,genSubStyleComponent:wi}=eE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=I.useContext(Ue);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Jn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=I.useContext(Ue);return by(t,e),e??{}},getResetStyles:e=>[{"&":sE(e)}],getCommonStyle:lE,getCompUnitless:()=>gy});function Cl(e,t){return ha.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const fE=Object.assign({},h),{useId:sh}=fE,dE=()=>"",pE=typeof sh>"u"?dE:sh;function hE(e,t,n){var r,o;const i=Pt("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Fu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Fu.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=pE();if(ne.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);ne.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ml(()=>{var c,u;if(!e)return t;const p=Object.assign({},s.components);Object.keys(e.components||{}).forEach(_=>{p[_]=Object.assign(Object.assign({},p[_]),e.components[_])});const d=`css-var-${l.replace(/:/g,"")}`,y=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:p,cssVar:y})},[a,s],(c,u)=>c.some((p,d)=>{const y=u[d];return!la(p,y,!0)}))}var mE=["children"],_y=h.createContext({});function gE(e){var t=e.children,n=nt(e,mE);return h.createElement(_y.Provider,{value:n},t)}var vE=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function yE(e){var t=h.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],o=h.useRef(e),i=Zt(function(){return o.current}),a=Zt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Lr="none",Za="appear",es="enter",ts="leave",lh="none",Vn="prepare",ri="start",oi="active",id="end",wy="prepared";function ch(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function bE(e,t){var n={animationend:ch("Animation","AnimationEnd"),transitionend:ch("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var _E=bE(dn(),typeof window<"u"?window:{}),Cy={};if(dn()){var wE=document.createElement("div");Cy=wE.style}var ns={};function xy(e){if(ns[e])return ns[e];var t=_E[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Cy)return ns[e]=t[i],ns[e]}return""}var Sy=xy("animationend"),Ey=xy("transitionend"),Ry=!!(Sy&&Ey),uh=Sy||"animationend",fh=Ey||"transitionend";function dh(e,t){if(!e)return null;if(Be(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const CE=function(e){var t=I.useRef();function n(o){o&&(o.removeEventListener(fh,e),o.removeEventListener(uh,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(fh,e),o.addEventListener(uh,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Oy=dn()?I.useLayoutEffect:I.useEffect;const xE=function(){var e=h.useRef(null);function t(){Lt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Lt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var SE=[Vn,ri,oi,id],EE=[Vn,wy],$y=!1,RE=!0;function Ty(e){return e===oi||e===id}const OE=function(e,t,n){var r=xo(lh),o=he(r,2),i=o[0],a=o[1],s=xE(),l=he(s,2),c=l[0],u=l[1];function p(){a(Vn,!0)}var d=t?EE:SE;return Oy(function(){if(i!==lh&&i!==id){var y=d.indexOf(i),_=d[y+1],x=n(i);x===$y?a(_,!0):_&&c(function(g){function v(){g.isCanceled()||a(_,!0)}x===!0?v():Promise.resolve(x).then(v)})}},[e,i]),h.useEffect(function(){return function(){u()}},[]),[p,i]};function $E(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,p=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,_=r.onLeavePrepare,x=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,f=r.onAppearActive,m=r.onEnterActive,b=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,w=r.onVisibleChanged,O=xo(),P=he(O,2),A=P[0],T=P[1],L=yE(Lr),D=he(L,2),Q=D[0],G=D[1],z=xo(null),Y=he(z,2),ee=Y[0],W=Y[1],U=Q(),j=I.useRef(!1),M=I.useRef(null);function H(){return n()}var J=I.useRef(!1);function B(){G(Lr),W(null,!0)}var q=Zt(function(Ie){var Pe=Q();if(Pe!==Lr){var Oe=H();if(!(Ie&&!Ie.deadline&&Ie.target!==Oe)){var ve=J.current,we;Pe===Za&&ve?we=C==null?void 0:C(Oe,Ie):Pe===es&&ve?we=E==null?void 0:E(Oe,Ie):Pe===ts&&ve&&(we=S==null?void 0:S(Oe,Ie)),ve&&we!==!1&&B()}}}),K=CE(q),re=he(K,1),se=re[0],k=function(Pe){switch(Pe){case Za:return oe(oe(oe({},Vn,d),ri,x),oi,f);case es:return oe(oe(oe({},Vn,y),ri,g),oi,m);case ts:return oe(oe(oe({},Vn,_),ri,v),oi,b);default:return{}}},F=h.useMemo(function(){return k(U)},[U]),ae=OE(U,!e,function(Ie){if(Ie===Vn){var Pe=F[Vn];return Pe?Pe(H()):$y}if(pe in F){var Oe;W(((Oe=F[pe])===null||Oe===void 0?void 0:Oe.call(F,H(),null))||null)}return pe===oi&&U!==Lr&&(se(H()),u>0&&(clearTimeout(M.current),M.current=setTimeout(function(){q({deadline:!0})},u))),pe===wy&&B(),RE}),Z=he(ae,2),me=Z[0],pe=Z[1],Ce=Ty(pe);J.current=Ce,Oy(function(){T(t);var Ie=j.current;j.current=!0;var Pe;!Ie&&t&&s&&(Pe=Za),Ie&&t&&i&&(Pe=es),(Ie&&!t&&c||!Ie&&p&&!t&&c)&&(Pe=ts);var Oe=k(Pe);Pe&&(e||Oe[Vn])?(G(Pe),me()):G(Lr)},[t]),I.useEffect(function(){(U===Za&&!s||U===es&&!i||U===ts&&!c)&&G(Lr)},[s,i,c]),I.useEffect(function(){return function(){j.current=!1,clearTimeout(M.current)}},[]);var Me=h.useRef(!1);I.useEffect(function(){A&&(Me.current=!0),A!==void 0&&U===Lr&&((Me.current||A)&&(w==null||w(A)),Me.current=!0)},[A,U]);var ce=ee;return F[Vn]&&pe===ri&&(ce=ie({transition:"none"},ce)),[U,pe,ce,A??t]}function TE(e){var t=e;Be(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,p=o.children,d=o.motionName,y=o.leavedClassName,_=o.eventProps,x=h.useContext(_y),g=x.motion,v=n(o,g),f=I.useRef(),m=I.useRef();function b(){try{return f.current instanceof HTMLElement?f.current:ws(m.current)}catch{return null}}var C=$E(v,s,b,o),E=he(C,4),S=E[0],w=E[1],O=E[2],P=E[3],A=h.useRef(P);P&&(A.current=!0);var T=h.useCallback(function(ee){f.current=ee,Uf(i,ee)},[i]),L,D=ie(ie({},_),{},{visible:s});if(!p)L=null;else if(S===Lr)P?L=p(ie({},D),T):!c&&A.current&&y?L=p(ie(ie({},D),{},{className:y}),T):u||!c&&!y?L=p(ie(ie({},D),{},{style:{display:"none"}}),T):L=null;else{var Q;w===Vn?Q="prepare":Ty(w)?Q="active":w===ri&&(Q="start");var G=dh(d,"".concat(S,"-").concat(Q));L=p(ie(ie({},D),{},{className:de(dh(d,S),oe(oe({},G,G&&Q),d,typeof d=="string")),style:O}),T)}if(h.isValidElement(L)&&Kr(L)){var z=L,Y=z.ref;Y||(L=h.cloneElement(L,{ref:T}))}return h.createElement(vE,{ref:m},L)});return r.displayName="CSSMotion",r}const Zn=TE(Ry);var Bu="add",zu="keep",qu="remove",cc="removed";function PE(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function Vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(PE)}function NE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Vu(e),a=Vu(t);i.forEach(function(c){for(var u=!1,p=r;p<o;p+=1){var d=a[p];if(d.key===c.key){r<p&&(n=n.concat(a.slice(r,p).map(function(y){return ie(ie({},y),{},{status:Bu})})),r=p),n.push(ie(ie({},d),{},{status:zu})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:qu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:Bu})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var p=u.key,d=u.status;return p!==c||d!==qu}),n.forEach(function(u){u.key===c&&(u.status=zu)})}),n}var IE=["component","children","onVisibleChanged","onAllRemoved"],AE=["status"],ME=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,n=function(r){Xr(i,r);var o=Yr(i);function i(){var a;rn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),oe(tt(a),"state",{keyEntities:[]}),oe(tt(a),"removeKey",function(u){var p=a.state.keyEntities,d=p.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:cc})});return a.setState({keyEntities:d}),d.filter(function(y){var _=y.status;return _!==cc}).length}),a}return on(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,p=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,_=nt(c,IE),x=u||h.Fragment,g={};return ME.forEach(function(v){g[v]=_[v],delete _[v]}),delete _.keys,h.createElement(x,_,l.map(function(v,f){var m=v.status,b=nt(v,AE),C=m===Bu||m===zu;return h.createElement(t,Te({},g,{key:b.key,visible:C,eventProps:b,onVisibleChanged:function(S){if(d==null||d(S,{key:b.key}),!S){var w=s.removeKey(b.key);w===0&&y&&y()}}}),function(E,S){return p(ie(ie({},E),{},{index:f}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,p=Vu(c),d=NE(u,p);return{keyEntities:d.filter(function(y){var _=u.find(function(x){var g=x.key;return y.key===g});return!(_&&_.status===cc&&y.status===qu)})}}}]),i}(h.Component);return oe(n,"defaultProps",{component:"div"}),n}const Py=jE(Ry);function kE(e){const{children:t}=e,[,n]=Jn(),{motion:r}=n,o=h.useRef(!1);return o.current=o.current||r===!1,o.current?h.createElement(gE,{motion:r},t):t}const Ny=h.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Pt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(Ny.displayName="PropWarning");const LE=ne.env.NODE_ENV!=="production"?Ny:()=>null;var FE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Hu=!1;const ad=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&Oo(!Hu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,DE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Us,Iy,Ay,My;function Ps(){return Us||pa}function BE(){return Iy||rd}function zE(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qE=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Us=t),n!==void 0&&(Iy=n),"holderRender"in e&&(My=o),r&&(zE(r)?(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),BS(Ps(),r)):Ay=r)},Ra=()=>({getPrefixCls:(e,t)=>t||(e?`${Ps()}-${e}`:Ps()),getIconPrefixCls:BE,getRootPrefixCls:()=>Us||Ps(),getTheme:()=>Ay,holderRender:My}),VE=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:p,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:_,legacyLocale:x,parentContext:g,iconPrefixCls:v,theme:f,componentDisabled:m,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,input:re,textArea:se,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt}=e,Ut=h.useCallback((V,te)=>{const{prefixCls:le}=e;if(te)return te;const ge=le||g.getPrefixCls("");return V?`${ge}-${V}`:ge},[g.getPrefixCls,e.prefixCls]),gt=v||g.iconPrefixCls||rd,$t=n||g.csp;by(gt,$t);const Qe=hE(f,g.theme,{prefixCls:Ut("")});ne.env.NODE_ENV!=="production"&&(Hu=Hu||!!Qe);const lt={csp:$t,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||x,direction:c,space:u,virtual:p,popupMatchSelectWidth:y??d,popupOverflow:_,getPrefixCls:Ut,iconPrefixCls:gt,theme:Qe,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,input:re,textArea:se,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt};ne.env.NODE_ENV!=="production"&&Pt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Tt=Object.assign({},g);Object.keys(lt).forEach(V=>{lt[V]!==void 0&&(Tt[V]=lt[V])}),DE.forEach(V=>{const te=e[V];te&&(Tt[V]=te)}),typeof r<"u"&&(Tt.button=Object.assign({autoInsertSpace:r},Tt.button));const Ge=ml(()=>Tt,Tt,(V,te)=>{const le=Object.keys(V),ge=Object.keys(te);return le.length!==ge.length||le.some(Fe=>V[Fe]!==te[Fe])}),ke=h.useMemo(()=>({prefixCls:gt,csp:$t}),[gt,$t]);let N=h.createElement(h.Fragment,null,h.createElement(LE,{dropdownMatchSelectWidth:d}),t);const R=h.useMemo(()=>{var V,te,le,ge;return ni(((V=Hr.Form)===null||V===void 0?void 0:V.defaultValidateMessages)||{},((le=(te=Ge.locale)===null||te===void 0?void 0:te.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((ge=Ge.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ge,a==null?void 0:a.validateMessages]);Object.keys(R).length>0&&(N=h.createElement(ty.Provider,{value:R},N)),s&&(N=h.createElement(iy,{locale:s,_ANT_MARK__:oy},N)),(gt||$t)&&(N=h.createElement(ed.Provider,{value:ke},N)),l&&(N=h.createElement(zS,{size:l},N)),N=h.createElement(kE,null,N);const $=h.useMemo(()=>{const V=Qe||{},{algorithm:te,token:le,components:ge,cssVar:Fe}=V,Je=FE(V,["algorithm","token","components","cssVar"]),et=te&&(!Array.isArray(te)||te.length>0)?gu(te):uy,X={};Object.entries(ge||{}).forEach(ye=>{let[Re,Le]=ye;const je=Object.assign({},Le);"algorithm"in je&&(je.algorithm===!0?je.theme=et:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=gu(je.algorithm)),delete je.algorithm),X[Re]=je});const ue=Object.assign(Object.assign({},da),le);return Object.assign(Object.assign({},Je),{theme:et,token:ue,components:X,override:Object.assign({override:ue},X),cssVar:Fe})},[Qe]);return f&&(N=h.createElement(fy.Provider,{value:$},N)),Ge.warning&&(N=h.createElement(ey.Provider,{value:Ge.warning},N)),m!==void 0&&(N=h.createElement(od,{disabled:m},N)),h.createElement(Ue.Provider,{value:Ge},N)},er=e=>{const t=h.useContext(Ue),n=h.useContext(nd);return h.createElement(VE,Object.assign({parentContext:t,legacyLocale:n},e))};er.ConfigContext=Ue;er.SizeContext=Co;er.config=qE;er.useConfig=qS;Object.defineProperty(er,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Co)});ne.env.NODE_ENV!=="production"&&(er.displayName="ConfigProvider");var HE={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function jy(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WE(e){return jy(e)instanceof ShadowRoot}function Gs(e){return WE(e)?jy(e):null}function UE(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function GE(e,t){pt(e,"[@ant-design/icons] ".concat(t))}function ph(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function hh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[UE(n)]=r}return t},{})}function Wu(e,t,n){return n?I.createElement(e.tag,ie(ie({key:t},hh(e.attrs)),n),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):I.createElement(e.tag,ie({key:t},hh(e.attrs)),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ky(e){return fa(e)[0]}function Ly(e){return e?Array.isArray(e)?e:[e]:[]}var KE=`
74
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ah=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gy={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},rE={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},oE={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},vy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ah(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=my(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,p=ah(c,["theme"]);let d=p;u&&(d=vy(Object.assign(Object.assign({},a),p),{override:p},u)),a[l]=d}),a};function Jn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=I.useContext(fy),i=`${tE}-${t||""}`,a=n||uy,[s,l,c]=Rx(a,[da,e],{salt:i,override:r,getComputedToken:vy,formatToken:my,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:gy,ignore:rE,preserve:oE}});return[a,c,t?l:"",s,o]}const iE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},aE=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),yy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),lE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},cE=e=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ea=e=>({"&:focus-visible":Object.assign({},cE(e))}),by=(e,t)=>{const[n,r]=Jn();return Cu({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},aE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:un,genComponentStyleHook:uE,genSubStyleComponent:wi}=eE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=I.useContext(Ue);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Jn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=I.useContext(Ue);return by(t,e),e??{}},getResetStyles:e=>[{"&":sE(e)}],getCommonStyle:lE,getCompUnitless:()=>gy});function Cl(e,t){return ha.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const fE=Object.assign({},h),{useId:sh}=fE,dE=()=>"",pE=typeof sh>"u"?dE:sh;function hE(e,t,n){var r,o;const i=Pt("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Fu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Fu.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=pE();if(ne.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);ne.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ml(()=>{var c,u;if(!e)return t;const p=Object.assign({},s.components);Object.keys(e.components||{}).forEach(_=>{p[_]=Object.assign(Object.assign({},p[_]),e.components[_])});const d=`css-var-${l.replace(/:/g,"")}`,y=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:p,cssVar:y})},[a,s],(c,u)=>c.some((p,d)=>{const y=u[d];return!la(p,y,!0)}))}var mE=["children"],_y=h.createContext({});function gE(e){var t=e.children,n=nt(e,mE);return h.createElement(_y.Provider,{value:n},t)}var vE=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function yE(e){var t=h.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],o=h.useRef(e),i=Zt(function(){return o.current}),a=Zt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Lr="none",Za="appear",es="enter",ts="leave",lh="none",Vn="prepare",ri="start",oi="active",id="end",wy="prepared";function ch(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function bE(e,t){var n={animationend:ch("Animation","AnimationEnd"),transitionend:ch("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var _E=bE(dn(),typeof window<"u"?window:{}),Cy={};if(dn()){var wE=document.createElement("div");Cy=wE.style}var ns={};function xy(e){if(ns[e])return ns[e];var t=_E[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Cy)return ns[e]=t[i],ns[e]}return""}var Sy=xy("animationend"),Ey=xy("transitionend"),Ry=!!(Sy&&Ey),uh=Sy||"animationend",fh=Ey||"transitionend";function dh(e,t){if(!e)return null;if(Be(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const CE=function(e){var t=I.useRef();function n(o){o&&(o.removeEventListener(fh,e),o.removeEventListener(uh,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(fh,e),o.addEventListener(uh,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Oy=dn()?I.useLayoutEffect:I.useEffect;const xE=function(){var e=h.useRef(null);function t(){Lt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Lt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var SE=[Vn,ri,oi,id],EE=[Vn,wy],$y=!1,RE=!0;function Ty(e){return e===oi||e===id}const OE=function(e,t,n){var r=xo(lh),o=he(r,2),i=o[0],a=o[1],s=xE(),l=he(s,2),c=l[0],u=l[1];function p(){a(Vn,!0)}var d=t?EE:SE;return Oy(function(){if(i!==lh&&i!==id){var y=d.indexOf(i),_=d[y+1],x=n(i);x===$y?a(_,!0):_&&c(function(g){function v(){g.isCanceled()||a(_,!0)}x===!0?v():Promise.resolve(x).then(v)})}},[e,i]),h.useEffect(function(){return function(){u()}},[]),[p,i]};function $E(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,p=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,_=r.onLeavePrepare,x=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,f=r.onAppearActive,m=r.onEnterActive,b=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,w=r.onVisibleChanged,O=xo(),P=he(O,2),A=P[0],T=P[1],L=yE(Lr),D=he(L,2),Q=D[0],G=D[1],z=xo(null),Y=he(z,2),ee=Y[0],W=Y[1],U=Q(),j=I.useRef(!1),M=I.useRef(null);function H(){return n()}var J=I.useRef(!1);function B(){G(Lr),W(null,!0)}var q=Zt(function(Ie){var Pe=Q();if(Pe!==Lr){var Oe=H();if(!(Ie&&!Ie.deadline&&Ie.target!==Oe)){var ve=J.current,we;Pe===Za&&ve?we=C==null?void 0:C(Oe,Ie):Pe===es&&ve?we=E==null?void 0:E(Oe,Ie):Pe===ts&&ve&&(we=S==null?void 0:S(Oe,Ie)),ve&&we!==!1&&B()}}}),K=CE(q),re=he(K,1),se=re[0],k=function(Pe){switch(Pe){case Za:return oe(oe(oe({},Vn,d),ri,x),oi,f);case es:return oe(oe(oe({},Vn,y),ri,g),oi,m);case ts:return oe(oe(oe({},Vn,_),ri,v),oi,b);default:return{}}},F=h.useMemo(function(){return k(U)},[U]),ae=OE(U,!e,function(Ie){if(Ie===Vn){var Pe=F[Vn];return Pe?Pe(H()):$y}if(pe in F){var Oe;W(((Oe=F[pe])===null||Oe===void 0?void 0:Oe.call(F,H(),null))||null)}return pe===oi&&U!==Lr&&(se(H()),u>0&&(clearTimeout(M.current),M.current=setTimeout(function(){q({deadline:!0})},u))),pe===wy&&B(),RE}),Z=he(ae,2),me=Z[0],pe=Z[1],Ce=Ty(pe);J.current=Ce,Oy(function(){T(t);var Ie=j.current;j.current=!0;var Pe;!Ie&&t&&s&&(Pe=Za),Ie&&t&&i&&(Pe=es),(Ie&&!t&&c||!Ie&&p&&!t&&c)&&(Pe=ts);var Oe=k(Pe);Pe&&(e||Oe[Vn])?(G(Pe),me()):G(Lr)},[t]),I.useEffect(function(){(U===Za&&!s||U===es&&!i||U===ts&&!c)&&G(Lr)},[s,i,c]),I.useEffect(function(){return function(){j.current=!1,clearTimeout(M.current)}},[]);var Me=h.useRef(!1);I.useEffect(function(){A&&(Me.current=!0),A!==void 0&&U===Lr&&((Me.current||A)&&(w==null||w(A)),Me.current=!0)},[A,U]);var ce=ee;return F[Vn]&&pe===ri&&(ce=ie({transition:"none"},ce)),[U,pe,ce,A??t]}function TE(e){var t=e;Be(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,p=o.children,d=o.motionName,y=o.leavedClassName,_=o.eventProps,x=h.useContext(_y),g=x.motion,v=n(o,g),f=I.useRef(),m=I.useRef();function b(){try{return f.current instanceof HTMLElement?f.current:ws(m.current)}catch{return null}}var C=$E(v,s,b,o),E=he(C,4),S=E[0],w=E[1],O=E[2],P=E[3],A=h.useRef(P);P&&(A.current=!0);var T=h.useCallback(function(ee){f.current=ee,Uf(i,ee)},[i]),L,D=ie(ie({},_),{},{visible:s});if(!p)L=null;else if(S===Lr)P?L=p(ie({},D),T):!c&&A.current&&y?L=p(ie(ie({},D),{},{className:y}),T):u||!c&&!y?L=p(ie(ie({},D),{},{style:{display:"none"}}),T):L=null;else{var Q;w===Vn?Q="prepare":Ty(w)?Q="active":w===ri&&(Q="start");var G=dh(d,"".concat(S,"-").concat(Q));L=p(ie(ie({},D),{},{className:de(dh(d,S),oe(oe({},G,G&&Q),d,typeof d=="string")),style:O}),T)}if(h.isValidElement(L)&&Kr(L)){var z=L,Y=z.ref;Y||(L=h.cloneElement(L,{ref:T}))}return h.createElement(vE,{ref:m},L)});return r.displayName="CSSMotion",r}const Zn=TE(Ry);var Bu="add",zu="keep",qu="remove",cc="removed";function PE(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function Vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(PE)}function NE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Vu(e),a=Vu(t);i.forEach(function(c){for(var u=!1,p=r;p<o;p+=1){var d=a[p];if(d.key===c.key){r<p&&(n=n.concat(a.slice(r,p).map(function(y){return ie(ie({},y),{},{status:Bu})})),r=p),n.push(ie(ie({},d),{},{status:zu})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:qu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:Bu})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var p=u.key,d=u.status;return p!==c||d!==qu}),n.forEach(function(u){u.key===c&&(u.status=zu)})}),n}var IE=["component","children","onVisibleChanged","onAllRemoved"],AE=["status"],ME=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,n=function(r){Xr(i,r);var o=Yr(i);function i(){var a;rn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),oe(tt(a),"state",{keyEntities:[]}),oe(tt(a),"removeKey",function(u){var p=a.state.keyEntities,d=p.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:cc})});return a.setState({keyEntities:d}),d.filter(function(y){var _=y.status;return _!==cc}).length}),a}return on(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,p=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,_=nt(c,IE),x=u||h.Fragment,g={};return ME.forEach(function(v){g[v]=_[v],delete _[v]}),delete _.keys,h.createElement(x,_,l.map(function(v,f){var m=v.status,b=nt(v,AE),C=m===Bu||m===zu;return h.createElement(t,Te({},g,{key:b.key,visible:C,eventProps:b,onVisibleChanged:function(S){if(d==null||d(S,{key:b.key}),!S){var w=s.removeKey(b.key);w===0&&y&&y()}}}),function(E,S){return p(ie(ie({},E),{},{index:f}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,p=Vu(c),d=NE(u,p);return{keyEntities:d.filter(function(y){var _=u.find(function(x){var g=x.key;return y.key===g});return!(_&&_.status===cc&&y.status===qu)})}}}]),i}(h.Component);return oe(n,"defaultProps",{component:"div"}),n}const Py=jE(Ry);function kE(e){const{children:t}=e,[,n]=Jn(),{motion:r}=n,o=h.useRef(!1);return o.current=o.current||r===!1,o.current?h.createElement(gE,{motion:r},t):t}const Ny=h.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Pt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(Ny.displayName="PropWarning");const LE=ne.env.NODE_ENV!=="production"?Ny:()=>null;var FE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Hu=!1;const ad=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&Oo(!Hu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,DE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Us,Iy,Ay,My;function Ps(){return Us||pa}function BE(){return Iy||rd}function zE(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qE=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Us=t),n!==void 0&&(Iy=n),"holderRender"in e&&(My=o),r&&(zE(r)?(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),BS(Ps(),r)):Ay=r)},Ra=()=>({getPrefixCls:(e,t)=>t||(e?`${Ps()}-${e}`:Ps()),getIconPrefixCls:BE,getRootPrefixCls:()=>Us||Ps(),getTheme:()=>Ay,holderRender:My}),VE=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:p,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:_,legacyLocale:x,parentContext:g,iconPrefixCls:v,theme:f,componentDisabled:m,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,input:re,textArea:se,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt}=e,Ut=h.useCallback((V,te)=>{const{prefixCls:le}=e;if(te)return te;const ge=le||g.getPrefixCls("");return V?`${ge}-${V}`:ge},[g.getPrefixCls,e.prefixCls]),gt=v||g.iconPrefixCls||rd,$t=n||g.csp;by(gt,$t);const Je=hE(f,g.theme,{prefixCls:Ut("")});ne.env.NODE_ENV!=="production"&&(Hu=Hu||!!Je);const lt={csp:$t,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||x,direction:c,space:u,virtual:p,popupMatchSelectWidth:y??d,popupOverflow:_,getPrefixCls:Ut,iconPrefixCls:gt,theme:Je,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,input:re,textArea:se,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt};ne.env.NODE_ENV!=="production"&&Pt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Tt=Object.assign({},g);Object.keys(lt).forEach(V=>{lt[V]!==void 0&&(Tt[V]=lt[V])}),DE.forEach(V=>{const te=e[V];te&&(Tt[V]=te)}),typeof r<"u"&&(Tt.button=Object.assign({autoInsertSpace:r},Tt.button));const Ge=ml(()=>Tt,Tt,(V,te)=>{const le=Object.keys(V),ge=Object.keys(te);return le.length!==ge.length||le.some(Fe=>V[Fe]!==te[Fe])}),ke=h.useMemo(()=>({prefixCls:gt,csp:$t}),[gt,$t]);let N=h.createElement(h.Fragment,null,h.createElement(LE,{dropdownMatchSelectWidth:d}),t);const R=h.useMemo(()=>{var V,te,le,ge;return ni(((V=Hr.Form)===null||V===void 0?void 0:V.defaultValidateMessages)||{},((le=(te=Ge.locale)===null||te===void 0?void 0:te.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((ge=Ge.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ge,a==null?void 0:a.validateMessages]);Object.keys(R).length>0&&(N=h.createElement(ty.Provider,{value:R},N)),s&&(N=h.createElement(iy,{locale:s,_ANT_MARK__:oy},N)),(gt||$t)&&(N=h.createElement(ed.Provider,{value:ke},N)),l&&(N=h.createElement(zS,{size:l},N)),N=h.createElement(kE,null,N);const $=h.useMemo(()=>{const V=Je||{},{algorithm:te,token:le,components:ge,cssVar:Fe}=V,Ze=FE(V,["algorithm","token","components","cssVar"]),et=te&&(!Array.isArray(te)||te.length>0)?gu(te):uy,X={};Object.entries(ge||{}).forEach(ye=>{let[Re,Le]=ye;const je=Object.assign({},Le);"algorithm"in je&&(je.algorithm===!0?je.theme=et:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=gu(je.algorithm)),delete je.algorithm),X[Re]=je});const ue=Object.assign(Object.assign({},da),le);return Object.assign(Object.assign({},Ze),{theme:et,token:ue,components:X,override:Object.assign({override:ue},X),cssVar:Fe})},[Je]);return f&&(N=h.createElement(fy.Provider,{value:$},N)),Ge.warning&&(N=h.createElement(ey.Provider,{value:Ge.warning},N)),m!==void 0&&(N=h.createElement(od,{disabled:m},N)),h.createElement(Ue.Provider,{value:Ge},N)},er=e=>{const t=h.useContext(Ue),n=h.useContext(nd);return h.createElement(VE,Object.assign({parentContext:t,legacyLocale:n},e))};er.ConfigContext=Ue;er.SizeContext=Co;er.config=qE;er.useConfig=qS;Object.defineProperty(er,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Co)});ne.env.NODE_ENV!=="production"&&(er.displayName="ConfigProvider");var HE={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function jy(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WE(e){return jy(e)instanceof ShadowRoot}function Gs(e){return WE(e)?jy(e):null}function UE(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function GE(e,t){pt(e,"[@ant-design/icons] ".concat(t))}function ph(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function hh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[UE(n)]=r}return t},{})}function Wu(e,t,n){return n?I.createElement(e.tag,ie(ie({key:t},hh(e.attrs)),n),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):I.createElement(e.tag,ie({key:t},hh(e.attrs)),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ky(e){return fa(e)[0]}function Ly(e){return e?Array.isArray(e)?e:[e]:[]}var KE=`
75
75
  .anticon {
76
76
  display: inline-flex;
77
77
  align-items: center;
@@ -185,7 +185,7 @@ html body {
185
185
  `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function sm(e){return{position:e,inset:0}}const F$=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},sm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},sm("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:y$(e)}]},D$=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},vn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ea(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${_e(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
186
186
  ${t}-body,
187
187
  ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},B$=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Pb=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ft(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Nb=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Ib=un("Modal",e=>{const t=Pb(e);return[D$(t),B$(t),F$(t),_d(t,"zoom")]},Nb,{unitless:{titleLineHeight:!0}});var z$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let af;const q$=e=>{af={x:e.pageX,y:e.pageY},setTimeout(()=>{af=null},100)};qO()&&document.documentElement.addEventListener("click",q$,!0);const Ab=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(Ue),a=j=>{const{onCancel:M}=e;M==null||M(j)},s=j=>{const{onOk:M}=e;M==null||M(j)};if(ne.env.NODE_ENV!=="production"){const j=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(M=>{let[H,J]=M;j.deprecated(!(H in e),H,J)})}const{prefixCls:l,className:c,rootClassName:u,open:p,wrapClassName:d,centered:y,getContainer:_,focusTriggerAfterClose:x=!0,style:g,visible:v,width:f=520,footer:m,classNames:b,styles:C,children:E,loading:S}=e,w=z$(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),P=r(),A=En(O),[T,L,D]=Ib(O,A),Q=de(d,{[`${O}-centered`]:!!y,[`${O}-wrap-rtl`]:o==="rtl"}),G=m!==null&&!S?h.createElement(Tb,Object.assign({},e,{onOk:s,onCancel:a})):null,[z,Y]=Rb(Qs(e),Qs(i),{closable:!0,closeIcon:h.createElement($o,{className:`${O}-close-icon`}),closeIconRender:j=>$b(O,j)}),ee=d$(`.${O}-content`),[W,U]=Gy("Modal",w.zIndex);return T(h.createElement(Ys,{form:!0,space:!0},h.createElement(El.Provider,{value:U},h.createElement(hb,Object.assign({width:f},w,{zIndex:W,getContainer:_===void 0?n:_,prefixCls:O,rootClassName:de(L,u,D,A),footer:G,visible:p??v,mousePosition:(t=w.mousePosition)!==null&&t!==void 0?t:af,onClose:a,closable:z,closeIcon:Y,focusTriggerAfterClose:x,transitionName:So(P,"zoom",e.transitionName),maskTransitionName:So(P,"fade",e.maskTransitionName),className:de(L,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),g),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),b),{wrapper:de(Q,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),C),panelRef:ee}),S?h.createElement(No,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):E))))},V$=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},yy()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
188
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},H$=wi(["Modal","confirm"],e=>{const t=Pb(e);return[V$(t)]},Nb,{order:-1e3});var W$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Mb(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=W$(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(ne.env.NODE_ENV!=="production"){const S=Pt("Modal");ne.env.NODE_ENV!=="production"&&S(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let p=n;if(!n&&n!==null)switch(a){case"info":p=h.createElement(xl,null);break;case"success":p=h.createElement(Oa,null);break;case"error":p=h.createElement(xi,null);break;default:p=h.createElement($a,null)}const d=s??a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[_]=wl("Modal"),x=c||_,g=r||(d?x==null?void 0:x.okText:x==null?void 0:x.justOkText),v=o||(x==null?void 0:x.cancelText),f=Object.assign({autoFocusButton:y,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:d},u),m=h.useMemo(()=>f,xe(Object.values(f))),b=h.createElement(h.Fragment,null,h.createElement(Ih,null),h.createElement(Ah,null)),C=e.title!==void 0&&e.title!==null,E=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:de(E,{[`${E}-has-title`]:C})},p,h.createElement("div",{className:`${i}-paragraph`},C&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(cb,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:Ah,CancelBtn:Ih}):b)):l,h.createElement(H$,{prefixCls:t}))}const jb=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,bodyStyle:y,closable:_=!1,closeIcon:x,modalRender:g,focusTriggerAfterClose:v,onConfirm:f,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const T=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[D,Q]=L;T.deprecated(!(D in e),D,Q)})}const b=`${u}-confirm`,C=e.width||416,E=e.style||{},S=e.mask===void 0?!0:e.mask,w=e.maskClosable===void 0?!1:e.maskClosable,O=de(b,`${b}-${e.type}`,{[`${b}-rtl`]:c==="rtl"},e.className),[,P]=Jn(),A=h.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Rl,[n,P]);return h.createElement(Ab,{prefixCls:u,className:O,wrapClassName:de({[`${b}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},open:o,title:"",footer:null,transitionName:So(d||"","zoom",e.transitionName),maskTransitionName:So(d||"","fade",e.maskTransitionName),mask:S,maskClosable:w,style:E,styles:Object.assign({body:y,mask:l},m),width:C,zIndex:A,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:_,closeIcon:x,modalRender:g,focusTriggerAfterClose:v},h.createElement(Mb,Object.assign({},e,{confirmPrefixCls:b})))},wd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(er,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(jb,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(jb.displayName="ConfirmDialog",wd.displayName="ConfirmDialogWrapper");const po=[];let kb="";function Lb(){return kb}const U$=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=ry(),s=I.useContext(Ue),l=Lb()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),I.createElement(wd,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function Aa(e){const t=Ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&ad("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var c,u=arguments.length,p=new Array(u),d=0;d<u;d++)p[d]=arguments[d];if(p.some(x=>x==null?void 0:x.triggerCancel)){var _;(c=e.onCancel)===null||c===void 0||(_=c).call.apply(_,[e,()=>{}].concat(xe(p.slice(1))))}for(let x=0;x<po.length;x++)if(po[x]===s){po.splice(x,1);break}Qy(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Lb()),p=t.getIconPrefixCls(),d=t.getTheme(),y=I.createElement(U$,Object.assign({},c));$l(I.createElement(er,{prefixCls:u,iconPrefixCls:p,theme:d},t.holderRender?t.holderRender(y):y),n)})}function s(){for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function l(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),po.push(s),{destroy:s,update:l}}function Fb(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Db(e){return Object.assign(Object.assign({},e),{type:"info"})}function Bb(e){return Object.assign(Object.assign({},e),{type:"success"})}function zb(e){return Object.assign(Object.assign({},e),{type:"error"})}function qb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function G$(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),kb=t}var K$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X$=(e,t)=>{var n,{afterClose:r,config:o}=e,i=K$(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(o),{direction:u,getPrefixCls:p}=h.useContext(Ue),d=p("modal"),y=p(),_=()=>{var f;r(),(f=l.afterClose)===null||f===void 0||f.call(l)},x=function(){var f;s(!1);for(var m=arguments.length,b=new Array(m),C=0;C<m;C++)b[C]=arguments[C];if(b.some(w=>w==null?void 0:w.triggerCancel)){var S;(f=l.onCancel)===null||f===void 0||(S=f).call.apply(S,[l,()=>{}].concat(xe(b.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:x,update:f=>{c(m=>Object.assign(Object.assign({},m),f))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=wl("Modal",Hr.Modal);return h.createElement(wd,Object.assign({prefixCls:d,rootPrefixCls:y},l,{close:x,open:a,afterClose:_,okText:l.okText||(g?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},Y$=h.forwardRef(X$);let lm=0;const Q$=h.memo(h.forwardRef((e,t)=>{const[n,r]=z1();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function J$(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(xe(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(s){var l;lm+=1;const c=h.createRef();let u;const p=new Promise(g=>{u=g});let d=!1,y;const _=h.createElement(Y$,{key:`modal-${lm}`,config:i(s),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:g=>{u(g)}});return y=(l=e.current)===null||l===void 0?void 0:l.patchElement(_),y&&po.push(y),{destroy:()=>{function g(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?g():n(v=>[].concat(xe(v),[g]))},update:g=>{function v(){var f;(f=c.current)===null||f===void 0||f.update(g)}c.current?v():n(f=>[].concat(xe(f),[v]))},then:g=>(d=!0,p.then(g))}},[]);return[h.useMemo(()=>({info:r(Db),success:r(Bb),error:r(zb),warning:r(Fb),confirm:r(qb)}),[]),h.createElement(Q$,{key:"modal-holder",ref:e})]}const Z$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new at("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new at("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new at("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new at("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},eT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],tT={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},nT=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[tT[t]]:{value:0,_skip_check_:!0}}}}},rT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},oT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},iT=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},rT(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},oT(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},eT.map(n=>nT(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Vb=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:y,notificationMarginEdge:_,notificationProgressBg:x,notificationProgressHeight:g,fontSize:v,lineHeight:f,width:m,notificationIconSize:b,colorText:C}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:y,width:m,maxWidth:`calc(100vw - ${_e(e.calc(_).mul(2).equal())})`,overflow:"hidden",lineHeight:f,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:v,color:C},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ea(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:a,background:x}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},aT=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new at("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},vn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Vb(e))}}]},Hb=e=>({zIndexPopup:e.zIndexPopupBase+Rl+50,width:384}),Wb=e=>{const t=e.paddingMD,n=e.paddingLG;return Ft(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ub=un("Notification",e=>{const t=Wb(e);return[aT(t),Z$(t),iT(t)]},Hb),sT=wi(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Wb(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Vb(n)),{width:n.width,maxWidth:`calc(100vw - ${_e(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Hb);var lT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cd(e,t){return t===null||t===!1?null:t||h.createElement($o,{className:`${e}-close-icon`})}const cT={success:Oa,info:xl,error:xi,warning:$a},Gb=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(cT[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:de({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},o),h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-btn`},a))},uT=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,p=lT(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=h.useContext(Ue),y=t||d("notification"),_=`${y}-notice`,x=En(y),[g,v,f]=Ub(y,x);return g(h.createElement("div",{className:de(`${_}-pure-panel`,v,n,f,x)},h.createElement(sT,{prefixCls:y}),h.createElement(sd,Object.assign({},p,{prefixCls:y,eventKey:"pure",duration:null,closable:l,className:de({notificationClassName:u}),closeIcon:Cd(y,c),content:h.createElement(Gb,{prefixCls:_,icon:r,type:o,message:i,description:a,btn:s})}))))};function fT(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function dT(e){return{motionName:`${e}-fade`}}var pT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cm=24,hT=4.5,mT="topRight",gT=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=Ub(n,r);return o(I.createElement(qy,{classNames:{list:de(i,a,r)}},t))},vT=(e,t)=>{let{prefixCls:n,key:r}=t;return I.createElement(gT,{prefixCls:n,key:r},e)},yT=I.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:p=!0,showProgress:d}=e,{getPrefixCls:y,getPopupContainer:_,notification:x,direction:g}=I.useContext(Ue),[,v]=Jn(),f=o||y("notification"),m=w=>fT(w,n??cm,r??cm),b=()=>de({[`${f}-rtl`]:s??g==="rtl"}),C=()=>dT(f),[E,S]=Wy({prefixCls:f,style:m,className:b,motion:C,closable:!0,closeIcon:Cd(f),duration:u??hT,getContainer:()=>(i==null?void 0:i())||(_==null?void 0:_())||document.body,maxCount:a,pauseOnHover:p,showProgress:d,onAllRemoved:l,renderNotifications:vT,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return I.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:f,notification:x})),S});function Kb(e){const t=I.useRef(null),n=Pt("Notification");return[I.useMemo(()=>{const o=l=>{var c;if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:p,notification:d}=t.current,y=`${p}-notice`,{message:_,description:x,icon:g,type:v,btn:f,className:m,style:b,role:C="alert",closeIcon:E,closable:S}=l,w=pT(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=Cd(y,typeof E<"u"?E:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:mT},w),{content:I.createElement(Gb,{prefixCls:y,icon:g,type:v,message:_,description:x,btn:f,role:C}),className:de(v&&`${y}-${v}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),closeIcon:O,closable:S??!!O}))},a={open:o,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>o(Object.assign(Object.assign({},c),{type:l}))}),a},[]),I.createElement(yT,Object.assign({key:"notification-holder"},e,{ref:t}))]}function bT(e){return Kb(e)}const Xb=I.createContext({});function _T(e){return t=>h.createElement(er,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const Yb=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var wT=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],zo=void 0;function CT(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,p=e.style,d=e.children,y=e.display,_=e.order,x=e.component,g=x===void 0?"div":x,v=nt(e,wT),f=a&&!y;function m(w){l(c,w)}h.useEffect(function(){return function(){m(null)}},[]);var b=i&&o!==zo?i(o):d,C;r||(C={opacity:f?0:1,height:f?0:zo,overflowY:f?"hidden":zo,order:a?_:zo,pointerEvents:f?"none":zo,position:f?"absolute":zo});var E={};f&&(E["aria-hidden"]=!0);var S=h.createElement(g,Te({className:de(!r&&n,u),style:ie(ie({},C),p)},E,v,{ref:t}),b);return a&&(S=h.createElement(cr,{onResize:function(O){var P=O.offsetWidth;m(P)},disabled:s},S)),S}var Yi=h.forwardRef(CT);Yi.displayName="Item";function xT(e){if(typeof MessageChannel>"u")Lt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ST(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],xT(function(){_o.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ki(e,t){var n=h.useState(t),r=he(n,2),o=r[0],i=r[1],a=Zt(function(s){e(function(){i(s)})});return[o,a]}var Js=I.createContext(null),ET=["component"],RT=["className"],OT=["className"],$T=function(t,n){var r=h.useContext(Js);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,ET);return h.createElement(i,Te({},a,{ref:n}))}var s=r.className,l=nt(r,RT),c=t.className,u=nt(t,OT);return h.createElement(Js.Provider,{value:null},h.createElement(Yi,Te({ref:n,className:de(s,c)},l,u)))},Qb=h.forwardRef($T);Qb.displayName="RawItem";var TT=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jb="responsive",Zb="invalidate";function PT(e){return"+ ".concat(e.length," ...")}function NT(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,p=e.ssr,d=e.style,y=e.className,_=e.maxCount,x=e.renderRest,g=e.renderRawRest,v=e.suffix,f=e.component,m=f===void 0?"div":f,b=e.itemComponent,C=e.onVisibleChange,E=nt(e,TT),S=p==="full",w=ST(),O=ki(w,null),P=he(O,2),A=P[0],T=P[1],L=A||0,D=ki(w,new Map),Q=he(D,2),G=Q[0],z=Q[1],Y=ki(w,0),ee=he(Y,2),W=ee[0],U=ee[1],j=ki(w,0),M=he(j,2),H=M[0],J=M[1],B=ki(w,0),q=he(B,2),K=q[0],re=q[1],se=I.useState(null),k=he(se,2),F=k[0],ae=k[1],Z=I.useState(null),me=he(Z,2),pe=me[0],Ce=me[1],Me=h.useMemo(function(){return pe===null&&S?Number.MAX_SAFE_INTEGER:pe||0},[pe,A]),ce=I.useState(!1),Ie=he(ce,2),Pe=Ie[0],Oe=Ie[1],ve="".concat(r,"-item"),we=Math.max(W,H),Se=_===Jb,Ee=i.length&&Se,Ve=_===Zb,He=Ee||typeof _=="number"&&i.length>_,Xe=I.useMemo(function(){var ke=i;return Ee?A===null&&S?ke=i:ke=i.slice(0,Math.min(i.length,L/u)):typeof _=="number"&&(ke=i.slice(0,_)),ke},[i,u,A,_,Ee]),ft=I.useMemo(function(){return Ee?i.slice(Me+1):i.slice(Xe.length)},[i,Xe,Ee,Me]),mt=I.useCallback(function(ke,N){var R;return typeof l=="function"?l(ke):(R=l&&(ke==null?void 0:ke[l]))!==null&&R!==void 0?R:N},[l]),ct=I.useCallback(a||function(ke){return ke},[a]);function ze(ke,N,R){pe===ke&&(N===void 0||N===F)||(Ce(ke),R||(Oe(ke<i.length-1),C==null||C(ke)),N!==void 0&&ae(N))}function Ne(ke,N){T(N.clientWidth)}function st(ke,N){z(function(R){var $=new Map(R);return N===null?$.delete(ke):$.set(ke,N),$})}function rt(ke,N){J(N),U(H)}function Ye(ke,N){re(N)}function Ot(ke){return G.get(mt(Xe[ke],ke))}Xt(function(){if(L&&typeof we=="number"&&Xe){var ke=K,N=Xe.length,R=N-1;if(!N){ze(0,null);return}for(var $=0;$<N;$+=1){var V=Ot($);if(S&&(V=V||0),V===void 0){ze($-1,void 0,!0);break}if(ke+=V,R===0&&ke<=L||$===R-1&&ke+Ot(R)<=L){ze(R,null);break}else if(ke+we>L){ze($-1,ke-V-K+H);break}}v&&Ot(0)+K>L&&ae(null)}},[L,G,H,K,mt,Xe]);var Dt=Pe&&!!ft.length,Ut={};F!==null&&Ee&&(Ut={position:"absolute",left:F,top:0});var gt={prefixCls:ve,responsive:Ee,component:b,invalidate:Ve},$t=s?function(ke,N){var R=mt(ke,N);return h.createElement(Js.Provider,{key:R,value:ie(ie({},gt),{},{order:N,item:ke,itemKey:R,registerSize:st,display:N<=Me})},s(ke,N))}:function(ke,N){var R=mt(ke,N);return h.createElement(Yi,Te({},gt,{order:N,key:R,item:ke,renderItem:ct,itemKey:R,registerSize:st,display:N<=Me}))},Qe,lt={order:Dt?Me:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:rt,display:Dt};if(g)g&&(Qe=h.createElement(Js.Provider,{value:ie(ie({},gt),lt)},g(ft)));else{var Tt=x||PT;Qe=h.createElement(Yi,Te({},gt,lt),typeof Tt=="function"?Tt(ft):Tt)}var Ge=h.createElement(m,Te({className:de(!Ve&&r,y),style:d,ref:t},E),Xe.map($t),He?Qe:null,v&&h.createElement(Yi,Te({},gt,{responsive:Se,responsiveDisabled:!Ee,order:Me,className:"".concat(ve,"-suffix"),registerSize:Ye,display:!0,style:Ut}),v));return Se&&(Ge=h.createElement(cr,{onResize:Ne,disabled:!Ee},Ge)),Ge}var Sr=h.forwardRef(NT);Sr.displayName="Overflow";Sr.Item=Qb;Sr.RESPONSIVE=Jb;Sr.INVALIDATE=Zb;function IT(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,p=u===void 0?0:u,d=h.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var _=n.points[0],x=n.points[1],g=_[0],v=_[1],f=x[0],m=x[1];g===f||!["t","b"].includes(g)?y.top=p:g==="t"?y.top=0:y.bottom=0,v===m||!["l","r"].includes(v)?y.left=c:v==="l"?y.left=0:y.right=0}return h.createElement("div",{ref:d,className:de("".concat(t,"-arrow"),a),style:y},s)}function AT(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Zn,Te({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),s)})}):null}var e0=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(e0.displayName="PopupContent");var t0=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,p=e.onClick,d=e.mask,y=e.arrow,_=e.arrowPos,x=e.align,g=e.motion,v=e.maskMotion,f=e.forceRender,m=e.getPopupContainer,b=e.autoDestroy,C=e.portal,E=e.zIndex,S=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,P=e.ready,A=e.offsetX,T=e.offsetY,L=e.offsetR,D=e.offsetB,Q=e.onAlign,G=e.onPrepare,z=e.stretch,Y=e.targetWidth,ee=e.targetHeight,W=typeof n=="function"?n():n,U=l||c,j=(m==null?void 0:m.length)>0,M=h.useState(!m||!j),H=he(M,2),J=H[0],B=H[1];if(Xt(function(){!J&&j&&a&&B(!0)},[J,j,a]),!J)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var re,se=x.points,k=x.dynamicInset||((re=x._experimental)===null||re===void 0?void 0:re.dynamicInset),F=k&&se[0][1]==="r",ae=k&&se[0][0]==="b";F?(K.right=L,K.left=q):(K.left=A,K.right=q),ae?(K.bottom=D,K.top=q):(K.top=T,K.bottom=q)}var Z={};return z&&(z.includes("height")&&ee?Z.height=ee:z.includes("minHeight")&&ee&&(Z.minHeight=ee),z.includes("width")&&Y?Z.width=Y:z.includes("minWidth")&&Y&&(Z.minWidth=Y)),l||(Z.pointerEvents="none"),h.createElement(C,{open:f||U,getContainer:m&&function(){return m(a)},autoDestroy:b},h.createElement(AT,{prefixCls:o,open:l,zIndex:E,mask:d,motion:v}),h.createElement(cr,{onResize:Q,disabled:!l},function(me){return h.createElement(Zn,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:f,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:G,onEnterPrepare:G,visible:l,onVisibleChanged:function(Ce){var Me;g==null||(Me=g.onVisibleChanged)===null||Me===void 0||Me.call(g,Ce),s(Ce)}}),function(pe,Ce){var Me=pe.className,ce=pe.style,Ie=de(o,Me,r);return h.createElement("div",{ref:Yn(me,t,Ce),className:Ie,style:ie(ie(ie(ie({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},K),Z),ce),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:w,onPointerEnter:O,onClick:p},y&&h.createElement(IT,{prefixCls:o,arrow:y,arrowPos:_,align:x}),h.createElement(e0,{cache:!l&&!u},W))})}))});ne.env.NODE_ENV!=="production"&&(t0.displayName="Popup");var n0=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Kr(n),i=h.useCallback(function(s){Uf(t,r?r(s):s)},[r]),a=bi(i,n.ref);return o?h.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(n0.displayName="TriggerWrapper");var um=h.createContext(null);function fm(e){return e?Array.isArray(e)?e:[e]:[]}function MT(e,t,n,r){return h.useMemo(function(){var o=fm(n??t),i=fm(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function jT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function kT(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(jT((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function dm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ma(e){return e.ownerDocument.defaultView}function sf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ma(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Li(e){return va(parseFloat(e),0)}function pm(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ma(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,p=r.getBoundingClientRect(),d=r.offsetHeight,y=r.clientHeight,_=r.offsetWidth,x=r.clientWidth,g=Li(s),v=Li(l),f=Li(c),m=Li(u),b=va(Math.round(p.width/_*1e3)/1e3),C=va(Math.round(p.height/d*1e3)/1e3),E=(_-x-f-m)*b,S=(d-y-g-v)*C,w=g*C,O=v*C,P=f*b,A=m*b,T=0,L=0;if(i==="clip"){var D=Li(a);T=D*b,L=D*C}var Q=p.x+P-T,G=p.y+w-L,z=Q+p.width+2*T-P-A-E,Y=G+p.height+2*L-w-O-S;n.left=Math.max(n.left,Q),n.top=Math.max(n.top,G),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,Y)}}),n}function hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function mm(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[hm(e.width,o),hm(e.height,i)]}function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function qo(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function jr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function LT(e,t,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=he(s,2),c=l[0],u=l[1],p=h.useRef(0),d=h.useMemo(function(){return t?sf(t):[]},[t]),y=h.useRef({}),_=function(){y.current={}};e||_();var x=Zt(function(){if(t&&n&&e){let mn=function(Ii,mr){var no=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,Va=H.x+Ii,Ha=H.y+mr,Kl=Va+ae,Xl=Ha+F,Ae=Math.max(Va,no.left),We=Math.max(Ha,no.top),Nt=Math.min(Kl,no.right),Bt=Math.min(Xl,no.bottom);return Math.max(0,(Nt-Ae)*(Bt-We))},Lo=function(){Le=H.y+R,je=Le+F,De=H.x+N,qe=De+ae};var f,m,b,C,E=t,S=E.ownerDocument,w=Ma(E),O=w.getComputedStyle(E),P=O.width,A=O.height,T=O.position,L=E.style.left,D=E.style.top,Q=E.style.right,G=E.style.bottom,z=E.style.overflow,Y=ie(ie({},o[r]),i),ee=S.createElement("div");(f=E.parentElement)===null||f===void 0||f.appendChild(ee),ee.style.left="".concat(E.offsetLeft,"px"),ee.style.top="".concat(E.offsetTop,"px"),ee.style.position=T,ee.style.height="".concat(E.offsetHeight,"px"),ee.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var U,j,M=n.getBoundingClientRect();M.x=(U=M.x)!==null&&U!==void 0?U:M.left,M.y=(j=M.y)!==null&&j!==void 0?j:M.top,W={x:M.x,y:M.y,width:M.width,height:M.height}}var H=E.getBoundingClientRect();H.x=(m=H.x)!==null&&m!==void 0?m:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var J=S.documentElement,B=J.clientWidth,q=J.clientHeight,K=J.scrollWidth,re=J.scrollHeight,se=J.scrollTop,k=J.scrollLeft,F=H.height,ae=H.width,Z=W.height,me=W.width,pe={left:0,top:0,right:B,bottom:q},Ce={left:-k,top:-se,right:K-k,bottom:re-se},Me=Y.htmlRegion,ce="visible",Ie="visibleFirst";Me!=="scroll"&&Me!==Ie&&(Me=ce);var Pe=Me===Ie,Oe=pm(Ce,d),ve=pm(pe,d),we=Me===ce?ve:Oe,Se=Pe?ve:we;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=L,E.style.top=D,E.style.right=Q,E.style.bottom=G,E.style.overflow=z,(C=E.parentElement)===null||C===void 0||C.removeChild(ee);var Ve=va(Math.round(ae/parseFloat(P)*1e3)/1e3),He=va(Math.round(F/parseFloat(A)*1e3)/1e3);if(Ve===0||He===0||ra(n)&&!Tl(n))return;var Xe=Y.offset,ft=Y.targetOffset,mt=mm(H,Xe),ct=he(mt,2),ze=ct[0],Ne=ct[1],st=mm(W,ft),rt=he(st,2),Ye=rt[0],Ot=rt[1];W.x-=Ye,W.y-=Ot;var Dt=Y.points||[],Ut=he(Dt,2),gt=Ut[0],$t=Ut[1],Qe=gm($t),lt=gm(gt),Tt=qo(W,Qe),Ge=qo(H,lt),ke=ie({},Y),N=Tt.x-Ge.x+ze,R=Tt.y-Ge.y+Ne,$=mn(N,R),V=mn(N,R,ve),te=qo(W,["t","l"]),le=qo(H,["t","l"]),ge=qo(W,["b","r"]),Fe=qo(H,["b","r"]),Je=Y.overflow||{},et=Je.adjustX,X=Je.adjustY,ue=Je.shiftX,ye=Je.shiftY,Re=function(mr){return typeof mr=="boolean"?mr:mr>=0},Le,je,De,qe;Lo();var _t=Re(X),dt=lt[0]===Qe[0];if(_t&&lt[0]==="t"&&(je>Se.bottom||y.current.bt)){var Ke=R;dt?Ke-=F-Z:Ke=te.y-Fe.y-Ne;var Mt=mn(N,Ke),hn=mn(N,Ke,ve);Mt>$||Mt===$&&(!Pe||hn>=V)?(y.current.bt=!0,R=Ke,Ne=-Ne,ke.points=[jr(lt,0),jr(Qe,0)]):y.current.bt=!1}if(_t&&lt[0]==="b"&&(Le<Se.top||y.current.tb)){var Gt=R;dt?Gt+=F-Z:Gt=ge.y-le.y-Ne;var At=mn(N,Gt),fr=mn(N,Gt,ve);At>$||At===$&&(!Pe||fr>=V)?(y.current.tb=!0,R=Gt,Ne=-Ne,ke.points=[jr(lt,0),jr(Qe,0)]):y.current.tb=!1}var dr=Re(et),Rn=lt[1]===Qe[1];if(dr&&lt[1]==="l"&&(qe>Se.right||y.current.rl)){var Dn=N;Rn?Dn-=ae-me:Dn=te.x-Fe.x-ze;var Mo=mn(Dn,R),Pr=mn(Dn,R,ve);Mo>$||Mo===$&&(!Pe||Pr>=V)?(y.current.rl=!0,N=Dn,ze=-ze,ke.points=[jr(lt,1),jr(Qe,1)]):y.current.rl=!1}if(dr&&lt[1]==="r"&&(De<Se.left||y.current.lr)){var Bn=N;Rn?Bn+=ae-me:Bn=ge.x-le.x-ze;var Zr=mn(Bn,R),pr=mn(Bn,R,ve);Zr>$||Zr===$&&(!Pe||pr>=V)?(y.current.lr=!0,N=Bn,ze=-ze,ke.points=[jr(lt,1),jr(Qe,1)]):y.current.lr=!1}Lo();var On=ue===!0?0:ue;typeof On=="number"&&(De<ve.left&&(N-=De-ve.left-ze,W.x+me<ve.left+On&&(N+=W.x-ve.left+me-On)),qe>ve.right&&(N-=qe-ve.right-ze,W.x>ve.right-On&&(N+=W.x-ve.right+On)));var yn=ye===!0?0:ye;typeof yn=="number"&&(Le<ve.top&&(R-=Le-ve.top-Ne,W.y+Z<ve.top+yn&&(R+=W.y-ve.top+Z-yn)),je>ve.bottom&&(R-=je-ve.bottom-Ne,W.y>ve.bottom-yn&&(R+=W.y-ve.bottom+yn)));var Nr=H.x+N,hr=Nr+ae,$n=H.y+R,Ti=$n+F,jo=W.x,Pi=jo+me,eo=W.y,St=eo+Z,ut=Math.max(Nr,jo),wt=Math.min(hr,Pi),Qt=(ut+wt)/2,en=Qt-Nr,Ir=Math.max($n,eo),Ar=Math.min(Ti,St),Ni=(Ir+Ar)/2,ko=Ni-$n;a==null||a(t,ke);var Mr=Ee.right-H.x-(N+H.width),an=Ee.bottom-H.y-(R+H.height);Ve===1&&(N=Math.round(N),Mr=Math.round(Mr)),He===1&&(R=Math.round(R),an=Math.round(an));var to={ready:!0,offsetX:N/Ve,offsetY:R/He,offsetR:Mr/Ve,offsetB:an/He,arrowX:en/Ve,arrowY:ko/He,scaleX:Ve,scaleY:He,align:ke};u(to)}}),g=function(){p.current+=1;var m=p.current;Promise.resolve().then(function(){p.current===m&&x()})},v=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return Xt(v,[r]),Xt(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function FT(e,t,n,r,o){Xt(function(){if(e&&t&&n){let p=function(){r(),o()};var i=t,a=n,s=sf(i),l=sf(a),c=Ma(a),u=new Set([c].concat(xe(s),xe(l)));return u.forEach(function(d){d.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function DT(e,t,n,r,o,i,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!o||i)){var c=function(v){var f;l.current&&!a(((f=v.composedPath)===null||f===void 0||(f=f.call(v))===null||f===void 0?void 0:f[0])||v.target)&&s(!1)},u=Ma(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var p=Gs(n);if(p&&(p.addEventListener("mousedown",c,!0),p.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,_=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),x=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Vr(_===x,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),p&&(p.removeEventListener("mousedown",c,!0),p.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var BT=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pl,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,p=n.popupVisible,d=n.defaultPopupVisible,y=n.onPopupVisibleChange,_=n.afterPopupVisibleChange,x=n.mouseEnterDelay,g=n.mouseLeaveDelay,v=g===void 0?.1:g,f=n.focusDelay,m=n.blurDelay,b=n.mask,C=n.maskClosable,E=C===void 0?!0:C,S=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,T=n.popupClassName,L=n.popupStyle,D=n.popupPlacement,Q=n.builtinPlacements,G=Q===void 0?{}:Q,z=n.popupAlign,Y=n.zIndex,ee=n.stretch,W=n.getPopupClassNameFromAlign,U=n.fresh,j=n.alignPoint,M=n.onPopupClick,H=n.onPopupAlign,J=n.arrow,B=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,re=n.popupAnimation,se=n.maskTransitionName,k=n.maskAnimation,F=n.className,ae=n.getTriggerDOMNode,Z=nt(n,BT),me=O||P||!1,pe=h.useState(!1),Ce=he(pe,2),Me=Ce[0],ce=Ce[1];Xt(function(){ce(Yb())},[]);var Ie=h.useRef({}),Pe=h.useContext(um),Oe=h.useMemo(function(){return{registerSubPopup:function(We,Nt){Ie.current[We]=Nt,Pe==null||Pe.registerSubPopup(We,Nt)}}},[Pe]),ve=db(),we=h.useState(null),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useRef(null),Xe=Zt(function(Ae){He.current=Ae,ra(Ae)&&Ee!==Ae&&Ve(Ae),Pe==null||Pe.registerSubPopup(ve,Ae)}),ft=h.useState(null),mt=he(ft,2),ct=mt[0],ze=mt[1],Ne=h.useRef(null),st=Zt(function(Ae){ra(Ae)&&ct!==Ae&&(ze(Ae),Ne.current=Ae)}),rt=h.Children.only(a),Ye=(rt==null?void 0:rt.props)||{},Ot={},Dt=Zt(function(Ae){var We,Nt,Bt=ct;return(Bt==null?void 0:Bt.contains(Ae))||((We=Gs(Bt))===null||We===void 0?void 0:We.host)===Ae||Ae===Bt||(Ee==null?void 0:Ee.contains(Ae))||((Nt=Gs(Ee))===null||Nt===void 0?void 0:Nt.host)===Ae||Ae===Ee||Object.values(Ie.current).some(function(jt){return(jt==null?void 0:jt.contains(Ae))||Ae===jt})}),Ut=dm(i,B,re,K),gt=dm(i,q,k,se),$t=h.useState(d||!1),Qe=he($t,2),lt=Qe[0],Tt=Qe[1],Ge=p??lt,ke=Zt(function(Ae){p===void 0&&Tt(Ae)});Xt(function(){Tt(p||!1)},[p]);var N=h.useRef(Ge);N.current=Ge;var R=h.useRef([]);R.current=[];var $=Zt(function(Ae){var We;ke(Ae),((We=R.current[R.current.length-1])!==null&&We!==void 0?We:Ge)!==Ae&&(R.current.push(Ae),y==null||y(Ae))}),V=h.useRef(),te=function(){clearTimeout(V.current)},le=function(We){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Nt===0?$(We):V.current=setTimeout(function(){$(We)},Nt*1e3)};h.useEffect(function(){return te},[]);var ge=h.useState(!1),Fe=he(ge,2),Je=Fe[0],et=Fe[1];Xt(function(Ae){(!Ae||Ge)&&et(!0)},[Ge]);var X=h.useState(null),ue=he(X,2),ye=ue[0],Re=ue[1],Le=h.useState(null),je=he(Le,2),De=je[0],qe=je[1],_t=function(We){qe([We.clientX,We.clientY])},dt=LT(Ge,Ee,j&&De!==null?De:ct,D,G,z,H),Ke=he(dt,11),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3],fr=Ke[4],dr=Ke[5],Rn=Ke[6],Dn=Ke[7],Mo=Ke[8],Pr=Ke[9],Bn=Ke[10],Zr=MT(Me,l,c,u),pr=he(Zr,2),On=pr[0],yn=pr[1],Nr=On.has("click"),hr=yn.has("click")||yn.has("contextMenu"),$n=Zt(function(){Je||Bn()}),Ti=function(){N.current&&j&&hr&&le(!1)};FT(Ge,ct,Ee,$n,Ti),Xt(function(){$n()},[De,D]),Xt(function(){Ge&&!(G!=null&&G[D])&&$n()},[JSON.stringify(z)]);var jo=h.useMemo(function(){var Ae=kT(G,i,Pr,j);return de(Ae,W==null?void 0:W(Pr))},[Pr,W,G,i,j]);h.useImperativeHandle(r,function(){return{nativeElement:Ne.current,popupElement:He.current,forceAlign:$n}});var Pi=h.useState(0),eo=he(Pi,2),St=eo[0],ut=eo[1],wt=h.useState(0),Qt=he(wt,2),en=Qt[0],Ir=Qt[1],Ar=function(){if(ee&&ct){var We=ct.getBoundingClientRect();ut(We.width),Ir(We.height)}},Ni=function(){Ar(),$n()},ko=function(We){et(!1),Bn(),_==null||_(We)},Mr=function(){return new Promise(function(We){Ar(),Re(function(){return We})})};Xt(function(){ye&&(Bn(),ye(),Re(null))},[ye]);function an(Ae,We,Nt,Bt){Ot[Ae]=function(jt){var Wa;Bt==null||Bt(jt),le(We,Nt);for(var Yl=arguments.length,Sp=new Array(Yl>1?Yl-1:0),Ua=1;Ua<Yl;Ua++)Sp[Ua-1]=arguments[Ua];(Wa=Ye[Ae])===null||Wa===void 0||Wa.call.apply(Wa,[Ye,jt].concat(Sp))}}(Nr||hr)&&(Ot.onClick=function(Ae){var We;N.current&&hr?le(!1):!N.current&&Nr&&(_t(Ae),le(!0));for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onClick)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),DT(Ge,hr,ct,Ee,b,E,Dt,le);var to=On.has("hover"),mn=yn.has("hover"),Lo,Ii;to&&(an("onMouseEnter",!0,x,function(Ae){_t(Ae)}),an("onPointerEnter",!0,x,function(Ae){_t(Ae)}),Lo=function(We){(Ge||Je)&&Ee!==null&&Ee!==void 0&&Ee.contains(We.target)&&le(!0,x)},j&&(Ot.onMouseMove=function(Ae){var We;(We=Ye.onMouseMove)===null||We===void 0||We.call(Ye,Ae)})),mn&&(an("onMouseLeave",!1,v),an("onPointerLeave",!1,v),Ii=function(){le(!1,v)}),On.has("focus")&&an("onFocus",!0,f),yn.has("focus")&&an("onBlur",!1,m),On.has("contextMenu")&&(Ot.onContextMenu=function(Ae){var We;N.current&&yn.has("contextMenu")?le(!1):(_t(Ae),le(!0)),Ae.preventDefault();for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onContextMenu)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),F&&(Ot.className=de(Ye.className,F));var mr=ie(ie({},Ye),Ot),no={},Va=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Va.forEach(function(Ae){Z[Ae]&&(no[Ae]=function(){for(var We,Nt=arguments.length,Bt=new Array(Nt),jt=0;jt<Nt;jt++)Bt[jt]=arguments[jt];(We=mr[Ae])===null||We===void 0||We.call.apply(We,[mr].concat(Bt)),Z[Ae].apply(Z,Bt)})});var Ha=h.cloneElement(rt,ie(ie({},mr),no)),Kl={x:dr,y:Rn},Xl=J?ie({},J!==!0?J:{}):null;return h.createElement(h.Fragment,null,h.createElement(cr,{disabled:!Ge,ref:st,onResize:Ni},h.createElement(n0,{getTriggerDOMNode:ae},Ha)),h.createElement(um.Provider,{value:Oe},h.createElement(t0,{portal:e,ref:Xe,prefixCls:i,popup:A,className:de(T,jo),style:L,target:ct,onMouseEnter:Lo,onMouseLeave:Ii,onPointerEnter:Lo,zIndex:Y,open:Ge,keepDom:Je,fresh:U,onClick:M,mask:b,motion:Ut,maskMotion:gt,onVisibleChanged:ko,onPrepare:Mr,forceRender:w,autoDestroy:me,getPopupContainer:S,align:Pr,arrow:Xl,arrowPos:Kl,ready:Mt,offsetX:hn,offsetY:Gt,offsetR:At,offsetB:fr,onAlign:$n,stretch:ee,targetWidth:St/Dn,targetHeight:en/Mo})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const xd=zT(Pl);function lf(e,t,n){return de({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Sd=(e,t)=>t||e,r0=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=I.useContext(Ue),s=I.useContext(Eb),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=kS.includes(c);return[c,u]};var qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},VT=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:qT}))},o0=h.forwardRef(VT);ne.env.NODE_ENV!=="production"&&(o0.displayName="SearchOutlined");const ya=["xxl","xl","lg","md","sm","xs"],HT=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),WT=e=>{const t=e,n=[].concat(ya).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function UT(){const[,e]=Jn(),t=HT(WT(e));return I.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const Zs=e=>e?typeof e=="function"?e():e:null;function Ed(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return h.createElement("div",{className:de("".concat(n,"-content"),i),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Vo={shiftX:64,adjustY:1},Ho={adjustX:1,shiftY:!0},Pn=[0,0],GT={left:{points:["cr","cl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},right:{points:["cl","cr"],overflow:Ho,offset:[4,0],targetOffset:Pn},top:{points:["bc","tc"],overflow:Vo,offset:[0,-4],targetOffset:Pn},bottom:{points:["tc","bc"],overflow:Vo,offset:[0,4],targetOffset:Pn},topLeft:{points:["bl","tl"],overflow:Vo,offset:[0,-4],targetOffset:Pn},leftTop:{points:["tr","tl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},topRight:{points:["br","tr"],overflow:Vo,offset:[0,-4],targetOffset:Pn},rightTop:{points:["tl","tr"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomRight:{points:["tr","br"],overflow:Vo,offset:[0,4],targetOffset:Pn},rightBottom:{points:["bl","br"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomLeft:{points:["tl","bl"],overflow:Vo,offset:[0,4],targetOffset:Pn},leftBottom:{points:["br","bl"],overflow:Ho,offset:[-4,0],targetOffset:Pn}},KT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],XT=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,p=t.prefixCls,d=p===void 0?"rc-tooltip":p,y=t.children,_=t.onVisibleChange,x=t.afterVisibleChange,g=t.transitionName,v=t.animation,f=t.motion,m=t.placement,b=m===void 0?"right":m,C=t.align,E=C===void 0?{}:C,S=t.destroyTooltipOnHide,w=S===void 0?!1:S,O=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,L=t.id,D=t.showArrow,Q=D===void 0?!0:D,G=nt(t,KT),z=I.useRef(null);I.useImperativeHandle(n,function(){return z.current});var Y=ie({},G);"visible"in t&&(Y.popupVisible=t.visible);var ee=function(){return h.createElement(Ed,{key:"content",prefixCls:d,id:L,overlayInnerStyle:A},T)};return h.createElement(xd,Te({popupClassName:r,prefixCls:d,popup:ee,action:i,builtinPlacements:GT,popupPlacement:b,ref:z,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:_,afterPopupVisibleChange:x,popupTransitionName:g,popupAnimation:v,popupMotion:f,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:Q},Y),y)};const YT=I.forwardRef(XT);function i0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-c,d=u,y=2*o-s,_=l,x=2*o-i,g=a,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m=`polygon(${f}px 100%, 50% ${f}px, ${2*o-f}px 100%, ${f}px 100%)`,b=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${p} ${d} L ${y} ${_} A ${r} ${r} 0 0 0 ${x} ${g} Z')`;return{arrowShadowWidth:v,arrowPath:b,arrowPolygon:m}}const QT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},a0=8;function Rd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?a0:r}}function as(e,t){return e?t:{}}function s0(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QT(e,t,o)),{"&:before":{background:t}})]},as(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),as(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function JT(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const vm={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ZT={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},eP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(vm).forEach(c=>{const u=r&&ZT[c]||vm[c],p=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=p,eP.has(c)&&(p.autoArrow=!1),c){case"top":case"topLeft":case"topRight":p.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+o;break}const d=Rd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":p.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=d.arrowOffsetHorizontal*2-s;break}p.overflow=JT(c,d,t,n),a&&(p.htmlRegion="visibleFirst")}),l}const nP=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${_e(e.calc(c).div(2).equal())} ${_e(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,a0)}},[`${t}-content`]:{position:"relative"}}),Cl(e,(p,d)=>{let{darkColor:y}=d;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rP=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Rd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),i0(Ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),l0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return un("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=Ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[nP(s),_d(r,"zoom-big-fast")]},rP,{resetStyle:!1,injectStyle:t})(e)},oP=ha.map(e=>`${e}-inverse`),iP=["success","processing","error","default","warning"];function Al(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xe(oP),xe(ha)).includes(e):ha.includes(e)}function aP(e){return iP.includes(e)}function c0(e,t){const n=Al(t),r=de({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const sP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("tooltip",t),[c,u,p]=l0(l),d=c0(l,i),y=d.arrowStyle,_=Object.assign(Object.assign({},a),d.overlayStyle),x=de(u,p,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(h.createElement("div",{className:x,style:y},h.createElement("div",{className:`${l}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:_}),o)))};var lP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:y,arrow:_=!0,title:x,overlay:g,builtinPlacements:v,arrowPointAtCenter:f=!1,autoAdjustOverflow:m=!0}=e,b=!!_,[,C]=Jn(),{getPopupContainer:E,getPrefixCls:S,direction:w}=h.useContext(Ue),O=Pt("Tooltip"),P=h.useRef(null),A=()=>{var ve;(ve=P.current)===null||ve===void 0||ve.forceAlign()};h.useImperativeHandle(t,()=>{var ve;return{forceAlign:A,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(ve=P.current)===null||ve===void 0?void 0:ve.nativeElement}}),ne.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ve=>{let[we,Se]=ve;O.deprecated(!(we in e),we,Se)}),ne.env.NODE_ENV!=="production"&&O(!y||typeof y=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ne.env.NODE_ENV!=="production"&&O(!_||typeof _=="boolean"||!("arrowPointAtCenter"in _),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[T,L]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!x&&!g&&x!==0,Q=ve=>{var we,Se;L(D?!1:ve),D||((we=e.onOpenChange)===null||we===void 0||we.call(e,ve),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,ve))},G=h.useMemo(()=>{var ve,we;let Se=f;return typeof _=="object"&&(Se=(we=(ve=_.pointAtCenter)!==null&&ve!==void 0?ve:_.arrowPointAtCenter)!==null&&we!==void 0?we:f),v||tP({arrowPointAtCenter:Se,autoAdjustOverflow:m,arrowWidth:b?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[f,_,v,C]),z=h.useMemo(()=>x===0?x:g||x||"",[g,x]),Y=h.createElement(Ys,{space:!0},typeof z=="function"?z():z),{getPopupContainer:ee,placement:W="top",mouseEnterDelay:U=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:H}=e,J=lP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=S("tooltip",o),q=S(),K=e["data-popover-inject"];let re=T;!("open"in e)&&!("visible"in e)&&D&&(re=!1);const se=h.isValidElement(u)&&!Dy(u)?u:h.createElement("span",null,u),k=se.props,F=!k.className||typeof k.className=="string"?de(k.className,i||`${B}-open`):k.className,[ae,Z,me]=l0(B,!K),pe=c0(B,l),Ce=pe.arrowStyle,Me=Object.assign(Object.assign({},c),pe.overlayStyle),ce=de(s,{[`${B}-rtl`]:w==="rtl"},pe.className,H,Z,me),[Ie,Pe]=Gy("Tooltip",J.zIndex),Oe=h.createElement(YT,Object.assign({},J,{zIndex:Ie,showArrow:b,placement:W,mouseEnterDelay:U,mouseLeaveDelay:j,prefixCls:B,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},Ce),M),getTooltipContainer:ee||a||E,ref:P,builtinPlacements:G,overlay:Y,visible:re,onVisibleChange:Q,afterVisibleChange:p??d,overlayInnerStyle:Me,arrowContent:h.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:So(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?Er(se,{className:F}):se);return ae(h.createElement(El.Provider,{value:Pe},Oe))}),Ur=cP;ne.env.NODE_ENV!=="production"&&(Ur.displayName="Tooltip");Ur._InternalPanelDoNotUseOrYouWillBeFired=sP;const uP=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:p,popoverBg:d,titleBorderBottom:y,innerContentPadding:_,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},vn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:y,padding:x},[`${t}-inner-content`]:{color:n,padding:_}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fP=e=>{const{componentCls:t}=e;return{[t]:ha.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},dP=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:p}=e,d=n-r,y=d/2,_=d/2-t,x=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},i0(e)),Rd({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${y}px ${x}px ${_}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${p}px ${x}px`:0})},u0=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ft(e,{popoverBg:t,popoverColor:n});return[uP(r),fP(r),_d(r,"zoom-big")]},dP,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var pP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f0=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:h.createElement(h.Fragment,null,t&&h.createElement("div",{className:`${r}-title`},t),n&&h.createElement("div",{className:`${r}-inner-content`},n))},hP=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Zs(a),u=Zs(s),p=de(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return h.createElement("div",{className:p,style:o},h.createElement("div",{className:`${n}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:t,prefixCls:n}),l||h.createElement(f0,{prefixCls:n,title:c,content:u})))},mP=e=>{const{prefixCls:t,className:n}=e,r=pP(e,["prefixCls","className"]),{getPrefixCls:o}=h.useContext(Ue),i=o("popover",t),[a,s,l]=u0(i);return a(h.createElement(hP,Object.assign({},r,{prefixCls:i,hashId:s,className:de(n,l)})))};var gP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:p=.1,mouseLeaveDelay:d=.1,onOpenChange:y,overlayStyle:_={}}=e,x=gP(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=h.useContext(Ue),v=g("popover",o),[f,m,b]=u0(v),C=g(),E=de(s,m,b),[S,w]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(D,Q)=>{w(D,!0),y==null||y(D,Q)},P=D=>{D.keyCode===$e.ESC&&O(!1,D)},A=D=>{O(D)},T=Zs(i),L=Zs(a);return f(h.createElement(Ur,Object.assign({placement:l,trigger:c,mouseEnterDelay:p,mouseLeaveDelay:d,overlayStyle:_},x,{prefixCls:v,overlayClassName:E,ref:t,open:S,onOpenChange:A,overlay:T||L?h.createElement(f0,{prefixCls:v,title:T,content:L}):null,transitionName:So(C,"zoom-big",x.transitionName),"data-popover-inject":!0}),Er(u,{onKeyDown:D=>{var Q,G;h.isValidElement(u)&&((G=u==null?void 0:(Q=u.props).onKeyDown)===null||G===void 0||G.call(Q,D)),P(D)}})))}),Od=vP;Od._InternalPanelDoNotUseOrYouWillBeFired=mP;ne.env.NODE_ENV!=="production"&&(Od.displayName="Popover");const yP=new at("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bP=new at("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),_P=new at("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wP=new at("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),CP=new at("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xP=new at("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SP=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:p,marginXS:d,calc:y}=e,_=`${r}-scroll-number`,x=Cl(e,(g,v)=>{let{darkColor:f}=v;return{[`&${t} ${t}-color-${g}`]:{background:f,[`&:not(${t}-count)`]:{color:f},"a:hover &":{background:f}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:a,lineHeight:_e(p),borderRadius:y(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${_}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:xP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yP,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:_P,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:CP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${_}-custom-component, ${t}-count`]:{transform:"none"},[`${_}-custom-component, ${_}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[_]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${_}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${_}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${_}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${_}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},d0=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorBgContainer,l=e.colorError,c=e.colorErrorHover;return Ft(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},p0=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},EP=un("Badge",e=>{const t=d0(e);return SP(t)},p0),RP=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Cl(e,(c,u)=>{let{darkColor:p}=u;return{[`&${a}-color-${c}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},OP=un(["Badge","Ribbon"],e=>{const t=d0(e);return RP(t)},p0),h0=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=h.useContext(Ue),p=c("ribbon",n),d=`${p}-wrapper`,[y,_,x]=OP(p,d),g=Al(o,!1),v=de(p,`${p}-placement-${s}`,{[`${p}-rtl`]:u==="rtl",[`${p}-color-${o}`]:g},t),f={},m={};return o&&!g&&(f.background=o,m.color=o),y(h.createElement("div",{className:de(d,l,_,x)},i,h.createElement("div",{className:de(v,_),style:Object.assign(Object.assign({},f),r)},h.createElement("span",{className:`${p}-text`},a),h.createElement("div",{className:`${p}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(h0.displayName="Ribbon");const ym=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),h.createElement("span",{style:i,className:de(`${t}-only-unit`,{current:r})},n)};function $P(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const TP=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=h.useState(o),[l,c]=h.useState(i),u=()=>{s(o),c(i)};h.useEffect(()=>{const y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let p,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))p=[h.createElement(ym,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{p=[];const y=o+10,_=[];for(let v=o;v<=y;v+=1)_.push(v);const x=_.findIndex(v=>v%10===a);p=_.map((v,f)=>{const m=v%10;return h.createElement(ym,Object.assign({},e,{key:v,value:m,offset:f-x,current:f===x}))});const g=l<i?1:-1;d={transform:`translateY(${-$P(a,o,g)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},p)};var PP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NP=h.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,p=PP(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=h.useContext(Ue),y=d("scroll-number",n),_=Object.assign(Object.assign({},p),{"data-show":l,style:a,className:de(y,o,i),title:s});let x=r;if(r&&Number(r)%1===0){const g=String(r).split("");x=h.createElement("bdi",null,g.map((v,f)=>h.createElement(TP,{prefixCls:y,count:Number(r),value:v,key:g.length-f})))}return a!=null&&a.borderColor&&(_.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Er(u,g=>({className:de(`${y}-custom-component`,g==null?void 0:g.className,i)})):h.createElement(c,Object.assign({},_,{ref:t}),x)});var IP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AP=h.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:p,color:d,count:y=null,overflowCount:_=99,dot:x=!1,size:g="default",title:v,offset:f,style:m,className:b,rootClassName:C,classNames:E,styles:S,showZero:w=!1}=e,O=IP(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:A,badge:T}=h.useContext(Ue),L=P("badge",s),[D,Q,G]=EP(L),z=y>_?`${_}+`:y,Y=z==="0"||z===0,ee=y===null||Y&&!w,W=(u!=null||d!=null)&&ee,U=x&&!Y,j=U?"":z,M=I.useMemo(()=>(j==null||j===""||Y&&!w)&&!U,[j,Y,w,U]),H=I.useRef(y);M||(H.current=y);const J=H.current,B=I.useRef(j);M||(B.current=j);const q=B.current,K=I.useRef(U);M||(K.current=U);const re=I.useMemo(()=>{if(!f)return Object.assign(Object.assign({},T==null?void 0:T.style),m);const Ce={marginTop:f[1]};return A==="rtl"?Ce.left=parseInt(f[0],10):Ce.right=-parseInt(f[0],10),Object.assign(Object.assign(Object.assign({},Ce),T==null?void 0:T.style),m)},[A,f,m,T==null?void 0:T.style]),se=v??(typeof J=="string"||typeof J=="number"?J:void 0),k=M||!p?null:h.createElement("span",{className:`${L}-status-text`},p),F=!J||typeof J!="object"?void 0:Er(J,Ce=>({style:Object.assign(Object.assign({},re),Ce.style)})),ae=Al(d,!1),Z=de(E==null?void 0:E.indicator,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:W,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=de(L,{[`${L}-status`]:W,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:A==="rtl"},b,C,T==null?void 0:T.className,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Q,G);if(!c&&W){const Ce=re.color;return D(h.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.root),re)}),h.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=T==null?void 0:T.styles)===null||i===void 0?void 0:i.indicator),me)}),p&&h.createElement("span",{style:{color:Ce},className:`${L}-status-text`},p)))}return D(h.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,h.createElement(Zn,{visible:!M,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:Me}=Ce;var ce,Ie;const Pe=P("scroll-number",l),Oe=K.current,ve=de(E==null?void 0:E.indicator,(ce=T==null?void 0:T.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${L}-dot`]:Oe,[`${L}-count`]:!Oe,[`${L}-count-sm`]:g==="small",[`${L}-multiple-words`]:!Oe&&q&&q.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae});let we=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Ie=T==null?void 0:T.styles)===null||Ie===void 0?void 0:Ie.indicator),re);return d&&!ae&&(we=we||{},we.background=d),h.createElement(NP,{prefixCls:Pe,show:!M,motionClassName:Me,className:ve,count:q,title:se,style:we,key:"scrollNumber"},F)}),k))}),ao=AP;ao.Ribbon=h0;ne.env.NODE_ENV!=="production"&&(ao.displayName="Badge");var MP=$e.ESC,jP=$e.TAB;function kP(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=h.useRef(!1),s=function(){if(t){var p,d;(p=n.current)===null||p===void 0||(d=p.focus)===null||d===void 0||d.call(p),r==null||r(!1)}},l=function(){var p;return(p=i.current)!==null&&p!==void 0&&p.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(p){switch(p.keyCode){case MP:s();break;case jP:{var d=!1;a.current||(d=l()),d?p.preventDefault():s();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Lt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var LP=I.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=I.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Yn(t,i==null?void 0:i.ref);return I.createElement(I.Fragment,null,r&&I.createElement("div",{className:"".concat(o,"-arrow")}),I.cloneElement(i,{ref:Kr(i)?a:void 0}))}),Wo={adjustX:1,adjustY:1},Uo=[0,0],FP={topLeft:{points:["bl","tl"],overflow:Wo,offset:[0,-4],targetOffset:Uo},top:{points:["bc","tc"],overflow:Wo,offset:[0,-4],targetOffset:Uo},topRight:{points:["br","tr"],overflow:Wo,offset:[0,-4],targetOffset:Uo},bottomLeft:{points:["tl","bl"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottom:{points:["tc","bc"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottomRight:{points:["tr","br"],overflow:Wo,offset:[0,4],targetOffset:Uo}},DP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function BP(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,p=u===void 0?"bottomLeft":u,d=e.placements,y=d===void 0?FP:d,_=e.getPopupContainer,x=e.showAction,g=e.hideAction,v=e.overlayClassName,f=e.overlayStyle,m=e.visible,b=e.trigger,C=b===void 0?["hover"]:b,E=e.autoFocus,S=e.overlay,w=e.children,O=e.onVisibleChange,P=nt(e,DP),A=I.useState(),T=he(A,2),L=T[0],D=T[1],Q="visible"in e?m:L,G=I.useRef(null),z=I.useRef(null),Y=I.useRef(null);I.useImperativeHandle(t,function(){return G.current});var ee=function(K){D(K),O==null||O(K)};kP({visible:Q,triggerRef:Y,onVisibleChange:ee,autoFocus:E,overlayRef:z});var W=function(K){var re=e.onOverlayClick;D(!1),re&&re(K)},U=function(){return I.createElement(LP,{ref:z,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?U:U()},M=function(){var K=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!re},H=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},J=I.cloneElement(w,{className:de((n=w.props)===null||n===void 0?void 0:n.className,Q&&H()),ref:Kr(w)?Yn(Y,w.ref):void 0}),B=g;return!B&&C.indexOf("contextMenu")!==-1&&(B=["click"]),I.createElement(xd,Te({builtinPlacements:y},P,{prefixCls:a,ref:G,popupClassName:de(v,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:f,action:C,showAction:x,hideAction:B,popupPlacement:p,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:Q,stretch:M()?"minWidth":"",popup:j(),onPopupVisibleChange:ee,onPopupClick:W,getPopupContainer:_}),J)}const zP=I.forwardRef(BP);var m0=h.createContext(null);function g0(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function v0(e){var t=h.useContext(m0);return g0(t,e)}var qP=["children","locked"],Xn=h.createContext(null);function VP(e,t){var n=ie({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ba(e){var t=e.children,n=e.locked,r=nt(e,qP),o=h.useContext(Xn),i=ml(function(){return VP(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!la(a[1],s[1],!0))});return h.createElement(Xn.Provider,{value:i},t)}var HP=[],y0=h.createContext(null);function Ml(){return h.useContext(y0)}var b0=h.createContext(HP);function ja(e){var t=h.useContext(b0);return h.useMemo(function(){return e!==void 0?[].concat(xe(t),[e]):t},[t,e])}var _0=h.createContext(null),$d=h.createContext({});function bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tl(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function WP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xe(e.querySelectorAll("*")).filter(function(r){return bm(r,t)});return bm(e,t)&&n.unshift(e),n}var cf=$e.LEFT,uf=$e.RIGHT,ff=$e.UP,Ns=$e.DOWN,Is=$e.ENTER,w0=$e.ESC,Fi=$e.HOME,Di=$e.END,_m=[ff,Ns,cf,uf];function UP(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",p="parent";if(e==="inline"&&r===Is)return{inlineTrigger:!0};var d=(o={},oe(o,ff,l),oe(o,Ns,c),o),y=(i={},oe(i,cf,n?c:l),oe(i,uf,n?l:c),oe(i,Ns,u),oe(i,Is,u),i),_=(a={},oe(a,ff,l),oe(a,Ns,c),oe(a,Is,u),oe(a,w0,p),oe(a,cf,n?u:p),oe(a,uf,n?p:u),a),x={inline:d,horizontal:y,vertical:_,inlineSub:d,horizontalSub:_,verticalSub:_},g=(s=x["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function GP(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function KP(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Td(e,t){var n=WP(e,!0);return n.filter(function(r){return t.has(r)})}function wm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Td(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var df=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(g0(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function XP(e,t,n,r,o,i,a,s,l,c){var u=h.useRef(),p=h.useRef();p.current=t;var d=function(){Lt.cancel(u.current)};return h.useEffect(function(){return function(){d()}},[]),function(y){var _=y.which;if([].concat(_m,[Is,w0,Fi,Di]).includes(_)){var x=i(),g=df(x,r),v=g,f=v.elements,m=v.key2element,b=v.element2key,C=m.get(t),E=KP(C,f),S=b.get(E),w=UP(e,a(S,!0).length===1,n,_);if(!w&&_!==Fi&&_!==Di)return;(_m.includes(_)||[Fi,Di].includes(_))&&y.preventDefault();var O=function(z){if(z){var Y=z,ee=z.querySelector("a");ee!=null&&ee.getAttribute("href")&&(Y=ee);var W=b.get(z);s(W),d(),u.current=Lt(function(){p.current===W&&Y.focus()})}};if([Fi,Di].includes(_)||w.sibling||!E){var P;!E||e==="inline"?P=o.current:P=GP(E);var A,T=Td(P,f);_===Fi?A=T[0]:_===Di?A=T[T.length-1]:A=wm(P,f,E,w.offset),O(A)}else if(w.inlineTrigger)l(S);else if(w.offset>0)l(S,!0),d(),u.current=Lt(function(){g=df(x,r);var G=E.getAttribute("aria-controls"),z=document.getElementById(G),Y=wm(z,g.elements);O(Y)},5);else if(w.offset<0){var L=a(S,!0),D=L[L.length-2],Q=m.get(D);l(D,!1),O(Q)}}c==null||c(y)}}function YP(e){Promise.resolve().then(e)}var Pd="__RC_UTIL_PATH_SPLIT__",Cm=function(t){return t.join(Pd)},QP=function(t){return t.split(Pd)},pf="rc-menu-more";function JP(){var e=h.useState({}),t=he(e,2),n=t[1],r=I.useRef(new Map),o=I.useRef(new Map),i=h.useState([]),a=he(i,2),s=a[0],l=a[1],c=I.useRef(0),u=I.useRef(!1),p=function(){u.current||n({})},d=I.useCallback(function(m,b){ne.env.NODE_ENV!=="production"&&pt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(b.join(" > "),"]"));var C=Cm(b);o.current.set(C,m),r.current.set(m,C),c.current+=1;var E=c.current;YP(function(){E===c.current&&p()})},[]),y=I.useCallback(function(m,b){var C=Cm(b);o.current.delete(C),r.current.delete(m)},[]),_=I.useCallback(function(m){l(m)},[]),x=I.useCallback(function(m,b){var C=r.current.get(m)||"",E=QP(C);return b&&s.includes(E[0])&&E.unshift(pf),E},[s]),g=I.useCallback(function(m,b){return m.filter(function(C){return C!==void 0}).some(function(C){var E=x(C,!0);return E.includes(b)})},[x]),v=function(){var b=xe(r.current.keys());return s.length&&b.push(pf),b},f=I.useCallback(function(m){var b="".concat(r.current.get(m)).concat(Pd),C=new Set;return xe(o.current.keys()).forEach(function(E){E.startsWith(b)&&C.add(o.current.get(E))}),C},[]);return h.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:_,isSubPathKey:g,getKeyPath:x,getKeys:v,getSubPathKeys:f}}function Hi(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var ZP=Math.random().toFixed(5).toString().slice(2),xm=0;function eN(e){var t=Kn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return h.useEffect(function(){xm+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(ZP,"-").concat(xm);o("rc-menu-uuid-".concat(i))},[]),r}function C0(e,t,n,r){var o=h.useContext(Xn),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function x0(e){var t=h.useContext(Xn),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function S0(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=h.createElement(t,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var tN=["item"];function el(e){var t=e.item,n=nt(e,tN);return Object.defineProperty(n,"item",{get:function(){return pt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var nN=["title","attribute","elementRef"],rN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],oN=["active"],iN=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=nt(o,nN),c=Qn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Sr.Item,Te({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(h.Component),aN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,p=e.onMouseEnter,d=e.onMouseLeave,y=e.onClick,_=e.onKeyDown,x=e.onFocus,g=nt(e,rN),v=v0(i),f=h.useContext(Xn),m=f.prefixCls,b=f.onItemClick,C=f.disabled,E=f.overflowDisabled,S=f.itemIcon,w=f.selectedKeys,O=f.onActive,P=h.useContext($d),A=P._internalRenderMenuItem,T="".concat(m,"-item"),L=h.useRef(),D=h.useRef(),Q=C||s,G=bi(t,D),z=ja(i);ne.env.NODE_ENV!=="production"&&a&&pt(!1,"MenuItem should not leave undefined `key`.");var Y=function(k){return{key:i,keyPath:xe(z).reverse(),item:L.current,domEvent:k}},ee=l||S,W=C0(i,Q,p,d),U=W.active,j=nt(W,oN),M=w.includes(i),H=x0(z.length),J=function(k){if(!Q){var F=Y(k);y==null||y(el(F)),b(F)}},B=function(k){if(_==null||_(k),k.which===$e.ENTER){var F=Y(k);y==null||y(el(F)),b(F)}},q=function(k){O(i),x==null||x(k)},K={};e.role==="option"&&(K["aria-selected"]=M);var re=h.createElement(iN,Te({ref:L,elementRef:G,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&v?null:v},g,j,K,{component:"li","aria-disabled":s,style:ie(ie({},H),r),className:de(T,(n={},oe(n,"".concat(T,"-active"),U),oe(n,"".concat(T,"-selected"),M),oe(n,"".concat(T,"-disabled"),Q),n),o),onClick:J,onKeyDown:B,onFocus:q}),c,h.createElement(S0,{props:ie(ie({},e),{},{isSelected:M}),icon:ee}));return A&&(re=A(re,e,{selected:M})),re});function sN(e,t){var n=e.eventKey,r=Ml(),o=ja(n);return h.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:h.createElement(aN,Te({},e,{ref:t}))}const jl=h.forwardRef(sN);var lN=["className","children"],cN=function(t,n){var r=t.className,o=t.children,i=nt(t,lN),a=h.useContext(Xn),s=a.prefixCls,l=a.mode,c=a.rtl;return h.createElement("ul",Te({className:de(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Nd=h.forwardRef(cN);Nd.displayName="SubMenuList";function Id(e,t){return wo(e).map(function(n,r){if(h.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(xe(t),[r]).join("-")));var c={key:s,eventKey:s};return ne.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),h.cloneElement(n,c)}return n})}var sn={adjustX:1,adjustY:1},uN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},leftTop:{points:["tr","tl"],overflow:sn},leftBottom:{points:["br","bl"],overflow:sn},rightTop:{points:["tl","tr"],overflow:sn},rightBottom:{points:["bl","br"],overflow:sn}},fN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},rightTop:{points:["tr","tl"],overflow:sn},rightBottom:{points:["br","bl"],overflow:sn},leftTop:{points:["tl","tr"],overflow:sn},leftBottom:{points:["bl","br"],overflow:sn}};function E0(e,t,n){if(t)return t;if(n)return n[e]||n.other}var dN={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pN(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,p=h.useContext(Xn),d=p.getPopupContainer,y=p.rtl,_=p.subMenuOpenDelay,x=p.subMenuCloseDelay,g=p.builtinPlacements,v=p.triggerSubMenuAction,f=p.forceSubMenuRender,m=p.rootClassName,b=p.motion,C=p.defaultMotions,E=h.useState(!1),S=he(E,2),w=S[0],O=S[1],P=ie(y?ie({},fN):ie({},uN),g),A=dN[c],T=E0(c,b,C),L=h.useRef(T);c!=="inline"&&(L.current=T);var D=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Q=h.useRef();return h.useEffect(function(){return Q.current=Lt(function(){O(n)}),function(){Lt.cancel(Q.current)}},[n]),h.createElement(xd,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:P,popupPlacement:A,popupVisible:w,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:_,mouseLeaveDelay:x,onPopupVisibleChange:u,forceRender:f,popupMotion:D,fresh:!0},r)}function hN(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=h.useContext(Xn),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,p=a.mode,d=h.useRef(!1);d.current=p===i;var y=h.useState(!d.current),_=he(y,2),x=_[0],g=_[1],v=d.current?n:!1;h.useEffect(function(){d.current&&g(!1)},[p]);var f=ie({},E0(i,c,u));r.length>1&&(f.motionAppear=!1);var m=f.onVisibleChanged;return f.onVisibleChanged=function(b){return!d.current&&!b&&g(!0),m==null?void 0:m(b)},x?null:h.createElement(ba,{mode:i,locked:!d.current},h.createElement(Zn,Te({visible:v},f,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(b){var C=b.className,E=b.style;return h.createElement(Nd,{id:t,className:C,style:E},o)}))}var mN=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gN=["active"],vN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,p=e.itemIcon,d=e.expandIcon,y=e.popupClassName,_=e.popupOffset,x=e.popupStyle,g=e.onClick,v=e.onMouseEnter,f=e.onMouseLeave,m=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,E=nt(e,mN),S=v0(a),w=h.useContext(Xn),O=w.prefixCls,P=w.mode,A=w.openKeys,T=w.disabled,L=w.overflowDisabled,D=w.activeKey,Q=w.selectedKeys,G=w.itemIcon,z=w.expandIcon,Y=w.onItemClick,ee=w.onOpenChange,W=w.onActive,U=h.useContext($d),j=U._internalRenderSubMenuItem,M=h.useContext(_0),H=M.isSubPathKey,J=ja(),B="".concat(O,"-submenu"),q=T||l,K=h.useRef(),re=h.useRef();ne.env.NODE_ENV!=="production"&&s&&pt(!1,"SubMenu should not leave undefined `key`.");var se=p??G,k=d??z,F=A.includes(a),ae=!L&&F,Z=H(Q,a),me=C0(a,q,b,C),pe=me.active,Ce=nt(me,gN),Me=h.useState(!1),ce=he(Me,2),Ie=ce[0],Pe=ce[1],Oe=function(Ye){q||Pe(Ye)},ve=function(Ye){Oe(!0),v==null||v({key:a,domEvent:Ye})},we=function(Ye){Oe(!1),f==null||f({key:a,domEvent:Ye})},Se=h.useMemo(function(){return pe||(P!=="inline"?Ie||H([D],a):!1)},[P,pe,D,Ie,a,H]),Ee=x0(J.length),Ve=function(Ye){q||(m==null||m({key:a,domEvent:Ye}),P==="inline"&&ee(a,!F))},He=Hi(function(rt){g==null||g(el(rt)),Y(rt)}),Xe=function(Ye){P!=="inline"&&ee(a,Ye)},ft=function(){W(a)},mt=S&&"".concat(S,"-popup"),ct=h.createElement("div",Te({role:"menuitem",style:Ee,className:"".concat(B,"-title"),tabIndex:q?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":L&&S?null:S,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":mt,"aria-disabled":q,onClick:Ve,onFocus:ft},Ce),i,h.createElement(S0,{icon:P!=="horizontal"?k:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},h.createElement("i",{className:"".concat(B,"-arrow")}))),ze=h.useRef(P);if(P!=="inline"&&J.length>1?ze.current="vertical":ze.current=P,!L){var Ne=ze.current;ct=h.createElement(pN,{mode:Ne,prefixCls:B,visible:!c&&ae&&P!=="inline",popupClassName:y,popupOffset:_,popupStyle:x,popup:h.createElement(ba,{mode:Ne==="horizontal"?"vertical":Ne},h.createElement(Nd,{id:mt,ref:re},u)),disabled:q,onVisibleChange:Xe},ct)}var st=h.createElement(Sr.Item,Te({ref:t,role:"none"},E,{component:"li",style:r,className:de(B,"".concat(B,"-").concat(P),o,(n={},oe(n,"".concat(B,"-open"),ae),oe(n,"".concat(B,"-active"),Se),oe(n,"".concat(B,"-selected"),Z),oe(n,"".concat(B,"-disabled"),q),n)),onMouseEnter:ve,onMouseLeave:we}),ct,!L&&h.createElement(hN,{id:mt,open:ae,keyPath:J},u));return j&&(st=j(st,e,{selected:Z,active:Se,open:ae,disabled:q})),h.createElement(ba,{onItemClick:He,mode:P==="horizontal"?"vertical":P,itemIcon:se,expandIcon:k},st)}),kl=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=h.createElement(vN,Te({ref:t},e),i),h.createElement(b0.Provider,{value:o},s)});ne.env.NODE_ENV!=="production"&&(kl.displayName="SubMenu");function R0(e){var t=e.className,n=e.style,r=h.useContext(Xn),o=r.prefixCls,i=Ml();return i?null:h.createElement("li",{role:"separator",className:de("".concat(o,"-item-divider"),t),style:n})}var yN=["className","title","eventKey","children"],bN=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=nt(e,yN),a=h.useContext(Xn),s=a.prefixCls,l="".concat(s,"-item-group");return h.createElement("li",Te({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:de(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),Ad=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();return a?i:h.createElement(bN,Te({ref:t},Qn(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(Ad.displayName="MenuItemGroup");var _N=["label","children","key","type"];function hf(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,s){if(a&&Be(a)==="object"){var l=a,c=l.label,u=l.children,p=l.key,d=l.type,y=nt(l,_N),_=p??"tmp-".concat(s);return u||d==="group"?d==="group"?h.createElement(r,Te({key:_},y,{title:c}),hf(u,t)):h.createElement(o,Te({key:_},y,{title:c}),hf(u,t)):d==="divider"?h.createElement(i,Te({key:_},y)):h.createElement(n,Te({key:_},y),c)}return null}).filter(function(a){return a})}function Sm(e,t,n,r){var o=e,i=ie({divider:R0,item:jl,group:Ad,submenu:kl},r);return t&&(o=hf(t,i)),Id(o,n)}var wN=["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","_internalComponents"],ro=[],CN=h.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,p=u===void 0?0:u,d=o.items,y=o.children,_=o.direction,x=o.id,g=o.mode,v=g===void 0?"vertical":g,f=o.inlineCollapsed,m=o.disabled,b=o.disabledOverflow,C=o.subMenuOpenDelay,E=C===void 0?.1:C,S=o.subMenuCloseDelay,w=S===void 0?.1:S,O=o.forceSubMenuRender,P=o.defaultOpenKeys,A=o.openKeys,T=o.activeKey,L=o.defaultActiveFirst,D=o.selectable,Q=D===void 0?!0:D,G=o.multiple,z=G===void 0?!1:G,Y=o.defaultSelectedKeys,ee=o.selectedKeys,W=o.onSelect,U=o.onDeselect,j=o.inlineIndent,M=j===void 0?24:j,H=o.motion,J=o.defaultMotions,B=o.triggerSubMenuAction,q=B===void 0?"hover":B,K=o.builtinPlacements,re=o.itemIcon,se=o.expandIcon,k=o.overflowedIndicator,F=k===void 0?"...":k,ae=o.overflowedIndicatorPopupClassName,Z=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,Ce=o.onKeyDown,Me=o.openAnimation,ce=o.openTransitionName,Ie=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,Oe=o._internalComponents,ve=nt(o,wN),we=h.useMemo(function(){return[Sm(y,d,ro,Oe),Sm(y,d,ro,{})]},[y,d,Oe]),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useState(!1),Xe=he(He,2),ft=Xe[0],mt=Xe[1],ct=h.useRef(),ze=eN(x),Ne=_==="rtl";ne.env.NODE_ENV!=="production"&&pt(!Me&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=Kn(P,{value:A,postState:function(ut){return ut||ro}}),rt=he(st,2),Ye=rt[0],Ot=rt[1],Dt=function(ut){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qt(){Ot(ut),pe==null||pe(ut)}wt?_o.flushSync(Qt):Qt()},Ut=h.useState(Ye),gt=he(Ut,2),$t=gt[0],Qe=gt[1],lt=h.useRef(!1),Tt=h.useMemo(function(){return(v==="inline"||v==="vertical")&&f?["vertical",f]:[v,!1]},[v,f]),Ge=he(Tt,2),ke=Ge[0],N=Ge[1],R=ke==="inline",$=h.useState(ke),V=he($,2),te=V[0],le=V[1],ge=h.useState(N),Fe=he(ge,2),Je=Fe[0],et=Fe[1];h.useEffect(function(){le(ke),et(N),lt.current&&(R?Ot($t):Dt(ro))},[ke,N]);var X=h.useState(0),ue=he(X,2),ye=ue[0],Re=ue[1],Le=ye>=Ee.length-1||te!=="horizontal"||b;h.useEffect(function(){R&&Qe(Ye)},[Ye]),h.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var je=JP(),De=je.registerPath,qe=je.unregisterPath,_t=je.refreshOverflowKeys,dt=je.isSubPathKey,Ke=je.getKeyPath,Mt=je.getKeys,hn=je.getSubPathKeys,Gt=h.useMemo(function(){return{registerPath:De,unregisterPath:qe}},[De,qe]),At=h.useMemo(function(){return{isSubPathKey:dt}},[dt]);h.useEffect(function(){_t(Le?ro:Ee.slice(ye+1).map(function(St){return St.key}))},[ye,Le]);var fr=Kn(T||L&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:T}),dr=he(fr,2),Rn=dr[0],Dn=dr[1],Mo=Hi(function(St){Dn(St)}),Pr=Hi(function(){Dn(void 0)});I.useImperativeHandle(t,function(){return{list:ct.current,focus:function(ut){var wt,Qt=Mt(),en=df(Qt,ze),Ir=en.elements,Ar=en.key2element,Ni=en.element2key,ko=Td(ct.current,Ir),Mr=Rn??(ko[0]?Ni.get(ko[0]):(wt=Ee.find(function(mn){return!mn.props.disabled}))===null||wt===void 0?void 0:wt.key),an=Ar.get(Mr);if(Mr&&an){var to;an==null||(to=an.focus)===null||to===void 0||to.call(an,ut)}}}});var Bn=Kn(Y||[],{value:ee,postState:function(ut){return Array.isArray(ut)?ut:ut==null?ro:[ut]}}),Zr=he(Bn,2),pr=Zr[0],On=Zr[1],yn=function(ut){if(Q){var wt=ut.key,Qt=pr.includes(wt),en;z?Qt?en=pr.filter(function(Ar){return Ar!==wt}):en=[].concat(xe(pr),[wt]):en=[wt],On(en);var Ir=ie(ie({},ut),{},{selectedKeys:en});Qt?U==null||U(Ir):W==null||W(Ir)}!z&&Ye.length&&te!=="inline"&&Dt(ro)},Nr=Hi(function(St){me==null||me(el(St)),yn(St)}),hr=Hi(function(St,ut){var wt=Ye.filter(function(en){return en!==St});if(ut)wt.push(St);else if(te!=="inline"){var Qt=hn(St);wt=wt.filter(function(en){return!Qt.has(en)})}la(Ye,wt,!0)||Dt(wt,!0)}),$n=function(ut,wt){var Qt=wt??!Ye.includes(ut);hr(ut,Qt)},Ti=XP(te,Rn,Ne,ze,ct,Mt,Ke,Dn,$n,Ce);h.useEffect(function(){mt(!0)},[]);var jo=h.useMemo(function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:Pe}},[Ie,Pe]),Pi=te!=="horizontal"||b?Ee:Ee.map(function(St,ut){return h.createElement(ba,{key:St.key,overflowDisabled:ut>ye},St)}),eo=h.createElement(Sr,Te({id:x,ref:ct,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:jl,className:de(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),Je),oe(r,"".concat(a,"-rtl"),Ne),r),s),dir:_,style:l,role:"menu",tabIndex:p,data:Pi,renderRawItem:function(ut){return ut},renderRawRest:function(ut){var wt=ut.length,Qt=wt?Ee.slice(-wt):null;return h.createElement(kl,{eventKey:pf,title:F,disabled:Le,internalPopupClose:wt===0,popupClassName:ae},Qt)},maxCount:te!=="horizontal"||b?Sr.INVALIDATE:Sr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ut){Re(ut)},onKeyDown:Ti},ve));return h.createElement($d.Provider,{value:jo},h.createElement(m0.Provider,{value:ze},h.createElement(ba,{prefixCls:a,rootClassName:s,mode:te,openKeys:Ye,rtl:Ne,disabled:m,motion:ft?H:null,defaultMotions:ft?J:null,activeKey:Rn,onActive:Mo,onInactive:Pr,selectedKeys:pr,inlineIndent:M,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:K,triggerSubMenuAction:q,getPopupContainer:Z,itemIcon:re,expandIcon:se,onItemClick:Nr,onOpenChange:hr},h.createElement(_0.Provider,{value:At},eo),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(y0.Provider,{value:Gt},Ve)))))}),ka=CN;ka.Item=jl;ka.SubMenu=kl;ka.ItemGroup=Ad;ka.Divider=R0;var xN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},SN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:xN}))},O0=h.forwardRef(SN);ne.env.NODE_ENV!=="production"&&(O0.displayName="EllipsisOutlined");function $0(e){return Ft(e,{inputAffixPadding:e.paddingXXS})}const T0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:d,colorPrimaryHover:y,colorPrimary:_,controlOutlineWidth:x,controlOutline:g,colorErrorOutline:v,colorWarningOutline:f,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:p-o,addonBg:d,activeBorderColor:_,hoverBorderColor:y,activeShadow:`0 0 0 ${x}px ${g}`,errorActiveShadow:`0 0 0 ${x}px ${v}`,warningActiveShadow:`0 0 0 ${x}px ${f}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},EN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Md=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},EN(Ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),P0=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},P0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),RN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Em(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Em(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Rm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ON=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Md(e))}})}),$N=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},N0=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},N0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),TN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Om(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Om(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),$m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},$m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),$m(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),NN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),I0=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},A0=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),M0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},NN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},I0(e)),"&-sm":Object.assign({},A0(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),IN=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},I0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},A0(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},yy()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
188
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},H$=wi(["Modal","confirm"],e=>{const t=Pb(e);return[V$(t)]},Nb,{order:-1e3});var W$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Mb(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=W$(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(ne.env.NODE_ENV!=="production"){const S=Pt("Modal");ne.env.NODE_ENV!=="production"&&S(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let p=n;if(!n&&n!==null)switch(a){case"info":p=h.createElement(xl,null);break;case"success":p=h.createElement(Oa,null);break;case"error":p=h.createElement(xi,null);break;default:p=h.createElement($a,null)}const d=s??a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[_]=wl("Modal"),x=c||_,g=r||(d?x==null?void 0:x.okText:x==null?void 0:x.justOkText),v=o||(x==null?void 0:x.cancelText),f=Object.assign({autoFocusButton:y,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:d},u),m=h.useMemo(()=>f,xe(Object.values(f))),b=h.createElement(h.Fragment,null,h.createElement(Ih,null),h.createElement(Ah,null)),C=e.title!==void 0&&e.title!==null,E=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:de(E,{[`${E}-has-title`]:C})},p,h.createElement("div",{className:`${i}-paragraph`},C&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(cb,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:Ah,CancelBtn:Ih}):b)):l,h.createElement(H$,{prefixCls:t}))}const jb=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,bodyStyle:y,closable:_=!1,closeIcon:x,modalRender:g,focusTriggerAfterClose:v,onConfirm:f,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const T=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[D,Q]=L;T.deprecated(!(D in e),D,Q)})}const b=`${u}-confirm`,C=e.width||416,E=e.style||{},S=e.mask===void 0?!0:e.mask,w=e.maskClosable===void 0?!1:e.maskClosable,O=de(b,`${b}-${e.type}`,{[`${b}-rtl`]:c==="rtl"},e.className),[,P]=Jn(),A=h.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Rl,[n,P]);return h.createElement(Ab,{prefixCls:u,className:O,wrapClassName:de({[`${b}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},open:o,title:"",footer:null,transitionName:So(d||"","zoom",e.transitionName),maskTransitionName:So(d||"","fade",e.maskTransitionName),mask:S,maskClosable:w,style:E,styles:Object.assign({body:y,mask:l},m),width:C,zIndex:A,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:_,closeIcon:x,modalRender:g,focusTriggerAfterClose:v},h.createElement(Mb,Object.assign({},e,{confirmPrefixCls:b})))},wd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(er,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(jb,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(jb.displayName="ConfirmDialog",wd.displayName="ConfirmDialogWrapper");const po=[];let kb="";function Lb(){return kb}const U$=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=ry(),s=I.useContext(Ue),l=Lb()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),I.createElement(wd,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function Aa(e){const t=Ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&ad("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var c,u=arguments.length,p=new Array(u),d=0;d<u;d++)p[d]=arguments[d];if(p.some(x=>x==null?void 0:x.triggerCancel)){var _;(c=e.onCancel)===null||c===void 0||(_=c).call.apply(_,[e,()=>{}].concat(xe(p.slice(1))))}for(let x=0;x<po.length;x++)if(po[x]===s){po.splice(x,1);break}Qy(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Lb()),p=t.getIconPrefixCls(),d=t.getTheme(),y=I.createElement(U$,Object.assign({},c));$l(I.createElement(er,{prefixCls:u,iconPrefixCls:p,theme:d},t.holderRender?t.holderRender(y):y),n)})}function s(){for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function l(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),po.push(s),{destroy:s,update:l}}function Fb(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Db(e){return Object.assign(Object.assign({},e),{type:"info"})}function Bb(e){return Object.assign(Object.assign({},e),{type:"success"})}function zb(e){return Object.assign(Object.assign({},e),{type:"error"})}function qb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function G$(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),kb=t}var K$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X$=(e,t)=>{var n,{afterClose:r,config:o}=e,i=K$(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(o),{direction:u,getPrefixCls:p}=h.useContext(Ue),d=p("modal"),y=p(),_=()=>{var f;r(),(f=l.afterClose)===null||f===void 0||f.call(l)},x=function(){var f;s(!1);for(var m=arguments.length,b=new Array(m),C=0;C<m;C++)b[C]=arguments[C];if(b.some(w=>w==null?void 0:w.triggerCancel)){var S;(f=l.onCancel)===null||f===void 0||(S=f).call.apply(S,[l,()=>{}].concat(xe(b.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:x,update:f=>{c(m=>Object.assign(Object.assign({},m),f))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=wl("Modal",Hr.Modal);return h.createElement(wd,Object.assign({prefixCls:d,rootPrefixCls:y},l,{close:x,open:a,afterClose:_,okText:l.okText||(g?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},Y$=h.forwardRef(X$);let lm=0;const Q$=h.memo(h.forwardRef((e,t)=>{const[n,r]=z1();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function J$(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(xe(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(s){var l;lm+=1;const c=h.createRef();let u;const p=new Promise(g=>{u=g});let d=!1,y;const _=h.createElement(Y$,{key:`modal-${lm}`,config:i(s),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:g=>{u(g)}});return y=(l=e.current)===null||l===void 0?void 0:l.patchElement(_),y&&po.push(y),{destroy:()=>{function g(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?g():n(v=>[].concat(xe(v),[g]))},update:g=>{function v(){var f;(f=c.current)===null||f===void 0||f.update(g)}c.current?v():n(f=>[].concat(xe(f),[v]))},then:g=>(d=!0,p.then(g))}},[]);return[h.useMemo(()=>({info:r(Db),success:r(Bb),error:r(zb),warning:r(Fb),confirm:r(qb)}),[]),h.createElement(Q$,{key:"modal-holder",ref:e})]}const Z$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new at("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new at("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new at("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new at("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},eT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],tT={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},nT=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[tT[t]]:{value:0,_skip_check_:!0}}}}},rT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},oT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},iT=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},rT(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},oT(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},eT.map(n=>nT(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Vb=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:y,notificationMarginEdge:_,notificationProgressBg:x,notificationProgressHeight:g,fontSize:v,lineHeight:f,width:m,notificationIconSize:b,colorText:C}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:y,width:m,maxWidth:`calc(100vw - ${_e(e.calc(_).mul(2).equal())})`,overflow:"hidden",lineHeight:f,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:v,color:C},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ea(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:a,background:x}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},aT=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new at("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},vn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Vb(e))}}]},Hb=e=>({zIndexPopup:e.zIndexPopupBase+Rl+50,width:384}),Wb=e=>{const t=e.paddingMD,n=e.paddingLG;return Ft(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ub=un("Notification",e=>{const t=Wb(e);return[aT(t),Z$(t),iT(t)]},Hb),sT=wi(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Wb(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Vb(n)),{width:n.width,maxWidth:`calc(100vw - ${_e(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Hb);var lT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cd(e,t){return t===null||t===!1?null:t||h.createElement($o,{className:`${e}-close-icon`})}const cT={success:Oa,info:xl,error:xi,warning:$a},Gb=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(cT[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:de({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},o),h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-btn`},a))},uT=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,p=lT(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=h.useContext(Ue),y=t||d("notification"),_=`${y}-notice`,x=En(y),[g,v,f]=Ub(y,x);return g(h.createElement("div",{className:de(`${_}-pure-panel`,v,n,f,x)},h.createElement(sT,{prefixCls:y}),h.createElement(sd,Object.assign({},p,{prefixCls:y,eventKey:"pure",duration:null,closable:l,className:de({notificationClassName:u}),closeIcon:Cd(y,c),content:h.createElement(Gb,{prefixCls:_,icon:r,type:o,message:i,description:a,btn:s})}))))};function fT(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function dT(e){return{motionName:`${e}-fade`}}var pT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cm=24,hT=4.5,mT="topRight",gT=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=Ub(n,r);return o(I.createElement(qy,{classNames:{list:de(i,a,r)}},t))},vT=(e,t)=>{let{prefixCls:n,key:r}=t;return I.createElement(gT,{prefixCls:n,key:r},e)},yT=I.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:p=!0,showProgress:d}=e,{getPrefixCls:y,getPopupContainer:_,notification:x,direction:g}=I.useContext(Ue),[,v]=Jn(),f=o||y("notification"),m=w=>fT(w,n??cm,r??cm),b=()=>de({[`${f}-rtl`]:s??g==="rtl"}),C=()=>dT(f),[E,S]=Wy({prefixCls:f,style:m,className:b,motion:C,closable:!0,closeIcon:Cd(f),duration:u??hT,getContainer:()=>(i==null?void 0:i())||(_==null?void 0:_())||document.body,maxCount:a,pauseOnHover:p,showProgress:d,onAllRemoved:l,renderNotifications:vT,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return I.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:f,notification:x})),S});function Kb(e){const t=I.useRef(null),n=Pt("Notification");return[I.useMemo(()=>{const o=l=>{var c;if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:p,notification:d}=t.current,y=`${p}-notice`,{message:_,description:x,icon:g,type:v,btn:f,className:m,style:b,role:C="alert",closeIcon:E,closable:S}=l,w=pT(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=Cd(y,typeof E<"u"?E:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:mT},w),{content:I.createElement(Gb,{prefixCls:y,icon:g,type:v,message:_,description:x,btn:f,role:C}),className:de(v&&`${y}-${v}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),closeIcon:O,closable:S??!!O}))},a={open:o,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>o(Object.assign(Object.assign({},c),{type:l}))}),a},[]),I.createElement(yT,Object.assign({key:"notification-holder"},e,{ref:t}))]}function bT(e){return Kb(e)}const Xb=I.createContext({});function _T(e){return t=>h.createElement(er,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const Yb=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var wT=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],zo=void 0;function CT(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,p=e.style,d=e.children,y=e.display,_=e.order,x=e.component,g=x===void 0?"div":x,v=nt(e,wT),f=a&&!y;function m(w){l(c,w)}h.useEffect(function(){return function(){m(null)}},[]);var b=i&&o!==zo?i(o):d,C;r||(C={opacity:f?0:1,height:f?0:zo,overflowY:f?"hidden":zo,order:a?_:zo,pointerEvents:f?"none":zo,position:f?"absolute":zo});var E={};f&&(E["aria-hidden"]=!0);var S=h.createElement(g,Te({className:de(!r&&n,u),style:ie(ie({},C),p)},E,v,{ref:t}),b);return a&&(S=h.createElement(cr,{onResize:function(O){var P=O.offsetWidth;m(P)},disabled:s},S)),S}var Yi=h.forwardRef(CT);Yi.displayName="Item";function xT(e){if(typeof MessageChannel>"u")Lt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ST(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],xT(function(){_o.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ki(e,t){var n=h.useState(t),r=he(n,2),o=r[0],i=r[1],a=Zt(function(s){e(function(){i(s)})});return[o,a]}var Js=I.createContext(null),ET=["component"],RT=["className"],OT=["className"],$T=function(t,n){var r=h.useContext(Js);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,ET);return h.createElement(i,Te({},a,{ref:n}))}var s=r.className,l=nt(r,RT),c=t.className,u=nt(t,OT);return h.createElement(Js.Provider,{value:null},h.createElement(Yi,Te({ref:n,className:de(s,c)},l,u)))},Qb=h.forwardRef($T);Qb.displayName="RawItem";var TT=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jb="responsive",Zb="invalidate";function PT(e){return"+ ".concat(e.length," ...")}function NT(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,p=e.ssr,d=e.style,y=e.className,_=e.maxCount,x=e.renderRest,g=e.renderRawRest,v=e.suffix,f=e.component,m=f===void 0?"div":f,b=e.itemComponent,C=e.onVisibleChange,E=nt(e,TT),S=p==="full",w=ST(),O=ki(w,null),P=he(O,2),A=P[0],T=P[1],L=A||0,D=ki(w,new Map),Q=he(D,2),G=Q[0],z=Q[1],Y=ki(w,0),ee=he(Y,2),W=ee[0],U=ee[1],j=ki(w,0),M=he(j,2),H=M[0],J=M[1],B=ki(w,0),q=he(B,2),K=q[0],re=q[1],se=I.useState(null),k=he(se,2),F=k[0],ae=k[1],Z=I.useState(null),me=he(Z,2),pe=me[0],Ce=me[1],Me=h.useMemo(function(){return pe===null&&S?Number.MAX_SAFE_INTEGER:pe||0},[pe,A]),ce=I.useState(!1),Ie=he(ce,2),Pe=Ie[0],Oe=Ie[1],ve="".concat(r,"-item"),we=Math.max(W,H),Se=_===Jb,Ee=i.length&&Se,Ve=_===Zb,He=Ee||typeof _=="number"&&i.length>_,Xe=I.useMemo(function(){var ke=i;return Ee?A===null&&S?ke=i:ke=i.slice(0,Math.min(i.length,L/u)):typeof _=="number"&&(ke=i.slice(0,_)),ke},[i,u,A,_,Ee]),ft=I.useMemo(function(){return Ee?i.slice(Me+1):i.slice(Xe.length)},[i,Xe,Ee,Me]),mt=I.useCallback(function(ke,N){var R;return typeof l=="function"?l(ke):(R=l&&(ke==null?void 0:ke[l]))!==null&&R!==void 0?R:N},[l]),ct=I.useCallback(a||function(ke){return ke},[a]);function ze(ke,N,R){pe===ke&&(N===void 0||N===F)||(Ce(ke),R||(Oe(ke<i.length-1),C==null||C(ke)),N!==void 0&&ae(N))}function Ne(ke,N){T(N.clientWidth)}function st(ke,N){z(function(R){var $=new Map(R);return N===null?$.delete(ke):$.set(ke,N),$})}function rt(ke,N){J(N),U(H)}function Ye(ke,N){re(N)}function Ot(ke){return G.get(mt(Xe[ke],ke))}Xt(function(){if(L&&typeof we=="number"&&Xe){var ke=K,N=Xe.length,R=N-1;if(!N){ze(0,null);return}for(var $=0;$<N;$+=1){var V=Ot($);if(S&&(V=V||0),V===void 0){ze($-1,void 0,!0);break}if(ke+=V,R===0&&ke<=L||$===R-1&&ke+Ot(R)<=L){ze(R,null);break}else if(ke+we>L){ze($-1,ke-V-K+H);break}}v&&Ot(0)+K>L&&ae(null)}},[L,G,H,K,mt,Xe]);var Dt=Pe&&!!ft.length,Ut={};F!==null&&Ee&&(Ut={position:"absolute",left:F,top:0});var gt={prefixCls:ve,responsive:Ee,component:b,invalidate:Ve},$t=s?function(ke,N){var R=mt(ke,N);return h.createElement(Js.Provider,{key:R,value:ie(ie({},gt),{},{order:N,item:ke,itemKey:R,registerSize:st,display:N<=Me})},s(ke,N))}:function(ke,N){var R=mt(ke,N);return h.createElement(Yi,Te({},gt,{order:N,key:R,item:ke,renderItem:ct,itemKey:R,registerSize:st,display:N<=Me}))},Je,lt={order:Dt?Me:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:rt,display:Dt};if(g)g&&(Je=h.createElement(Js.Provider,{value:ie(ie({},gt),lt)},g(ft)));else{var Tt=x||PT;Je=h.createElement(Yi,Te({},gt,lt),typeof Tt=="function"?Tt(ft):Tt)}var Ge=h.createElement(m,Te({className:de(!Ve&&r,y),style:d,ref:t},E),Xe.map($t),He?Je:null,v&&h.createElement(Yi,Te({},gt,{responsive:Se,responsiveDisabled:!Ee,order:Me,className:"".concat(ve,"-suffix"),registerSize:Ye,display:!0,style:Ut}),v));return Se&&(Ge=h.createElement(cr,{onResize:Ne,disabled:!Ee},Ge)),Ge}var Sr=h.forwardRef(NT);Sr.displayName="Overflow";Sr.Item=Qb;Sr.RESPONSIVE=Jb;Sr.INVALIDATE=Zb;function IT(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,p=u===void 0?0:u,d=h.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var _=n.points[0],x=n.points[1],g=_[0],v=_[1],f=x[0],m=x[1];g===f||!["t","b"].includes(g)?y.top=p:g==="t"?y.top=0:y.bottom=0,v===m||!["l","r"].includes(v)?y.left=c:v==="l"?y.left=0:y.right=0}return h.createElement("div",{ref:d,className:de("".concat(t,"-arrow"),a),style:y},s)}function AT(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Zn,Te({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),s)})}):null}var e0=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(e0.displayName="PopupContent");var t0=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,p=e.onClick,d=e.mask,y=e.arrow,_=e.arrowPos,x=e.align,g=e.motion,v=e.maskMotion,f=e.forceRender,m=e.getPopupContainer,b=e.autoDestroy,C=e.portal,E=e.zIndex,S=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,P=e.ready,A=e.offsetX,T=e.offsetY,L=e.offsetR,D=e.offsetB,Q=e.onAlign,G=e.onPrepare,z=e.stretch,Y=e.targetWidth,ee=e.targetHeight,W=typeof n=="function"?n():n,U=l||c,j=(m==null?void 0:m.length)>0,M=h.useState(!m||!j),H=he(M,2),J=H[0],B=H[1];if(Xt(function(){!J&&j&&a&&B(!0)},[J,j,a]),!J)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var re,se=x.points,k=x.dynamicInset||((re=x._experimental)===null||re===void 0?void 0:re.dynamicInset),F=k&&se[0][1]==="r",ae=k&&se[0][0]==="b";F?(K.right=L,K.left=q):(K.left=A,K.right=q),ae?(K.bottom=D,K.top=q):(K.top=T,K.bottom=q)}var Z={};return z&&(z.includes("height")&&ee?Z.height=ee:z.includes("minHeight")&&ee&&(Z.minHeight=ee),z.includes("width")&&Y?Z.width=Y:z.includes("minWidth")&&Y&&(Z.minWidth=Y)),l||(Z.pointerEvents="none"),h.createElement(C,{open:f||U,getContainer:m&&function(){return m(a)},autoDestroy:b},h.createElement(AT,{prefixCls:o,open:l,zIndex:E,mask:d,motion:v}),h.createElement(cr,{onResize:Q,disabled:!l},function(me){return h.createElement(Zn,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:f,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:G,onEnterPrepare:G,visible:l,onVisibleChanged:function(Ce){var Me;g==null||(Me=g.onVisibleChanged)===null||Me===void 0||Me.call(g,Ce),s(Ce)}}),function(pe,Ce){var Me=pe.className,ce=pe.style,Ie=de(o,Me,r);return h.createElement("div",{ref:Yn(me,t,Ce),className:Ie,style:ie(ie(ie(ie({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},K),Z),ce),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:w,onPointerEnter:O,onClick:p},y&&h.createElement(IT,{prefixCls:o,arrow:y,arrowPos:_,align:x}),h.createElement(e0,{cache:!l&&!u},W))})}))});ne.env.NODE_ENV!=="production"&&(t0.displayName="Popup");var n0=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Kr(n),i=h.useCallback(function(s){Uf(t,r?r(s):s)},[r]),a=bi(i,n.ref);return o?h.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(n0.displayName="TriggerWrapper");var um=h.createContext(null);function fm(e){return e?Array.isArray(e)?e:[e]:[]}function MT(e,t,n,r){return h.useMemo(function(){var o=fm(n??t),i=fm(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function jT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function kT(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(jT((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function dm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ma(e){return e.ownerDocument.defaultView}function sf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ma(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Li(e){return va(parseFloat(e),0)}function pm(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ma(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,p=r.getBoundingClientRect(),d=r.offsetHeight,y=r.clientHeight,_=r.offsetWidth,x=r.clientWidth,g=Li(s),v=Li(l),f=Li(c),m=Li(u),b=va(Math.round(p.width/_*1e3)/1e3),C=va(Math.round(p.height/d*1e3)/1e3),E=(_-x-f-m)*b,S=(d-y-g-v)*C,w=g*C,O=v*C,P=f*b,A=m*b,T=0,L=0;if(i==="clip"){var D=Li(a);T=D*b,L=D*C}var Q=p.x+P-T,G=p.y+w-L,z=Q+p.width+2*T-P-A-E,Y=G+p.height+2*L-w-O-S;n.left=Math.max(n.left,Q),n.top=Math.max(n.top,G),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,Y)}}),n}function hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function mm(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[hm(e.width,o),hm(e.height,i)]}function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function qo(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function jr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function LT(e,t,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=he(s,2),c=l[0],u=l[1],p=h.useRef(0),d=h.useMemo(function(){return t?sf(t):[]},[t]),y=h.useRef({}),_=function(){y.current={}};e||_();var x=Zt(function(){if(t&&n&&e){let mn=function(Ii,mr){var no=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,Va=H.x+Ii,Ha=H.y+mr,Kl=Va+ae,Xl=Ha+F,Ae=Math.max(Va,no.left),We=Math.max(Ha,no.top),Nt=Math.min(Kl,no.right),Bt=Math.min(Xl,no.bottom);return Math.max(0,(Nt-Ae)*(Bt-We))},Lo=function(){Le=H.y+R,je=Le+F,De=H.x+N,qe=De+ae};var f,m,b,C,E=t,S=E.ownerDocument,w=Ma(E),O=w.getComputedStyle(E),P=O.width,A=O.height,T=O.position,L=E.style.left,D=E.style.top,Q=E.style.right,G=E.style.bottom,z=E.style.overflow,Y=ie(ie({},o[r]),i),ee=S.createElement("div");(f=E.parentElement)===null||f===void 0||f.appendChild(ee),ee.style.left="".concat(E.offsetLeft,"px"),ee.style.top="".concat(E.offsetTop,"px"),ee.style.position=T,ee.style.height="".concat(E.offsetHeight,"px"),ee.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var U,j,M=n.getBoundingClientRect();M.x=(U=M.x)!==null&&U!==void 0?U:M.left,M.y=(j=M.y)!==null&&j!==void 0?j:M.top,W={x:M.x,y:M.y,width:M.width,height:M.height}}var H=E.getBoundingClientRect();H.x=(m=H.x)!==null&&m!==void 0?m:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var J=S.documentElement,B=J.clientWidth,q=J.clientHeight,K=J.scrollWidth,re=J.scrollHeight,se=J.scrollTop,k=J.scrollLeft,F=H.height,ae=H.width,Z=W.height,me=W.width,pe={left:0,top:0,right:B,bottom:q},Ce={left:-k,top:-se,right:K-k,bottom:re-se},Me=Y.htmlRegion,ce="visible",Ie="visibleFirst";Me!=="scroll"&&Me!==Ie&&(Me=ce);var Pe=Me===Ie,Oe=pm(Ce,d),ve=pm(pe,d),we=Me===ce?ve:Oe,Se=Pe?ve:we;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=L,E.style.top=D,E.style.right=Q,E.style.bottom=G,E.style.overflow=z,(C=E.parentElement)===null||C===void 0||C.removeChild(ee);var Ve=va(Math.round(ae/parseFloat(P)*1e3)/1e3),He=va(Math.round(F/parseFloat(A)*1e3)/1e3);if(Ve===0||He===0||ra(n)&&!Tl(n))return;var Xe=Y.offset,ft=Y.targetOffset,mt=mm(H,Xe),ct=he(mt,2),ze=ct[0],Ne=ct[1],st=mm(W,ft),rt=he(st,2),Ye=rt[0],Ot=rt[1];W.x-=Ye,W.y-=Ot;var Dt=Y.points||[],Ut=he(Dt,2),gt=Ut[0],$t=Ut[1],Je=gm($t),lt=gm(gt),Tt=qo(W,Je),Ge=qo(H,lt),ke=ie({},Y),N=Tt.x-Ge.x+ze,R=Tt.y-Ge.y+Ne,$=mn(N,R),V=mn(N,R,ve),te=qo(W,["t","l"]),le=qo(H,["t","l"]),ge=qo(W,["b","r"]),Fe=qo(H,["b","r"]),Ze=Y.overflow||{},et=Ze.adjustX,X=Ze.adjustY,ue=Ze.shiftX,ye=Ze.shiftY,Re=function(mr){return typeof mr=="boolean"?mr:mr>=0},Le,je,De,qe;Lo();var _t=Re(X),dt=lt[0]===Je[0];if(_t&&lt[0]==="t"&&(je>Se.bottom||y.current.bt)){var Ke=R;dt?Ke-=F-Z:Ke=te.y-Fe.y-Ne;var Mt=mn(N,Ke),hn=mn(N,Ke,ve);Mt>$||Mt===$&&(!Pe||hn>=V)?(y.current.bt=!0,R=Ke,Ne=-Ne,ke.points=[jr(lt,0),jr(Je,0)]):y.current.bt=!1}if(_t&&lt[0]==="b"&&(Le<Se.top||y.current.tb)){var Gt=R;dt?Gt+=F-Z:Gt=ge.y-le.y-Ne;var At=mn(N,Gt),fr=mn(N,Gt,ve);At>$||At===$&&(!Pe||fr>=V)?(y.current.tb=!0,R=Gt,Ne=-Ne,ke.points=[jr(lt,0),jr(Je,0)]):y.current.tb=!1}var dr=Re(et),Rn=lt[1]===Je[1];if(dr&&lt[1]==="l"&&(qe>Se.right||y.current.rl)){var Dn=N;Rn?Dn-=ae-me:Dn=te.x-Fe.x-ze;var Mo=mn(Dn,R),Pr=mn(Dn,R,ve);Mo>$||Mo===$&&(!Pe||Pr>=V)?(y.current.rl=!0,N=Dn,ze=-ze,ke.points=[jr(lt,1),jr(Je,1)]):y.current.rl=!1}if(dr&&lt[1]==="r"&&(De<Se.left||y.current.lr)){var Bn=N;Rn?Bn+=ae-me:Bn=ge.x-le.x-ze;var Zr=mn(Bn,R),pr=mn(Bn,R,ve);Zr>$||Zr===$&&(!Pe||pr>=V)?(y.current.lr=!0,N=Bn,ze=-ze,ke.points=[jr(lt,1),jr(Je,1)]):y.current.lr=!1}Lo();var On=ue===!0?0:ue;typeof On=="number"&&(De<ve.left&&(N-=De-ve.left-ze,W.x+me<ve.left+On&&(N+=W.x-ve.left+me-On)),qe>ve.right&&(N-=qe-ve.right-ze,W.x>ve.right-On&&(N+=W.x-ve.right+On)));var yn=ye===!0?0:ye;typeof yn=="number"&&(Le<ve.top&&(R-=Le-ve.top-Ne,W.y+Z<ve.top+yn&&(R+=W.y-ve.top+Z-yn)),je>ve.bottom&&(R-=je-ve.bottom-Ne,W.y>ve.bottom-yn&&(R+=W.y-ve.bottom+yn)));var Nr=H.x+N,hr=Nr+ae,$n=H.y+R,Ti=$n+F,jo=W.x,Pi=jo+me,eo=W.y,St=eo+Z,ut=Math.max(Nr,jo),wt=Math.min(hr,Pi),Qt=(ut+wt)/2,en=Qt-Nr,Ir=Math.max($n,eo),Ar=Math.min(Ti,St),Ni=(Ir+Ar)/2,ko=Ni-$n;a==null||a(t,ke);var Mr=Ee.right-H.x-(N+H.width),an=Ee.bottom-H.y-(R+H.height);Ve===1&&(N=Math.round(N),Mr=Math.round(Mr)),He===1&&(R=Math.round(R),an=Math.round(an));var to={ready:!0,offsetX:N/Ve,offsetY:R/He,offsetR:Mr/Ve,offsetB:an/He,arrowX:en/Ve,arrowY:ko/He,scaleX:Ve,scaleY:He,align:ke};u(to)}}),g=function(){p.current+=1;var m=p.current;Promise.resolve().then(function(){p.current===m&&x()})},v=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return Xt(v,[r]),Xt(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function FT(e,t,n,r,o){Xt(function(){if(e&&t&&n){let p=function(){r(),o()};var i=t,a=n,s=sf(i),l=sf(a),c=Ma(a),u=new Set([c].concat(xe(s),xe(l)));return u.forEach(function(d){d.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function DT(e,t,n,r,o,i,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!o||i)){var c=function(v){var f;l.current&&!a(((f=v.composedPath)===null||f===void 0||(f=f.call(v))===null||f===void 0?void 0:f[0])||v.target)&&s(!1)},u=Ma(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var p=Gs(n);if(p&&(p.addEventListener("mousedown",c,!0),p.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,_=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),x=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Vr(_===x,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),p&&(p.removeEventListener("mousedown",c,!0),p.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var BT=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pl,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,p=n.popupVisible,d=n.defaultPopupVisible,y=n.onPopupVisibleChange,_=n.afterPopupVisibleChange,x=n.mouseEnterDelay,g=n.mouseLeaveDelay,v=g===void 0?.1:g,f=n.focusDelay,m=n.blurDelay,b=n.mask,C=n.maskClosable,E=C===void 0?!0:C,S=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,T=n.popupClassName,L=n.popupStyle,D=n.popupPlacement,Q=n.builtinPlacements,G=Q===void 0?{}:Q,z=n.popupAlign,Y=n.zIndex,ee=n.stretch,W=n.getPopupClassNameFromAlign,U=n.fresh,j=n.alignPoint,M=n.onPopupClick,H=n.onPopupAlign,J=n.arrow,B=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,re=n.popupAnimation,se=n.maskTransitionName,k=n.maskAnimation,F=n.className,ae=n.getTriggerDOMNode,Z=nt(n,BT),me=O||P||!1,pe=h.useState(!1),Ce=he(pe,2),Me=Ce[0],ce=Ce[1];Xt(function(){ce(Yb())},[]);var Ie=h.useRef({}),Pe=h.useContext(um),Oe=h.useMemo(function(){return{registerSubPopup:function(We,Nt){Ie.current[We]=Nt,Pe==null||Pe.registerSubPopup(We,Nt)}}},[Pe]),ve=db(),we=h.useState(null),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useRef(null),Xe=Zt(function(Ae){He.current=Ae,ra(Ae)&&Ee!==Ae&&Ve(Ae),Pe==null||Pe.registerSubPopup(ve,Ae)}),ft=h.useState(null),mt=he(ft,2),ct=mt[0],ze=mt[1],Ne=h.useRef(null),st=Zt(function(Ae){ra(Ae)&&ct!==Ae&&(ze(Ae),Ne.current=Ae)}),rt=h.Children.only(a),Ye=(rt==null?void 0:rt.props)||{},Ot={},Dt=Zt(function(Ae){var We,Nt,Bt=ct;return(Bt==null?void 0:Bt.contains(Ae))||((We=Gs(Bt))===null||We===void 0?void 0:We.host)===Ae||Ae===Bt||(Ee==null?void 0:Ee.contains(Ae))||((Nt=Gs(Ee))===null||Nt===void 0?void 0:Nt.host)===Ae||Ae===Ee||Object.values(Ie.current).some(function(jt){return(jt==null?void 0:jt.contains(Ae))||Ae===jt})}),Ut=dm(i,B,re,K),gt=dm(i,q,k,se),$t=h.useState(d||!1),Je=he($t,2),lt=Je[0],Tt=Je[1],Ge=p??lt,ke=Zt(function(Ae){p===void 0&&Tt(Ae)});Xt(function(){Tt(p||!1)},[p]);var N=h.useRef(Ge);N.current=Ge;var R=h.useRef([]);R.current=[];var $=Zt(function(Ae){var We;ke(Ae),((We=R.current[R.current.length-1])!==null&&We!==void 0?We:Ge)!==Ae&&(R.current.push(Ae),y==null||y(Ae))}),V=h.useRef(),te=function(){clearTimeout(V.current)},le=function(We){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Nt===0?$(We):V.current=setTimeout(function(){$(We)},Nt*1e3)};h.useEffect(function(){return te},[]);var ge=h.useState(!1),Fe=he(ge,2),Ze=Fe[0],et=Fe[1];Xt(function(Ae){(!Ae||Ge)&&et(!0)},[Ge]);var X=h.useState(null),ue=he(X,2),ye=ue[0],Re=ue[1],Le=h.useState(null),je=he(Le,2),De=je[0],qe=je[1],_t=function(We){qe([We.clientX,We.clientY])},dt=LT(Ge,Ee,j&&De!==null?De:ct,D,G,z,H),Ke=he(dt,11),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3],fr=Ke[4],dr=Ke[5],Rn=Ke[6],Dn=Ke[7],Mo=Ke[8],Pr=Ke[9],Bn=Ke[10],Zr=MT(Me,l,c,u),pr=he(Zr,2),On=pr[0],yn=pr[1],Nr=On.has("click"),hr=yn.has("click")||yn.has("contextMenu"),$n=Zt(function(){Ze||Bn()}),Ti=function(){N.current&&j&&hr&&le(!1)};FT(Ge,ct,Ee,$n,Ti),Xt(function(){$n()},[De,D]),Xt(function(){Ge&&!(G!=null&&G[D])&&$n()},[JSON.stringify(z)]);var jo=h.useMemo(function(){var Ae=kT(G,i,Pr,j);return de(Ae,W==null?void 0:W(Pr))},[Pr,W,G,i,j]);h.useImperativeHandle(r,function(){return{nativeElement:Ne.current,popupElement:He.current,forceAlign:$n}});var Pi=h.useState(0),eo=he(Pi,2),St=eo[0],ut=eo[1],wt=h.useState(0),Qt=he(wt,2),en=Qt[0],Ir=Qt[1],Ar=function(){if(ee&&ct){var We=ct.getBoundingClientRect();ut(We.width),Ir(We.height)}},Ni=function(){Ar(),$n()},ko=function(We){et(!1),Bn(),_==null||_(We)},Mr=function(){return new Promise(function(We){Ar(),Re(function(){return We})})};Xt(function(){ye&&(Bn(),ye(),Re(null))},[ye]);function an(Ae,We,Nt,Bt){Ot[Ae]=function(jt){var Wa;Bt==null||Bt(jt),le(We,Nt);for(var Yl=arguments.length,Sp=new Array(Yl>1?Yl-1:0),Ua=1;Ua<Yl;Ua++)Sp[Ua-1]=arguments[Ua];(Wa=Ye[Ae])===null||Wa===void 0||Wa.call.apply(Wa,[Ye,jt].concat(Sp))}}(Nr||hr)&&(Ot.onClick=function(Ae){var We;N.current&&hr?le(!1):!N.current&&Nr&&(_t(Ae),le(!0));for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onClick)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),DT(Ge,hr,ct,Ee,b,E,Dt,le);var to=On.has("hover"),mn=yn.has("hover"),Lo,Ii;to&&(an("onMouseEnter",!0,x,function(Ae){_t(Ae)}),an("onPointerEnter",!0,x,function(Ae){_t(Ae)}),Lo=function(We){(Ge||Ze)&&Ee!==null&&Ee!==void 0&&Ee.contains(We.target)&&le(!0,x)},j&&(Ot.onMouseMove=function(Ae){var We;(We=Ye.onMouseMove)===null||We===void 0||We.call(Ye,Ae)})),mn&&(an("onMouseLeave",!1,v),an("onPointerLeave",!1,v),Ii=function(){le(!1,v)}),On.has("focus")&&an("onFocus",!0,f),yn.has("focus")&&an("onBlur",!1,m),On.has("contextMenu")&&(Ot.onContextMenu=function(Ae){var We;N.current&&yn.has("contextMenu")?le(!1):(_t(Ae),le(!0)),Ae.preventDefault();for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onContextMenu)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),F&&(Ot.className=de(Ye.className,F));var mr=ie(ie({},Ye),Ot),no={},Va=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Va.forEach(function(Ae){Z[Ae]&&(no[Ae]=function(){for(var We,Nt=arguments.length,Bt=new Array(Nt),jt=0;jt<Nt;jt++)Bt[jt]=arguments[jt];(We=mr[Ae])===null||We===void 0||We.call.apply(We,[mr].concat(Bt)),Z[Ae].apply(Z,Bt)})});var Ha=h.cloneElement(rt,ie(ie({},mr),no)),Kl={x:dr,y:Rn},Xl=J?ie({},J!==!0?J:{}):null;return h.createElement(h.Fragment,null,h.createElement(cr,{disabled:!Ge,ref:st,onResize:Ni},h.createElement(n0,{getTriggerDOMNode:ae},Ha)),h.createElement(um.Provider,{value:Oe},h.createElement(t0,{portal:e,ref:Xe,prefixCls:i,popup:A,className:de(T,jo),style:L,target:ct,onMouseEnter:Lo,onMouseLeave:Ii,onPointerEnter:Lo,zIndex:Y,open:Ge,keepDom:Ze,fresh:U,onClick:M,mask:b,motion:Ut,maskMotion:gt,onVisibleChanged:ko,onPrepare:Mr,forceRender:w,autoDestroy:me,getPopupContainer:S,align:Pr,arrow:Xl,arrowPos:Kl,ready:Mt,offsetX:hn,offsetY:Gt,offsetR:At,offsetB:fr,onAlign:$n,stretch:ee,targetWidth:St/Dn,targetHeight:en/Mo})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const xd=zT(Pl);function lf(e,t,n){return de({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Sd=(e,t)=>t||e,r0=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=I.useContext(Ue),s=I.useContext(Eb),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=kS.includes(c);return[c,u]};var qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},VT=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:qT}))},o0=h.forwardRef(VT);ne.env.NODE_ENV!=="production"&&(o0.displayName="SearchOutlined");const ya=["xxl","xl","lg","md","sm","xs"],HT=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),WT=e=>{const t=e,n=[].concat(ya).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function UT(){const[,e]=Jn(),t=HT(WT(e));return I.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const Zs=e=>e?typeof e=="function"?e():e:null;function Ed(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return h.createElement("div",{className:de("".concat(n,"-content"),i),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Vo={shiftX:64,adjustY:1},Ho={adjustX:1,shiftY:!0},Pn=[0,0],GT={left:{points:["cr","cl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},right:{points:["cl","cr"],overflow:Ho,offset:[4,0],targetOffset:Pn},top:{points:["bc","tc"],overflow:Vo,offset:[0,-4],targetOffset:Pn},bottom:{points:["tc","bc"],overflow:Vo,offset:[0,4],targetOffset:Pn},topLeft:{points:["bl","tl"],overflow:Vo,offset:[0,-4],targetOffset:Pn},leftTop:{points:["tr","tl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},topRight:{points:["br","tr"],overflow:Vo,offset:[0,-4],targetOffset:Pn},rightTop:{points:["tl","tr"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomRight:{points:["tr","br"],overflow:Vo,offset:[0,4],targetOffset:Pn},rightBottom:{points:["bl","br"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomLeft:{points:["tl","bl"],overflow:Vo,offset:[0,4],targetOffset:Pn},leftBottom:{points:["br","bl"],overflow:Ho,offset:[-4,0],targetOffset:Pn}},KT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],XT=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,p=t.prefixCls,d=p===void 0?"rc-tooltip":p,y=t.children,_=t.onVisibleChange,x=t.afterVisibleChange,g=t.transitionName,v=t.animation,f=t.motion,m=t.placement,b=m===void 0?"right":m,C=t.align,E=C===void 0?{}:C,S=t.destroyTooltipOnHide,w=S===void 0?!1:S,O=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,L=t.id,D=t.showArrow,Q=D===void 0?!0:D,G=nt(t,KT),z=I.useRef(null);I.useImperativeHandle(n,function(){return z.current});var Y=ie({},G);"visible"in t&&(Y.popupVisible=t.visible);var ee=function(){return h.createElement(Ed,{key:"content",prefixCls:d,id:L,overlayInnerStyle:A},T)};return h.createElement(xd,Te({popupClassName:r,prefixCls:d,popup:ee,action:i,builtinPlacements:GT,popupPlacement:b,ref:z,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:_,afterPopupVisibleChange:x,popupTransitionName:g,popupAnimation:v,popupMotion:f,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:Q},Y),y)};const YT=I.forwardRef(XT);function i0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-c,d=u,y=2*o-s,_=l,x=2*o-i,g=a,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m=`polygon(${f}px 100%, 50% ${f}px, ${2*o-f}px 100%, ${f}px 100%)`,b=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${p} ${d} L ${y} ${_} A ${r} ${r} 0 0 0 ${x} ${g} Z')`;return{arrowShadowWidth:v,arrowPath:b,arrowPolygon:m}}const QT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},a0=8;function Rd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?a0:r}}function as(e,t){return e?t:{}}function s0(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QT(e,t,o)),{"&:before":{background:t}})]},as(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),as(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function JT(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const vm={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ZT={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},eP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(vm).forEach(c=>{const u=r&&ZT[c]||vm[c],p=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=p,eP.has(c)&&(p.autoArrow=!1),c){case"top":case"topLeft":case"topRight":p.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+o;break}const d=Rd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":p.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=d.arrowOffsetHorizontal*2-s;break}p.overflow=JT(c,d,t,n),a&&(p.htmlRegion="visibleFirst")}),l}const nP=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${_e(e.calc(c).div(2).equal())} ${_e(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,a0)}},[`${t}-content`]:{position:"relative"}}),Cl(e,(p,d)=>{let{darkColor:y}=d;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rP=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Rd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),i0(Ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),l0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return un("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=Ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[nP(s),_d(r,"zoom-big-fast")]},rP,{resetStyle:!1,injectStyle:t})(e)},oP=ha.map(e=>`${e}-inverse`),iP=["success","processing","error","default","warning"];function Al(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xe(oP),xe(ha)).includes(e):ha.includes(e)}function aP(e){return iP.includes(e)}function c0(e,t){const n=Al(t),r=de({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const sP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("tooltip",t),[c,u,p]=l0(l),d=c0(l,i),y=d.arrowStyle,_=Object.assign(Object.assign({},a),d.overlayStyle),x=de(u,p,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(h.createElement("div",{className:x,style:y},h.createElement("div",{className:`${l}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:_}),o)))};var lP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:y,arrow:_=!0,title:x,overlay:g,builtinPlacements:v,arrowPointAtCenter:f=!1,autoAdjustOverflow:m=!0}=e,b=!!_,[,C]=Jn(),{getPopupContainer:E,getPrefixCls:S,direction:w}=h.useContext(Ue),O=Pt("Tooltip"),P=h.useRef(null),A=()=>{var ve;(ve=P.current)===null||ve===void 0||ve.forceAlign()};h.useImperativeHandle(t,()=>{var ve;return{forceAlign:A,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(ve=P.current)===null||ve===void 0?void 0:ve.nativeElement}}),ne.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ve=>{let[we,Se]=ve;O.deprecated(!(we in e),we,Se)}),ne.env.NODE_ENV!=="production"&&O(!y||typeof y=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ne.env.NODE_ENV!=="production"&&O(!_||typeof _=="boolean"||!("arrowPointAtCenter"in _),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[T,L]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!x&&!g&&x!==0,Q=ve=>{var we,Se;L(D?!1:ve),D||((we=e.onOpenChange)===null||we===void 0||we.call(e,ve),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,ve))},G=h.useMemo(()=>{var ve,we;let Se=f;return typeof _=="object"&&(Se=(we=(ve=_.pointAtCenter)!==null&&ve!==void 0?ve:_.arrowPointAtCenter)!==null&&we!==void 0?we:f),v||tP({arrowPointAtCenter:Se,autoAdjustOverflow:m,arrowWidth:b?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[f,_,v,C]),z=h.useMemo(()=>x===0?x:g||x||"",[g,x]),Y=h.createElement(Ys,{space:!0},typeof z=="function"?z():z),{getPopupContainer:ee,placement:W="top",mouseEnterDelay:U=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:H}=e,J=lP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=S("tooltip",o),q=S(),K=e["data-popover-inject"];let re=T;!("open"in e)&&!("visible"in e)&&D&&(re=!1);const se=h.isValidElement(u)&&!Dy(u)?u:h.createElement("span",null,u),k=se.props,F=!k.className||typeof k.className=="string"?de(k.className,i||`${B}-open`):k.className,[ae,Z,me]=l0(B,!K),pe=c0(B,l),Ce=pe.arrowStyle,Me=Object.assign(Object.assign({},c),pe.overlayStyle),ce=de(s,{[`${B}-rtl`]:w==="rtl"},pe.className,H,Z,me),[Ie,Pe]=Gy("Tooltip",J.zIndex),Oe=h.createElement(YT,Object.assign({},J,{zIndex:Ie,showArrow:b,placement:W,mouseEnterDelay:U,mouseLeaveDelay:j,prefixCls:B,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},Ce),M),getTooltipContainer:ee||a||E,ref:P,builtinPlacements:G,overlay:Y,visible:re,onVisibleChange:Q,afterVisibleChange:p??d,overlayInnerStyle:Me,arrowContent:h.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:So(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?Er(se,{className:F}):se);return ae(h.createElement(El.Provider,{value:Pe},Oe))}),Ur=cP;ne.env.NODE_ENV!=="production"&&(Ur.displayName="Tooltip");Ur._InternalPanelDoNotUseOrYouWillBeFired=sP;const uP=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:p,popoverBg:d,titleBorderBottom:y,innerContentPadding:_,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},vn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:y,padding:x},[`${t}-inner-content`]:{color:n,padding:_}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fP=e=>{const{componentCls:t}=e;return{[t]:ha.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},dP=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:p}=e,d=n-r,y=d/2,_=d/2-t,x=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},i0(e)),Rd({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${y}px ${x}px ${_}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${p}px ${x}px`:0})},u0=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ft(e,{popoverBg:t,popoverColor:n});return[uP(r),fP(r),_d(r,"zoom-big")]},dP,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var pP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f0=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:h.createElement(h.Fragment,null,t&&h.createElement("div",{className:`${r}-title`},t),n&&h.createElement("div",{className:`${r}-inner-content`},n))},hP=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Zs(a),u=Zs(s),p=de(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return h.createElement("div",{className:p,style:o},h.createElement("div",{className:`${n}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:t,prefixCls:n}),l||h.createElement(f0,{prefixCls:n,title:c,content:u})))},mP=e=>{const{prefixCls:t,className:n}=e,r=pP(e,["prefixCls","className"]),{getPrefixCls:o}=h.useContext(Ue),i=o("popover",t),[a,s,l]=u0(i);return a(h.createElement(hP,Object.assign({},r,{prefixCls:i,hashId:s,className:de(n,l)})))};var gP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:p=.1,mouseLeaveDelay:d=.1,onOpenChange:y,overlayStyle:_={}}=e,x=gP(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=h.useContext(Ue),v=g("popover",o),[f,m,b]=u0(v),C=g(),E=de(s,m,b),[S,w]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(D,Q)=>{w(D,!0),y==null||y(D,Q)},P=D=>{D.keyCode===$e.ESC&&O(!1,D)},A=D=>{O(D)},T=Zs(i),L=Zs(a);return f(h.createElement(Ur,Object.assign({placement:l,trigger:c,mouseEnterDelay:p,mouseLeaveDelay:d,overlayStyle:_},x,{prefixCls:v,overlayClassName:E,ref:t,open:S,onOpenChange:A,overlay:T||L?h.createElement(f0,{prefixCls:v,title:T,content:L}):null,transitionName:So(C,"zoom-big",x.transitionName),"data-popover-inject":!0}),Er(u,{onKeyDown:D=>{var Q,G;h.isValidElement(u)&&((G=u==null?void 0:(Q=u.props).onKeyDown)===null||G===void 0||G.call(Q,D)),P(D)}})))}),Od=vP;Od._InternalPanelDoNotUseOrYouWillBeFired=mP;ne.env.NODE_ENV!=="production"&&(Od.displayName="Popover");const yP=new at("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bP=new at("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),_P=new at("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wP=new at("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),CP=new at("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xP=new at("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SP=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:p,marginXS:d,calc:y}=e,_=`${r}-scroll-number`,x=Cl(e,(g,v)=>{let{darkColor:f}=v;return{[`&${t} ${t}-color-${g}`]:{background:f,[`&:not(${t}-count)`]:{color:f},"a:hover &":{background:f}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:a,lineHeight:_e(p),borderRadius:y(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${_}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:xP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yP,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:_P,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:CP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${_}-custom-component, ${t}-count`]:{transform:"none"},[`${_}-custom-component, ${_}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[_]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${_}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${_}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${_}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${_}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},d0=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorBgContainer,l=e.colorError,c=e.colorErrorHover;return Ft(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},p0=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},EP=un("Badge",e=>{const t=d0(e);return SP(t)},p0),RP=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Cl(e,(c,u)=>{let{darkColor:p}=u;return{[`&${a}-color-${c}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},OP=un(["Badge","Ribbon"],e=>{const t=d0(e);return RP(t)},p0),h0=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=h.useContext(Ue),p=c("ribbon",n),d=`${p}-wrapper`,[y,_,x]=OP(p,d),g=Al(o,!1),v=de(p,`${p}-placement-${s}`,{[`${p}-rtl`]:u==="rtl",[`${p}-color-${o}`]:g},t),f={},m={};return o&&!g&&(f.background=o,m.color=o),y(h.createElement("div",{className:de(d,l,_,x)},i,h.createElement("div",{className:de(v,_),style:Object.assign(Object.assign({},f),r)},h.createElement("span",{className:`${p}-text`},a),h.createElement("div",{className:`${p}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(h0.displayName="Ribbon");const ym=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),h.createElement("span",{style:i,className:de(`${t}-only-unit`,{current:r})},n)};function $P(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const TP=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=h.useState(o),[l,c]=h.useState(i),u=()=>{s(o),c(i)};h.useEffect(()=>{const y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let p,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))p=[h.createElement(ym,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{p=[];const y=o+10,_=[];for(let v=o;v<=y;v+=1)_.push(v);const x=_.findIndex(v=>v%10===a);p=_.map((v,f)=>{const m=v%10;return h.createElement(ym,Object.assign({},e,{key:v,value:m,offset:f-x,current:f===x}))});const g=l<i?1:-1;d={transform:`translateY(${-$P(a,o,g)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},p)};var PP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NP=h.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,p=PP(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=h.useContext(Ue),y=d("scroll-number",n),_=Object.assign(Object.assign({},p),{"data-show":l,style:a,className:de(y,o,i),title:s});let x=r;if(r&&Number(r)%1===0){const g=String(r).split("");x=h.createElement("bdi",null,g.map((v,f)=>h.createElement(TP,{prefixCls:y,count:Number(r),value:v,key:g.length-f})))}return a!=null&&a.borderColor&&(_.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Er(u,g=>({className:de(`${y}-custom-component`,g==null?void 0:g.className,i)})):h.createElement(c,Object.assign({},_,{ref:t}),x)});var IP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AP=h.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:p,color:d,count:y=null,overflowCount:_=99,dot:x=!1,size:g="default",title:v,offset:f,style:m,className:b,rootClassName:C,classNames:E,styles:S,showZero:w=!1}=e,O=IP(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:A,badge:T}=h.useContext(Ue),L=P("badge",s),[D,Q,G]=EP(L),z=y>_?`${_}+`:y,Y=z==="0"||z===0,ee=y===null||Y&&!w,W=(u!=null||d!=null)&&ee,U=x&&!Y,j=U?"":z,M=I.useMemo(()=>(j==null||j===""||Y&&!w)&&!U,[j,Y,w,U]),H=I.useRef(y);M||(H.current=y);const J=H.current,B=I.useRef(j);M||(B.current=j);const q=B.current,K=I.useRef(U);M||(K.current=U);const re=I.useMemo(()=>{if(!f)return Object.assign(Object.assign({},T==null?void 0:T.style),m);const Ce={marginTop:f[1]};return A==="rtl"?Ce.left=parseInt(f[0],10):Ce.right=-parseInt(f[0],10),Object.assign(Object.assign(Object.assign({},Ce),T==null?void 0:T.style),m)},[A,f,m,T==null?void 0:T.style]),se=v??(typeof J=="string"||typeof J=="number"?J:void 0),k=M||!p?null:h.createElement("span",{className:`${L}-status-text`},p),F=!J||typeof J!="object"?void 0:Er(J,Ce=>({style:Object.assign(Object.assign({},re),Ce.style)})),ae=Al(d,!1),Z=de(E==null?void 0:E.indicator,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:W,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=de(L,{[`${L}-status`]:W,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:A==="rtl"},b,C,T==null?void 0:T.className,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Q,G);if(!c&&W){const Ce=re.color;return D(h.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.root),re)}),h.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=T==null?void 0:T.styles)===null||i===void 0?void 0:i.indicator),me)}),p&&h.createElement("span",{style:{color:Ce},className:`${L}-status-text`},p)))}return D(h.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,h.createElement(Zn,{visible:!M,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:Me}=Ce;var ce,Ie;const Pe=P("scroll-number",l),Oe=K.current,ve=de(E==null?void 0:E.indicator,(ce=T==null?void 0:T.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${L}-dot`]:Oe,[`${L}-count`]:!Oe,[`${L}-count-sm`]:g==="small",[`${L}-multiple-words`]:!Oe&&q&&q.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae});let we=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Ie=T==null?void 0:T.styles)===null||Ie===void 0?void 0:Ie.indicator),re);return d&&!ae&&(we=we||{},we.background=d),h.createElement(NP,{prefixCls:Pe,show:!M,motionClassName:Me,className:ve,count:q,title:se,style:we,key:"scrollNumber"},F)}),k))}),ao=AP;ao.Ribbon=h0;ne.env.NODE_ENV!=="production"&&(ao.displayName="Badge");var MP=$e.ESC,jP=$e.TAB;function kP(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=h.useRef(!1),s=function(){if(t){var p,d;(p=n.current)===null||p===void 0||(d=p.focus)===null||d===void 0||d.call(p),r==null||r(!1)}},l=function(){var p;return(p=i.current)!==null&&p!==void 0&&p.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(p){switch(p.keyCode){case MP:s();break;case jP:{var d=!1;a.current||(d=l()),d?p.preventDefault():s();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Lt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var LP=I.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=I.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Yn(t,i==null?void 0:i.ref);return I.createElement(I.Fragment,null,r&&I.createElement("div",{className:"".concat(o,"-arrow")}),I.cloneElement(i,{ref:Kr(i)?a:void 0}))}),Wo={adjustX:1,adjustY:1},Uo=[0,0],FP={topLeft:{points:["bl","tl"],overflow:Wo,offset:[0,-4],targetOffset:Uo},top:{points:["bc","tc"],overflow:Wo,offset:[0,-4],targetOffset:Uo},topRight:{points:["br","tr"],overflow:Wo,offset:[0,-4],targetOffset:Uo},bottomLeft:{points:["tl","bl"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottom:{points:["tc","bc"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottomRight:{points:["tr","br"],overflow:Wo,offset:[0,4],targetOffset:Uo}},DP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function BP(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,p=u===void 0?"bottomLeft":u,d=e.placements,y=d===void 0?FP:d,_=e.getPopupContainer,x=e.showAction,g=e.hideAction,v=e.overlayClassName,f=e.overlayStyle,m=e.visible,b=e.trigger,C=b===void 0?["hover"]:b,E=e.autoFocus,S=e.overlay,w=e.children,O=e.onVisibleChange,P=nt(e,DP),A=I.useState(),T=he(A,2),L=T[0],D=T[1],Q="visible"in e?m:L,G=I.useRef(null),z=I.useRef(null),Y=I.useRef(null);I.useImperativeHandle(t,function(){return G.current});var ee=function(K){D(K),O==null||O(K)};kP({visible:Q,triggerRef:Y,onVisibleChange:ee,autoFocus:E,overlayRef:z});var W=function(K){var re=e.onOverlayClick;D(!1),re&&re(K)},U=function(){return I.createElement(LP,{ref:z,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?U:U()},M=function(){var K=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!re},H=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},J=I.cloneElement(w,{className:de((n=w.props)===null||n===void 0?void 0:n.className,Q&&H()),ref:Kr(w)?Yn(Y,w.ref):void 0}),B=g;return!B&&C.indexOf("contextMenu")!==-1&&(B=["click"]),I.createElement(xd,Te({builtinPlacements:y},P,{prefixCls:a,ref:G,popupClassName:de(v,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:f,action:C,showAction:x,hideAction:B,popupPlacement:p,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:Q,stretch:M()?"minWidth":"",popup:j(),onPopupVisibleChange:ee,onPopupClick:W,getPopupContainer:_}),J)}const zP=I.forwardRef(BP);var m0=h.createContext(null);function g0(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function v0(e){var t=h.useContext(m0);return g0(t,e)}var qP=["children","locked"],Xn=h.createContext(null);function VP(e,t){var n=ie({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ba(e){var t=e.children,n=e.locked,r=nt(e,qP),o=h.useContext(Xn),i=ml(function(){return VP(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!la(a[1],s[1],!0))});return h.createElement(Xn.Provider,{value:i},t)}var HP=[],y0=h.createContext(null);function Ml(){return h.useContext(y0)}var b0=h.createContext(HP);function ja(e){var t=h.useContext(b0);return h.useMemo(function(){return e!==void 0?[].concat(xe(t),[e]):t},[t,e])}var _0=h.createContext(null),$d=h.createContext({});function bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tl(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function WP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xe(e.querySelectorAll("*")).filter(function(r){return bm(r,t)});return bm(e,t)&&n.unshift(e),n}var cf=$e.LEFT,uf=$e.RIGHT,ff=$e.UP,Ns=$e.DOWN,Is=$e.ENTER,w0=$e.ESC,Fi=$e.HOME,Di=$e.END,_m=[ff,Ns,cf,uf];function UP(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",p="parent";if(e==="inline"&&r===Is)return{inlineTrigger:!0};var d=(o={},oe(o,ff,l),oe(o,Ns,c),o),y=(i={},oe(i,cf,n?c:l),oe(i,uf,n?l:c),oe(i,Ns,u),oe(i,Is,u),i),_=(a={},oe(a,ff,l),oe(a,Ns,c),oe(a,Is,u),oe(a,w0,p),oe(a,cf,n?u:p),oe(a,uf,n?p:u),a),x={inline:d,horizontal:y,vertical:_,inlineSub:d,horizontalSub:_,verticalSub:_},g=(s=x["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function GP(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function KP(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Td(e,t){var n=WP(e,!0);return n.filter(function(r){return t.has(r)})}function wm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Td(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var df=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(g0(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function XP(e,t,n,r,o,i,a,s,l,c){var u=h.useRef(),p=h.useRef();p.current=t;var d=function(){Lt.cancel(u.current)};return h.useEffect(function(){return function(){d()}},[]),function(y){var _=y.which;if([].concat(_m,[Is,w0,Fi,Di]).includes(_)){var x=i(),g=df(x,r),v=g,f=v.elements,m=v.key2element,b=v.element2key,C=m.get(t),E=KP(C,f),S=b.get(E),w=UP(e,a(S,!0).length===1,n,_);if(!w&&_!==Fi&&_!==Di)return;(_m.includes(_)||[Fi,Di].includes(_))&&y.preventDefault();var O=function(z){if(z){var Y=z,ee=z.querySelector("a");ee!=null&&ee.getAttribute("href")&&(Y=ee);var W=b.get(z);s(W),d(),u.current=Lt(function(){p.current===W&&Y.focus()})}};if([Fi,Di].includes(_)||w.sibling||!E){var P;!E||e==="inline"?P=o.current:P=GP(E);var A,T=Td(P,f);_===Fi?A=T[0]:_===Di?A=T[T.length-1]:A=wm(P,f,E,w.offset),O(A)}else if(w.inlineTrigger)l(S);else if(w.offset>0)l(S,!0),d(),u.current=Lt(function(){g=df(x,r);var G=E.getAttribute("aria-controls"),z=document.getElementById(G),Y=wm(z,g.elements);O(Y)},5);else if(w.offset<0){var L=a(S,!0),D=L[L.length-2],Q=m.get(D);l(D,!1),O(Q)}}c==null||c(y)}}function YP(e){Promise.resolve().then(e)}var Pd="__RC_UTIL_PATH_SPLIT__",Cm=function(t){return t.join(Pd)},QP=function(t){return t.split(Pd)},pf="rc-menu-more";function JP(){var e=h.useState({}),t=he(e,2),n=t[1],r=I.useRef(new Map),o=I.useRef(new Map),i=h.useState([]),a=he(i,2),s=a[0],l=a[1],c=I.useRef(0),u=I.useRef(!1),p=function(){u.current||n({})},d=I.useCallback(function(m,b){ne.env.NODE_ENV!=="production"&&pt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(b.join(" > "),"]"));var C=Cm(b);o.current.set(C,m),r.current.set(m,C),c.current+=1;var E=c.current;YP(function(){E===c.current&&p()})},[]),y=I.useCallback(function(m,b){var C=Cm(b);o.current.delete(C),r.current.delete(m)},[]),_=I.useCallback(function(m){l(m)},[]),x=I.useCallback(function(m,b){var C=r.current.get(m)||"",E=QP(C);return b&&s.includes(E[0])&&E.unshift(pf),E},[s]),g=I.useCallback(function(m,b){return m.filter(function(C){return C!==void 0}).some(function(C){var E=x(C,!0);return E.includes(b)})},[x]),v=function(){var b=xe(r.current.keys());return s.length&&b.push(pf),b},f=I.useCallback(function(m){var b="".concat(r.current.get(m)).concat(Pd),C=new Set;return xe(o.current.keys()).forEach(function(E){E.startsWith(b)&&C.add(o.current.get(E))}),C},[]);return h.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:_,isSubPathKey:g,getKeyPath:x,getKeys:v,getSubPathKeys:f}}function Hi(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var ZP=Math.random().toFixed(5).toString().slice(2),xm=0;function eN(e){var t=Kn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return h.useEffect(function(){xm+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(ZP,"-").concat(xm);o("rc-menu-uuid-".concat(i))},[]),r}function C0(e,t,n,r){var o=h.useContext(Xn),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function x0(e){var t=h.useContext(Xn),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function S0(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=h.createElement(t,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var tN=["item"];function el(e){var t=e.item,n=nt(e,tN);return Object.defineProperty(n,"item",{get:function(){return pt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var nN=["title","attribute","elementRef"],rN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],oN=["active"],iN=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=nt(o,nN),c=Qn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Sr.Item,Te({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(h.Component),aN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,p=e.onMouseEnter,d=e.onMouseLeave,y=e.onClick,_=e.onKeyDown,x=e.onFocus,g=nt(e,rN),v=v0(i),f=h.useContext(Xn),m=f.prefixCls,b=f.onItemClick,C=f.disabled,E=f.overflowDisabled,S=f.itemIcon,w=f.selectedKeys,O=f.onActive,P=h.useContext($d),A=P._internalRenderMenuItem,T="".concat(m,"-item"),L=h.useRef(),D=h.useRef(),Q=C||s,G=bi(t,D),z=ja(i);ne.env.NODE_ENV!=="production"&&a&&pt(!1,"MenuItem should not leave undefined `key`.");var Y=function(k){return{key:i,keyPath:xe(z).reverse(),item:L.current,domEvent:k}},ee=l||S,W=C0(i,Q,p,d),U=W.active,j=nt(W,oN),M=w.includes(i),H=x0(z.length),J=function(k){if(!Q){var F=Y(k);y==null||y(el(F)),b(F)}},B=function(k){if(_==null||_(k),k.which===$e.ENTER){var F=Y(k);y==null||y(el(F)),b(F)}},q=function(k){O(i),x==null||x(k)},K={};e.role==="option"&&(K["aria-selected"]=M);var re=h.createElement(iN,Te({ref:L,elementRef:G,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&v?null:v},g,j,K,{component:"li","aria-disabled":s,style:ie(ie({},H),r),className:de(T,(n={},oe(n,"".concat(T,"-active"),U),oe(n,"".concat(T,"-selected"),M),oe(n,"".concat(T,"-disabled"),Q),n),o),onClick:J,onKeyDown:B,onFocus:q}),c,h.createElement(S0,{props:ie(ie({},e),{},{isSelected:M}),icon:ee}));return A&&(re=A(re,e,{selected:M})),re});function sN(e,t){var n=e.eventKey,r=Ml(),o=ja(n);return h.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:h.createElement(aN,Te({},e,{ref:t}))}const jl=h.forwardRef(sN);var lN=["className","children"],cN=function(t,n){var r=t.className,o=t.children,i=nt(t,lN),a=h.useContext(Xn),s=a.prefixCls,l=a.mode,c=a.rtl;return h.createElement("ul",Te({className:de(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Nd=h.forwardRef(cN);Nd.displayName="SubMenuList";function Id(e,t){return wo(e).map(function(n,r){if(h.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(xe(t),[r]).join("-")));var c={key:s,eventKey:s};return ne.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),h.cloneElement(n,c)}return n})}var sn={adjustX:1,adjustY:1},uN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},leftTop:{points:["tr","tl"],overflow:sn},leftBottom:{points:["br","bl"],overflow:sn},rightTop:{points:["tl","tr"],overflow:sn},rightBottom:{points:["bl","br"],overflow:sn}},fN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},rightTop:{points:["tr","tl"],overflow:sn},rightBottom:{points:["br","bl"],overflow:sn},leftTop:{points:["tl","tr"],overflow:sn},leftBottom:{points:["bl","br"],overflow:sn}};function E0(e,t,n){if(t)return t;if(n)return n[e]||n.other}var dN={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pN(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,p=h.useContext(Xn),d=p.getPopupContainer,y=p.rtl,_=p.subMenuOpenDelay,x=p.subMenuCloseDelay,g=p.builtinPlacements,v=p.triggerSubMenuAction,f=p.forceSubMenuRender,m=p.rootClassName,b=p.motion,C=p.defaultMotions,E=h.useState(!1),S=he(E,2),w=S[0],O=S[1],P=ie(y?ie({},fN):ie({},uN),g),A=dN[c],T=E0(c,b,C),L=h.useRef(T);c!=="inline"&&(L.current=T);var D=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Q=h.useRef();return h.useEffect(function(){return Q.current=Lt(function(){O(n)}),function(){Lt.cancel(Q.current)}},[n]),h.createElement(xd,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:P,popupPlacement:A,popupVisible:w,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:_,mouseLeaveDelay:x,onPopupVisibleChange:u,forceRender:f,popupMotion:D,fresh:!0},r)}function hN(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=h.useContext(Xn),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,p=a.mode,d=h.useRef(!1);d.current=p===i;var y=h.useState(!d.current),_=he(y,2),x=_[0],g=_[1],v=d.current?n:!1;h.useEffect(function(){d.current&&g(!1)},[p]);var f=ie({},E0(i,c,u));r.length>1&&(f.motionAppear=!1);var m=f.onVisibleChanged;return f.onVisibleChanged=function(b){return!d.current&&!b&&g(!0),m==null?void 0:m(b)},x?null:h.createElement(ba,{mode:i,locked:!d.current},h.createElement(Zn,Te({visible:v},f,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(b){var C=b.className,E=b.style;return h.createElement(Nd,{id:t,className:C,style:E},o)}))}var mN=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gN=["active"],vN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,p=e.itemIcon,d=e.expandIcon,y=e.popupClassName,_=e.popupOffset,x=e.popupStyle,g=e.onClick,v=e.onMouseEnter,f=e.onMouseLeave,m=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,E=nt(e,mN),S=v0(a),w=h.useContext(Xn),O=w.prefixCls,P=w.mode,A=w.openKeys,T=w.disabled,L=w.overflowDisabled,D=w.activeKey,Q=w.selectedKeys,G=w.itemIcon,z=w.expandIcon,Y=w.onItemClick,ee=w.onOpenChange,W=w.onActive,U=h.useContext($d),j=U._internalRenderSubMenuItem,M=h.useContext(_0),H=M.isSubPathKey,J=ja(),B="".concat(O,"-submenu"),q=T||l,K=h.useRef(),re=h.useRef();ne.env.NODE_ENV!=="production"&&s&&pt(!1,"SubMenu should not leave undefined `key`.");var se=p??G,k=d??z,F=A.includes(a),ae=!L&&F,Z=H(Q,a),me=C0(a,q,b,C),pe=me.active,Ce=nt(me,gN),Me=h.useState(!1),ce=he(Me,2),Ie=ce[0],Pe=ce[1],Oe=function(Ye){q||Pe(Ye)},ve=function(Ye){Oe(!0),v==null||v({key:a,domEvent:Ye})},we=function(Ye){Oe(!1),f==null||f({key:a,domEvent:Ye})},Se=h.useMemo(function(){return pe||(P!=="inline"?Ie||H([D],a):!1)},[P,pe,D,Ie,a,H]),Ee=x0(J.length),Ve=function(Ye){q||(m==null||m({key:a,domEvent:Ye}),P==="inline"&&ee(a,!F))},He=Hi(function(rt){g==null||g(el(rt)),Y(rt)}),Xe=function(Ye){P!=="inline"&&ee(a,Ye)},ft=function(){W(a)},mt=S&&"".concat(S,"-popup"),ct=h.createElement("div",Te({role:"menuitem",style:Ee,className:"".concat(B,"-title"),tabIndex:q?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":L&&S?null:S,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":mt,"aria-disabled":q,onClick:Ve,onFocus:ft},Ce),i,h.createElement(S0,{icon:P!=="horizontal"?k:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},h.createElement("i",{className:"".concat(B,"-arrow")}))),ze=h.useRef(P);if(P!=="inline"&&J.length>1?ze.current="vertical":ze.current=P,!L){var Ne=ze.current;ct=h.createElement(pN,{mode:Ne,prefixCls:B,visible:!c&&ae&&P!=="inline",popupClassName:y,popupOffset:_,popupStyle:x,popup:h.createElement(ba,{mode:Ne==="horizontal"?"vertical":Ne},h.createElement(Nd,{id:mt,ref:re},u)),disabled:q,onVisibleChange:Xe},ct)}var st=h.createElement(Sr.Item,Te({ref:t,role:"none"},E,{component:"li",style:r,className:de(B,"".concat(B,"-").concat(P),o,(n={},oe(n,"".concat(B,"-open"),ae),oe(n,"".concat(B,"-active"),Se),oe(n,"".concat(B,"-selected"),Z),oe(n,"".concat(B,"-disabled"),q),n)),onMouseEnter:ve,onMouseLeave:we}),ct,!L&&h.createElement(hN,{id:mt,open:ae,keyPath:J},u));return j&&(st=j(st,e,{selected:Z,active:Se,open:ae,disabled:q})),h.createElement(ba,{onItemClick:He,mode:P==="horizontal"?"vertical":P,itemIcon:se,expandIcon:k},st)}),kl=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=h.createElement(vN,Te({ref:t},e),i),h.createElement(b0.Provider,{value:o},s)});ne.env.NODE_ENV!=="production"&&(kl.displayName="SubMenu");function R0(e){var t=e.className,n=e.style,r=h.useContext(Xn),o=r.prefixCls,i=Ml();return i?null:h.createElement("li",{role:"separator",className:de("".concat(o,"-item-divider"),t),style:n})}var yN=["className","title","eventKey","children"],bN=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=nt(e,yN),a=h.useContext(Xn),s=a.prefixCls,l="".concat(s,"-item-group");return h.createElement("li",Te({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:de(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),Ad=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();return a?i:h.createElement(bN,Te({ref:t},Qn(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(Ad.displayName="MenuItemGroup");var _N=["label","children","key","type"];function hf(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,s){if(a&&Be(a)==="object"){var l=a,c=l.label,u=l.children,p=l.key,d=l.type,y=nt(l,_N),_=p??"tmp-".concat(s);return u||d==="group"?d==="group"?h.createElement(r,Te({key:_},y,{title:c}),hf(u,t)):h.createElement(o,Te({key:_},y,{title:c}),hf(u,t)):d==="divider"?h.createElement(i,Te({key:_},y)):h.createElement(n,Te({key:_},y),c)}return null}).filter(function(a){return a})}function Sm(e,t,n,r){var o=e,i=ie({divider:R0,item:jl,group:Ad,submenu:kl},r);return t&&(o=hf(t,i)),Id(o,n)}var wN=["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","_internalComponents"],ro=[],CN=h.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,p=u===void 0?0:u,d=o.items,y=o.children,_=o.direction,x=o.id,g=o.mode,v=g===void 0?"vertical":g,f=o.inlineCollapsed,m=o.disabled,b=o.disabledOverflow,C=o.subMenuOpenDelay,E=C===void 0?.1:C,S=o.subMenuCloseDelay,w=S===void 0?.1:S,O=o.forceSubMenuRender,P=o.defaultOpenKeys,A=o.openKeys,T=o.activeKey,L=o.defaultActiveFirst,D=o.selectable,Q=D===void 0?!0:D,G=o.multiple,z=G===void 0?!1:G,Y=o.defaultSelectedKeys,ee=o.selectedKeys,W=o.onSelect,U=o.onDeselect,j=o.inlineIndent,M=j===void 0?24:j,H=o.motion,J=o.defaultMotions,B=o.triggerSubMenuAction,q=B===void 0?"hover":B,K=o.builtinPlacements,re=o.itemIcon,se=o.expandIcon,k=o.overflowedIndicator,F=k===void 0?"...":k,ae=o.overflowedIndicatorPopupClassName,Z=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,Ce=o.onKeyDown,Me=o.openAnimation,ce=o.openTransitionName,Ie=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,Oe=o._internalComponents,ve=nt(o,wN),we=h.useMemo(function(){return[Sm(y,d,ro,Oe),Sm(y,d,ro,{})]},[y,d,Oe]),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useState(!1),Xe=he(He,2),ft=Xe[0],mt=Xe[1],ct=h.useRef(),ze=eN(x),Ne=_==="rtl";ne.env.NODE_ENV!=="production"&&pt(!Me&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=Kn(P,{value:A,postState:function(ut){return ut||ro}}),rt=he(st,2),Ye=rt[0],Ot=rt[1],Dt=function(ut){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qt(){Ot(ut),pe==null||pe(ut)}wt?_o.flushSync(Qt):Qt()},Ut=h.useState(Ye),gt=he(Ut,2),$t=gt[0],Je=gt[1],lt=h.useRef(!1),Tt=h.useMemo(function(){return(v==="inline"||v==="vertical")&&f?["vertical",f]:[v,!1]},[v,f]),Ge=he(Tt,2),ke=Ge[0],N=Ge[1],R=ke==="inline",$=h.useState(ke),V=he($,2),te=V[0],le=V[1],ge=h.useState(N),Fe=he(ge,2),Ze=Fe[0],et=Fe[1];h.useEffect(function(){le(ke),et(N),lt.current&&(R?Ot($t):Dt(ro))},[ke,N]);var X=h.useState(0),ue=he(X,2),ye=ue[0],Re=ue[1],Le=ye>=Ee.length-1||te!=="horizontal"||b;h.useEffect(function(){R&&Je(Ye)},[Ye]),h.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var je=JP(),De=je.registerPath,qe=je.unregisterPath,_t=je.refreshOverflowKeys,dt=je.isSubPathKey,Ke=je.getKeyPath,Mt=je.getKeys,hn=je.getSubPathKeys,Gt=h.useMemo(function(){return{registerPath:De,unregisterPath:qe}},[De,qe]),At=h.useMemo(function(){return{isSubPathKey:dt}},[dt]);h.useEffect(function(){_t(Le?ro:Ee.slice(ye+1).map(function(St){return St.key}))},[ye,Le]);var fr=Kn(T||L&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:T}),dr=he(fr,2),Rn=dr[0],Dn=dr[1],Mo=Hi(function(St){Dn(St)}),Pr=Hi(function(){Dn(void 0)});I.useImperativeHandle(t,function(){return{list:ct.current,focus:function(ut){var wt,Qt=Mt(),en=df(Qt,ze),Ir=en.elements,Ar=en.key2element,Ni=en.element2key,ko=Td(ct.current,Ir),Mr=Rn??(ko[0]?Ni.get(ko[0]):(wt=Ee.find(function(mn){return!mn.props.disabled}))===null||wt===void 0?void 0:wt.key),an=Ar.get(Mr);if(Mr&&an){var to;an==null||(to=an.focus)===null||to===void 0||to.call(an,ut)}}}});var Bn=Kn(Y||[],{value:ee,postState:function(ut){return Array.isArray(ut)?ut:ut==null?ro:[ut]}}),Zr=he(Bn,2),pr=Zr[0],On=Zr[1],yn=function(ut){if(Q){var wt=ut.key,Qt=pr.includes(wt),en;z?Qt?en=pr.filter(function(Ar){return Ar!==wt}):en=[].concat(xe(pr),[wt]):en=[wt],On(en);var Ir=ie(ie({},ut),{},{selectedKeys:en});Qt?U==null||U(Ir):W==null||W(Ir)}!z&&Ye.length&&te!=="inline"&&Dt(ro)},Nr=Hi(function(St){me==null||me(el(St)),yn(St)}),hr=Hi(function(St,ut){var wt=Ye.filter(function(en){return en!==St});if(ut)wt.push(St);else if(te!=="inline"){var Qt=hn(St);wt=wt.filter(function(en){return!Qt.has(en)})}la(Ye,wt,!0)||Dt(wt,!0)}),$n=function(ut,wt){var Qt=wt??!Ye.includes(ut);hr(ut,Qt)},Ti=XP(te,Rn,Ne,ze,ct,Mt,Ke,Dn,$n,Ce);h.useEffect(function(){mt(!0)},[]);var jo=h.useMemo(function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:Pe}},[Ie,Pe]),Pi=te!=="horizontal"||b?Ee:Ee.map(function(St,ut){return h.createElement(ba,{key:St.key,overflowDisabled:ut>ye},St)}),eo=h.createElement(Sr,Te({id:x,ref:ct,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:jl,className:de(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),Ze),oe(r,"".concat(a,"-rtl"),Ne),r),s),dir:_,style:l,role:"menu",tabIndex:p,data:Pi,renderRawItem:function(ut){return ut},renderRawRest:function(ut){var wt=ut.length,Qt=wt?Ee.slice(-wt):null;return h.createElement(kl,{eventKey:pf,title:F,disabled:Le,internalPopupClose:wt===0,popupClassName:ae},Qt)},maxCount:te!=="horizontal"||b?Sr.INVALIDATE:Sr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ut){Re(ut)},onKeyDown:Ti},ve));return h.createElement($d.Provider,{value:jo},h.createElement(m0.Provider,{value:ze},h.createElement(ba,{prefixCls:a,rootClassName:s,mode:te,openKeys:Ye,rtl:Ne,disabled:m,motion:ft?H:null,defaultMotions:ft?J:null,activeKey:Rn,onActive:Mo,onInactive:Pr,selectedKeys:pr,inlineIndent:M,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:K,triggerSubMenuAction:q,getPopupContainer:Z,itemIcon:re,expandIcon:se,onItemClick:Nr,onOpenChange:hr},h.createElement(_0.Provider,{value:At},eo),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(y0.Provider,{value:Gt},Ve)))))}),ka=CN;ka.Item=jl;ka.SubMenu=kl;ka.ItemGroup=Ad;ka.Divider=R0;var xN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},SN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:xN}))},O0=h.forwardRef(SN);ne.env.NODE_ENV!=="production"&&(O0.displayName="EllipsisOutlined");function $0(e){return Ft(e,{inputAffixPadding:e.paddingXXS})}const T0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:d,colorPrimaryHover:y,colorPrimary:_,controlOutlineWidth:x,controlOutline:g,colorErrorOutline:v,colorWarningOutline:f,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:p-o,addonBg:d,activeBorderColor:_,hoverBorderColor:y,activeShadow:`0 0 0 ${x}px ${g}`,errorActiveShadow:`0 0 0 ${x}px ${v}`,warningActiveShadow:`0 0 0 ${x}px ${f}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},EN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Md=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},EN(Ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),P0=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},P0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),RN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Em(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Em(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Rm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ON=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Md(e))}})}),$N=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},N0=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},N0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),TN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Om(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Om(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),$m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},$m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),$m(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),NN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),I0=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},A0=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),M0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},NN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},I0(e)),"&-sm":Object.assign({},A0(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),IN=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},I0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},A0(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},yy()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
189
189
  & > ${t}-affix-wrapper,
190
190
  & > ${t}-number-affix-wrapper,
191
191
  & > ${n}-picker-range
@@ -203,7 +203,7 @@ html body {
203
203
  ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},FN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
204
204
  &-allow-clear > ${t},
205
205
  &-affix-wrapper${r}-has-feedback ${t}
206
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jd=un("Input",e=>{const t=Ft(e,$0(e));return[AN(t),FN(t),jN(t),kN(t),LN(t),DN(t),sb(t)]},T0,{resetFont:!1});var BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},zN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:BN}))},j0=h.forwardRef(zN);ne.env.NODE_ENV!=="production"&&(j0.displayName="PlusOutlined");const Ll=I.createContext(null);var qN=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=I.useState(),p=he(u,2),d=p[0],y=p[1],_=I.useRef(),x=I.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function g(){Lt.cancel(_.current)}return I.useEffect(function(){var v={};if(n)if(r){v.width=x(n.width);var f=o?"right":"left";c==="start"&&(v[f]=n[f]),c==="center"&&(v[f]=n[f]+n.width/2,v.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[f]=n[f]+n.width,v.transform="translateX(-100%)")}else v.height=x(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return g(),_.current=Lt(function(){y(v)}),g},[n,r,o,c,x]),{style:d}},Tm={width:0,height:0,left:0,top:0};function VN(e,t,n){return I.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Tm,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Tm}var p=o.get(l)||ie({},c);p.right=a-p.left-p.width,o.set(l,p)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Pm(e,t){var n=h.useRef(e),r=h.useState({}),o=he(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var HN=.1,Nm=.01,As=20,Im=Math.pow(.995,As);function WN(e,t){var n=I.useState(),r=he(n,2),o=r[0],i=r[1],a=I.useState(0),s=he(a,2),l=s[0],c=s[1],u=I.useState(0),p=he(u,2),d=p[0],y=p[1],_=I.useState(),x=he(_,2),g=x[0],v=x[1],f=I.useRef();function m(O){var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T}),window.clearInterval(f.current)}function b(O){if(o){O.preventDefault();var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T});var L=A-o.x,D=T-o.y;t(L,D);var Q=Date.now();c(Q),y(Q-l),v({x:L,y:D})}}function C(){if(o&&(i(null),v(null),g)){var O=g.x/d,P=g.y/d,A=Math.abs(O),T=Math.abs(P);if(Math.max(A,T)<HN)return;var L=O,D=P;f.current=window.setInterval(function(){if(Math.abs(L)<Nm&&Math.abs(D)<Nm){window.clearInterval(f.current);return}L*=Im,D*=Im,t(L*As,D*As)},As)}}var E=I.useRef();function S(O){var P=O.deltaX,A=O.deltaY,T=0,L=Math.abs(P),D=Math.abs(A);L===D?T=E.current==="x"?P:A:L>D?(T=P,E.current="x"):(T=A,E.current="y"),t(-T,-T)&&O.preventDefault()}var w=I.useRef(null);w.current={onTouchStart:m,onTouchMove:b,onTouchEnd:C,onWheel:S},h.useEffect(function(){function O(L){w.current.onTouchStart(L)}function P(L){w.current.onTouchMove(L)}function A(L){w.current.onTouchEnd(L)}function T(L){w.current.onWheel(L)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",A)}},[])}function k0(e){var t=I.useState(0),n=he(t,2),r=n[0],o=n[1],i=I.useRef(0),a=I.useRef();return a.current=e,yu(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function UN(e){var t=I.useRef([]),n=I.useState({}),r=he(n,2),o=r[1],i=I.useRef(typeof e=="function"?e():e),a=k0(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var Am={width:0,height:0,left:0,top:0,right:0};function GN(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,p,d;return["top","bottom"].includes(l)?(u="width",p=c?"right":"left",d=Math.abs(n)):(u="height",p="top",d=-n),I.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,_=y,x=0;x<y;x+=1){var g=e.get(s[x].key)||Am;if(g[p]+g[u]>d+t){_=x-1;break}}for(var v=0,f=y-1;f>=0;f-=1){var m=e.get(s[f].key)||Am;if(m[p]<d){v=f+1;break}}return v>=_?[0,0]:[v,_]},[e,t,r,o,i,d,l,s.map(function(y){return y.key}).join("_"),c])}function Mm(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var KN="TABS_DQ";function L0(e){return String(e).replace(/"/g,KN)}function F0(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var D0=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),mf=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Be(o)==="object"&&!h.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});ne.env.NODE_ENV!=="production"&&(mf.displayName="ExtraContent");var XN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,p=e.editable,d=e.tabBarGutter,y=e.rtl,_=e.removeAriaLabel,x=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,f=I.useState(!1),m=he(f,2),b=m[0],C=m[1],E=I.useState(null),S=he(E,2),w=S[0],O=S[1],P=l.icon,A=P===void 0?"More":P,T="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=w!==null?"".concat(T,"-").concat(w):null,Q=i==null?void 0:i.dropdownAriaLabel;function G(M,H){M.preventDefault(),M.stopPropagation(),p.onEdit("remove",{key:H,event:M})}var z=h.createElement(ka,{onClick:function(H){var J=H.key,B=H.domEvent;x(J,B),C(!1)},prefixCls:"".concat(L,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[w],"aria-label":Q!==void 0?Q:"expanded dropdown"},o.map(function(M){var H=M.closable,J=M.disabled,B=M.closeIcon,q=M.key,K=M.label,re=F0(H,B,p,J);return h.createElement(jl,{key:q,id:"".concat(T,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:J},h.createElement("span",null,K),re&&h.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(k){k.stopPropagation(),G(k,q)}},B||p.removeIcon||"×"))}));function Y(M){for(var H=o.filter(function(re){return!re.disabled}),J=H.findIndex(function(re){return re.key===w})||0,B=H.length,q=0;q<B;q+=1){J=(J+M+B)%B;var K=H[J];if(!K.disabled){O(K.key);return}}}function ee(M){var H=M.which;if(!b){[$e.DOWN,$e.SPACE,$e.ENTER].includes(H)&&(C(!0),M.preventDefault());return}switch(H){case $e.UP:Y(-1),M.preventDefault();break;case $e.DOWN:Y(1),M.preventDefault();break;case $e.ESC:C(!1);break;case $e.SPACE:case $e.ENTER:w!==null&&x(w,M);break}}I.useEffect(function(){var M=document.getElementById(D);M&&M.scrollIntoView&&M.scrollIntoView(!1)},[w]),I.useEffect(function(){b||O(null)},[b]);var W=oe({},y?"marginRight":"marginLeft",d);o.length||(W.visibility="hidden",W.order=1);var U=de(oe({},"".concat(L,"-rtl"),y)),j=a?null:h.createElement(zP,Te({prefixCls:L,overlay:z,visible:o.length?b:!1,onVisibleChange:C,overlayClassName:de(U,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":b,onKeyDown:ee},A));return h.createElement("div",{className:de("".concat(n,"-nav-operations"),u),style:c,ref:t},j,h.createElement(D0,{prefixCls:n,locale:i,editable:p}))});const YN=h.memo(XN,function(e,t){return t.tabMoving});var QN=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,p=t.closable,d=t.renderWrapper,y=t.removeAriaLabel,_=t.editable,x=t.onClick,g=t.onFocus,v=t.style,f="".concat(n,"-tab"),m=F0(p,c,_,l);function b(w){l||x(w)}function C(w){w.preventDefault(),w.stopPropagation(),_.onEdit("remove",{key:a,event:w})}var E=h.useMemo(function(){return u&&typeof s=="string"?h.createElement("span",null,s):s},[s,u]),S=h.createElement("div",{key:a,"data-node-key":L0(a),className:de(f,oe(oe(oe({},"".concat(f,"-with-remove"),m),"".concat(f,"-active"),o),"".concat(f,"-disabled"),l)),style:v,onClick:b},h.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(f,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(O){O.stopPropagation(),b(O)},onKeyDown:function(O){[$e.SPACE,$e.ENTER].includes(O.which)&&(O.preventDefault(),b(O))},onFocus:g},u&&h.createElement("span",{className:"".concat(f,"-icon")},u),s&&E),m&&h.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(f,"-remove"),onClick:function(O){O.stopPropagation(),C(O)}},c||_.removeIcon||"×"));return d?d(S):S},JN=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,p=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,p-n.y]:[r,o,a,i]},Go=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return[l,c]}return[o,a]},ss=function(t,n){return t[n?0:1]},jm=h.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,p=e.tabPosition,d=e.tabBarGutter,y=e.children,_=e.onTabClick,x=e.onTabScroll,g=e.indicator,v=h.useContext(Ll),f=v.prefixCls,m=v.tabs,b=I.useRef(null),C=I.useRef(null),E=I.useRef(null),S=I.useRef(null),w=I.useRef(null),O=I.useRef(null),P=I.useRef(null),A=p==="top"||p==="bottom",T=Pm(0,function(ue,ye){A&&x&&x({direction:ue>ye?"left":"right"})}),L=he(T,2),D=L[0],Q=L[1],G=Pm(0,function(ue,ye){!A&&x&&x({direction:ue>ye?"top":"bottom"})}),z=he(G,2),Y=z[0],ee=z[1],W=I.useState([0,0]),U=he(W,2),j=U[0],M=U[1],H=I.useState([0,0]),J=he(H,2),B=J[0],q=J[1],K=I.useState([0,0]),re=he(K,2),se=re[0],k=re[1],F=I.useState([0,0]),ae=he(F,2),Z=ae[0],me=ae[1],pe=UN(new Map),Ce=he(pe,2),Me=Ce[0],ce=Ce[1],Ie=VN(m,Me,B[0]),Pe=ss(j,A),Oe=ss(B,A),ve=ss(se,A),we=ss(Z,A),Se=Pe<Oe+ve,Ee=Se?Pe-we:Pe-ve,Ve="".concat(f,"-nav-operations-hidden"),He=0,Xe=0;A&&s?(He=0,Xe=Math.max(0,Oe-Ee)):(He=Math.min(0,Ee-Oe),Xe=0);function ft(ue){return ue<He?He:ue>Xe?Xe:ue}var mt=I.useRef(null),ct=I.useState(),ze=he(ct,2),Ne=ze[0],st=ze[1];function rt(){st(Date.now())}function Ye(){mt.current&&clearTimeout(mt.current)}WN(S,function(ue,ye){function Re(Le,je){Le(function(De){var qe=ft(De+je);return qe})}return Se?(A?Re(Q,ue):Re(ee,ye),Ye(),rt(),!0):!1}),I.useEffect(function(){return Ye(),Ne&&(mt.current=setTimeout(function(){st(0)},100)),Ye},[Ne]);var Ot=GN(Ie,Ee,A?D:Y,Oe,ve,we,ie(ie({},e),{},{tabs:m})),Dt=he(Ot,2),Ut=Dt[0],gt=Dt[1],$t=Zt(function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,ye=Ie.get(ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var Re=D;s?ye.right<D?Re=ye.right:ye.right+ye.width>D+Ee&&(Re=ye.right+ye.width-Ee):ye.left<-D?Re=-ye.left:ye.left+ye.width>-D+Ee&&(Re=-(ye.left+ye.width-Ee)),ee(0),Q(ft(Re))}else{var Le=Y;ye.top<-Y?Le=-ye.top:ye.top+ye.height>-Y+Ee&&(Le=-(ye.top+ye.height-Ee)),Q(0),ee(ft(Le))}}),Qe={};p==="top"||p==="bottom"?Qe[s?"marginRight":"marginLeft"]=d:Qe.marginTop=d;var lt=m.map(function(ue,ye){var Re=ue.key;return h.createElement(QN,{id:o,prefixCls:f,key:Re,tab:ue,style:ye===0?void 0:Qe,closable:ue.closable,editable:c,active:Re===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(je){_(Re,je)},onFocus:function(){$t(Re),rt(),S.current&&(s||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),Tt=function(){return ce(function(){var ye,Re=new Map,Le=(ye=w.current)===null||ye===void 0?void 0:ye.getBoundingClientRect();return m.forEach(function(je){var De,qe=je.key,_t=(De=w.current)===null||De===void 0?void 0:De.querySelector('[data-node-key="'.concat(L0(qe),'"]'));if(_t){var dt=JN(_t,Le),Ke=he(dt,4),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3];Re.set(qe,{width:Mt,height:hn,left:Gt,top:At})}}),Re})};I.useEffect(function(){Tt()},[m.map(function(ue){return ue.key}).join("_")]);var Ge=k0(function(){var ue=Go(b),ye=Go(C),Re=Go(E);M([ue[0]-ye[0]-Re[0],ue[1]-ye[1]-Re[1]]);var Le=Go(P);k(Le);var je=Go(O);me(je);var De=Go(w);q([De[0]-Le[0],De[1]-Le[1]]),Tt()}),ke=m.slice(0,Ut),N=m.slice(gt+1),R=[].concat(xe(ke),xe(N)),$=Ie.get(a),V=qN({activeTabOffset:$,horizontal:A,indicator:g,rtl:s}),te=V.style;I.useEffect(function(){$t()},[a,He,Xe,Mm($),Mm(Ie),A]),I.useEffect(function(){Ge()},[s]);var le=!!R.length,ge="".concat(f,"-nav-wrap"),Fe,Je,et,X;return A?s?(Je=D>0,Fe=D!==Xe):(Fe=D<0,Je=D!==He):(et=Y<0,X=Y!==He),h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:bi(t,b),role:"tablist",className:de("".concat(f,"-nav"),n),style:r,onKeyDown:function(){rt()}},h.createElement(mf,{ref:C,position:"left",extra:l,prefixCls:f}),h.createElement(cr,{onResize:Ge},h.createElement("div",{className:de(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),Fe),"".concat(ge,"-ping-right"),Je),"".concat(ge,"-ping-top"),et),"".concat(ge,"-ping-bottom"),X)),ref:S},h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:w,className:"".concat(f,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(Y,"px)"),transition:Ne?"none":void 0}},lt,h.createElement(D0,{ref:P,prefixCls:f,locale:u,editable:c,style:ie(ie({},lt.length===0?void 0:Qe),{},{visibility:le?"hidden":null})}),h.createElement("div",{className:de("".concat(f,"-ink-bar"),oe({},"".concat(f,"-ink-bar-animated"),i.inkBar)),style:te}))))),h.createElement(YN,Te({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:f,tabs:R,className:!le&&Ve,tabMoving:!!Ne})),h.createElement(mf,{ref:E,position:"right",extra:l,prefixCls:f})))}),kd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return h.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:de(n,a&&"".concat(n,"-active"),r),ref:t},l)});ne.env.NODE_ENV!=="production"&&(kd.displayName="TabPane");var ZN=["renderTabBar"],eI=["label","key"],B0=function(t){var n=t.renderTabBar,r=nt(t,ZN),o=h.useContext(Ll),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=nt(s,eI);return h.createElement(kd,Te({tab:l,key:c,tabKey:c},u))})});return n(a,jm)}return h.createElement(jm,r)};ne.env.NODE_ENV!=="production"&&(B0.displayName="TabNavListWrapper");var tI=["key","forceRender","style","className","destroyInactiveTabPane"],nI=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=h.useContext(Ll),l=s.prefixCls,c=s.tabs,u=o.tabPane,p="".concat(l,"-tabpane");return h.createElement("div",{className:de("".concat(l,"-content-holder"))},h.createElement("div",{className:de("".concat(l,"-content"),"".concat(l,"-content-").concat(i),oe({},"".concat(l,"-content-animated"),u))},c.map(function(d){var y=d.key,_=d.forceRender,x=d.style,g=d.className,v=d.destroyInactiveTabPane,f=nt(d,tI),m=y===r;return h.createElement(Zn,Te({key:y,visible:m,forceRender:_,removeOnLeave:!!(a||v),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(b,C){var E=b.style,S=b.className;return h.createElement(kd,Te({},f,{prefixCls:p,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},x),E),className:de(g,S),ref:C}))})})))};function rI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ie({inkBar:!0},Be(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ne.env.NODE_ENV!=="production"&&pt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var oI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],km=0,z0=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,p=e.animated,d=e.tabPosition,y=d===void 0?"top":d,_=e.tabBarGutter,x=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,f=e.more,m=e.destroyInactiveTabPane,b=e.renderTabBar,C=e.onChange,E=e.onTabClick,S=e.onTabScroll,w=e.getPopupContainer,O=e.popupClassName,P=e.indicator,A=nt(e,oI),T=h.useMemo(function(){return(a||[]).filter(function(Z){return Z&&Be(Z)==="object"&&"key"in Z})},[a]),L=s==="rtl",D=rI(p),Q=I.useState(!1),G=he(Q,2),z=G[0],Y=G[1];I.useEffect(function(){Y(Yb())},[]);var ee=Kn(function(){var Z;return(Z=T[0])===null||Z===void 0?void 0:Z.key},{value:l,defaultValue:c}),W=he(ee,2),U=W[0],j=W[1],M=I.useState(function(){return T.findIndex(function(Z){return Z.key===U})}),H=he(M,2),J=H[0],B=H[1];I.useEffect(function(){var Z=T.findIndex(function(pe){return pe.key===U});if(Z===-1){var me;Z=Math.max(0,Math.min(J,T.length-1)),j((me=T[Z])===null||me===void 0?void 0:me.key)}B(Z)},[T.map(function(Z){return Z.key}).join("_"),U,J]);var q=Kn(null,{value:n}),K=he(q,2),re=K[0],se=K[1];I.useEffect(function(){n||(se("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":km)),km+=1)},[]);function k(Z,me){E==null||E(Z,me);var pe=Z!==U;j(Z),pe&&(C==null||C(Z))}var F={id:re,activeKey:U,animated:D,tabPosition:y,rtl:L,mobile:z},ae=ie(ie({},F),{},{editable:u,locale:v,more:f,tabBarGutter:_,onTabClick:k,onTabScroll:S,extra:g,style:x,panes:null,getPopupContainer:w,popupClassName:O,indicator:P});return h.createElement(Ll.Provider,{value:{tabs:T,prefixCls:o}},h.createElement("div",Te({ref:t,id:n,className:de(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},A),h.createElement(B0,Te({},ae,{renderTabBar:b})),h.createElement(nI,Te({destroyInactiveTabPane:m},F,{animated:D}))))});ne.env.NODE_ENV!=="production"&&(z0.displayName="Tabs");const iI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function aI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},iI),{motionName:So(e,"switch")})),n}var sI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lI(e){return e.filter(t=>t)}function cI(e,t){if(ne.env.NODE_ENV!=="production"&&Pt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=wo(t).map(r=>{if(h.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=sI(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return lI(n)}const uI=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[om(e,"slide-up"),om(e,"slide-down")]]},fI=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},vn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${_e(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},iE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},pI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
206
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jd=un("Input",e=>{const t=Ft(e,$0(e));return[AN(t),FN(t),jN(t),kN(t),LN(t),DN(t),sb(t)]},T0,{resetFont:!1});var BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},zN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:BN}))},j0=h.forwardRef(zN);ne.env.NODE_ENV!=="production"&&(j0.displayName="PlusOutlined");const Ll=I.createContext(null);var qN=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=I.useState(),p=he(u,2),d=p[0],y=p[1],_=I.useRef(),x=I.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function g(){Lt.cancel(_.current)}return I.useEffect(function(){var v={};if(n)if(r){v.width=x(n.width);var f=o?"right":"left";c==="start"&&(v[f]=n[f]),c==="center"&&(v[f]=n[f]+n.width/2,v.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[f]=n[f]+n.width,v.transform="translateX(-100%)")}else v.height=x(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return g(),_.current=Lt(function(){y(v)}),g},[n,r,o,c,x]),{style:d}},Tm={width:0,height:0,left:0,top:0};function VN(e,t,n){return I.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Tm,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Tm}var p=o.get(l)||ie({},c);p.right=a-p.left-p.width,o.set(l,p)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Pm(e,t){var n=h.useRef(e),r=h.useState({}),o=he(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var HN=.1,Nm=.01,As=20,Im=Math.pow(.995,As);function WN(e,t){var n=I.useState(),r=he(n,2),o=r[0],i=r[1],a=I.useState(0),s=he(a,2),l=s[0],c=s[1],u=I.useState(0),p=he(u,2),d=p[0],y=p[1],_=I.useState(),x=he(_,2),g=x[0],v=x[1],f=I.useRef();function m(O){var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T}),window.clearInterval(f.current)}function b(O){if(o){O.preventDefault();var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T});var L=A-o.x,D=T-o.y;t(L,D);var Q=Date.now();c(Q),y(Q-l),v({x:L,y:D})}}function C(){if(o&&(i(null),v(null),g)){var O=g.x/d,P=g.y/d,A=Math.abs(O),T=Math.abs(P);if(Math.max(A,T)<HN)return;var L=O,D=P;f.current=window.setInterval(function(){if(Math.abs(L)<Nm&&Math.abs(D)<Nm){window.clearInterval(f.current);return}L*=Im,D*=Im,t(L*As,D*As)},As)}}var E=I.useRef();function S(O){var P=O.deltaX,A=O.deltaY,T=0,L=Math.abs(P),D=Math.abs(A);L===D?T=E.current==="x"?P:A:L>D?(T=P,E.current="x"):(T=A,E.current="y"),t(-T,-T)&&O.preventDefault()}var w=I.useRef(null);w.current={onTouchStart:m,onTouchMove:b,onTouchEnd:C,onWheel:S},h.useEffect(function(){function O(L){w.current.onTouchStart(L)}function P(L){w.current.onTouchMove(L)}function A(L){w.current.onTouchEnd(L)}function T(L){w.current.onWheel(L)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",A)}},[])}function k0(e){var t=I.useState(0),n=he(t,2),r=n[0],o=n[1],i=I.useRef(0),a=I.useRef();return a.current=e,yu(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function UN(e){var t=I.useRef([]),n=I.useState({}),r=he(n,2),o=r[1],i=I.useRef(typeof e=="function"?e():e),a=k0(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var Am={width:0,height:0,left:0,top:0,right:0};function GN(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,p,d;return["top","bottom"].includes(l)?(u="width",p=c?"right":"left",d=Math.abs(n)):(u="height",p="top",d=-n),I.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,_=y,x=0;x<y;x+=1){var g=e.get(s[x].key)||Am;if(g[p]+g[u]>d+t){_=x-1;break}}for(var v=0,f=y-1;f>=0;f-=1){var m=e.get(s[f].key)||Am;if(m[p]<d){v=f+1;break}}return v>=_?[0,0]:[v,_]},[e,t,r,o,i,d,l,s.map(function(y){return y.key}).join("_"),c])}function Mm(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var KN="TABS_DQ";function L0(e){return String(e).replace(/"/g,KN)}function F0(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var D0=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),mf=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Be(o)==="object"&&!h.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});ne.env.NODE_ENV!=="production"&&(mf.displayName="ExtraContent");var XN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,p=e.editable,d=e.tabBarGutter,y=e.rtl,_=e.removeAriaLabel,x=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,f=I.useState(!1),m=he(f,2),b=m[0],C=m[1],E=I.useState(null),S=he(E,2),w=S[0],O=S[1],P=l.icon,A=P===void 0?"More":P,T="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=w!==null?"".concat(T,"-").concat(w):null,Q=i==null?void 0:i.dropdownAriaLabel;function G(M,H){M.preventDefault(),M.stopPropagation(),p.onEdit("remove",{key:H,event:M})}var z=h.createElement(ka,{onClick:function(H){var J=H.key,B=H.domEvent;x(J,B),C(!1)},prefixCls:"".concat(L,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[w],"aria-label":Q!==void 0?Q:"expanded dropdown"},o.map(function(M){var H=M.closable,J=M.disabled,B=M.closeIcon,q=M.key,K=M.label,re=F0(H,B,p,J);return h.createElement(jl,{key:q,id:"".concat(T,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:J},h.createElement("span",null,K),re&&h.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(k){k.stopPropagation(),G(k,q)}},B||p.removeIcon||"×"))}));function Y(M){for(var H=o.filter(function(re){return!re.disabled}),J=H.findIndex(function(re){return re.key===w})||0,B=H.length,q=0;q<B;q+=1){J=(J+M+B)%B;var K=H[J];if(!K.disabled){O(K.key);return}}}function ee(M){var H=M.which;if(!b){[$e.DOWN,$e.SPACE,$e.ENTER].includes(H)&&(C(!0),M.preventDefault());return}switch(H){case $e.UP:Y(-1),M.preventDefault();break;case $e.DOWN:Y(1),M.preventDefault();break;case $e.ESC:C(!1);break;case $e.SPACE:case $e.ENTER:w!==null&&x(w,M);break}}I.useEffect(function(){var M=document.getElementById(D);M&&M.scrollIntoView&&M.scrollIntoView(!1)},[w]),I.useEffect(function(){b||O(null)},[b]);var W=oe({},y?"marginRight":"marginLeft",d);o.length||(W.visibility="hidden",W.order=1);var U=de(oe({},"".concat(L,"-rtl"),y)),j=a?null:h.createElement(zP,Te({prefixCls:L,overlay:z,visible:o.length?b:!1,onVisibleChange:C,overlayClassName:de(U,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":b,onKeyDown:ee},A));return h.createElement("div",{className:de("".concat(n,"-nav-operations"),u),style:c,ref:t},j,h.createElement(D0,{prefixCls:n,locale:i,editable:p}))});const YN=h.memo(XN,function(e,t){return t.tabMoving});var QN=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,p=t.closable,d=t.renderWrapper,y=t.removeAriaLabel,_=t.editable,x=t.onClick,g=t.onFocus,v=t.style,f="".concat(n,"-tab"),m=F0(p,c,_,l);function b(w){l||x(w)}function C(w){w.preventDefault(),w.stopPropagation(),_.onEdit("remove",{key:a,event:w})}var E=h.useMemo(function(){return u&&typeof s=="string"?h.createElement("span",null,s):s},[s,u]),S=h.createElement("div",{key:a,"data-node-key":L0(a),className:de(f,oe(oe(oe({},"".concat(f,"-with-remove"),m),"".concat(f,"-active"),o),"".concat(f,"-disabled"),l)),style:v,onClick:b},h.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(f,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(O){O.stopPropagation(),b(O)},onKeyDown:function(O){[$e.SPACE,$e.ENTER].includes(O.which)&&(O.preventDefault(),b(O))},onFocus:g},u&&h.createElement("span",{className:"".concat(f,"-icon")},u),s&&E),m&&h.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(f,"-remove"),onClick:function(O){O.stopPropagation(),C(O)}},c||_.removeIcon||"×"));return d?d(S):S},JN=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,p=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,p-n.y]:[r,o,a,i]},Go=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return[l,c]}return[o,a]},ss=function(t,n){return t[n?0:1]},jm=h.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,p=e.tabPosition,d=e.tabBarGutter,y=e.children,_=e.onTabClick,x=e.onTabScroll,g=e.indicator,v=h.useContext(Ll),f=v.prefixCls,m=v.tabs,b=I.useRef(null),C=I.useRef(null),E=I.useRef(null),S=I.useRef(null),w=I.useRef(null),O=I.useRef(null),P=I.useRef(null),A=p==="top"||p==="bottom",T=Pm(0,function(ue,ye){A&&x&&x({direction:ue>ye?"left":"right"})}),L=he(T,2),D=L[0],Q=L[1],G=Pm(0,function(ue,ye){!A&&x&&x({direction:ue>ye?"top":"bottom"})}),z=he(G,2),Y=z[0],ee=z[1],W=I.useState([0,0]),U=he(W,2),j=U[0],M=U[1],H=I.useState([0,0]),J=he(H,2),B=J[0],q=J[1],K=I.useState([0,0]),re=he(K,2),se=re[0],k=re[1],F=I.useState([0,0]),ae=he(F,2),Z=ae[0],me=ae[1],pe=UN(new Map),Ce=he(pe,2),Me=Ce[0],ce=Ce[1],Ie=VN(m,Me,B[0]),Pe=ss(j,A),Oe=ss(B,A),ve=ss(se,A),we=ss(Z,A),Se=Pe<Oe+ve,Ee=Se?Pe-we:Pe-ve,Ve="".concat(f,"-nav-operations-hidden"),He=0,Xe=0;A&&s?(He=0,Xe=Math.max(0,Oe-Ee)):(He=Math.min(0,Ee-Oe),Xe=0);function ft(ue){return ue<He?He:ue>Xe?Xe:ue}var mt=I.useRef(null),ct=I.useState(),ze=he(ct,2),Ne=ze[0],st=ze[1];function rt(){st(Date.now())}function Ye(){mt.current&&clearTimeout(mt.current)}WN(S,function(ue,ye){function Re(Le,je){Le(function(De){var qe=ft(De+je);return qe})}return Se?(A?Re(Q,ue):Re(ee,ye),Ye(),rt(),!0):!1}),I.useEffect(function(){return Ye(),Ne&&(mt.current=setTimeout(function(){st(0)},100)),Ye},[Ne]);var Ot=GN(Ie,Ee,A?D:Y,Oe,ve,we,ie(ie({},e),{},{tabs:m})),Dt=he(Ot,2),Ut=Dt[0],gt=Dt[1],$t=Zt(function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,ye=Ie.get(ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var Re=D;s?ye.right<D?Re=ye.right:ye.right+ye.width>D+Ee&&(Re=ye.right+ye.width-Ee):ye.left<-D?Re=-ye.left:ye.left+ye.width>-D+Ee&&(Re=-(ye.left+ye.width-Ee)),ee(0),Q(ft(Re))}else{var Le=Y;ye.top<-Y?Le=-ye.top:ye.top+ye.height>-Y+Ee&&(Le=-(ye.top+ye.height-Ee)),Q(0),ee(ft(Le))}}),Je={};p==="top"||p==="bottom"?Je[s?"marginRight":"marginLeft"]=d:Je.marginTop=d;var lt=m.map(function(ue,ye){var Re=ue.key;return h.createElement(QN,{id:o,prefixCls:f,key:Re,tab:ue,style:ye===0?void 0:Je,closable:ue.closable,editable:c,active:Re===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(je){_(Re,je)},onFocus:function(){$t(Re),rt(),S.current&&(s||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),Tt=function(){return ce(function(){var ye,Re=new Map,Le=(ye=w.current)===null||ye===void 0?void 0:ye.getBoundingClientRect();return m.forEach(function(je){var De,qe=je.key,_t=(De=w.current)===null||De===void 0?void 0:De.querySelector('[data-node-key="'.concat(L0(qe),'"]'));if(_t){var dt=JN(_t,Le),Ke=he(dt,4),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3];Re.set(qe,{width:Mt,height:hn,left:Gt,top:At})}}),Re})};I.useEffect(function(){Tt()},[m.map(function(ue){return ue.key}).join("_")]);var Ge=k0(function(){var ue=Go(b),ye=Go(C),Re=Go(E);M([ue[0]-ye[0]-Re[0],ue[1]-ye[1]-Re[1]]);var Le=Go(P);k(Le);var je=Go(O);me(je);var De=Go(w);q([De[0]-Le[0],De[1]-Le[1]]),Tt()}),ke=m.slice(0,Ut),N=m.slice(gt+1),R=[].concat(xe(ke),xe(N)),$=Ie.get(a),V=qN({activeTabOffset:$,horizontal:A,indicator:g,rtl:s}),te=V.style;I.useEffect(function(){$t()},[a,He,Xe,Mm($),Mm(Ie),A]),I.useEffect(function(){Ge()},[s]);var le=!!R.length,ge="".concat(f,"-nav-wrap"),Fe,Ze,et,X;return A?s?(Ze=D>0,Fe=D!==Xe):(Fe=D<0,Ze=D!==He):(et=Y<0,X=Y!==He),h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:bi(t,b),role:"tablist",className:de("".concat(f,"-nav"),n),style:r,onKeyDown:function(){rt()}},h.createElement(mf,{ref:C,position:"left",extra:l,prefixCls:f}),h.createElement(cr,{onResize:Ge},h.createElement("div",{className:de(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),Fe),"".concat(ge,"-ping-right"),Ze),"".concat(ge,"-ping-top"),et),"".concat(ge,"-ping-bottom"),X)),ref:S},h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:w,className:"".concat(f,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(Y,"px)"),transition:Ne?"none":void 0}},lt,h.createElement(D0,{ref:P,prefixCls:f,locale:u,editable:c,style:ie(ie({},lt.length===0?void 0:Je),{},{visibility:le?"hidden":null})}),h.createElement("div",{className:de("".concat(f,"-ink-bar"),oe({},"".concat(f,"-ink-bar-animated"),i.inkBar)),style:te}))))),h.createElement(YN,Te({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:f,tabs:R,className:!le&&Ve,tabMoving:!!Ne})),h.createElement(mf,{ref:E,position:"right",extra:l,prefixCls:f})))}),kd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return h.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:de(n,a&&"".concat(n,"-active"),r),ref:t},l)});ne.env.NODE_ENV!=="production"&&(kd.displayName="TabPane");var ZN=["renderTabBar"],eI=["label","key"],B0=function(t){var n=t.renderTabBar,r=nt(t,ZN),o=h.useContext(Ll),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=nt(s,eI);return h.createElement(kd,Te({tab:l,key:c,tabKey:c},u))})});return n(a,jm)}return h.createElement(jm,r)};ne.env.NODE_ENV!=="production"&&(B0.displayName="TabNavListWrapper");var tI=["key","forceRender","style","className","destroyInactiveTabPane"],nI=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=h.useContext(Ll),l=s.prefixCls,c=s.tabs,u=o.tabPane,p="".concat(l,"-tabpane");return h.createElement("div",{className:de("".concat(l,"-content-holder"))},h.createElement("div",{className:de("".concat(l,"-content"),"".concat(l,"-content-").concat(i),oe({},"".concat(l,"-content-animated"),u))},c.map(function(d){var y=d.key,_=d.forceRender,x=d.style,g=d.className,v=d.destroyInactiveTabPane,f=nt(d,tI),m=y===r;return h.createElement(Zn,Te({key:y,visible:m,forceRender:_,removeOnLeave:!!(a||v),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(b,C){var E=b.style,S=b.className;return h.createElement(kd,Te({},f,{prefixCls:p,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},x),E),className:de(g,S),ref:C}))})})))};function rI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ie({inkBar:!0},Be(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ne.env.NODE_ENV!=="production"&&pt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var oI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],km=0,z0=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,p=e.animated,d=e.tabPosition,y=d===void 0?"top":d,_=e.tabBarGutter,x=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,f=e.more,m=e.destroyInactiveTabPane,b=e.renderTabBar,C=e.onChange,E=e.onTabClick,S=e.onTabScroll,w=e.getPopupContainer,O=e.popupClassName,P=e.indicator,A=nt(e,oI),T=h.useMemo(function(){return(a||[]).filter(function(Z){return Z&&Be(Z)==="object"&&"key"in Z})},[a]),L=s==="rtl",D=rI(p),Q=I.useState(!1),G=he(Q,2),z=G[0],Y=G[1];I.useEffect(function(){Y(Yb())},[]);var ee=Kn(function(){var Z;return(Z=T[0])===null||Z===void 0?void 0:Z.key},{value:l,defaultValue:c}),W=he(ee,2),U=W[0],j=W[1],M=I.useState(function(){return T.findIndex(function(Z){return Z.key===U})}),H=he(M,2),J=H[0],B=H[1];I.useEffect(function(){var Z=T.findIndex(function(pe){return pe.key===U});if(Z===-1){var me;Z=Math.max(0,Math.min(J,T.length-1)),j((me=T[Z])===null||me===void 0?void 0:me.key)}B(Z)},[T.map(function(Z){return Z.key}).join("_"),U,J]);var q=Kn(null,{value:n}),K=he(q,2),re=K[0],se=K[1];I.useEffect(function(){n||(se("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":km)),km+=1)},[]);function k(Z,me){E==null||E(Z,me);var pe=Z!==U;j(Z),pe&&(C==null||C(Z))}var F={id:re,activeKey:U,animated:D,tabPosition:y,rtl:L,mobile:z},ae=ie(ie({},F),{},{editable:u,locale:v,more:f,tabBarGutter:_,onTabClick:k,onTabScroll:S,extra:g,style:x,panes:null,getPopupContainer:w,popupClassName:O,indicator:P});return h.createElement(Ll.Provider,{value:{tabs:T,prefixCls:o}},h.createElement("div",Te({ref:t,id:n,className:de(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},A),h.createElement(B0,Te({},ae,{renderTabBar:b})),h.createElement(nI,Te({destroyInactiveTabPane:m},F,{animated:D}))))});ne.env.NODE_ENV!=="production"&&(z0.displayName="Tabs");const iI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function aI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},iI),{motionName:So(e,"switch")})),n}var sI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lI(e){return e.filter(t=>t)}function cI(e,t){if(ne.env.NODE_ENV!=="production"&&Pt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=wo(t).map(r=>{if(h.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=sI(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return lI(n)}const uI=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[om(e,"slide-up"),om(e,"slide-down")]]},fI=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},vn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${_e(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},iE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},pI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
207
207
  right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
208
208
  > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},hI=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},mI=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Ea(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},gI=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},vI=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${_e(e.paddingXS)}`,background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ea(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),mI(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},yI=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},bI=un("Tabs",e=>{const t=Ft(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[hI(t),gI(t),pI(t),dI(t),fI(t),vI(t),uI(t)]},yI),q0=()=>null;ne.env.NODE_ENV!=="production"&&(q0.displayName="DeprecatedTabPane");var _I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _a=e=>{var t,n,r,o,i,a,s,l,c,u,p;const{type:d,className:y,rootClassName:_,size:x,onEdit:g,hideAdd:v,centered:f,addIcon:m,removeIcon:b,moreIcon:C,more:E,popupClassName:S,children:w,items:O,animated:P,style:A,indicatorSize:T,indicator:L}=e,D=_I(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Q}=D,{direction:G,tabs:z,getPrefixCls:Y,getPopupContainer:ee}=h.useContext(Ue),W=Y("tabs",Q),U=En(W),[j,M,H]=bI(W,U);let J;d==="editable-card"&&(J={onEdit:(F,ae)=>{let{key:Z,event:me}=ae;g==null||g(F==="add"?me:Z,F)},removeIcon:(t=b??(z==null?void 0:z.removeIcon))!==null&&t!==void 0?t:h.createElement($o,null),addIcon:(m??(z==null?void 0:z.addIcon))||h.createElement(j0,null),showAdd:v!==!0});const B=Y();if(ne.env.NODE_ENV!=="production"){const F=Pt("Tabs");ne.env.NODE_ENV!=="production"&&F(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),ne.env.NODE_ENV!=="production"&&F(!(T||z!=null&&z.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Po(x),K=cI(O,w),re=aI(W,P),se=Object.assign(Object.assign({},z==null?void 0:z.style),A),k={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=z==null?void 0:z.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:(a=z==null?void 0:z.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:z==null?void 0:z.indicatorSize};return j(h.createElement(z0,Object.assign({direction:G,getPopupContainer:ee},D,{items:K,className:de({[`${W}-${q}`]:q,[`${W}-card`]:["card","editable-card"].includes(d),[`${W}-editable-card`]:d==="editable-card",[`${W}-centered`]:f},z==null?void 0:z.className,y,_,M,H,U),popupClassName:de(S,M,H,U),style:se,editable:J,more:Object.assign({icon:(p=(u=(c=(l=z==null?void 0:z.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:z==null?void 0:z.moreIcon)!==null&&u!==void 0?u:C)!==null&&p!==void 0?p:h.createElement(O0,null),transitionName:`${B}-slide-up`},E),prefixCls:W,animated:re,indicator:k})))};_a.TabPane=q0;ne.env.NODE_ENV!=="production"&&(_a.displayName="Tabs");const V0=I.createContext({}),wI=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},CI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},xI=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},gf=(e,t)=>xI(e,t),SI=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},gf(e,n))}),EI=()=>({}),RI=()=>({}),OI=un("Grid",wI,EI),$I=un("Grid",e=>{const t=Ft(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[CI(t),gf(t,""),gf(t,"-xs"),Object.keys(n).map(r=>SI(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},RI);var TI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Lm(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const PI=["xs","sm","md","lg","xl","xxl"],Ld=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(Ue),{gutter:o,wrap:i}=h.useContext(V0),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:p,className:d,children:y,flex:_,style:x}=e,g=TI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",a),[f,m,b]=$I(v),C={};let E={};PI.forEach(O=>{let P={};const A=e[O];typeof A=="number"?P.span=A:typeof A=="object"&&(P=A||{}),delete g[O],E=Object.assign(Object.assign({},E),{[`${v}-${O}-${P.span}`]:P.span!==void 0,[`${v}-${O}-order-${P.order}`]:P.order||P.order===0,[`${v}-${O}-offset-${P.offset}`]:P.offset||P.offset===0,[`${v}-${O}-push-${P.push}`]:P.push||P.push===0,[`${v}-${O}-pull-${P.pull}`]:P.pull||P.pull===0,[`${v}-rtl`]:r==="rtl"}),P.flex&&(E[`${v}-${O}-flex`]=!0,C[`--${v}-${O}-flex`]=Lm(P.flex))});const S=de(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${p}`]:p},d,E,m,b),w={};if(o&&o[0]>0){const O=o[0]/2;w.paddingLeft=O,w.paddingRight=O}return _&&(w.flex=Lm(_),i===!1&&!w.minWidth&&(w.minWidth=0)),f(h.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),x),C),className:S,ref:t}),y))});ne.env.NODE_ENV!=="production"&&(Ld.displayName="Col");var NI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Fm(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<ya.length;i++){const a=ya[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return h.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const H0=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=NI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=h.useContext(Ue),[y,_]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,g]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=Fm(o,x),f=Fm(r,x),m=h.useRef(l),b=UT();h.useEffect(()=>{const z=b.subscribe(Y=>{g(Y);const ee=m.current||0;(!Array.isArray(ee)&&typeof ee=="object"||Array.isArray(ee)&&(typeof ee[0]=="object"||typeof ee[1]=="object"))&&_(Y)});return()=>b.unsubscribe(z)},[]);const C=()=>{const z=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((ee,W)=>{if(typeof ee=="object")for(let U=0;U<ya.length;U++){const j=ya[U];if(y[j]&&ee[j]!==void 0){z[W]=ee[j];break}}else z[W]=ee}),z},E=p("row",n),[S,w,O]=OI(E),P=C(),A=de(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${f}`]:f,[`${E}-${v}`]:v,[`${E}-rtl`]:d==="rtl"},i,w,O),T={},L=P[0]!=null&&P[0]>0?P[0]/-2:void 0;L&&(T.marginLeft=L,T.marginRight=L);const[D,Q]=P;T.rowGap=Q;const G=h.useMemo(()=>({gutter:[D,Q],wrap:c}),[D,Q,c]);return S(h.createElement(V0.Provider,{value:G},h.createElement("div",Object.assign({},u,{className:A,style:Object.assign(Object.assign({},T),a),ref:t}),s)))});ne.env.NODE_ENV!=="production"&&(H0.displayName="Row");function II(e){return!!(e.addonBefore||e.addonAfter)}function AI(e){return!!(e.prefix||e.suffix||e.allowClear)}function Dm(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function tl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Dm(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Dm(t,e,r),n(o);return}n(o)}}function MI(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var W0=I.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,p=e.className,d=e.style,y=e.disabled,_=e.readOnly,x=e.focused,g=e.triggerFocus,v=e.allowClear,f=e.value,m=e.handleReset,b=e.hidden,C=e.classes,E=e.classNames,S=e.dataAttrs,w=e.styles,O=e.components,P=e.onClear,A=i??o,T=(O==null?void 0:O.affixWrapper)||"span",L=(O==null?void 0:O.groupWrapper)||"span",D=(O==null?void 0:O.wrapper)||"span",Q=(O==null?void 0:O.groupAddon)||"span",G=I.useRef(null),z=function(Z){var me;(me=G.current)!==null&&me!==void 0&&me.contains(Z.target)&&(g==null||g())},Y=AI(e),ee=I.cloneElement(A,{value:f,className:de(A.props.className,!Y&&(E==null?void 0:E.variant))||null}),W=I.useRef(null);if(I.useImperativeHandle(t,function(){return{nativeElement:W.current||G.current}}),Y){var U=null;if(v){var j=!y&&!_&&f,M="".concat(a,"-clear-icon"),H=Be(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";U=I.createElement("span",{onClick:function(Z){m==null||m(Z),P==null||P()},onMouseDown:function(Z){return Z.preventDefault()},className:de(M,oe(oe({},"".concat(M,"-hidden"),!j),"".concat(M,"-has-suffix"),!!l)),role:"button",tabIndex:-1},H)}var J="".concat(a,"-affix-wrapper"),B=de(J,oe(oe(oe(oe(oe({},"".concat(a,"-disabled"),y),"".concat(J,"-disabled"),y),"".concat(J,"-focused"),x),"".concat(J,"-readonly"),_),"".concat(J,"-input-with-clear-btn"),l&&v&&f),C==null?void 0:C.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),q=(l||v)&&I.createElement("span",{className:de("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},U,l);ee=I.createElement(T,Te({className:B,style:w==null?void 0:w.affixWrapper,onClick:z},S==null?void 0:S.affixWrapper,{ref:G}),s&&I.createElement("span",{className:de("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),ee,q)}if(II(e)){var K="".concat(a,"-group"),re="".concat(K,"-addon"),se="".concat(K,"-wrapper"),k=de("".concat(a,"-wrapper"),K,C==null?void 0:C.wrapper,E==null?void 0:E.wrapper),F=de(se,oe({},"".concat(se,"-disabled"),y),C==null?void 0:C.group,E==null?void 0:E.groupWrapper);ee=I.createElement(L,{className:F,ref:W},I.createElement(D,{className:k},c&&I.createElement(Q,{className:re},c),ee,u&&I.createElement(Q,{className:re},u)))}return I.cloneElement(ee,{className:de((n=ee.props)===null||n===void 0?void 0:n.className,p)||null,style:ie(ie({},(r=ee.props)===null||r===void 0?void 0:r.style),d),hidden:b})}),jI=["show"];function U0(e,t){return h.useMemo(function(){var n={};t&&(n.show=Be(t)==="object"&&t.formatter?t.formatter:!!t),n=ie(ie({},n),e);var r=n,o=r.show,i=nt(r,jI);return ie(ie({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var kI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],LI=I.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,p=e.disabled,d=e.htmlSize,y=e.className,_=e.maxLength,x=e.suffix,g=e.showCount,v=e.count,f=e.type,m=f===void 0?"text":f,b=e.classes,C=e.classNames,E=e.styles,S=e.onCompositionStart,w=e.onCompositionEnd,O=nt(e,kI),P=I.useState(!1),A=he(P,2),T=A[0],L=A[1],D=I.useRef(!1),Q=I.useRef(!1),G=I.useRef(null),z=I.useRef(null),Y=function(we){G.current&&MI(G.current,we)},ee=Kn(e.defaultValue,{value:e.value}),W=he(ee,2),U=W[0],j=W[1],M=U==null?"":String(U),H=I.useState(null),J=he(H,2),B=J[0],q=J[1],K=U0(v,g),re=K.max||_,se=K.strategy(M),k=!!re&&se>re;I.useImperativeHandle(t,function(){var ve;return{focus:Y,blur:function(){var Se;(Se=G.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,Ee,Ve){var He;(He=G.current)===null||He===void 0||He.setSelectionRange(Se,Ee,Ve)},select:function(){var Se;(Se=G.current)===null||Se===void 0||Se.select()},input:G.current,nativeElement:((ve=z.current)===null||ve===void 0?void 0:ve.nativeElement)||G.current}}),I.useEffect(function(){L(function(ve){return ve&&p?!1:ve})},[p]);var F=function(we,Se,Ee){var Ve=Se;if(!D.current&&K.exceedFormatter&&K.max&&K.strategy(Se)>K.max){if(Ve=K.exceedFormatter(Se,{max:K.max}),Se!==Ve){var He,Xe;q([((He=G.current)===null||He===void 0?void 0:He.selectionStart)||0,((Xe=G.current)===null||Xe===void 0?void 0:Xe.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;j(Ve),G.current&&tl(G.current,we,r,Ve)};I.useEffect(function(){if(B){var ve;(ve=G.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,xe(B))}},[B]);var ae=function(we){F(we,we.target.value,{source:"change"})},Z=function(we){D.current=!1,F(we,we.currentTarget.value,{source:"compositionEnd"}),w==null||w(we)},me=function(we){a&&we.key==="Enter"&&!Q.current&&(Q.current=!0,a(we)),s==null||s(we)},pe=function(we){we.key==="Enter"&&(Q.current=!1),l==null||l(we)},Ce=function(we){L(!0),o==null||o(we)},Me=function(we){L(!1),i==null||i(we)},ce=function(we){j(""),Y(),G.current&&tl(G.current,we,r)},Ie=k&&"".concat(u,"-out-of-range"),Pe=function(){var we=Qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return I.createElement("input",Te({autoComplete:n},we,{onChange:ae,onFocus:Ce,onBlur:Me,onKeyDown:me,onKeyUp:pe,className:de(u,oe({},"".concat(u,"-disabled"),p),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:G,size:d,type:m,onCompositionStart:function(Ee){D.current=!0,S==null||S(Ee)},onCompositionEnd:Z}))},Oe=function(){var we=Number(re)>0;if(x||K.show){var Se=K.showFormatter?K.showFormatter({value:M,count:se,maxLength:re}):"".concat(se).concat(we?" / ".concat(re):"");return I.createElement(I.Fragment,null,K.show&&I.createElement("span",{className:de("".concat(u,"-show-count-suffix"),oe({},"".concat(u,"-show-count-has-suffix"),!!x),C==null?void 0:C.count),style:ie({},E==null?void 0:E.count)},Se),x)}return null};return I.createElement(W0,Te({},O,{prefixCls:u,className:de(y,Ie),handleReset:ce,value:M,focused:T,triggerFocus:Y,suffix:Oe(),disabled:p,classes:b,classNames:C,styles:E}),Pe())});const FI=e=>{const{getPrefixCls:t,direction:n}=I.useContext(Ue),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=jd(a),c=de(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=I.useContext(xn),p=I.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return ne.env.NODE_ENV!=="production"&&Pt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(h.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(xn.Provider,{value:p},e.children)))},G0=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:I.createElement(xi,null)}),t};function K0(e,t){const n=I.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return I.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function DI(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var BI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function zI(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const La=I.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:p,addonAfter:d,addonBefore:y,className:_,style:x,styles:g,rootClassName:v,onChange:f,classNames:m,variant:b}=e,C=BI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:Z}=Pt("Input");Z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,input:w}=I.useContext(Ue),O=E("input",r),P=I.useRef(null),A=En(O),[T,L,D]=jd(O,A),{compactSize:Q,compactItemClassnames:G}=ud(O,S),z=Po(Z=>{var me;return(me=a??Q)!==null&&me!==void 0?me:Z}),Y=I.useContext(Wr),ee=s??Y,{status:W,hasFeedback:U,feedbackIcon:j}=I.useContext(xn),M=Sd(W,i),H=DI(e)||!!U,J=I.useRef(H);if(ne.env.NODE_ENV!=="production"){const Z=Pt("Input");I.useEffect(()=>{var me;H&&!J.current&&ne.env.NODE_ENV!=="production"&&Z(document.activeElement===((me=P.current)===null||me===void 0?void 0:me.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),J.current=H},[H])}const B=K0(P,!0),q=Z=>{B(),l==null||l(Z)},K=Z=>{B(),c==null||c(Z)},re=Z=>{B(),f==null||f(Z)},se=(U||u)&&I.createElement(I.Fragment,null,u,U&&j),k=G0(p??(w==null?void 0:w.allowClear)),[F,ae]=r0("input",b,o);return T(I.createElement(LI,Object.assign({ref:Yn(t,P),prefixCls:O,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:ee,onBlur:q,onFocus:K,style:Object.assign(Object.assign({},w==null?void 0:w.style),x),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:se,allowClear:k,className:de(_,v,D,A,G,w==null?void 0:w.className),onChange:re,addonBefore:y&&I.createElement(Ys,{form:!0,space:!0},y),addonAfter:d&&I.createElement(Ys,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),w==null?void 0:w.classNames),{input:de({[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="large",[`${O}-rtl`]:S==="rtl"},m==null?void 0:m.input,(n=w==null?void 0:w.classNames)===null||n===void 0?void 0:n.input,L),variant:de({[`${O}-${F}`]:ae},lf(O,M)),affixWrapper:de({[`${O}-affix-wrapper-sm`]:z==="small",[`${O}-affix-wrapper-lg`]:z==="large",[`${O}-affix-wrapper-rtl`]:S==="rtl"},L),wrapper:de({[`${O}-group-rtl`]:S==="rtl"},L),groupWrapper:de({[`${O}-group-wrapper-sm`]:z==="small",[`${O}-group-wrapper-lg`]:z==="large",[`${O}-group-wrapper-rtl`]:S==="rtl",[`${O}-group-wrapper-${F}`]:ae},lf(`${O}-group-wrapper`,M,U),L)})})))});ne.env.NODE_ENV!=="production"&&(La.displayName="Input");const qI=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},VI=un(["Input","OTP"],e=>{const t=Ft(e,$0(e));return[qI(t)]},T0);var HI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WI=h.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=HI(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=_=>{r(i,_.target.value)},u=h.useRef(null);h.useImperativeHandle(t,()=>u.current);const p=()=>{Lt(()=>{var _;const x=(_=u.current)===null||_===void 0?void 0:_.input;document.activeElement===x&&x&&x.select()})},d=_=>{let{key:x}=_;x==="ArrowLeft"?o(i-1):x==="ArrowRight"&&o(i+1),p()},y=_=>{_.key==="Backspace"&&!n&&o(i-1),p()};return h.createElement(La,Object.assign({},s,{ref:u,value:l,onInput:c,onFocus:p,onKeyDown:d,onKeyUp:y,onMouseDown:p,onMouseUp:p,type:a===!0?"password":"text"}))});var UI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ls(e){return(e||"").split("")}const GI=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:p,autoFocus:d,mask:y}=e,_=UI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(ne.env.NODE_ENV!=="production"){const U=Pt("Input.OTP");ne.env.NODE_ENV!=="production"&&U(!(typeof y=="string"&&y.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:x,direction:g}=h.useContext(Ue),v=x("otp",n),f=Ta(_,{aria:!0,data:!0,attr:!0}),m=En(v),[b,C,E]=VI(v,m),S=Po(U=>o??U),w=h.useContext(xn),O=Sd(w.status,p),P=h.useMemo(()=>Object.assign(Object.assign({},w),{status:O,hasFeedback:!1,feedbackIcon:null}),[w,O]),A=h.useRef(null),T=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var U;(U=T.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let j=0;j<r;j+=1)(U=T.current[j])===null||U===void 0||U.blur()},nativeElement:A.current}));const L=U=>l?l(U):U,[D,Q]=h.useState(ls(L(i||"")));h.useEffect(()=>{a!==void 0&&Q(ls(a))},[a]);const G=Zt(U=>{Q(U),s&&U.length===r&&U.every(j=>j)&&U.some((j,M)=>D[M]!==j)&&s(U.join(""))}),z=Zt((U,j)=>{let M=xe(D);for(let J=0;J<U;J+=1)M[J]||(M[J]="");j.length<=1?M[U]=j:M=M.slice(0,U).concat(ls(j)),M=M.slice(0,r);for(let J=M.length-1;J>=0&&!M[J];J-=1)M.pop();const H=L(M.map(J=>J||" ").join(""));return M=ls(H).map((J,B)=>J===" "&&!M[B]?M[B]:J),M}),Y=(U,j)=>{var M;const H=z(U,j),J=Math.min(U+j.length,r-1);J!==U&&((M=T.current[J])===null||M===void 0||M.focus()),G(H)},ee=U=>{var j;(j=T.current[U])===null||j===void 0||j.focus()},W={variant:c,disabled:u,status:O,mask:y};return b(h.createElement("div",Object.assign({},f,{ref:A,className:de(v,{[`${v}-sm`]:S==="small",[`${v}-lg`]:S==="large",[`${v}-rtl`]:g==="rtl"},E,C)}),h.createElement(xn.Provider,{value:P},Array.from({length:r}).map((U,j)=>{const M=`otp-${j}`,H=D[j]||"";return h.createElement(WI,Object.assign({ref:J=>{T.current[j]=J},key:M,index:j,size:S,htmlSize:1,className:`${v}-input`,onChange:Y,value:H,onActiveChange:ee,autoFocus:j===0&&d},W))}))))});var KI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},XI=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:KI}))},X0=h.forwardRef(XI);ne.env.NODE_ENV!=="production"&&(X0.displayName="EyeInvisibleOutlined");var YI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},QI=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:YI}))},Y0=h.forwardRef(QI);ne.env.NODE_ENV!=="production"&&(Y0.displayName="EyeOutlined");var JI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZI=e=>e?h.createElement(Y0,null):h.createElement(X0,null),eA={click:"onClick",hover:"onMouseOver"},Q0=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=ZI}=e,a=h.useContext(Wr),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=I.useState(()=>l?o.visible:!1),p=I.useRef(null);h.useEffect(()=>{l&&u(o.visible)},[l,o]);const d=K0(p),y=()=>{s||(c&&d(),u(P=>{var A;const T=!P;return typeof o=="object"&&((A=o.onVisibleChange)===null||A===void 0||A.call(o,T)),T}))},_=P=>{const A=eA[r]||"",T=i(c),L={[A]:y,className:`${P}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return h.cloneElement(h.isValidElement(T)?T:h.createElement("span",null,T),L)},{className:x,prefixCls:g,inputPrefixCls:v,size:f}=e,m=JI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=h.useContext(Ue),C=b("input",v),E=b("input-password",g),S=o&&_(E),w=de(E,x,{[`${E}-${f}`]:!!f}),O=Object.assign(Object.assign({},Qn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:w,prefixCls:C,suffix:S});return f&&(O.size=f),h.createElement(La,Object.assign({ref:Yn(t,p)},O))});ne.env.NODE_ENV!=="production"&&(Q0.displayName="Input.Password");var tA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const J0=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:y,onCompositionEnd:_}=e,x=tA(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=h.useContext(Ue),f=h.useRef(!1),m=g("input-search",n),b=g("input",r),{compactSize:C}=ud(m,v),E=Po(W=>{var U;return(U=i??C)!==null&&U!==void 0?U:W}),S=h.useRef(null),w=W=>{W!=null&&W.target&&W.type==="click"&&p&&p(W.target.value,W,{source:"clear"}),d==null||d(W)},O=W=>{var U;document.activeElement===((U=S.current)===null||U===void 0?void 0:U.input)&&W.preventDefault()},P=W=>{var U,j;p&&p((j=(U=S.current)===null||U===void 0?void 0:U.input)===null||j===void 0?void 0:j.value,W,{source:"input"})},A=W=>{f.current||c||P(W)},T=typeof s=="boolean"?h.createElement(o0,null):null,L=`${m}-button`;let D;const Q=s||{},G=Q.type&&Q.type.__ANT_BUTTON===!0;G||Q.type==="button"?D=Er(Q,Object.assign({onMouseDown:O,onClick:W=>{var U,j;(j=(U=Q==null?void 0:Q.props)===null||U===void 0?void 0:U.onClick)===null||j===void 0||j.call(U,W),P(W)},key:"enterButton"},G?{className:L,size:E}:{})):D=h.createElement(ur,{className:L,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:O,onClick:P,loading:c,icon:T},s),l&&(D=[D,Er(l,{key:"addonAfter"})]);const z=de(m,{[`${m}-rtl`]:v==="rtl",[`${m}-${E}`]:!!E,[`${m}-with-button`]:!!s},o),Y=W=>{f.current=!0,y==null||y(W)},ee=W=>{f.current=!1,_==null||_(W)};return h.createElement(La,Object.assign({ref:Yn(S,t),onPressEnter:A},x,{size:E,onCompositionStart:Y,onCompositionEnd:ee,prefixCls:b,addonAfter:D,suffix:a,onChange:w,className:z,disabled:u}))});ne.env.NODE_ENV!=="production"&&(J0.displayName="Search");var nA=`
209
209
  min-height:0 !important;
@@ -239,7 +239,7 @@ Please check the server is up and running`),o.rejectWith({},[s,l,c])}),o}functi
239
239
  `?M+C:typeof M=="string"?M.replace(/\t/g,b):M});var S=[];E.forEach(function(M,H){if(typeof M=="object"){var J=M.tabstopId,B=S[J];if(B||(B=S[J]=[],B.index=J,B.value=""),B.indexOf(M)===-1){B.push(M);var q=E.indexOf(M,H+1);if(q!==-1){var K=E.slice(H+1,q),re=K.some(function(se){return typeof se=="object"});re&&!B.value?B.value=K:K.length&&(!B.value||typeof B.value!="string")&&(B.value=K.join(""))}}}}),S.forEach(function(M){M.length=0});var w={};function O(M){for(var H=[],J=0;J<M.length;J++){var B=M[J];if(typeof B=="object"){if(w[B.tabstopId])continue;var q=M.lastIndexOf(B,J-1);B=H[q]||{tabstopId:B.tabstopId}}H[J]=B}return H}for(var P=0;P<E.length;P++){var A=E[P];if(typeof A=="object"){var T=A.tabstopId,L=E.indexOf(A,P+1);if(w[T]){w[T]===A&&(w[T]=null);continue}var D=S[T],Q=typeof D.value=="string"?[D.value]:O(D.value);Q.unshift(P+1,Math.max(0,L-P)),Q.push(A),w[T]=A,E.splice.apply(E,Q),D.indexOf(A)===-1&&D.push(A)}}var G=0,z=0,Y="";E.forEach(function(M){if(typeof M=="string"){var H=M.split(`
240
240
  `);H.length>1?(z=H[H.length-1].length,G+=H.length-1):z+=M.length,Y+=M}else M.start?M.end={row:G,column:z}:M.start={row:G,column:z}});var ee=g.getSelectionRange(),W=g.session.replace(ee,Y),U=new d(g),j=g.inVirtualSelectionMode&&g.selection.index;U.addTabstops(S,ee.start,W,j)},this.insertSnippet=function(g,v){var f=this;if(g.inVirtualSelectionMode)return f.insertSnippetForSelection(g,v);g.forEachSelection(function(){f.insertSnippetForSelection(g,v)},null,{keepOrder:!0}),g.tabstopManager&&g.tabstopManager.tabNext()},this.$getScope=function(g){var v=g.session.$mode.$id||"";if(v=v.split("/").pop(),v==="html"||v==="php"){v==="php"&&!g.session.$mode.inlinePhp&&(v="html");var f=g.getCursorPosition(),m=g.session.getState(f.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?v="javascript":m.substring(0,4)=="css-"?v="css":m.substring(0,4)=="php-"&&(v="php"))}return v},this.getActiveScopes=function(g){var v=this.$getScope(g),f=[v],m=this.snippetMap;return m[v]&&m[v].includeScopes&&f.push.apply(f,m[v].includeScopes),f.push("_"),f},this.expandWithTab=function(g,v){var f=this,m=g.forEachSelection(function(){return f.expandSnippetForSelection(g,v)},null,{keepOrder:!0});return m&&g.tabstopManager&&g.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(g,v){var f=g.getCursorPosition(),m=g.session.getLine(f.row),b=m.substring(0,f.column),C=m.substr(f.column),E=this.snippetMap,S;return this.getActiveScopes(g).some(function(w){var O=E[w];return O&&(S=this.findMatchingSnippet(O,b,C)),!!S},this),S?(v&&v.dryRun||(g.session.doc.removeInLine(f.row,f.column-S.replaceBefore.length,f.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(g,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(g,v,f){for(var m=g.length;m--;){var b=g[m];if(!(b.startRe&&!b.startRe.test(v))&&!(b.endRe&&!b.endRe.test(f))&&!(!b.startRe&&!b.endRe))return b.matchBefore=b.startRe?b.startRe.exec(v):[""],b.matchAfter=b.endRe?b.endRe.exec(f):[""],b.replaceBefore=b.triggerRe?b.triggerRe.exec(v)[0]:"",b.replaceAfter=b.endTriggerRe?b.endTriggerRe.exec(f)[0]:"",b}},this.snippetMap={},this.snippetNameMap={},this.register=function(g,v){var f=this.snippetMap,m=this.snippetNameMap,b=this;g||(g=[]);function C(w){return w&&!/^\^?\(.*\)\$?$|^\\b$/.test(w)&&(w="(?:"+w+")"),w||""}function E(w,O,P){return w=C(w),O=C(O),w=O+w,w&&w[w.length-1]!="$"&&(w=w+"$"),new RegExp(w)}function S(w){w.scope||(w.scope=v||"_"),v=w.scope,f[v]||(f[v]=[],m[v]={});var O=m[v];if(w.name){var P=O[w.name];P&&b.unregister(P),O[w.name]=w}f[v].push(w),w.tabTrigger&&!w.trigger&&(!w.guard&&/^\w/.test(w.tabTrigger)&&(w.guard="\\b"),w.trigger=i.escapeRegExp(w.tabTrigger)),!(!w.trigger&&!w.guard&&!w.endTrigger&&!w.endGuard)&&(w.startRe=E(w.trigger,w.guard),w.triggerRe=new RegExp(w.trigger,"",!0),w.endRe=E(w.endTrigger,w.endGuard),w.endTriggerRe=new RegExp(w.endTrigger,"",!0))}g&&g.content?S(g):Array.isArray(g)&&g.forEach(S),this._signal("registerSnippets",{scope:v})},this.unregister=function(g,v){var f=this.snippetMap,m=this.snippetNameMap;function b(C){var E=m[C.scope||v];if(E&&E[C.name]){delete E[C.name];var S=f[C.scope||v],w=S&&S.indexOf(C);w>=0&&S.splice(w,1)}}g.content?b(g):Array.isArray(g)&&g.forEach(b)},this.parseSnippetFile=function(g){g=g.replace(/\r/g,"");for(var v=[],f={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,b;b=m.exec(g);){if(b[1])try{f=JSON.parse(b[1]),v.push(f)}catch{}if(b[4])f.content=b[4].replace(/^\t/gm,""),v.push(f),f={};else{var C=b[2],E=b[3];if(C=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;f.guard=S.exec(E)[1],f.trigger=S.exec(E)[1],f.endTrigger=S.exec(E)[1],f.endGuard=S.exec(E)[1]}else C=="snippet"?(f.tabTrigger=E.match(/^\S*/)[0],f.name||(f.name=E)):f[C]=E}}return v},this.getSnippetByName=function(g,v){var f=this.snippetNameMap,m;return this.getActiveScopes(v).some(function(b){var C=f[b];return C&&(m=C[g]),!!m},this),m}}).call(p.prototype);var d=function(g){if(g.tabstopManager)return g.tabstopManager;g.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(g)};(function(){this.attach=function(g){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=g,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(g){var v=g.action[0]=="r",f=g.start,m=g.end,b=f.row,C=m.row,E=C-b,S=m.column-f.column;if(v&&(E=-E,S=-S),!this.$inChange&&v){var w=this.selectedTabstop,O=w&&!w.some(function(L){return u(L.start,f)<=0&&u(L.end,m)>=0});if(O)return this.detach()}for(var P=this.ranges,A=0;A<P.length;A++){var T=P[A];if(!(T.end.row<f.row)){if(v&&u(f,T.start)<0&&u(m,T.end)>0){this.removeRange(T),A--;continue}T.start.row==b&&T.start.column>f.column&&(T.start.column+=S),T.end.row==b&&T.end.column>=f.column&&(T.end.column+=S),T.start.row>=b&&(T.start.row+=E),T.end.row>=b&&(T.end.row+=E),u(T.start,T.end)>0&&this.removeRange(T)}}P.length||this.detach()},this.updateLinkedFields=function(){var g=this.selectedTabstop;if(!(!g||!g.hasLinkedRanges)){this.$inChange=!0;for(var v=this.editor.session,f=v.getTextRange(g.firstNonLinked),m=g.length;m--;){var b=g[m];if(b.linked){var C=t.snippetManager.tmStrFormat(f,b.original);v.replace(b,C)}}this.$inChange=!1}},this.onAfterExec=function(g){g.command&&!g.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var g=this.editor.selection.lead,v=this.editor.selection.anchor,f=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var b=this.ranges[m].contains(g.row,g.column),C=f||this.ranges[m].contains(v.row,v.column);if(b&&C)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(g){var v=this.tabstops.length,f=this.index+(g||1);f=Math.min(Math.max(f,1),v),f==v&&(f=0),this.selectTabstop(f),f===0&&this.detach()},this.selectTabstop=function(g){this.$openTabstops=null;var v=this.tabstops[this.index];if(v&&this.addTabstopMarkers(v),this.index=g,v=this.tabstops[this.index],!(!v||!v.length)){if(this.selectedTabstop=v,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(v.firstNonLinked);else{var f=this.editor.multiSelect;f.toSingleRange(v.firstNonLinked.clone());for(var m=v.length;m--;)v.hasLinkedRanges&&v[m].linked||f.addRange(v[m].clone(),!0);f.ranges[0]&&f.addRange(f.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(g,v,f){if(this.$openTabstops||(this.$openTabstops=[]),!g[0]){var m=a.fromPoints(f,f);_(m.start,v),_(m.end,v),g[0]=[m],g[0].index=0}var b=this.index,C=[b+1,0],E=this.ranges;g.forEach(function(S,w){for(var O=this.$openTabstops[w]||S,P=S.length;P--;){var A=S[P],T=a.fromPoints(A.start,A.end||A.start);y(T.start,v),y(T.end,v),T.original=A,T.tabstop=O,E.push(T),O!=S?O.unshift(T):O[P]=T,A.fmtString?(T.linked=!0,O.hasLinkedRanges=!0):O.firstNonLinked||(O.firstNonLinked=T)}O.firstNonLinked||(O.hasLinkedRanges=!1),O===S&&(C.push(O),this.$openTabstops[w]=O),this.addTabstopMarkers(O)},this),C.length>2&&(this.tabstops.length&&C.push(C.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,C))},this.addTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){f.markerId||(f.markerId=v.addMarker(f,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){v.removeMarker(f.markerId),f.markerId=null})},this.removeRange=function(g){var v=g.tabstop.indexOf(g);g.tabstop.splice(v,1),v=this.ranges.indexOf(g),this.ranges.splice(v,1),this.editor.session.removeMarker(g.markerId),g.tabstop.length||(v=this.tabstops.indexOf(g.tabstop),v!=-1&&this.tabstops.splice(v,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(g){t.snippetManager&&t.snippetManager.expandWithTab(g)||g.tabstopManager.tabNext(1)},"Shift-Tab":function(g){g.tabstopManager.tabNext(-1)},Esc:function(g){g.tabstopManager.detach()},Return:function(g){return!1}})}).call(d.prototype),s.prototype.onChange;var y=function(g,v){g.row==0&&(g.column+=v.column),g.row+=v.row},_=function(g,v){g.row==v.row&&(g.column-=v.column),g.row-=v.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new p;var x=e("./editor").Editor;(function(){this.insertSnippet=function(g,v){return t.snippetManager.insertSnippet(this,g,v)},this.expandSnippet=function(g){return t.snippetManager.expandWithTab(this,g)}}).call(x.prototype)});ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),c=function(p){var d=new r(p);d.$maxLines=4;var y=new o(d);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusWaitTimout=0,y.$highlightTagPending=!0,y},u=function(p){var d=l.createElement("div"),y=new c(d);p&&p.appendChild(d),d.style.display="none",y.renderer.content.style.cursor="default",y.renderer.setStyle("ace_autocomplete"),y.setOption("displayIndentGuides",!1),y.setOption("dragDelay",150);var _=function(){};y.focus=_,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=_,y.renderer.$cursorLayer.element.style.opacity=0,y.renderer.$maxLines=8,y.renderer.$keepTextAreaAtCursor=!1,y.setHighlightActiveLine(!1),y.session.highlight(""),y.session.$searchHighlight.clazz="ace_highlight-marker",y.on("mousedown",function(C){var E=C.getDocumentPosition();y.selection.moveToPosition(E),v.start.row=v.end.row=E.row,C.stop()});var x,g=new i(-1,0,-1,1/0),v=new i(-1,0,-1,1/0);v.id=y.session.addMarker(v,"ace_active-line","fullLine"),y.setSelectOnHover=function(C){C?g.id&&(y.session.removeMarker(g.id),g.id=null):g.id=y.session.addMarker(g,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(C){if(!x){x=C;return}if(!(x.x==C.x&&x.y==C.y)){x=C,x.scrollTop=y.renderer.scrollTop;var E=x.getDocumentPosition().row;g.start.row!=E&&(g.id||y.setRow(E),m(E))}}),y.renderer.on("beforeRender",function(){if(x&&g.start.row!=-1){x.$pos=null;var C=x.getDocumentPosition().row;g.id||y.setRow(C),m(C,!0)}}),y.renderer.on("afterRender",function(){var C=y.getRow(),E=y.renderer.$textLayer,S=E.element.childNodes[C-E.config.firstRow];S!=E.selectedNode&&(E.selectedNode&&l.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=S,S&&l.addCssClass(S,"ace_selected"))});var f=function(){m(-1)},m=function(C,E){C!==g.start.row&&(g.start.row=g.end.row=C,E||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return g.start.row},a.addListener(y.container,"mouseout",f),y.on("hide",f),y.on("changeSelection",f),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(C){var E=y.data[C];return typeof E=="string"?E:E&&E.value||""};var b=y.session.bgTokenizer;return b.$tokenizeRow=function(C){var E=y.data[C],S=[];if(!E)return S;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var w=-1,O,P,A=0;A<E.caption.length;A++)P=E.caption[A],O=E.matchMask&1<<A?1:0,w!==O?(S.push({type:E.className||(O?"completion-highlight":""),value:P}),w=O):S[S.length-1].value+=P;if(E.meta){var T=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=E.meta;L.length+E.caption.length>T-2&&(L=L.substr(0,T-E.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:L})}return S},b.$updateOnChange=_,b.start=_,y.session.$computeWidth=function(){return this.screenWidth=0},y.$blockScrolling=1/0,y.isOpen=!1,y.isTopdown=!1,y.autoSelect=!0,y.data=[],y.setData=function(C){y.setValue(s.stringRepeat(`
241
241
  `,C.length),-1),y.data=C||[],y.setRow(0)},y.getData=function(C){return y.data[C]},y.getRow=function(){return v.start.row},y.setRow=function(C){C=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,C)),v.start.row!=C&&(y.selection.clearSelection(),v.start.row=v.end.row=C||0,y.session._emit("changeBackMarker"),y.moveCursorTo(C||0,0),y.isOpen&&y._signal("select"))},y.on("changeSelection",function(){y.isOpen&&y.setRow(y.selection.lead.row),y.renderer.scrollCursorIntoView()}),y.hide=function(){this.container.style.display="none",this._signal("hide"),y.isOpen=!1},y.show=function(C,E,S){var w=this.container,O=window.innerHeight,P=window.innerWidth,A=this.renderer,T=A.$maxLines*E*1.4,L=C.top+this.$borderSize,D=L>O/2&&!S;D&&L+E+T>O?(A.$maxPixelHeight=L-2*this.$borderSize,w.style.top="",w.style.bottom=O-L+"px",y.isTopdown=!1):(L+=E,A.$maxPixelHeight=O-L-.2*E,w.style.top=L+"px",w.style.bottom="",y.isTopdown=!0),w.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Q=C.left;Q+w.offsetWidth>P&&(Q=P-w.offsetWidth),w.style.left=Q+"px",this._signal("show"),x=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u});ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var s=0,l=o.length;l===0&&a();for(var c=0;c<l;c++)i(o[c],function(u,p){s++,s===l&&a(u,p)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i-1;l>=0&&a.test(o[l]);l--)s.push(o[l]);return s.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i;l<o.length&&a.test(o[l]);l++)s.push(o[l]);return s},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),s;return o.completers.forEach((function(l){l.identifierRegexps&&l.identifierRegexps.forEach((function(c){!s&&c&&(s=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),s||this.retrievePrecedingIdentifier(a,i.column)}});ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),s=e("./lib/dom"),l=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",(function(p){this.insertMatch(),p.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(p,d,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),p.keyBinding.addKeyboardHandler(this.keyboardHandler);var _=p.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(p.getTheme()),this.popup.setFontSize(p.getFontSize());var x=_.layerConfig.lineHeight,g=_.$cursorLayer.getPixelPosition(this.base,!0);g.left-=this.popup.getTextLeftOffset();var v=p.container.getBoundingClientRect();g.top+=v.top-_.layerConfig.offset,g.left+=v.left-p.renderer.scrollLeft,g.left+=_.gutterWidth,this.popup.show(g,x)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(p){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(p){var d=document.activeElement,y=this.editor.textInput.getElement(),_=p.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(p.relatedTarget),x=this.popup&&this.popup.container;d!=y&&d.parentNode!=x&&!_&&d!=this.tooltipNode&&p.relatedTarget!=y&&this.detach()},this.mousedownListener=function(p){this.detach()},this.mousewheelListener=function(p){this.detach()},this.goTo=function(p){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(p){case"up":d=d<=0?y:d-1;break;case"down":d=d>=y?-1:d+1;break;case"start":d=0;break;case"end":d=y;break}this.popup.setRow(d)},this.insertMatch=function(p,d){if(p||(p=this.popup.getData(this.popup.getRow())),!p)return!1;if(p.completer&&p.completer.insertMatch)p.completer.insertMatch(this.editor,p);else{if(this.completions.filterText)for(var y=this.editor.selection.getAllRanges(),_=0,x;x=y[_];_++)x.start.column-=this.completions.filterText.length,this.editor.session.remove(x);p.snippet?l.insertSnippet(this.editor,p.snippet):this.editor.execCommand("insertstring",p.value||p)}this.detach()},this.commands={Up:function(p){p.completer.goTo("up")},Down:function(p){p.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(p){p.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(p){p.completer.goTo("end")},Esc:function(p){p.completer.detach()},Return:function(p){return p.completer.insertMatch()},"Shift-Return":function(p){p.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(p){var d=p.completer.insertMatch();if(!d&&!p.tabstopManager)p.completer.goTo("down");else return d},PageUp:function(p){p.completer.popup.gotoPageUp()},PageDown:function(p){p.completer.popup.gotoPageDown()}},this.gatherCompletions=function(p,d){var y=p.getSession(),_=p.getCursorPosition(),x=i.getCompletionPrefix(p);this.base=y.doc.createAnchor(_.row,_.column-x.length),this.base.$insertRight=!0;var g=[],v=p.completers.length;return p.completers.forEach(function(f,m){f.getCompletions(p,y,_,x,function(b,C){!b&&C&&(g=g.concat(C)),d(null,{prefix:i.getCompletionPrefix(p),matches:g,finished:--v===0})})}),!0},this.showPopup=function(p){this.editor&&this.detach(),this.activated=!0,this.editor=p,p.completer!=this&&(p.completer&&p.completer.detach(),p.completer=this),p.on("changeSelection",this.changeListener),p.on("blur",this.blurListener),p.on("mousedown",this.mousedownListener),p.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(p){if(p&&this.base&&this.completions){var d=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:d});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,p);return}var _=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(x,g){var v=(function(){if(g.finished)return this.detach()}).bind(this),f=g.prefix,m=g&&g.matches;if(!m||!m.length)return v();if(!(f.indexOf(g.prefix)!==0||_!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(f);var b=this.completions.filtered;if(!b.length||b.length==1&&b[0].value==f&&!b[0].snippet)return v();if(this.autoInsert&&b.length==1&&g.finished)return this.insertMatch(b[0]);this.openPopup(this.editor,f,p)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var p=this.popup,d=p.data,y=d&&(d[p.getHoveredRow()]||d[p.getRow()]),_=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(x){return x.getDocTooltip&&(_=x.getDocTooltip(y)),_}),_||(_=y),typeof _=="string"&&(_={docText:_}),!_||!(_.docHTML||_.docText))return this.hideDocTooltip();this.showDocTooltip(_)},this.showDocTooltip=function(p){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;p.docHTML?d.innerHTML=p.docHTML:p.docText&&(d.textContent=p.docText),d.parentNode||document.body.appendChild(d);var y=this.popup,_=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-_.right<320?(d.style.right=window.innerWidth-_.left+"px",d.style.left=""):(d.style.left=_.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var p=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==p&&this.editor.focus(),this.tooltipNode=null,p.parentNode&&p.parentNode.removeChild(p)}},this.onTooltipClick=function(p){for(var d=p.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(p){p.completer||(p.completer=new c),p.completer.autoInsert=!1,p.completer.autoSelect=!0,p.completer.showPopup(p),p.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(p,d){this.all=p,this.filtered=p,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(p){if(p.length>this.filterText&&p.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=p,d=this.filterCompletions(d,this.filterText),d=d.sort(function(_,x){return x.exactMatch-_.exactMatch||x.score-_.score});var y=null;d=d.filter(function(_){var x=_.snippet||_.caption||_.value;return x===y?!1:(y=x,!0)}),this.filtered=d},this.filterCompletions=function(p,d){var y=[],_=d.toUpperCase(),x=d.toLowerCase();e:for(var g=0,v;v=p[g];g++){var f=v.value||v.caption||v.snippet;if(f){var m=-1,b=0,C=0,E,S;if(this.exactMatch){if(d!==f.substr(0,d.length))continue e}else for(var w=0;w<d.length;w++){var O=f.indexOf(x[w],m+1),P=f.indexOf(_[w],m+1);if(E=O>=0&&(P<0||O<P)?O:P,E<0)continue e;S=E-m-1,S>0&&(m===-1&&(C+=10),C+=S),b=b|1<<E,m=E}v.matchMask=b,v.exactMatch=C?0:1,v.score=(v.score||0)-C,y.push(v)}}return y}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u});ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(s,l){var c=s.getTextRange(r.fromPoints({row:0,column:0},l));return c.split(o).length-1}function a(s,l){var c=i(s,l),u=s.getValue().split(o),p=Object.create(null),d=u[c];return u.forEach(function(y,_){if(!(!y||y===d)){var x=Math.abs(c-_),g=u.length-x;p[y]?p[y]=Math.max(g,p[y]):p[y]=g}}),p}t.getCompletions=function(s,l,c,u,p){var d=a(l,c),y=Object.keys(d);p(null,y.map(function(_){return{caption:_,value:_,score:d[_],meta:"local"}}))}});ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(f,m,b,C,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(f,m,b,C,E);var S=f.session.getState(b.row),w=m.$mode.getCompletions(S,m,b,C);E(null,w)}},u={getCompletions:function(f,m,b,C,E){var S=r.snippetMap,w=[];r.getActiveScopes(f).forEach(function(O){for(var P=S[O]||[],A=P.length;A--;){var T=P[A],L=T.name||T.tabTrigger;L&&w.push({caption:L,snippet:T.content,meta:T.tabTrigger&&!T.name?T.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,w)},getDocTooltip:function(f){f.type=="snippet"&&!f.docHTML&&(f.docHTML=["<b>",a.escapeHTML(f.caption),"</b>","<hr></hr>",a.escapeHTML(f.snippet)].join(""))}},p=[u,l,c];t.setCompleters=function(f){p.length=0,f&&p.push.apply(p,f)},t.addCompleter=function(f){p.push(f)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(f){return r.expandWithTab(f)},bindKey:"Tab"},y=function(f,m){_(m.session.$mode)},_=function(f){var m=f.$id;r.files||(r.files={}),x(m),f.modes&&f.modes.forEach(_)},x=function(f){if(!(!f||r.files[f])){var m=f.replace("mode","snippets");r.files[f]={},i.loadModule(m,function(b){b&&(r.files[f]=b,!b.snippets&&b.snippetText&&(b.snippets=r.parseSnippetFile(b.snippetText)),r.register(b.snippets||[],b.scope),b.includeScopes&&(r.snippetMap[b.scope].includeScopes=b.includeScopes,b.includeScopes.forEach(function(C){x("ace/mode/"+C)})))})}},g=function(f){var m=f.editor,b=m.completer&&m.completer.activated;if(f.command.name==="backspace")b&&!s.getCompletionPrefix(m)&&m.completer.detach();else if(f.command.name==="insertstring"){var C=s.getCompletionPrefix(m);C&&!b&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(f){f?(this.commands.addCommand(d),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(d),this.off("changeMode",y))},value:!1}})});(function(){ace.acequire(["ace/ext/language_tools"],function(){})})();ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',s=e("../keyboard/hash_handler").HashHandler,l=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),p=function(d,y,_){var x=r.createElement("div");x.innerHTML=u,this.element=x.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var y=this;i.addListener(d,"mousedown",function(_){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(_)}),i.addListener(d,"click",function(_){var x=_.target||_.srcElement,g=x.getAttribute("action");g&&y[g]?y[g]():y.$searchBarKb.commands[g]&&y.$searchBarKb.commands[g].exec(y),i.stopPropagation(_)}),i.addCommandKeyListener(d,function(_,x,g){var v=l.keyCodeToString(g),f=y.$searchBarKb.findKeyCommand(x,v);f&&f.exec&&(f.exec(y),i.stopEvent(_))}),this.$onChange=o.delayedCall(function(){y.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),i.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},this.$closeSearchBarKb=new s([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new s,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var y=d.isReplace=!d.isReplace;d.replaceBox.style.display=y?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,y,_){var x=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:_,range:this.searchRange}),g=!x&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",g),this.editor._emit("findSearchBox",{match:!g}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,y=d.$search.$options.re,_=0,x=0;if(y){var g=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),v=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(v-=d.session.doc.positionToIndex(this.searchRange.start));for(var f=y.lastIndex=0,m;(m=y.exec(g))&&(_++,f=m.index,f<=v&&x++,!(_>c||!m[0]&&(y.lastIndex=f+=1,f>=g.length))););}this.searchCounter.textContent=x+" of "+(_>c?c+"+":_)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(p.prototype),t.SearchBox=p,t.Search=function(d,y){var _=d.searchBox||new p(d);_.show(d.session.getTextRange(),y)}});(function(){ace.acequire(["ace/ext/searchbox"],function(){})})();var fs={},Ym;function kM(){return Ym||(Ym=1,fs.id="ace/mode/json_worker",fs.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
- }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),fs}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(s){s&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+s.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+s.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(s,l,c){var u=s.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var p=this._getFoldWidgetBase(s,l,c);return!p&&this.startRegionRe.test(u)?"start":p},this.getFoldWidgetRange=function(s,l,c,u){var p=s.getLine(c);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(s,p,c);var _=p.match(this.foldingStartMarker);if(_){var d=_.index;if(_[1])return this.openingBracketBlock(s,_[1],c,d);var y=s.getCommentFoldRange(c,d+_[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(s,c):l!="all"&&(y=null)),y}if(l!=="markbegin"){var _=p.match(this.foldingStopMarker);if(_){var d=_.index+_[0].length;return _[1]?this.closingBracketBlock(s,_[1],c,d):s.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(s,l){var c=s.getLine(l),u=c.search(/\S/),p=l,d=c.length;l=l+1;for(var y=l,_=s.getLength();++l<_;){c=s.getLine(l);var x=c.search(/\S/);if(x!==-1){if(u>x)break;var g=this.getFoldWidgetRange(s,"all",l);if(g){if(g.start.row<=p)break;if(g.isMultiLine())l=g.end.row;else if(u==x)break}y=l}}return new o(p,d,y,s.getLine(y).length)},this.getCommentRegionBlock=function(s,l,c){for(var u=l.search(/\s*$/),p=s.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,_=1;++c<p;){l=s.getLine(c);var x=y.exec(l);if(x&&(x[1]?_--:_++,!_))break}var g=c;if(g>d)return new o(d,u,g,l.length)}}).call(a.prototype)});ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,o),(function(){this.getNextLineIndent=function(p,d,y){var _=this.$getIndent(d);if(p=="start"){var x=d.match(/^.*[\{\(\[]\s*$/);x&&(_+=y)}return _},this.checkOutdent=function(p,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(p,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(p){var d=new c(["ace"],kM(),"JsonWorker");return d.attachToDocument(p.getDocument()),d.on("annotate",function(y){p.setAnnotations(y.data)}),d.on("terminate",function(){p.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const v_=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),LM=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,v_(e,o,r)})},FM=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return v_(e,i,o)}return null};class DM{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:LM(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?FM(t.lineNumber,t.column,n):null}}function BM(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function zM(e){if(!e)return!1;for(const t of e.split(`
242
+ }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),fs}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(s){s&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+s.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+s.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(s,l,c){var u=s.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var p=this._getFoldWidgetBase(s,l,c);return!p&&this.startRegionRe.test(u)?"start":p},this.getFoldWidgetRange=function(s,l,c,u){var p=s.getLine(c);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(s,p,c);var _=p.match(this.foldingStartMarker);if(_){var d=_.index;if(_[1])return this.openingBracketBlock(s,_[1],c,d);var y=s.getCommentFoldRange(c,d+_[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(s,c):l!="all"&&(y=null)),y}if(l!=="markbegin"){var _=p.match(this.foldingStopMarker);if(_){var d=_.index+_[0].length;return _[1]?this.closingBracketBlock(s,_[1],c,d):s.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(s,l){var c=s.getLine(l),u=c.search(/\S/),p=l,d=c.length;l=l+1;for(var y=l,_=s.getLength();++l<_;){c=s.getLine(l);var x=c.search(/\S/);if(x!==-1){if(u>x)break;var g=this.getFoldWidgetRange(s,"all",l);if(g){if(g.start.row<=p)break;if(g.isMultiLine())l=g.end.row;else if(u==x)break}y=l}}return new o(p,d,y,s.getLine(y).length)},this.getCommentRegionBlock=function(s,l,c){for(var u=l.search(/\s*$/),p=s.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,_=1;++c<p;){l=s.getLine(c);var x=y.exec(l);if(x&&(x[1]?_--:_++,!_))break}var g=c;if(g>d)return new o(d,u,g,l.length)}}).call(a.prototype)});ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,o),(function(){this.getNextLineIndent=function(p,d,y){var _=this.$getIndent(d);if(p=="start"){var x=d.match(/^.*[\{\(\[]\s*$/);x&&(_+=y)}return _},this.checkOutdent=function(p,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(p,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(p){var d=new c(["ace"],kM(),"JsonWorker");return d.attachToDocument(p.getDocument()),d.on("annotate",function(y){p.setAnnotations(y.data)}),d.on("terminate",function(){p.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const v_=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),LM=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,v_(e,o,r)})},FM=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return v_(e,i,o)}return null};class DM{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:LM(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?FM(t.lineNumber,t.column,n):null}}function BM(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function zM(e){if(!e)return!1;for(const t of e.split(`
243
243
  `))if(BM(t))return!0;return!1}function qM(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
244
  `);let a;const s=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,p=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,_=/-X ?(GET|HEAD|POST|PUT|DELETE)/,x=/[\s"']https?:\/\//,g=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,v=/[\s"'][^\/ ]+\/+([^\s"']+)/,f=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function b(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
245
  `)+`
@@ -253,7 +253,7 @@ Please check the server is up and running`),o.rejectWith({},[s,l,c])}),o}functi
253
253
  *
254
254
  * @author Feross Aboukhadijeh <https://feross.org>
255
255
  * @license MIT
256
- */(function(f){const m=n,b=g,C=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=T,f.SlowBuffer=M,f.INSPECT_MAX_BYTES=50;const E=2147483647;f.kMaxLength=E;const{Uint8Array:S,ArrayBuffer:w,SharedArrayBuffer:O}=globalThis;T.TYPED_ARRAY_SUPPORT=P(),!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function P(){try{const N=new S(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,S.prototype),Object.setPrototypeOf(N,R),N.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function A(N){if(N>E)throw new RangeError('The value "'+N+'" is invalid for option "size"');const R=new S(N);return Object.setPrototypeOf(R,T.prototype),R}function T(N,R,$){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(N)}return L(N,R,$)}T.poolSize=8192;function L(N,R,$){if(typeof N=="string")return z(N,R);if(w.isView(N))return ee(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Qe(N,w)||N&&Qe(N.buffer,w)||typeof O<"u"&&(Qe(N,O)||N&&Qe(N.buffer,O)))return W(N,R,$);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=N.valueOf&&N.valueOf();if(V!=null&&V!==N)return T.from(V,R,$);const te=U(N);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return T.from(N[Symbol.toPrimitive]("string"),R,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}T.from=function(N,R,$){return L(N,R,$)},Object.setPrototypeOf(T.prototype,S.prototype),Object.setPrototypeOf(T,S);function D(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function Q(N,R,$){return D(N),N<=0?A(N):R!==void 0?typeof $=="string"?A(N).fill(R,$):A(N).fill(R):A(N)}T.alloc=function(N,R,$){return Q(N,R,$)};function G(N){return D(N),A(N<0?0:j(N)|0)}T.allocUnsafe=function(N){return G(N)},T.allocUnsafeSlow=function(N){return G(N)};function z(N,R){if((typeof R!="string"||R==="")&&(R="utf8"),!T.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const $=H(N,R)|0;let V=A($);const te=V.write(N,R);return te!==$&&(V=V.slice(0,te)),V}function Y(N){const R=N.length<0?0:j(N.length)|0,$=A(R);for(let V=0;V<R;V+=1)$[V]=N[V]&255;return $}function ee(N){if(Qe(N,S)){const R=new S(N);return W(R.buffer,R.byteOffset,R.byteLength)}return Y(N)}function W(N,R,$){if(R<0||N.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<R+($||0))throw new RangeError('"length" is outside of buffer bounds');let V;return R===void 0&&$===void 0?V=new S(N):$===void 0?V=new S(N,R):V=new S(N,R,$),Object.setPrototypeOf(V,T.prototype),V}function U(N){if(T.isBuffer(N)){const R=j(N.length)|0,$=A(R);return $.length===0||N.copy($,0,0,R),$}if(N.length!==void 0)return typeof N.length!="number"||lt(N.length)?A(0):Y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return Y(N.data)}function j(N){if(N>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return N|0}function M(N){return+N!=N&&(N=0),T.alloc(+N)}T.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==T.prototype},T.compare=function(R,$){if(Qe(R,S)&&(R=T.from(R,R.offset,R.byteLength)),Qe($,S)&&($=T.from($,$.offset,$.byteLength)),!T.isBuffer(R)||!T.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===$)return 0;let V=R.length,te=$.length;for(let le=0,ge=Math.min(V,te);le<ge;++le)if(R[le]!==$[le]){V=R[le],te=$[le];break}return V<te?-1:te<V?1:0},T.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},T.concat=function(R,$){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return T.alloc(0);let V;if($===void 0)for($=0,V=0;V<R.length;++V)$+=R[V].length;const te=T.allocUnsafe($);let le=0;for(V=0;V<R.length;++V){let ge=R[V];if(Qe(ge,S))le+ge.length>te.length?(T.isBuffer(ge)||(ge=T.from(ge)),ge.copy(te,le)):S.prototype.set.call(te,ge,le);else if(T.isBuffer(ge))ge.copy(te,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=ge.length}return te};function H(N,R){if(T.isBuffer(N))return N.length;if(w.isView(N)||Qe(N,w))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const $=N.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&$===0)return 0;let te=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Ot(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return gt(N).length;default:if(te)return V?-1:Ot(N).length;R=(""+R).toLowerCase(),te=!0}}T.byteLength=H;function J(N,R,$){let V=!1;if((R===void 0||R<0)&&(R=0),R>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,R>>>=0,$<=R))return"";for(N||(N="utf8");;)switch(N){case"hex":return Ie(this,R,$);case"utf8":case"utf-8":return me(this,R,$);case"ascii":return Me(this,R,$);case"latin1":case"binary":return ce(this,R,$);case"base64":return Z(this,R,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,R,$);default:if(V)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),V=!0}}T.prototype._isBuffer=!0;function B(N,R,$){const V=N[R];N[R]=N[$],N[$]=V}T.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<R;$+=2)B(this,$,$+1);return this},T.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<R;$+=4)B(this,$,$+3),B(this,$+1,$+2);return this},T.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<R;$+=8)B(this,$,$+7),B(this,$+1,$+6),B(this,$+2,$+5),B(this,$+3,$+4);return this},T.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?me(this,0,R):J.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(R){if(!T.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:T.compare(this,R)===0},T.prototype.inspect=function(){let R="";const $=f.INSPECT_MAX_BYTES;return R=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(R+=" ... "),"<Buffer "+R+">"},C&&(T.prototype[C]=T.prototype.inspect),T.prototype.compare=function(R,$,V,te,le){if(Qe(R,S)&&(R=T.from(R,R.offset,R.byteLength)),!T.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if($===void 0&&($=0),V===void 0&&(V=R?R.length:0),te===void 0&&(te=0),le===void 0&&(le=this.length),$<0||V>R.length||te<0||le>this.length)throw new RangeError("out of range index");if(te>=le&&$>=V)return 0;if(te>=le)return-1;if($>=V)return 1;if($>>>=0,V>>>=0,te>>>=0,le>>>=0,this===R)return 0;let ge=le-te,Fe=V-$;const Je=Math.min(ge,Fe),et=this.slice(te,le),X=R.slice($,V);for(let ue=0;ue<Je;++ue)if(et[ue]!==X[ue]){ge=et[ue],Fe=X[ue];break}return ge<Fe?-1:Fe<ge?1:0};function q(N,R,$,V,te){if(N.length===0)return-1;if(typeof $=="string"?(V=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,lt($)&&($=te?0:N.length-1),$<0&&($=N.length+$),$>=N.length){if(te)return-1;$=N.length-1}else if($<0)if(te)$=0;else return-1;if(typeof R=="string"&&(R=T.from(R,V)),T.isBuffer(R))return R.length===0?-1:K(N,R,$,V,te);if(typeof R=="number")return R=R&255,typeof S.prototype.indexOf=="function"?te?S.prototype.indexOf.call(N,R,$):S.prototype.lastIndexOf.call(N,R,$):K(N,[R],$,V,te);throw new TypeError("val must be string, number or Buffer")}function K(N,R,$,V,te){let le=1,ge=N.length,Fe=R.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(N.length<2||R.length<2)return-1;le=2,ge/=2,Fe/=2,$/=2}function Je(X,ue){return le===1?X[ue]:X.readUInt16BE(ue*le)}let et;if(te){let X=-1;for(et=$;et<ge;et++)if(Je(N,et)===Je(R,X===-1?0:et-X)){if(X===-1&&(X=et),et-X+1===Fe)return X*le}else X!==-1&&(et-=et-X),X=-1}else for($+Fe>ge&&($=ge-Fe),et=$;et>=0;et--){let X=!0;for(let ue=0;ue<Fe;ue++)if(Je(N,et+ue)!==Je(R,ue)){X=!1;break}if(X)return et}return-1}T.prototype.includes=function(R,$,V){return this.indexOf(R,$,V)!==-1},T.prototype.indexOf=function(R,$,V){return q(this,R,$,V,!0)},T.prototype.lastIndexOf=function(R,$,V){return q(this,R,$,V,!1)};function re(N,R,$,V){$=Number($)||0;const te=N.length-$;V?(V=Number(V),V>te&&(V=te)):V=te;const le=R.length;V>le/2&&(V=le/2);let ge;for(ge=0;ge<V;++ge){const Fe=parseInt(R.substr(ge*2,2),16);if(lt(Fe))return ge;N[$+ge]=Fe}return ge}function se(N,R,$,V){return $t(Ot(R,N.length-$),N,$,V)}function k(N,R,$,V){return $t(Dt(R),N,$,V)}function F(N,R,$,V){return $t(gt(R),N,$,V)}function ae(N,R,$,V){return $t(Ut(R,N.length-$),N,$,V)}T.prototype.write=function(R,$,V,te){if($===void 0)te="utf8",V=this.length,$=0;else if(V===void 0&&typeof $=="string")te=$,V=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-$;if((V===void 0||V>le)&&(V=le),R.length>0&&(V<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let ge=!1;for(;;)switch(te){case"hex":return re(this,R,$,V);case"utf8":case"utf-8":return se(this,R,$,V);case"ascii":case"latin1":case"binary":return k(this,R,$,V);case"base64":return F(this,R,$,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,R,$,V);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(N,R,$){return R===0&&$===N.length?m.fromByteArray(N):m.fromByteArray(N.slice(R,$))}function me(N,R,$){$=Math.min(N.length,$);const V=[];let te=R;for(;te<$;){const le=N[te];let ge=null,Fe=le>239?4:le>223?3:le>191?2:1;if(te+Fe<=$){let Je,et,X,ue;switch(Fe){case 1:le<128&&(ge=le);break;case 2:Je=N[te+1],(Je&192)===128&&(ue=(le&31)<<6|Je&63,ue>127&&(ge=ue));break;case 3:Je=N[te+1],et=N[te+2],(Je&192)===128&&(et&192)===128&&(ue=(le&15)<<12|(Je&63)<<6|et&63,ue>2047&&(ue<55296||ue>57343)&&(ge=ue));break;case 4:Je=N[te+1],et=N[te+2],X=N[te+3],(Je&192)===128&&(et&192)===128&&(X&192)===128&&(ue=(le&15)<<18|(Je&63)<<12|(et&63)<<6|X&63,ue>65535&&ue<1114112&&(ge=ue))}}ge===null?(ge=65533,Fe=1):ge>65535&&(ge-=65536,V.push(ge>>>10&1023|55296),ge=56320|ge&1023),V.push(ge),te+=Fe}return Ce(V)}const pe=4096;function Ce(N){const R=N.length;if(R<=pe)return String.fromCharCode.apply(String,N);let $="",V=0;for(;V<R;)$+=String.fromCharCode.apply(String,N.slice(V,V+=pe));return $}function Me(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]&127);return V}function ce(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]);return V}function Ie(N,R,$){const V=N.length;(!R||R<0)&&(R=0),(!$||$<0||$>V)&&($=V);let te="";for(let le=R;le<$;++le)te+=Tt[N[le]];return te}function Pe(N,R,$){const V=N.slice(R,$);let te="";for(let le=0;le<V.length-1;le+=2)te+=String.fromCharCode(V[le]+V[le+1]*256);return te}T.prototype.slice=function(R,$){const V=this.length;R=~~R,$=$===void 0?V:~~$,R<0?(R+=V,R<0&&(R=0)):R>V&&(R=V),$<0?($+=V,$<0&&($=0)):$>V&&($=V),$<R&&($=R);const te=this.subarray(R,$);return Object.setPrototypeOf(te,T.prototype),te};function Oe(N,R,$){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+R>$)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return te},T.prototype.readUintBE=T.prototype.readUIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R+--$],le=1;for(;$>0&&(le*=256);)te+=this[R+--$]*le;return te},T.prototype.readUint8=T.prototype.readUInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]|this[R+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]<<8|this[R+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},T.prototype.readBigUInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,le=this[++R]+this[++R]*2**8+this[++R]*2**16+V*2**24;return BigInt(te)+(BigInt(le)<<BigInt(32))}),T.prototype.readBigUInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],le=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V;return(BigInt(te)<<BigInt(32))+BigInt(le)}),T.prototype.readIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return le*=128,te>=le&&(te-=Math.pow(2,8*$)),te},T.prototype.readIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=$,le=1,ge=this[R+--te];for(;te>0&&(le*=256);)ge+=this[R+--te]*le;return le*=128,ge>=le&&(ge-=Math.pow(2,8*$)),ge},T.prototype.readInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},T.prototype.readInt16LE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R]|this[R+1]<<8;return V&32768?V|4294901760:V},T.prototype.readInt16BE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R+1]|this[R]<<8;return V&32768?V|4294901760:V},T.prototype.readInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},T.prototype.readInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},T.prototype.readBigInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt($+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),T.prototype.readBigInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=($<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(te)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V)}),T.prototype.readFloatLE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!0,23,4)},T.prototype.readFloatBE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!1,23,4)},T.prototype.readDoubleLE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!0,52,8)},T.prototype.readDoubleBE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!1,52,8)};function ve(N,R,$,V,te,le){if(!T.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>te||R<le)throw new RangeError('"value" argument is out of bounds');if($+V>N.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=1,ge=0;for(this[$]=R&255;++ge<V&&(le*=256);)this[$+ge]=R/le&255;return $+V},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=V-1,ge=1;for(this[$+le]=R&255;--le>=0&&(ge*=256);)this[$+le]=R/ge&255;return $+V},T.prototype.writeUint8=T.prototype.writeUInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,255,0),this[$]=R&255,$+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$+3]=R>>>24,this[$+2]=R>>>16,this[$+1]=R>>>8,this[$]=R&255,$+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4};function we(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,$}function Se(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$+7]=le,le=le>>8,N[$+6]=le,le=le>>8,N[$+5]=le,le=le>>8,N[$+4]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$+3]=ge,ge=ge>>8,N[$+2]=ge,ge=ge>>8,N[$+1]=ge,ge=ge>>8,N[$]=ge,$+8}T.prototype.writeBigUInt64LE=Ge(function(R,$=0){return we(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Ge(function(R,$=0){return Se(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Je=Math.pow(2,8*V-1);ve(this,R,$,V,Je-1,-Je)}let le=0,ge=1,Fe=0;for(this[$]=R&255;++le<V&&(ge*=256);)R<0&&Fe===0&&this[$+le-1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Je=Math.pow(2,8*V-1);ve(this,R,$,V,Je-1,-Je)}let le=V-1,ge=1,Fe=0;for(this[$+le]=R&255;--le>=0&&(ge*=256);)R<0&&Fe===0&&this[$+le+1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,127,-128),R<0&&(R=255+R+1),this[$]=R&255,$+1},T.prototype.writeInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),this[$]=R&255,this[$+1]=R>>>8,this[$+2]=R>>>16,this[$+3]=R>>>24,$+4},T.prototype.writeInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4},T.prototype.writeBigInt64LE=Ge(function(R,$=0){return we(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Ge(function(R,$=0){return Se(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ee(N,R,$,V,te,le){if($+V>N.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Ve(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,4),b.write(N,R,$,V,23,4),$+4}T.prototype.writeFloatLE=function(R,$,V){return Ve(this,R,$,!0,V)},T.prototype.writeFloatBE=function(R,$,V){return Ve(this,R,$,!1,V)};function He(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,8),b.write(N,R,$,V,52,8),$+8}T.prototype.writeDoubleLE=function(R,$,V){return He(this,R,$,!0,V)},T.prototype.writeDoubleBE=function(R,$,V){return He(this,R,$,!1,V)},T.prototype.copy=function(R,$,V,te){if(!T.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),$>=R.length&&($=R.length),$||($=0),te>0&&te<V&&(te=V),te===V||R.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),R.length-$<te-V&&(te=R.length-$+V);const le=te-V;return this===R&&typeof S.prototype.copyWithin=="function"?this.copyWithin($,V,te):S.prototype.set.call(R,this.subarray(V,te),$),le},T.prototype.fill=function(R,$,V,te){if(typeof R=="string"){if(typeof $=="string"?(te=$,$=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!T.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(R.length===1){const ge=R.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&(R=ge)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if($<0||this.length<$||this.length<V)throw new RangeError("Out of range index");if(V<=$)return this;$=$>>>0,V=V===void 0?this.length:V>>>0,R||(R=0);let le;if(typeof R=="number")for(le=$;le<V;++le)this[le]=R;else{const ge=T.isBuffer(R)?R:T.from(R,te),Fe=ge.length;if(Fe===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(le=0;le<V-$;++le)this[le+$]=ge[le%Fe]}return this};const Xe={};function ft(N,R,$){Xe[N]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,this.stack,delete this.name}get code(){return N}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(N,R){return`The "${N}" argument must be of type number. Received type ${typeof R}`},TypeError),ft("ERR_OUT_OF_RANGE",function(N,R,$){let V=`The value of "${N}" is out of range.`,te=$;return Number.isInteger($)&&Math.abs($)>2**32?te=mt(String($)):typeof $=="bigint"&&(te=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(te=mt(te)),te+="n"),V+=` It must be ${R}. Received ${te}`,V},RangeError);function mt(N){let R="",$=N.length;const V=N[0]==="-"?1:0;for(;$>=V+4;$-=3)R=`_${N.slice($-3,$)}${R}`;return`${N.slice(0,$)}${R}`}function ct(N,R,$){Ne(R,"offset"),(N[R]===void 0||N[R+$]===void 0)&&st(R,N.length-($+1))}function ze(N,R,$,V,te,le){if(N>$||N<R){const ge=typeof R=="bigint"?"n":"";let Fe;throw R===0||R===BigInt(0)?Fe=`>= 0${ge} and < 2${ge} ** ${(le+1)*8}${ge}`:Fe=`>= -(2${ge} ** ${(le+1)*8-1}${ge}) and < 2 ** ${(le+1)*8-1}${ge}`,new Xe.ERR_OUT_OF_RANGE("value",Fe,N)}ct(V,te,le)}function Ne(N,R){if(typeof N!="number")throw new Xe.ERR_INVALID_ARG_TYPE(R,"number",N)}function st(N,R,$){throw Math.floor(N)!==N?(Ne(N,$),new Xe.ERR_OUT_OF_RANGE("offset","an integer",N)):R<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,N)}const rt=/[^+/0-9A-Za-z-_]/g;function Ye(N){if(N=N.split("=")[0],N=N.trim().replace(rt,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Ot(N,R){R=R||1/0;let $;const V=N.length;let te=null;const le=[];for(let ge=0;ge<V;++ge){if($=N.charCodeAt(ge),$>55295&&$<57344){if(!te){if($>56319){(R-=3)>-1&&le.push(239,191,189);continue}else if(ge+1===V){(R-=3)>-1&&le.push(239,191,189);continue}te=$;continue}if($<56320){(R-=3)>-1&&le.push(239,191,189),te=$;continue}$=(te-55296<<10|$-56320)+65536}else te&&(R-=3)>-1&&le.push(239,191,189);if(te=null,$<128){if((R-=1)<0)break;le.push($)}else if($<2048){if((R-=2)<0)break;le.push($>>6|192,$&63|128)}else if($<65536){if((R-=3)<0)break;le.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((R-=4)<0)break;le.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return le}function Dt(N){const R=[];for(let $=0;$<N.length;++$)R.push(N.charCodeAt($)&255);return R}function Ut(N,R){let $,V,te;const le=[];for(let ge=0;ge<N.length&&!((R-=2)<0);++ge)$=N.charCodeAt(ge),V=$>>8,te=$%256,le.push(te),le.push(V);return le}function gt(N){return m.toByteArray(Ye(N))}function $t(N,R,$,V){let te;for(te=0;te<V&&!(te+$>=R.length||te>=N.length);++te)R[te+$]=N[te];return te}function Qe(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function lt(N){return N!==N}const Tt=function(){const N="0123456789abcdef",R=new Array(256);for(let $=0;$<16;++$){const V=$*16;for(let te=0;te<16;++te)R[V+te]=N[$]+N[te]}return R}();function Ge(N){return typeof BigInt>"u"?ke:N}function ke(){throw new Error("BigInt not supported")}})(t);const v=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=v,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Ri);const mo=Hf(Ri);var E_={exports:{}},Gd={};(function(e){e.fetch=o(bt.fetch)&&o(bt.ReadableStream),e.writableStream=o(bt.WritableStream),e.abortController=o(bt.AbortController);var t;function n(){if(t!==void 0)return t;if(bt.XMLHttpRequest){t=new bt.XMLHttpRequest;try{t.open("GET",bt.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(Gd);var _f={exports:{}};typeof Object.create=="function"?_f.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_f.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Qr=_f.exports,ql={},wf={exports:{}},Kd={exports:{}},ci=typeof Reflect=="object"?Reflect:null,eg=ci&&typeof ci.apply=="function"?ci.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},js;ci&&typeof ci.ownKeys=="function"?js=ci.ownKeys:Object.getOwnPropertySymbols?js=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:js=function(t){return Object.getOwnPropertyNames(t)};function vj(e){console&&console.warn&&console.warn(e)}var R_=Number.isNaN||function(t){return t!==t};function xt(){xt.init.call(this)}Kd.exports=xt;Kd.exports.once=wj;xt.EventEmitter=xt;xt.prototype._events=void 0;xt.prototype._eventsCount=0;xt.prototype._maxListeners=void 0;var tg=10;function Vl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(xt,"defaultMaxListeners",{enumerable:!0,get:function(){return tg},set:function(e){if(typeof e!="number"||e<0||R_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");tg=e}});xt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};xt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||R_(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function O_(e){return e._maxListeners===void 0?xt.defaultMaxListeners:e._maxListeners}xt.prototype.getMaxListeners=function(){return O_(this)};xt.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")eg(l,this,n);else for(var c=l.length,u=I_(l,c),r=0;r<c;++r)eg(u[r],this,n);return!0};function $_(e,t,n,r){var o,i,a;if(Vl(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=O_(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,vj(s)}return e}xt.prototype.addListener=function(t,n){return $_(this,t,n,!1)};xt.prototype.on=xt.prototype.addListener;xt.prototype.prependListener=function(t,n){return $_(this,t,n,!0)};function yj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T_(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=yj.bind(r);return o.listener=n,r.wrapFn=o,o}xt.prototype.once=function(t,n){return Vl(n),this.on(t,T_(this,t,n)),this};xt.prototype.prependOnceListener=function(t,n){return Vl(n),this.prependListener(t,T_(this,t,n)),this};xt.prototype.removeListener=function(t,n){var r,o,i,a,s;if(Vl(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():bj(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};xt.prototype.off=xt.prototype.removeListener;xt.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function P_(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?_j(o):I_(o,o.length)}xt.prototype.listeners=function(t){return P_(this,t,!0)};xt.prototype.rawListeners=function(t){return P_(this,t,!1)};xt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):N_.call(e,t)};xt.prototype.listenerCount=N_;function N_(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}xt.prototype.eventNames=function(){return this._eventsCount>0?js(this._events):[]};function I_(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function bj(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function _j(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function wj(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}A_(e,t,i,{once:!0}),t!=="error"&&Cj(e,o,{once:!0})})}function Cj(e,t,n){typeof e.on=="function"&&A_(e,"error",t,n)}function A_(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Xd=Kd.exports,M_=Xd.EventEmitter,Yd={},j_={},k_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},xj=k_,Qd=function(){return xj()&&!!Symbol.toStringTag},Sj=Error,Ej=EvalError,Rj=RangeError,Oj=ReferenceError,L_=SyntaxError,Fa=TypeError,$j=URIError,ng=typeof Symbol<"u"&&Symbol,Tj=k_,Pj=function(){return typeof ng!="function"||typeof Symbol!="function"||typeof ng("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Tj()},Nc={__proto__:null,foo:{}},Nj=Object,Ij=function(){return{__proto__:Nc}.foo===Nc.foo&&!(Nc instanceof Nj)},Aj="Function.prototype.bind called on incompatible ",Mj=Object.prototype.toString,jj=Math.max,kj="[object Function]",rg=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},Lj=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},Fj=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Dj=function(t){var n=this;if(typeof n!="function"||Mj.apply(n)!==kj)throw new TypeError(Aj+n);for(var r=Lj(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,rg(r,arguments));return Object(u)===u?u:this}return n.apply(t,rg(r,arguments))},a=jj(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+Fj(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},Bj=Dj,Jd=Function.prototype.bind||Bj,zj=Function.prototype.call,qj=Object.prototype.hasOwnProperty,Vj=Jd,Hj=Vj.call(zj,qj),ot,Wj=Sj,Uj=Ej,Gj=Rj,Kj=Oj,mi=L_,ui=Fa,Xj=$j,F_=Function,Ic=function(e){try{return F_('"use strict"; return ('+e+").constructor;")()}catch{}},yo=Object.getOwnPropertyDescriptor;if(yo)try{yo({},"")}catch{yo=null}var Ac=function(){throw new ui},Yj=yo?function(){try{return arguments.callee,Ac}catch{try{return yo(arguments,"callee").get}catch{return Ac}}}():Ac,Ko=Pj(),Qj=Ij(),Jt=Object.getPrototypeOf||(Qj?function(e){return e.__proto__}:null),Zo={},Jj=typeof Uint8Array>"u"||!Jt?ot:Jt(Uint8Array),bo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":Ko&&Jt?Jt([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":Zo,"%AsyncGenerator%":Zo,"%AsyncGeneratorFunction%":Zo,"%AsyncIteratorPrototype%":Zo,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wj,"%eval%":eval,"%EvalError%":Uj,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":F_,"%GeneratorFunction%":Zo,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ko&&Jt?Jt(Jt([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ko||!Jt?ot:Jt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":Gj,"%ReferenceError%":Kj,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ko||!Jt?ot:Jt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ko&&Jt?Jt(""[Symbol.iterator]()):ot,"%Symbol%":Ko?Symbol:ot,"%SyntaxError%":mi,"%ThrowTypeError%":Yj,"%TypedArray%":Jj,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":Xj,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(Jt)try{null.error}catch(e){var Zj=Jt(Jt(e));bo["%Error.prototype%"]=Zj}var e2=function e(t){var n;if(t==="%AsyncFunction%")n=Ic("async function () {}");else if(t==="%GeneratorFunction%")n=Ic("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ic("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Jt&&(n=Jt(o.prototype))}return bo[t]=n,n},og={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Da=Jd,al=Hj,t2=Da.call(Function.call,Array.prototype.concat),n2=Da.call(Function.apply,Array.prototype.splice),ig=Da.call(Function.call,String.prototype.replace),sl=Da.call(Function.call,String.prototype.slice),r2=Da.call(Function.call,RegExp.prototype.exec),o2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,i2=/\\(\\)?/g,a2=function(t){var n=sl(t,0,1),r=sl(t,-1);if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var o=[];return ig(t,o2,function(i,a,s,l){o[o.length]=s?ig(l,i2,"$1"):a||i}),o},s2=function(t,n){var r=t,o;if(al(og,r)&&(o=og[r],r="%"+o[0]+"%"),al(bo,r)){var i=bo[r];if(i===Zo&&(i=e2(r)),typeof i>"u"&&!n)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new mi("intrinsic "+t+" does not exist!")},Oi=function(t,n){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(r2(/^%?[^%]*%?$/,t)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=a2(t),o=r.length>0?r[0]:"",i=s2("%"+o+"%",n),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],n2(r,t2([0,1],c)));for(var u=1,p=!0;u<r.length;u+=1){var d=r[u],y=sl(d,0,1),_=sl(d,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(l=!0),o+="."+d,a="%"+o+"%",al(bo,a))s=bo[a];else if(s!=null){if(!(d in s)){if(!n)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(yo&&u+1>=r.length){var x=yo(s,d);p=!!x,p&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[d]}else p=al(s,d),s=s[d];p&&!l&&(bo[a]=s)}}return s},D_={exports:{}},Mc,ag;function Zd(){if(ag)return Mc;ag=1;var e=Oi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Mc=t,Mc}var l2=Oi,ks=l2("%Object.getOwnPropertyDescriptor%",!0);if(ks)try{ks([],"length")}catch{ks=null}var ep=ks,sg=Zd(),c2=L_,Xo=Fa,lg=ep,u2=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Xo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Xo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Xo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Xo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Xo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Xo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!lg&&lg(t,n);if(sg)sg(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[n]=r;else throw new c2("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Cf=Zd(),B_=function(){return!!Cf};B_.hasArrayLengthDefineBug=function(){if(!Cf)return null;try{return Cf([],"length",{value:1}).length!==1}catch{return!0}};var f2=B_,d2=Oi,cg=u2,p2=f2(),ug=ep,fg=Fa,h2=d2("%Math.floor%"),m2=function(t,n){if(typeof t!="function")throw new fg("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||h2(n)!==n)throw new fg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ug){var a=ug(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(p2?cg(t,"length",n,!0,!0):cg(t,"length",n)),t};(function(e){var t=Jd,n=Oi,r=m2,o=Fa,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=Zd(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=s(t,a,arguments);return r(y,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(D_);var z_=D_.exports,q_=Oi,V_=z_,g2=V_(q_("String.prototype.indexOf")),tp=function(t,n){var r=q_(t,!!n);return typeof r=="function"&&g2(t,".prototype.")>-1?V_(r):r},v2=Qd(),y2=tp,xf=y2("Object.prototype.toString"),Hl=function(t){return v2&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:xf(t)==="[object Arguments]"},H_=function(t){return Hl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&xf(t)!=="[object Array]"&&xf(t.callee)==="[object Function]"},b2=function(){return Hl(arguments)}();Hl.isLegacyArguments=H_;var _2=b2?Hl:H_,w2=Object.prototype.toString,C2=Function.prototype.toString,x2=/^\s*(?:function)?\*/,W_=Qd(),jc=Object.getPrototypeOf,S2=function(){if(!W_)return!1;try{return Function("return function*() {}")()}catch{}},kc,E2=function(t){if(typeof t!="function")return!1;if(x2.test(C2.call(t)))return!0;if(!W_){var n=w2.call(t);return n==="[object GeneratorFunction]"}if(!jc)return!1;if(typeof kc>"u"){var r=S2();kc=r?jc(r):!1}return jc(t)===kc},U_=Function.prototype.toString,ii=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Sf,Ls;if(typeof ii=="function"&&typeof Object.defineProperty=="function")try{Sf=Object.defineProperty({},"length",{get:function(){throw Ls}}),Ls={},ii(function(){throw 42},null,Sf)}catch(e){e!==Ls&&(ii=null)}else ii=null;var R2=/^\s*class\b/,Ef=function(t){try{var n=U_.call(t);return R2.test(n)}catch{return!1}},Lc=function(t){try{return Ef(t)?!1:(U_.call(t),!0)}catch{return!1}},Fs=Object.prototype.toString,O2="[object Object]",$2="[object Function]",T2="[object GeneratorFunction]",P2="[object HTMLAllCollection]",N2="[object HTML document.all class]",I2="[object HTMLCollection]",A2=typeof Symbol=="function"&&!!Symbol.toStringTag,M2=!(0 in[,]),Rf=function(){return!1};if(typeof document=="object"){var j2=document.all;Fs.call(j2)===Fs.call(document.all)&&(Rf=function(t){if((M2||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Fs.call(t);return(n===P2||n===N2||n===I2||n===O2)&&t("")==null}catch{}return!1})}var k2=ii?function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ii(t,null,Sf)}catch(n){if(n!==Ls)return!1}return!Ef(t)&&Lc(t)}:function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(A2)return Lc(t);if(Ef(t))return!1;var n=Fs.call(t);return n!==$2&&n!==T2&&!/^\[object HTML/.test(n)?!1:Lc(t)},L2=k2,F2=Object.prototype.toString,G_=Object.prototype.hasOwnProperty,D2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},B2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},z2=function(t,n,r){for(var o in t)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},q2=function(t,n,r){if(!L2(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),F2.call(t)==="[object Array]"?D2(t,n,o):typeof t=="string"?B2(t,n,o):z2(t,n,o)},V2=q2,H2=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Fc=H2,W2=typeof globalThis>"u"?bt:globalThis,U2=function(){for(var t=[],n=0;n<Fc.length;n++)typeof W2[Fc[n]]=="function"&&(t[t.length]=Fc[n]);return t},ll=V2,G2=U2,dg=z_,np=tp,Ds=ep,K2=np("Object.prototype.toString"),K_=Qd(),pg=typeof globalThis>"u"?bt:globalThis,Of=G2(),rp=np("String.prototype.slice"),Dc=Object.getPrototypeOf,X2=np("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},cl={__proto__:null};K_&&Ds&&Dc?ll(Of,function(e){var t=new pg[e];if(Symbol.toStringTag in t){var n=Dc(t),r=Ds(n,Symbol.toStringTag);if(!r){var o=Dc(n);r=Ds(o,Symbol.toStringTag)}cl["$"+e]=dg(r.get)}}):ll(Of,function(e){var t=new pg[e],n=t.slice||t.set;n&&(cl["$"+e]=dg(n))});var Y2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=rp(o,1))}catch{}}),n},Q2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{r(t),n=rp(o,1)}catch{}}),n},X_=function(t){if(!t||typeof t!="object")return!1;if(!K_){var n=rp(K2(t),8,-1);return X2(Of,n)>-1?n:n!=="Object"?!1:Q2(t)}return Ds?Y2(t):null},J2=X_,Z2=function(t){return!!J2(t)};(function(e){var t=_2,n=E2,r=X_,o=Z2;function i(ce){return ce.call.bind(ce)}var a=typeof BigInt<"u",s=typeof Symbol<"u",l=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var y=i(Symbol.prototype.valueOf);function _(ce,Ie){if(typeof ce!="object")return!1;try{return Ie(ce),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function x(ce){return typeof Promise<"u"&&ce instanceof Promise||ce!==null&&typeof ce=="object"&&typeof ce.then=="function"&&typeof ce.catch=="function"}e.isPromise=x;function g(ce){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):o(ce)||M(ce)}e.isArrayBufferView=g;function v(ce){return r(ce)==="Uint8Array"}e.isUint8Array=v;function f(ce){return r(ce)==="Uint8ClampedArray"}e.isUint8ClampedArray=f;function m(ce){return r(ce)==="Uint16Array"}e.isUint16Array=m;function b(ce){return r(ce)==="Uint32Array"}e.isUint32Array=b;function C(ce){return r(ce)==="Int8Array"}e.isInt8Array=C;function E(ce){return r(ce)==="Int16Array"}e.isInt16Array=E;function S(ce){return r(ce)==="Int32Array"}e.isInt32Array=S;function w(ce){return r(ce)==="Float32Array"}e.isFloat32Array=w;function O(ce){return r(ce)==="Float64Array"}e.isFloat64Array=O;function P(ce){return r(ce)==="BigInt64Array"}e.isBigInt64Array=P;function A(ce){return r(ce)==="BigUint64Array"}e.isBigUint64Array=A;function T(ce){return l(ce)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function L(ce){return typeof Map>"u"?!1:T.working?T(ce):ce instanceof Map}e.isMap=L;function D(ce){return l(ce)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function Q(ce){return typeof Set>"u"?!1:D.working?D(ce):ce instanceof Set}e.isSet=Q;function G(ce){return l(ce)==="[object WeakMap]"}G.working=typeof WeakMap<"u"&&G(new WeakMap);function z(ce){return typeof WeakMap>"u"?!1:G.working?G(ce):ce instanceof WeakMap}e.isWeakMap=z;function Y(ce){return l(ce)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function ee(ce){return Y(ce)}e.isWeakSet=ee;function W(ce){return l(ce)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function U(ce){return typeof ArrayBuffer>"u"?!1:W.working?W(ce):ce instanceof ArrayBuffer}e.isArrayBuffer=U;function j(ce){return l(ce)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function M(ce){return typeof DataView>"u"?!1:j.working?j(ce):ce instanceof DataView}e.isDataView=M;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(ce){return l(ce)==="[object SharedArrayBuffer]"}function B(ce){return typeof H>"u"?!1:(typeof J.working>"u"&&(J.working=J(new H)),J.working?J(ce):ce instanceof H)}e.isSharedArrayBuffer=B;function q(ce){return l(ce)==="[object AsyncFunction]"}e.isAsyncFunction=q;function K(ce){return l(ce)==="[object Map Iterator]"}e.isMapIterator=K;function re(ce){return l(ce)==="[object Set Iterator]"}e.isSetIterator=re;function se(ce){return l(ce)==="[object Generator]"}e.isGeneratorObject=se;function k(ce){return l(ce)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function F(ce){return _(ce,c)}e.isNumberObject=F;function ae(ce){return _(ce,u)}e.isStringObject=ae;function Z(ce){return _(ce,p)}e.isBooleanObject=Z;function me(ce){return a&&_(ce,d)}e.isBigIntObject=me;function pe(ce){return s&&_(ce,y)}e.isSymbolObject=pe;function Ce(ce){return F(ce)||ae(ce)||Z(ce)||me(ce)||pe(ce)}e.isBoxedPrimitive=Ce;function Me(ce){return typeof Uint8Array<"u"&&(U(ce)||B(ce))}e.isAnyArrayBuffer=Me,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ce){Object.defineProperty(e,ce,{enumerable:!1,value:function(){throw new Error(ce+" is not supported in userland")}})})})(j_);var ek=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var H=Object.keys(M),J={},B=0;B<H.length;B++)J[H[B]]=Object.getOwnPropertyDescriptor(M,H[B]);return J},n=/%[sdj%]/g;e.format=function(j){if(!C(j)){for(var M=[],H=0;H<arguments.length;H++)M.push(a(arguments[H]));return M.join(" ")}for(var H=1,J=arguments,B=J.length,q=String(j).replace(n,function(re){if(re==="%%")return"%";if(H>=B)return re;switch(re){case"%s":return String(J[H++]);case"%d":return Number(J[H++]);case"%j":try{return JSON.stringify(J[H++])}catch{return"[Circular]"}default:return re}}),K=J[H];H<B;K=J[++H])f(K)||!O(K)?q+=" "+K:q+=" "+a(K);return q},e.deprecate=function(j,M){if(typeof ne<"u"&&ne.noDeprecation===!0)return j;if(typeof ne>"u")return function(){return e.deprecate(j,M).apply(this,arguments)};var H=!1;function J(){if(!H){if(ne.throwDeprecation)throw new Error(M);ne.traceDeprecation?console.trace(M):console.error(M),H=!0}return j.apply(this,arguments)}return J};var r={},o=/^$/;if(ne.env.NODE_DEBUG){var i=ne.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!r[j])if(o.test(j)){var M=ne.pid;r[j]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",j,M,H)}}else r[j]=function(){};return r[j]};function a(j,M){var H={seen:[],stylize:l};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),v(M)?H.showHidden=M:M&&e._extend(H,M),S(H.showHidden)&&(H.showHidden=!1),S(H.depth)&&(H.depth=2),S(H.colors)&&(H.colors=!1),S(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),u(H,j,H.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(j,M){var H=a.styles[M];return H?"\x1B["+a.colors[H][0]+"m"+j+"\x1B["+a.colors[H][1]+"m":j}function l(j,M){return j}function c(j){var M={};return j.forEach(function(H,J){M[H]=!0}),M}function u(j,M,H){if(j.customInspect&&M&&T(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var J=M.inspect(H,j);return C(J)||(J=u(j,J,H)),J}var B=p(j,M);if(B)return B;var q=Object.keys(M),K=c(q);if(j.showHidden&&(q=Object.getOwnPropertyNames(M)),A(M)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return d(M);if(q.length===0){if(T(M)){var re=M.name?": "+M.name:"";return j.stylize("[Function"+re+"]","special")}if(w(M))return j.stylize(RegExp.prototype.toString.call(M),"regexp");if(P(M))return j.stylize(Date.prototype.toString.call(M),"date");if(A(M))return d(M)}var se="",k=!1,F=["{","}"];if(g(M)&&(k=!0,F=["[","]"]),T(M)){var ae=M.name?": "+M.name:"";se=" [Function"+ae+"]"}if(w(M)&&(se=" "+RegExp.prototype.toString.call(M)),P(M)&&(se=" "+Date.prototype.toUTCString.call(M)),A(M)&&(se=" "+d(M)),q.length===0&&(!k||M.length==0))return F[0]+se+F[1];if(H<0)return w(M)?j.stylize(RegExp.prototype.toString.call(M),"regexp"):j.stylize("[Object]","special");j.seen.push(M);var Z;return k?Z=y(j,M,H,K,q):Z=q.map(function(me){return _(j,M,H,K,me,k)}),j.seen.pop(),x(Z,se,F)}function p(j,M){if(S(M))return j.stylize("undefined","undefined");if(C(M)){var H="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(H,"string")}if(b(M))return j.stylize(""+M,"number");if(v(M))return j.stylize(""+M,"boolean");if(f(M))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function y(j,M,H,J,B){for(var q=[],K=0,re=M.length;K<re;++K)Y(M,String(K))?q.push(_(j,M,H,J,String(K),!0)):q.push("");return B.forEach(function(se){se.match(/^\d+$/)||q.push(_(j,M,H,J,se,!0))}),q}function _(j,M,H,J,B,q){var K,re,se;if(se=Object.getOwnPropertyDescriptor(M,B)||{value:M[B]},se.get?se.set?re=j.stylize("[Getter/Setter]","special"):re=j.stylize("[Getter]","special"):se.set&&(re=j.stylize("[Setter]","special")),Y(J,B)||(K="["+B+"]"),re||(j.seen.indexOf(se.value)<0?(f(H)?re=u(j,se.value,null):re=u(j,se.value,H-1),re.indexOf(`
256
+ */(function(f){const m=n,b=g,C=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=T,f.SlowBuffer=M,f.INSPECT_MAX_BYTES=50;const E=2147483647;f.kMaxLength=E;const{Uint8Array:S,ArrayBuffer:w,SharedArrayBuffer:O}=globalThis;T.TYPED_ARRAY_SUPPORT=P(),!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function P(){try{const N=new S(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,S.prototype),Object.setPrototypeOf(N,R),N.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function A(N){if(N>E)throw new RangeError('The value "'+N+'" is invalid for option "size"');const R=new S(N);return Object.setPrototypeOf(R,T.prototype),R}function T(N,R,$){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(N)}return L(N,R,$)}T.poolSize=8192;function L(N,R,$){if(typeof N=="string")return z(N,R);if(w.isView(N))return ee(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Je(N,w)||N&&Je(N.buffer,w)||typeof O<"u"&&(Je(N,O)||N&&Je(N.buffer,O)))return W(N,R,$);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=N.valueOf&&N.valueOf();if(V!=null&&V!==N)return T.from(V,R,$);const te=U(N);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return T.from(N[Symbol.toPrimitive]("string"),R,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}T.from=function(N,R,$){return L(N,R,$)},Object.setPrototypeOf(T.prototype,S.prototype),Object.setPrototypeOf(T,S);function D(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function Q(N,R,$){return D(N),N<=0?A(N):R!==void 0?typeof $=="string"?A(N).fill(R,$):A(N).fill(R):A(N)}T.alloc=function(N,R,$){return Q(N,R,$)};function G(N){return D(N),A(N<0?0:j(N)|0)}T.allocUnsafe=function(N){return G(N)},T.allocUnsafeSlow=function(N){return G(N)};function z(N,R){if((typeof R!="string"||R==="")&&(R="utf8"),!T.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const $=H(N,R)|0;let V=A($);const te=V.write(N,R);return te!==$&&(V=V.slice(0,te)),V}function Y(N){const R=N.length<0?0:j(N.length)|0,$=A(R);for(let V=0;V<R;V+=1)$[V]=N[V]&255;return $}function ee(N){if(Je(N,S)){const R=new S(N);return W(R.buffer,R.byteOffset,R.byteLength)}return Y(N)}function W(N,R,$){if(R<0||N.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<R+($||0))throw new RangeError('"length" is outside of buffer bounds');let V;return R===void 0&&$===void 0?V=new S(N):$===void 0?V=new S(N,R):V=new S(N,R,$),Object.setPrototypeOf(V,T.prototype),V}function U(N){if(T.isBuffer(N)){const R=j(N.length)|0,$=A(R);return $.length===0||N.copy($,0,0,R),$}if(N.length!==void 0)return typeof N.length!="number"||lt(N.length)?A(0):Y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return Y(N.data)}function j(N){if(N>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return N|0}function M(N){return+N!=N&&(N=0),T.alloc(+N)}T.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==T.prototype},T.compare=function(R,$){if(Je(R,S)&&(R=T.from(R,R.offset,R.byteLength)),Je($,S)&&($=T.from($,$.offset,$.byteLength)),!T.isBuffer(R)||!T.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===$)return 0;let V=R.length,te=$.length;for(let le=0,ge=Math.min(V,te);le<ge;++le)if(R[le]!==$[le]){V=R[le],te=$[le];break}return V<te?-1:te<V?1:0},T.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},T.concat=function(R,$){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return T.alloc(0);let V;if($===void 0)for($=0,V=0;V<R.length;++V)$+=R[V].length;const te=T.allocUnsafe($);let le=0;for(V=0;V<R.length;++V){let ge=R[V];if(Je(ge,S))le+ge.length>te.length?(T.isBuffer(ge)||(ge=T.from(ge)),ge.copy(te,le)):S.prototype.set.call(te,ge,le);else if(T.isBuffer(ge))ge.copy(te,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=ge.length}return te};function H(N,R){if(T.isBuffer(N))return N.length;if(w.isView(N)||Je(N,w))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const $=N.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&$===0)return 0;let te=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Ot(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return gt(N).length;default:if(te)return V?-1:Ot(N).length;R=(""+R).toLowerCase(),te=!0}}T.byteLength=H;function J(N,R,$){let V=!1;if((R===void 0||R<0)&&(R=0),R>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,R>>>=0,$<=R))return"";for(N||(N="utf8");;)switch(N){case"hex":return Ie(this,R,$);case"utf8":case"utf-8":return me(this,R,$);case"ascii":return Me(this,R,$);case"latin1":case"binary":return ce(this,R,$);case"base64":return Z(this,R,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,R,$);default:if(V)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),V=!0}}T.prototype._isBuffer=!0;function B(N,R,$){const V=N[R];N[R]=N[$],N[$]=V}T.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<R;$+=2)B(this,$,$+1);return this},T.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<R;$+=4)B(this,$,$+3),B(this,$+1,$+2);return this},T.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<R;$+=8)B(this,$,$+7),B(this,$+1,$+6),B(this,$+2,$+5),B(this,$+3,$+4);return this},T.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?me(this,0,R):J.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(R){if(!T.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:T.compare(this,R)===0},T.prototype.inspect=function(){let R="";const $=f.INSPECT_MAX_BYTES;return R=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(R+=" ... "),"<Buffer "+R+">"},C&&(T.prototype[C]=T.prototype.inspect),T.prototype.compare=function(R,$,V,te,le){if(Je(R,S)&&(R=T.from(R,R.offset,R.byteLength)),!T.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if($===void 0&&($=0),V===void 0&&(V=R?R.length:0),te===void 0&&(te=0),le===void 0&&(le=this.length),$<0||V>R.length||te<0||le>this.length)throw new RangeError("out of range index");if(te>=le&&$>=V)return 0;if(te>=le)return-1;if($>=V)return 1;if($>>>=0,V>>>=0,te>>>=0,le>>>=0,this===R)return 0;let ge=le-te,Fe=V-$;const Ze=Math.min(ge,Fe),et=this.slice(te,le),X=R.slice($,V);for(let ue=0;ue<Ze;++ue)if(et[ue]!==X[ue]){ge=et[ue],Fe=X[ue];break}return ge<Fe?-1:Fe<ge?1:0};function q(N,R,$,V,te){if(N.length===0)return-1;if(typeof $=="string"?(V=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,lt($)&&($=te?0:N.length-1),$<0&&($=N.length+$),$>=N.length){if(te)return-1;$=N.length-1}else if($<0)if(te)$=0;else return-1;if(typeof R=="string"&&(R=T.from(R,V)),T.isBuffer(R))return R.length===0?-1:K(N,R,$,V,te);if(typeof R=="number")return R=R&255,typeof S.prototype.indexOf=="function"?te?S.prototype.indexOf.call(N,R,$):S.prototype.lastIndexOf.call(N,R,$):K(N,[R],$,V,te);throw new TypeError("val must be string, number or Buffer")}function K(N,R,$,V,te){let le=1,ge=N.length,Fe=R.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(N.length<2||R.length<2)return-1;le=2,ge/=2,Fe/=2,$/=2}function Ze(X,ue){return le===1?X[ue]:X.readUInt16BE(ue*le)}let et;if(te){let X=-1;for(et=$;et<ge;et++)if(Ze(N,et)===Ze(R,X===-1?0:et-X)){if(X===-1&&(X=et),et-X+1===Fe)return X*le}else X!==-1&&(et-=et-X),X=-1}else for($+Fe>ge&&($=ge-Fe),et=$;et>=0;et--){let X=!0;for(let ue=0;ue<Fe;ue++)if(Ze(N,et+ue)!==Ze(R,ue)){X=!1;break}if(X)return et}return-1}T.prototype.includes=function(R,$,V){return this.indexOf(R,$,V)!==-1},T.prototype.indexOf=function(R,$,V){return q(this,R,$,V,!0)},T.prototype.lastIndexOf=function(R,$,V){return q(this,R,$,V,!1)};function re(N,R,$,V){$=Number($)||0;const te=N.length-$;V?(V=Number(V),V>te&&(V=te)):V=te;const le=R.length;V>le/2&&(V=le/2);let ge;for(ge=0;ge<V;++ge){const Fe=parseInt(R.substr(ge*2,2),16);if(lt(Fe))return ge;N[$+ge]=Fe}return ge}function se(N,R,$,V){return $t(Ot(R,N.length-$),N,$,V)}function k(N,R,$,V){return $t(Dt(R),N,$,V)}function F(N,R,$,V){return $t(gt(R),N,$,V)}function ae(N,R,$,V){return $t(Ut(R,N.length-$),N,$,V)}T.prototype.write=function(R,$,V,te){if($===void 0)te="utf8",V=this.length,$=0;else if(V===void 0&&typeof $=="string")te=$,V=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-$;if((V===void 0||V>le)&&(V=le),R.length>0&&(V<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let ge=!1;for(;;)switch(te){case"hex":return re(this,R,$,V);case"utf8":case"utf-8":return se(this,R,$,V);case"ascii":case"latin1":case"binary":return k(this,R,$,V);case"base64":return F(this,R,$,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,R,$,V);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(N,R,$){return R===0&&$===N.length?m.fromByteArray(N):m.fromByteArray(N.slice(R,$))}function me(N,R,$){$=Math.min(N.length,$);const V=[];let te=R;for(;te<$;){const le=N[te];let ge=null,Fe=le>239?4:le>223?3:le>191?2:1;if(te+Fe<=$){let Ze,et,X,ue;switch(Fe){case 1:le<128&&(ge=le);break;case 2:Ze=N[te+1],(Ze&192)===128&&(ue=(le&31)<<6|Ze&63,ue>127&&(ge=ue));break;case 3:Ze=N[te+1],et=N[te+2],(Ze&192)===128&&(et&192)===128&&(ue=(le&15)<<12|(Ze&63)<<6|et&63,ue>2047&&(ue<55296||ue>57343)&&(ge=ue));break;case 4:Ze=N[te+1],et=N[te+2],X=N[te+3],(Ze&192)===128&&(et&192)===128&&(X&192)===128&&(ue=(le&15)<<18|(Ze&63)<<12|(et&63)<<6|X&63,ue>65535&&ue<1114112&&(ge=ue))}}ge===null?(ge=65533,Fe=1):ge>65535&&(ge-=65536,V.push(ge>>>10&1023|55296),ge=56320|ge&1023),V.push(ge),te+=Fe}return Ce(V)}const pe=4096;function Ce(N){const R=N.length;if(R<=pe)return String.fromCharCode.apply(String,N);let $="",V=0;for(;V<R;)$+=String.fromCharCode.apply(String,N.slice(V,V+=pe));return $}function Me(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]&127);return V}function ce(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]);return V}function Ie(N,R,$){const V=N.length;(!R||R<0)&&(R=0),(!$||$<0||$>V)&&($=V);let te="";for(let le=R;le<$;++le)te+=Tt[N[le]];return te}function Pe(N,R,$){const V=N.slice(R,$);let te="";for(let le=0;le<V.length-1;le+=2)te+=String.fromCharCode(V[le]+V[le+1]*256);return te}T.prototype.slice=function(R,$){const V=this.length;R=~~R,$=$===void 0?V:~~$,R<0?(R+=V,R<0&&(R=0)):R>V&&(R=V),$<0?($+=V,$<0&&($=0)):$>V&&($=V),$<R&&($=R);const te=this.subarray(R,$);return Object.setPrototypeOf(te,T.prototype),te};function Oe(N,R,$){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+R>$)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return te},T.prototype.readUintBE=T.prototype.readUIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R+--$],le=1;for(;$>0&&(le*=256);)te+=this[R+--$]*le;return te},T.prototype.readUint8=T.prototype.readUInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]|this[R+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]<<8|this[R+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},T.prototype.readBigUInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,le=this[++R]+this[++R]*2**8+this[++R]*2**16+V*2**24;return BigInt(te)+(BigInt(le)<<BigInt(32))}),T.prototype.readBigUInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],le=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V;return(BigInt(te)<<BigInt(32))+BigInt(le)}),T.prototype.readIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return le*=128,te>=le&&(te-=Math.pow(2,8*$)),te},T.prototype.readIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=$,le=1,ge=this[R+--te];for(;te>0&&(le*=256);)ge+=this[R+--te]*le;return le*=128,ge>=le&&(ge-=Math.pow(2,8*$)),ge},T.prototype.readInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},T.prototype.readInt16LE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R]|this[R+1]<<8;return V&32768?V|4294901760:V},T.prototype.readInt16BE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R+1]|this[R]<<8;return V&32768?V|4294901760:V},T.prototype.readInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},T.prototype.readInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},T.prototype.readBigInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt($+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),T.prototype.readBigInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=($<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(te)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V)}),T.prototype.readFloatLE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!0,23,4)},T.prototype.readFloatBE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!1,23,4)},T.prototype.readDoubleLE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!0,52,8)},T.prototype.readDoubleBE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!1,52,8)};function ve(N,R,$,V,te,le){if(!T.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>te||R<le)throw new RangeError('"value" argument is out of bounds');if($+V>N.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=1,ge=0;for(this[$]=R&255;++ge<V&&(le*=256);)this[$+ge]=R/le&255;return $+V},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=V-1,ge=1;for(this[$+le]=R&255;--le>=0&&(ge*=256);)this[$+le]=R/ge&255;return $+V},T.prototype.writeUint8=T.prototype.writeUInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,255,0),this[$]=R&255,$+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$+3]=R>>>24,this[$+2]=R>>>16,this[$+1]=R>>>8,this[$]=R&255,$+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4};function we(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,$}function Se(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$+7]=le,le=le>>8,N[$+6]=le,le=le>>8,N[$+5]=le,le=le>>8,N[$+4]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$+3]=ge,ge=ge>>8,N[$+2]=ge,ge=ge>>8,N[$+1]=ge,ge=ge>>8,N[$]=ge,$+8}T.prototype.writeBigUInt64LE=Ge(function(R,$=0){return we(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Ge(function(R,$=0){return Se(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Ze=Math.pow(2,8*V-1);ve(this,R,$,V,Ze-1,-Ze)}let le=0,ge=1,Fe=0;for(this[$]=R&255;++le<V&&(ge*=256);)R<0&&Fe===0&&this[$+le-1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Ze=Math.pow(2,8*V-1);ve(this,R,$,V,Ze-1,-Ze)}let le=V-1,ge=1,Fe=0;for(this[$+le]=R&255;--le>=0&&(ge*=256);)R<0&&Fe===0&&this[$+le+1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,127,-128),R<0&&(R=255+R+1),this[$]=R&255,$+1},T.prototype.writeInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),this[$]=R&255,this[$+1]=R>>>8,this[$+2]=R>>>16,this[$+3]=R>>>24,$+4},T.prototype.writeInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4},T.prototype.writeBigInt64LE=Ge(function(R,$=0){return we(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Ge(function(R,$=0){return Se(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ee(N,R,$,V,te,le){if($+V>N.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Ve(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,4),b.write(N,R,$,V,23,4),$+4}T.prototype.writeFloatLE=function(R,$,V){return Ve(this,R,$,!0,V)},T.prototype.writeFloatBE=function(R,$,V){return Ve(this,R,$,!1,V)};function He(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,8),b.write(N,R,$,V,52,8),$+8}T.prototype.writeDoubleLE=function(R,$,V){return He(this,R,$,!0,V)},T.prototype.writeDoubleBE=function(R,$,V){return He(this,R,$,!1,V)},T.prototype.copy=function(R,$,V,te){if(!T.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),$>=R.length&&($=R.length),$||($=0),te>0&&te<V&&(te=V),te===V||R.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),R.length-$<te-V&&(te=R.length-$+V);const le=te-V;return this===R&&typeof S.prototype.copyWithin=="function"?this.copyWithin($,V,te):S.prototype.set.call(R,this.subarray(V,te),$),le},T.prototype.fill=function(R,$,V,te){if(typeof R=="string"){if(typeof $=="string"?(te=$,$=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!T.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(R.length===1){const ge=R.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&(R=ge)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if($<0||this.length<$||this.length<V)throw new RangeError("Out of range index");if(V<=$)return this;$=$>>>0,V=V===void 0?this.length:V>>>0,R||(R=0);let le;if(typeof R=="number")for(le=$;le<V;++le)this[le]=R;else{const ge=T.isBuffer(R)?R:T.from(R,te),Fe=ge.length;if(Fe===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(le=0;le<V-$;++le)this[le+$]=ge[le%Fe]}return this};const Xe={};function ft(N,R,$){Xe[N]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,this.stack,delete this.name}get code(){return N}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(N,R){return`The "${N}" argument must be of type number. Received type ${typeof R}`},TypeError),ft("ERR_OUT_OF_RANGE",function(N,R,$){let V=`The value of "${N}" is out of range.`,te=$;return Number.isInteger($)&&Math.abs($)>2**32?te=mt(String($)):typeof $=="bigint"&&(te=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(te=mt(te)),te+="n"),V+=` It must be ${R}. Received ${te}`,V},RangeError);function mt(N){let R="",$=N.length;const V=N[0]==="-"?1:0;for(;$>=V+4;$-=3)R=`_${N.slice($-3,$)}${R}`;return`${N.slice(0,$)}${R}`}function ct(N,R,$){Ne(R,"offset"),(N[R]===void 0||N[R+$]===void 0)&&st(R,N.length-($+1))}function ze(N,R,$,V,te,le){if(N>$||N<R){const ge=typeof R=="bigint"?"n":"";let Fe;throw R===0||R===BigInt(0)?Fe=`>= 0${ge} and < 2${ge} ** ${(le+1)*8}${ge}`:Fe=`>= -(2${ge} ** ${(le+1)*8-1}${ge}) and < 2 ** ${(le+1)*8-1}${ge}`,new Xe.ERR_OUT_OF_RANGE("value",Fe,N)}ct(V,te,le)}function Ne(N,R){if(typeof N!="number")throw new Xe.ERR_INVALID_ARG_TYPE(R,"number",N)}function st(N,R,$){throw Math.floor(N)!==N?(Ne(N,$),new Xe.ERR_OUT_OF_RANGE("offset","an integer",N)):R<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,N)}const rt=/[^+/0-9A-Za-z-_]/g;function Ye(N){if(N=N.split("=")[0],N=N.trim().replace(rt,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Ot(N,R){R=R||1/0;let $;const V=N.length;let te=null;const le=[];for(let ge=0;ge<V;++ge){if($=N.charCodeAt(ge),$>55295&&$<57344){if(!te){if($>56319){(R-=3)>-1&&le.push(239,191,189);continue}else if(ge+1===V){(R-=3)>-1&&le.push(239,191,189);continue}te=$;continue}if($<56320){(R-=3)>-1&&le.push(239,191,189),te=$;continue}$=(te-55296<<10|$-56320)+65536}else te&&(R-=3)>-1&&le.push(239,191,189);if(te=null,$<128){if((R-=1)<0)break;le.push($)}else if($<2048){if((R-=2)<0)break;le.push($>>6|192,$&63|128)}else if($<65536){if((R-=3)<0)break;le.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((R-=4)<0)break;le.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return le}function Dt(N){const R=[];for(let $=0;$<N.length;++$)R.push(N.charCodeAt($)&255);return R}function Ut(N,R){let $,V,te;const le=[];for(let ge=0;ge<N.length&&!((R-=2)<0);++ge)$=N.charCodeAt(ge),V=$>>8,te=$%256,le.push(te),le.push(V);return le}function gt(N){return m.toByteArray(Ye(N))}function $t(N,R,$,V){let te;for(te=0;te<V&&!(te+$>=R.length||te>=N.length);++te)R[te+$]=N[te];return te}function Je(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function lt(N){return N!==N}const Tt=function(){const N="0123456789abcdef",R=new Array(256);for(let $=0;$<16;++$){const V=$*16;for(let te=0;te<16;++te)R[V+te]=N[$]+N[te]}return R}();function Ge(N){return typeof BigInt>"u"?ke:N}function ke(){throw new Error("BigInt not supported")}})(t);const v=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=v,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Ri);const mo=Hf(Ri);var E_={exports:{}},Gd={};(function(e){e.fetch=o(bt.fetch)&&o(bt.ReadableStream),e.writableStream=o(bt.WritableStream),e.abortController=o(bt.AbortController);var t;function n(){if(t!==void 0)return t;if(bt.XMLHttpRequest){t=new bt.XMLHttpRequest;try{t.open("GET",bt.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(Gd);var _f={exports:{}};typeof Object.create=="function"?_f.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_f.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Qr=_f.exports,ql={},wf={exports:{}},Kd={exports:{}},ci=typeof Reflect=="object"?Reflect:null,eg=ci&&typeof ci.apply=="function"?ci.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},js;ci&&typeof ci.ownKeys=="function"?js=ci.ownKeys:Object.getOwnPropertySymbols?js=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:js=function(t){return Object.getOwnPropertyNames(t)};function vj(e){console&&console.warn&&console.warn(e)}var R_=Number.isNaN||function(t){return t!==t};function xt(){xt.init.call(this)}Kd.exports=xt;Kd.exports.once=wj;xt.EventEmitter=xt;xt.prototype._events=void 0;xt.prototype._eventsCount=0;xt.prototype._maxListeners=void 0;var tg=10;function Vl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(xt,"defaultMaxListeners",{enumerable:!0,get:function(){return tg},set:function(e){if(typeof e!="number"||e<0||R_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");tg=e}});xt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};xt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||R_(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function O_(e){return e._maxListeners===void 0?xt.defaultMaxListeners:e._maxListeners}xt.prototype.getMaxListeners=function(){return O_(this)};xt.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")eg(l,this,n);else for(var c=l.length,u=I_(l,c),r=0;r<c;++r)eg(u[r],this,n);return!0};function $_(e,t,n,r){var o,i,a;if(Vl(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=O_(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,vj(s)}return e}xt.prototype.addListener=function(t,n){return $_(this,t,n,!1)};xt.prototype.on=xt.prototype.addListener;xt.prototype.prependListener=function(t,n){return $_(this,t,n,!0)};function yj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T_(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=yj.bind(r);return o.listener=n,r.wrapFn=o,o}xt.prototype.once=function(t,n){return Vl(n),this.on(t,T_(this,t,n)),this};xt.prototype.prependOnceListener=function(t,n){return Vl(n),this.prependListener(t,T_(this,t,n)),this};xt.prototype.removeListener=function(t,n){var r,o,i,a,s;if(Vl(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():bj(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};xt.prototype.off=xt.prototype.removeListener;xt.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function P_(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?_j(o):I_(o,o.length)}xt.prototype.listeners=function(t){return P_(this,t,!0)};xt.prototype.rawListeners=function(t){return P_(this,t,!1)};xt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):N_.call(e,t)};xt.prototype.listenerCount=N_;function N_(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}xt.prototype.eventNames=function(){return this._eventsCount>0?js(this._events):[]};function I_(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function bj(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function _j(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function wj(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}A_(e,t,i,{once:!0}),t!=="error"&&Cj(e,o,{once:!0})})}function Cj(e,t,n){typeof e.on=="function"&&A_(e,"error",t,n)}function A_(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Xd=Kd.exports,M_=Xd.EventEmitter,Yd={},j_={},k_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},xj=k_,Qd=function(){return xj()&&!!Symbol.toStringTag},Sj=Error,Ej=EvalError,Rj=RangeError,Oj=ReferenceError,L_=SyntaxError,Fa=TypeError,$j=URIError,ng=typeof Symbol<"u"&&Symbol,Tj=k_,Pj=function(){return typeof ng!="function"||typeof Symbol!="function"||typeof ng("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Tj()},Nc={__proto__:null,foo:{}},Nj=Object,Ij=function(){return{__proto__:Nc}.foo===Nc.foo&&!(Nc instanceof Nj)},Aj="Function.prototype.bind called on incompatible ",Mj=Object.prototype.toString,jj=Math.max,kj="[object Function]",rg=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},Lj=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},Fj=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Dj=function(t){var n=this;if(typeof n!="function"||Mj.apply(n)!==kj)throw new TypeError(Aj+n);for(var r=Lj(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,rg(r,arguments));return Object(u)===u?u:this}return n.apply(t,rg(r,arguments))},a=jj(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+Fj(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},Bj=Dj,Jd=Function.prototype.bind||Bj,zj=Function.prototype.call,qj=Object.prototype.hasOwnProperty,Vj=Jd,Hj=Vj.call(zj,qj),ot,Wj=Sj,Uj=Ej,Gj=Rj,Kj=Oj,mi=L_,ui=Fa,Xj=$j,F_=Function,Ic=function(e){try{return F_('"use strict"; return ('+e+").constructor;")()}catch{}},yo=Object.getOwnPropertyDescriptor;if(yo)try{yo({},"")}catch{yo=null}var Ac=function(){throw new ui},Yj=yo?function(){try{return arguments.callee,Ac}catch{try{return yo(arguments,"callee").get}catch{return Ac}}}():Ac,Ko=Pj(),Qj=Ij(),Jt=Object.getPrototypeOf||(Qj?function(e){return e.__proto__}:null),Zo={},Jj=typeof Uint8Array>"u"||!Jt?ot:Jt(Uint8Array),bo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":Ko&&Jt?Jt([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":Zo,"%AsyncGenerator%":Zo,"%AsyncGeneratorFunction%":Zo,"%AsyncIteratorPrototype%":Zo,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wj,"%eval%":eval,"%EvalError%":Uj,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":F_,"%GeneratorFunction%":Zo,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ko&&Jt?Jt(Jt([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ko||!Jt?ot:Jt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":Gj,"%ReferenceError%":Kj,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ko||!Jt?ot:Jt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ko&&Jt?Jt(""[Symbol.iterator]()):ot,"%Symbol%":Ko?Symbol:ot,"%SyntaxError%":mi,"%ThrowTypeError%":Yj,"%TypedArray%":Jj,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":Xj,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(Jt)try{null.error}catch(e){var Zj=Jt(Jt(e));bo["%Error.prototype%"]=Zj}var e2=function e(t){var n;if(t==="%AsyncFunction%")n=Ic("async function () {}");else if(t==="%GeneratorFunction%")n=Ic("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ic("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Jt&&(n=Jt(o.prototype))}return bo[t]=n,n},og={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Da=Jd,al=Hj,t2=Da.call(Function.call,Array.prototype.concat),n2=Da.call(Function.apply,Array.prototype.splice),ig=Da.call(Function.call,String.prototype.replace),sl=Da.call(Function.call,String.prototype.slice),r2=Da.call(Function.call,RegExp.prototype.exec),o2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,i2=/\\(\\)?/g,a2=function(t){var n=sl(t,0,1),r=sl(t,-1);if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var o=[];return ig(t,o2,function(i,a,s,l){o[o.length]=s?ig(l,i2,"$1"):a||i}),o},s2=function(t,n){var r=t,o;if(al(og,r)&&(o=og[r],r="%"+o[0]+"%"),al(bo,r)){var i=bo[r];if(i===Zo&&(i=e2(r)),typeof i>"u"&&!n)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new mi("intrinsic "+t+" does not exist!")},Oi=function(t,n){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(r2(/^%?[^%]*%?$/,t)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=a2(t),o=r.length>0?r[0]:"",i=s2("%"+o+"%",n),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],n2(r,t2([0,1],c)));for(var u=1,p=!0;u<r.length;u+=1){var d=r[u],y=sl(d,0,1),_=sl(d,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(l=!0),o+="."+d,a="%"+o+"%",al(bo,a))s=bo[a];else if(s!=null){if(!(d in s)){if(!n)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(yo&&u+1>=r.length){var x=yo(s,d);p=!!x,p&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[d]}else p=al(s,d),s=s[d];p&&!l&&(bo[a]=s)}}return s},D_={exports:{}},Mc,ag;function Zd(){if(ag)return Mc;ag=1;var e=Oi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Mc=t,Mc}var l2=Oi,ks=l2("%Object.getOwnPropertyDescriptor%",!0);if(ks)try{ks([],"length")}catch{ks=null}var ep=ks,sg=Zd(),c2=L_,Xo=Fa,lg=ep,u2=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Xo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Xo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Xo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Xo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Xo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Xo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!lg&&lg(t,n);if(sg)sg(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[n]=r;else throw new c2("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Cf=Zd(),B_=function(){return!!Cf};B_.hasArrayLengthDefineBug=function(){if(!Cf)return null;try{return Cf([],"length",{value:1}).length!==1}catch{return!0}};var f2=B_,d2=Oi,cg=u2,p2=f2(),ug=ep,fg=Fa,h2=d2("%Math.floor%"),m2=function(t,n){if(typeof t!="function")throw new fg("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||h2(n)!==n)throw new fg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ug){var a=ug(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(p2?cg(t,"length",n,!0,!0):cg(t,"length",n)),t};(function(e){var t=Jd,n=Oi,r=m2,o=Fa,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=Zd(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=s(t,a,arguments);return r(y,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(D_);var z_=D_.exports,q_=Oi,V_=z_,g2=V_(q_("String.prototype.indexOf")),tp=function(t,n){var r=q_(t,!!n);return typeof r=="function"&&g2(t,".prototype.")>-1?V_(r):r},v2=Qd(),y2=tp,xf=y2("Object.prototype.toString"),Hl=function(t){return v2&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:xf(t)==="[object Arguments]"},H_=function(t){return Hl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&xf(t)!=="[object Array]"&&xf(t.callee)==="[object Function]"},b2=function(){return Hl(arguments)}();Hl.isLegacyArguments=H_;var _2=b2?Hl:H_,w2=Object.prototype.toString,C2=Function.prototype.toString,x2=/^\s*(?:function)?\*/,W_=Qd(),jc=Object.getPrototypeOf,S2=function(){if(!W_)return!1;try{return Function("return function*() {}")()}catch{}},kc,E2=function(t){if(typeof t!="function")return!1;if(x2.test(C2.call(t)))return!0;if(!W_){var n=w2.call(t);return n==="[object GeneratorFunction]"}if(!jc)return!1;if(typeof kc>"u"){var r=S2();kc=r?jc(r):!1}return jc(t)===kc},U_=Function.prototype.toString,ii=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Sf,Ls;if(typeof ii=="function"&&typeof Object.defineProperty=="function")try{Sf=Object.defineProperty({},"length",{get:function(){throw Ls}}),Ls={},ii(function(){throw 42},null,Sf)}catch(e){e!==Ls&&(ii=null)}else ii=null;var R2=/^\s*class\b/,Ef=function(t){try{var n=U_.call(t);return R2.test(n)}catch{return!1}},Lc=function(t){try{return Ef(t)?!1:(U_.call(t),!0)}catch{return!1}},Fs=Object.prototype.toString,O2="[object Object]",$2="[object Function]",T2="[object GeneratorFunction]",P2="[object HTMLAllCollection]",N2="[object HTML document.all class]",I2="[object HTMLCollection]",A2=typeof Symbol=="function"&&!!Symbol.toStringTag,M2=!(0 in[,]),Rf=function(){return!1};if(typeof document=="object"){var j2=document.all;Fs.call(j2)===Fs.call(document.all)&&(Rf=function(t){if((M2||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Fs.call(t);return(n===P2||n===N2||n===I2||n===O2)&&t("")==null}catch{}return!1})}var k2=ii?function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ii(t,null,Sf)}catch(n){if(n!==Ls)return!1}return!Ef(t)&&Lc(t)}:function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(A2)return Lc(t);if(Ef(t))return!1;var n=Fs.call(t);return n!==$2&&n!==T2&&!/^\[object HTML/.test(n)?!1:Lc(t)},L2=k2,F2=Object.prototype.toString,G_=Object.prototype.hasOwnProperty,D2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},B2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},z2=function(t,n,r){for(var o in t)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},q2=function(t,n,r){if(!L2(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),F2.call(t)==="[object Array]"?D2(t,n,o):typeof t=="string"?B2(t,n,o):z2(t,n,o)},V2=q2,H2=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Fc=H2,W2=typeof globalThis>"u"?bt:globalThis,U2=function(){for(var t=[],n=0;n<Fc.length;n++)typeof W2[Fc[n]]=="function"&&(t[t.length]=Fc[n]);return t},ll=V2,G2=U2,dg=z_,np=tp,Ds=ep,K2=np("Object.prototype.toString"),K_=Qd(),pg=typeof globalThis>"u"?bt:globalThis,Of=G2(),rp=np("String.prototype.slice"),Dc=Object.getPrototypeOf,X2=np("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},cl={__proto__:null};K_&&Ds&&Dc?ll(Of,function(e){var t=new pg[e];if(Symbol.toStringTag in t){var n=Dc(t),r=Ds(n,Symbol.toStringTag);if(!r){var o=Dc(n);r=Ds(o,Symbol.toStringTag)}cl["$"+e]=dg(r.get)}}):ll(Of,function(e){var t=new pg[e],n=t.slice||t.set;n&&(cl["$"+e]=dg(n))});var Y2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=rp(o,1))}catch{}}),n},Q2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{r(t),n=rp(o,1)}catch{}}),n},X_=function(t){if(!t||typeof t!="object")return!1;if(!K_){var n=rp(K2(t),8,-1);return X2(Of,n)>-1?n:n!=="Object"?!1:Q2(t)}return Ds?Y2(t):null},J2=X_,Z2=function(t){return!!J2(t)};(function(e){var t=_2,n=E2,r=X_,o=Z2;function i(ce){return ce.call.bind(ce)}var a=typeof BigInt<"u",s=typeof Symbol<"u",l=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var y=i(Symbol.prototype.valueOf);function _(ce,Ie){if(typeof ce!="object")return!1;try{return Ie(ce),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function x(ce){return typeof Promise<"u"&&ce instanceof Promise||ce!==null&&typeof ce=="object"&&typeof ce.then=="function"&&typeof ce.catch=="function"}e.isPromise=x;function g(ce){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):o(ce)||M(ce)}e.isArrayBufferView=g;function v(ce){return r(ce)==="Uint8Array"}e.isUint8Array=v;function f(ce){return r(ce)==="Uint8ClampedArray"}e.isUint8ClampedArray=f;function m(ce){return r(ce)==="Uint16Array"}e.isUint16Array=m;function b(ce){return r(ce)==="Uint32Array"}e.isUint32Array=b;function C(ce){return r(ce)==="Int8Array"}e.isInt8Array=C;function E(ce){return r(ce)==="Int16Array"}e.isInt16Array=E;function S(ce){return r(ce)==="Int32Array"}e.isInt32Array=S;function w(ce){return r(ce)==="Float32Array"}e.isFloat32Array=w;function O(ce){return r(ce)==="Float64Array"}e.isFloat64Array=O;function P(ce){return r(ce)==="BigInt64Array"}e.isBigInt64Array=P;function A(ce){return r(ce)==="BigUint64Array"}e.isBigUint64Array=A;function T(ce){return l(ce)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function L(ce){return typeof Map>"u"?!1:T.working?T(ce):ce instanceof Map}e.isMap=L;function D(ce){return l(ce)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function Q(ce){return typeof Set>"u"?!1:D.working?D(ce):ce instanceof Set}e.isSet=Q;function G(ce){return l(ce)==="[object WeakMap]"}G.working=typeof WeakMap<"u"&&G(new WeakMap);function z(ce){return typeof WeakMap>"u"?!1:G.working?G(ce):ce instanceof WeakMap}e.isWeakMap=z;function Y(ce){return l(ce)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function ee(ce){return Y(ce)}e.isWeakSet=ee;function W(ce){return l(ce)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function U(ce){return typeof ArrayBuffer>"u"?!1:W.working?W(ce):ce instanceof ArrayBuffer}e.isArrayBuffer=U;function j(ce){return l(ce)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function M(ce){return typeof DataView>"u"?!1:j.working?j(ce):ce instanceof DataView}e.isDataView=M;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(ce){return l(ce)==="[object SharedArrayBuffer]"}function B(ce){return typeof H>"u"?!1:(typeof J.working>"u"&&(J.working=J(new H)),J.working?J(ce):ce instanceof H)}e.isSharedArrayBuffer=B;function q(ce){return l(ce)==="[object AsyncFunction]"}e.isAsyncFunction=q;function K(ce){return l(ce)==="[object Map Iterator]"}e.isMapIterator=K;function re(ce){return l(ce)==="[object Set Iterator]"}e.isSetIterator=re;function se(ce){return l(ce)==="[object Generator]"}e.isGeneratorObject=se;function k(ce){return l(ce)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function F(ce){return _(ce,c)}e.isNumberObject=F;function ae(ce){return _(ce,u)}e.isStringObject=ae;function Z(ce){return _(ce,p)}e.isBooleanObject=Z;function me(ce){return a&&_(ce,d)}e.isBigIntObject=me;function pe(ce){return s&&_(ce,y)}e.isSymbolObject=pe;function Ce(ce){return F(ce)||ae(ce)||Z(ce)||me(ce)||pe(ce)}e.isBoxedPrimitive=Ce;function Me(ce){return typeof Uint8Array<"u"&&(U(ce)||B(ce))}e.isAnyArrayBuffer=Me,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ce){Object.defineProperty(e,ce,{enumerable:!1,value:function(){throw new Error(ce+" is not supported in userland")}})})})(j_);var ek=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var H=Object.keys(M),J={},B=0;B<H.length;B++)J[H[B]]=Object.getOwnPropertyDescriptor(M,H[B]);return J},n=/%[sdj%]/g;e.format=function(j){if(!C(j)){for(var M=[],H=0;H<arguments.length;H++)M.push(a(arguments[H]));return M.join(" ")}for(var H=1,J=arguments,B=J.length,q=String(j).replace(n,function(re){if(re==="%%")return"%";if(H>=B)return re;switch(re){case"%s":return String(J[H++]);case"%d":return Number(J[H++]);case"%j":try{return JSON.stringify(J[H++])}catch{return"[Circular]"}default:return re}}),K=J[H];H<B;K=J[++H])f(K)||!O(K)?q+=" "+K:q+=" "+a(K);return q},e.deprecate=function(j,M){if(typeof ne<"u"&&ne.noDeprecation===!0)return j;if(typeof ne>"u")return function(){return e.deprecate(j,M).apply(this,arguments)};var H=!1;function J(){if(!H){if(ne.throwDeprecation)throw new Error(M);ne.traceDeprecation?console.trace(M):console.error(M),H=!0}return j.apply(this,arguments)}return J};var r={},o=/^$/;if(ne.env.NODE_DEBUG){var i=ne.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!r[j])if(o.test(j)){var M=ne.pid;r[j]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",j,M,H)}}else r[j]=function(){};return r[j]};function a(j,M){var H={seen:[],stylize:l};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),v(M)?H.showHidden=M:M&&e._extend(H,M),S(H.showHidden)&&(H.showHidden=!1),S(H.depth)&&(H.depth=2),S(H.colors)&&(H.colors=!1),S(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),u(H,j,H.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(j,M){var H=a.styles[M];return H?"\x1B["+a.colors[H][0]+"m"+j+"\x1B["+a.colors[H][1]+"m":j}function l(j,M){return j}function c(j){var M={};return j.forEach(function(H,J){M[H]=!0}),M}function u(j,M,H){if(j.customInspect&&M&&T(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var J=M.inspect(H,j);return C(J)||(J=u(j,J,H)),J}var B=p(j,M);if(B)return B;var q=Object.keys(M),K=c(q);if(j.showHidden&&(q=Object.getOwnPropertyNames(M)),A(M)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return d(M);if(q.length===0){if(T(M)){var re=M.name?": "+M.name:"";return j.stylize("[Function"+re+"]","special")}if(w(M))return j.stylize(RegExp.prototype.toString.call(M),"regexp");if(P(M))return j.stylize(Date.prototype.toString.call(M),"date");if(A(M))return d(M)}var se="",k=!1,F=["{","}"];if(g(M)&&(k=!0,F=["[","]"]),T(M)){var ae=M.name?": "+M.name:"";se=" [Function"+ae+"]"}if(w(M)&&(se=" "+RegExp.prototype.toString.call(M)),P(M)&&(se=" "+Date.prototype.toUTCString.call(M)),A(M)&&(se=" "+d(M)),q.length===0&&(!k||M.length==0))return F[0]+se+F[1];if(H<0)return w(M)?j.stylize(RegExp.prototype.toString.call(M),"regexp"):j.stylize("[Object]","special");j.seen.push(M);var Z;return k?Z=y(j,M,H,K,q):Z=q.map(function(me){return _(j,M,H,K,me,k)}),j.seen.pop(),x(Z,se,F)}function p(j,M){if(S(M))return j.stylize("undefined","undefined");if(C(M)){var H="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(H,"string")}if(b(M))return j.stylize(""+M,"number");if(v(M))return j.stylize(""+M,"boolean");if(f(M))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function y(j,M,H,J,B){for(var q=[],K=0,re=M.length;K<re;++K)Y(M,String(K))?q.push(_(j,M,H,J,String(K),!0)):q.push("");return B.forEach(function(se){se.match(/^\d+$/)||q.push(_(j,M,H,J,se,!0))}),q}function _(j,M,H,J,B,q){var K,re,se;if(se=Object.getOwnPropertyDescriptor(M,B)||{value:M[B]},se.get?se.set?re=j.stylize("[Getter/Setter]","special"):re=j.stylize("[Getter]","special"):se.set&&(re=j.stylize("[Setter]","special")),Y(J,B)||(K="["+B+"]"),re||(j.seen.indexOf(se.value)<0?(f(H)?re=u(j,se.value,null):re=u(j,se.value,H-1),re.indexOf(`
257
257
  `)>-1&&(q?re=re.split(`
258
258
  `).map(function(k){return" "+k}).join(`
259
259
  `).slice(2):re=`
@@ -271,8 +271,8 @@ Please check the server is up and running`),o.rejectWith({},[s,l,c])}),o}functi
271
271
  `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function tB(){return[new UM("__global__")]}function tv(e,t,n){return za(t,new XD(e,n))}function pp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new YM(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=tv("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(be.isUndefined(r)&&(n||be.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};be.assign(r,n||{}),be.defaults(r,{id:t,patterns:[t],methods:["GET"]}),be.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new GD(r.url_params),r.bodyAutocompleteRootComponents=tv(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return tB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(pp.prototype);let qa=new pp;const nv=e=>e[0]==="_"&&e!=="_all",zi=(e,t)=>new pj(e,t),nB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return zi},index:function(e,t){if(!nv(e))return new il(e,t,!1)},indices:function(e,t){if(!nv(e))return new il(e,t,!0)},type:function(e,t){return new Jm(e,t,!1)},types:function(e,t){return new Jm(e,t,!0)},id:function(e,t){return zi(e,t)},transform_id:function(e,t){return zi(e,t)},username:function(e,t){return new Zm(e,t)},user:function(e,t){return new Zm(e,t)},template:function(e,t){return new hj(e,t)},task_id:function(e,t){return zi(e,t)},ids:function(e,t){return zi(e,t)},fields:function(e,t){return new Qm(e,t,!0)},field:function(e,t){return new Qm(e,t,!1)},nodes:function(e,t){return new kn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new kn(e,[],t,!1)}};function rB(){return qa.getUnmatchedEndpointComponents()}function oB(e){return qa.getEndpointDescriptionByEndpoint(e)}function iB(e){const t=oB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function qs(e){return qa.getTopLevelUrlCompleteComponents(e)}function aB(e,t){return qa.getGlobalAutocompleteComponents(e,t)}function sB(e,t,n){t=t||nB,n=n||t;const r=new pp(t,n),o=[];return be.each(e,function(i,a){o.unshift(a),be.each(i.globals||{},function(s,l){r.addGlobalAutocompleteRules(l,s)}),be.each(i.endpoints||{},function(s,l){r.addEndpointDescription(l,s)})}),r.name=o.join(","),r}const Kw=new WD;Kw.start();const lB=Kw.asJson();qa=sB({es:lB});const zt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class Xw{constructor(t){this.editor=t,this.MODE=zt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return zt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return zt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return zt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?zt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?zt.MULTI_DOC_CUR_DOC_END|zt.IN_REQUEST:zt.REQUEST_END|zt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?zt.REQUEST_START|zt.REQUEST_END:zt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.REQUEST_END|zt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function cB(e){return!(e==="_all"||e[0]!=="_")}class uB extends kn{constructor(t,n,r){super(t,aj,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,cB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function fB(){return[new uB("command",null,!0)]}let nr=null;function Bf(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Vs(e,t,n,r){const o=so({editor:e,position:t}),i=t;let a=[];const s={};s.tokensLineCache=o.tokensLineCache;const l={looking_for_key:0,looking_for_scope_start:1,start:3};let c=l.start,u=o.getCurrentToken();s.token=u,u?i.column===1&&(u=o.stepBackward(),c=l.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=l.start);let p=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(p=!0),u.type){case"variable":c===l.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=l.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===l.looking_for_scope_start&&(c=l.looking_for_key);break;case"paren.rparen":c=l.looking_for_scope_start;let y=1;for(u=o.stepBackward();u&&y>0;){switch(u.type){case"paren.lparen":y--;break;case"paren.rparen":y++;break}y>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=l.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start);break;case"punctuation.comma":c===l.start&&(c=l.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===l.start&&(c=l.looking_for_key);break}if(p&&(!a||a.length===0)&&!r)return{};if(s.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(s.urlTokenPath.push(u.value),s.urlTokenPath.push(vf)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}s.bodyTokenPath=a,s.urlParamsTokenPath=null,s.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&Bf(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const y=d;d={},d[u.value]=y;break;case"url.amp":case"url.questionmark":s.urlParamsTokenPath||(s.urlParamsTokenPath=[]),s.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(s.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&s.urlTokenPath.unshift(d),!s.bodyTokenPath&&!s.urlParamsTokenPath?s.urlTokenPath.length>0&&(s.otherTokenValues=s.urlTokenPath[0]):s.urlTokenPath.push(vf),u&&u.type==="method"&&(s.method=u.value),s}function rv(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function ys(e,t,n){return be.map(e,function(r){return typeof r!="object"&&(r={name:r}),be.defaults(r,{meta:t,template:n})})}function dB({coreEditor:e}){const t=new Xw(e);function n(f){const m=f.context;i(m,e.getCurrentPosition(),f.insertValue);let b;m.autoCompleteType==="body"?(b=typeof f.insertValue=="string"?'"'+f.insertValue+'"':f.insertValue+"",(f.insertValue==="["||f.insertValue==="{")&&(b="")):b=f.insertValue+"";let C=b,E=!1;if(m.addTemplate&&!be.isUndefined(f.template)&&!be.isNull(f.template)){let O;f.template.__raw&&f.template.value?O=f.template.value.split(`
272
272
  `):O=m_(f.template,!0).split(`
273
273
  `);let P=e.getLineValue(m.rangeToReplace.start.lineNumber);P=P.match(/^\s*/)[0];for(let A=1;A<O.length;A++)O[A]=P+O[A];C+=": "+O.join(`
274
- `),E=!0}else E=!0,f.value==="["?C+="[]":f.value==="{"?C+="{}":E=!1;C=m.prefixToAdd+C+m.suffixToAdd,e.off("changeSelection",g),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,C):e.insert(C),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+b.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const w=so({editor:e,position:S});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(w);switch(O?O.type:"NOTOKEN"){case"paren.rparen":S=w.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(w),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(w),S=w.getCurrentPosition(),O&&O.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":w.stepForward(),S=w.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",g)}function r(f,m){const b={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:f};switch(b.autoCompleteType=o(m),b.autoCompleteType){case"path":d(b,m);break;case"url_params":y(b,m);break;case"method":p(b);break;case"body":_(b,m);break;default:return null}return b.autoCompleteSet?(i(b,m),b.createdWithToken=be.clone(b.updatedForToken),b):null}function o(f){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const b=so({editor:e,position:f});let C=b.getCurrentToken();for(;C.type==="url.comma";)C=b.stepBackward();switch(C.type){case"method":return"method";case"whitespace":switch(C=t.prevNonEmptyToken(b),(C||{}).type){case"method":return"path";default:return rv(C)?"path":Bf(C)?"url_params":null}default:return rv(C)?"path":Bf(C)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(f.lineNumber).trim()===""?(m=t.getRowParseMode(f.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(f,m,b){f.updatedForToken=be.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),f.updatedForToken||(f.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let C=f.createdWithToken;switch(C||(C=f.updatedForToken),f.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0;break;default:b&&f.updatedForToken.value===b?(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0):(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},f.replacingToken=!1);break}switch(f.textBoxPosition={lineNumber:f.rangeToReplace.start.lineNumber,column:f.rangeToReplace.start.column},f.autoCompleteType){case"path":c(f);break;case"url_params":s(f);break;case"method":l(f);break;case"body":a(f);break}}function a(f){f.prefixToAdd="",f.suffixToAdd="";let m=so({editor:e,position:e.getCurrentPosition()}),b=t.nextNonEmptyToken(m);switch(b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":f.addTemplate=!0;break;case"punctuation.colon":if(f.addTemplate=!1,b=t.nextNonEmptyToken(m),!(b&&b.value==="{")||(b=t.nextNonEmptyToken(m),!(b&&b.value==="}")))break;switch(f.addTemplate=!0,f.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),f.rangeToReplace.end.column=m.getCurrentTokenColumn()+b.value.length,b=t.nextNonEmptyToken(m),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:f.suffixToAdd=", "}break;default:f.addTemplate=!0,f.suffixToAdd=", ";break}m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentToken();let C;if(f.replacingToken)C=0;else{const E=e.getCurrentPosition();E.column===f.updatedForToken.position.column?C=-1:E.column<f.updatedForToken.position.column+f.updatedForToken.value.length?C=0:C=1}switch((t.isEmptyToken(b)||C<=0)&&(b=t.prevNonEmptyToken(m)),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:b&&b.type.indexOf("url")<0&&(f.prefixToAdd=", ")}return f}function s(f){f.prefixToAdd="",f.suffixToAdd=""}function l(f){f.prefixToAdd="",f.suffixToAdd="";const m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentPosition().lineNumber,C=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==b||!C)&&(f.suffixToAdd=" ")}function c(f){f.prefixToAdd="",f.suffixToAdd=""}function u(f,m){const b=[];let C=-1;return(f||[]).forEach((E,S)=>{const w=E.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&f.length>S+2&&S+2!=m){let O=f[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),b.push(O),C=S)}}),{indices:b.join(","),idx:C}}function p(f){f.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,b)=>({name:m,score:-b,meta:"method"}))}function d(f,m){var E,S;const b=Vs(e,m,t);f.method=b.method,f.token=b.token,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath;let C;if(b.method==="LOAD")C=fB();else if(b.method==="SELECT"){const w=(b.tokensLineCache||[]).findIndex(T=>T.value===b.token.value);let{indices:O,idx:P}=u(b.tokensLineCache,w);if(P>-1&&w<P){const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}const A=((E=b.otherTokenValues)==null?void 0:E.length)||0;if(A>0)switch(b.otherTokenValues[A-1].toUpperCase()){case"FROM":!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(A>1&&!b.token.value.includes("=")){O===""&&(O=b.otherTokenValues[A-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}}}else if(b.method=="FROM"){const w=(b.tokensLineCache||[]).findIndex(O=>O.value===b.token.value);if(b.tokensLineCache[w-2].value=="FROM")!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);else{let O=b.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const P=((S=b.otherTokenValues)==null?void 0:S.length)||0;let A=!0,T=null;for(let L=w-1;L>=0;L--){const D=b.tokensLineCache[L];if(T===null&&D.value.trim()!=""&&(T=D),D.type=="url.select_keyword"&&D.value.toUpperCase()!="SELECT"){A=!1;break}}switch(A&&T.value!=","&&T.value.toUpperCase()!="SELECT"&&(A=!1),b.otherTokenValues[P-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":A=!0}if(A&&!b.token.value.includes("=")){const L=Ji(O);f.autoCompleteSet=ys(L,"field");return}}}else C=qs(f.method);ti(f.urlTokenPath,f,e,!0,C),f.autoCompleteSet=ys(f.autoCompleteSet,"endpoint")}function y(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),!f.endpoint)||!b.urlParamsTokenPath)return f;let C=[];const E=b.urlParamsTokenPath.pop();return E&&(C=Object.keys(E),f.otherTokenValues=E[C[0]]),ti(C,f,e,!0,f.endpoint.paramsAutocomplete.getTopLevelComponents(f.method)),f}function _(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,f.requestStartRow=b.requestStartRow,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),f.bodyTokenPath=b.bodyTokenPath,!b.bodyTokenPath))return f;f.endpointComponentResolver=iB,f.globalComponentResolver=aB;let C;return f.endpoint?C=f.endpoint.bodyAutocompleteRootComponents:C=rB(),ti(b.bodyTokenPath,f,e,!0,C),f}const x=be.debounce(function(m){let b=null;try{b=e.getTokenAt(m)}catch{}if(!b){if(m.lineNumber===1){nr=null;return}b={position:{column:0,lineNumber:0},value:"",type:""}}if(b.position.lineNumber=m.lineNumber,t.isEmptyToken(b)){const C=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(C)?(b.position.column=m.column,nr=b):(C.position.lineNumber=m.lineNumber,nr=C);return}if(!nr){nr=b;return}if(nr.position.column!==b.position.column||nr.position.lineNumber!==b.position.lineNumber||nr.value===b.value){nr=b;return}switch(b.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}nr=b,e.execCommand("startAutocomplete")},100);function g(){const f=e.getCurrentPosition();f&&!e.isCompleterActive()&&x(f)}function v(f,m,b){try{const C=r(e,f);if(!C)b(null,[]);else{const E=be.map(C.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=be.clone(S);const w={value:S.name,meta:"API",score:0,context:C};return C.method==="LOAD"&&C.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),C.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),be.defaults(S,w)});E.sort(function(S,w){return S.score>w.score?-1:S.score<w.score?1:S.name<w.name?-1:S.name===w.name?0:1}),b(null,be.map(E,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(C){console.error(C),b(C,null)}}return e.on("changeSelection",g),{getCompletions:v}}async function pB(){return(await Promise.resolve().then(()=>require("./worker-COMjIpIG.cjs"))).someFunction()}const hB={id:"sense_editor/mode/worker",src:pB},{TextHighlightRules:mB}=Ze.acequire("ace/mode/text_highlight_rules"),gB=Ze.acequire("ace/lib/oop"),hp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};gB.inherits(hp,mB);const vB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:yB}=Ze.acequire("ace/mode/text_highlight_rules"),bB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function mp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:bB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}vB.inherits(mp,yB);const{JsonHighlightRules:_B}=Ze.acequire("ace/mode/json_highlight_rules"),wB=Ze.acequire("ace/lib/oop"),Yw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Qw(){const e=Yw("start");this.$rules={...e},this.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}wB.inherits(Qw,_B);function Jw(e,t){e.$rules=be.defaultsDeep(e.$rules,Yw(t)),e.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function CB(){return(await Promise.resolve().then(()=>require("./x_json.ace.worker-ClEhbr73.cjs"))).someFunction()}const xB={id:"ace/mode/json_worker",src:CB},{WorkerClient:SB}=Ze.acequire("ace/worker/worker_client"),EB=Ze.acequire("ace/lib/oop"),{Mode:RB}=Ze.acequire("ace/mode/json"),{Tokenizer:OB}=Ze.acequire("ace/tokenizer"),{MatchingBraceOutdent:$B}=Ze.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:TB}=Ze.acequire("ace/mode/behaviour/cstyle"),{FoldMode:PB}=Ze.acequire("ace/mode/folding/cstyle"),Zw=function(){const t=new Qw;t.normalizeRules(),this.$tokenizer=new OB(t.getRules()),this.$outdent=new $B,this.$behaviour=new TB,this.foldingRules=new PB};EB.inherits(Zw,RB);Zw.prototype.createWorker=function(e){const t=new SB(["ace"],xB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Ht(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Qo(){return[].concat.apply([],arguments)}const NB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:IB}=Ze.acequire("ace/mode/text_highlight_rules");function gp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Ht(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(s,l,c)=>o.includes(s==null?void 0:s.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Qo([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Ht(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Qo(Ht(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Ht(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Ht(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Ht(["whitespace"],/(\s+)/,"start","url")),url:Qo(Ht(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Ht(["url.comma"],/(,)/,"start"),Ht(["url.slash"],/(\/)/,"start"),Ht(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Ht(["url.param"],/([^&=]+)/,"start"),Ht(["url.amp"],/(&)/,"start")),"url-sql":Qo(Ht(["url.part"],/([^?\/,\s]+)/,"start-sql"),Ht(["url.comma"],/(,)/,"start-sql"),Ht(["url.slash"],/(\/)/,"start-sql"),Ht(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Ht(["url.param"],/([^&=]+)/,"start-sql"),Ht(["url.amp"],/(&)/,"start-sql"))},Jw(this),this.constructor===gp&&this.normalizeRules()}NB.inherits(gp,IB);const AB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:MB}=Ze.acequire("ace/mode/text_highlight_rules"),jB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function eC(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:jB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}AB.inherits(eC,MB);const kB=Ze.acequire("ace/lib/oop"),LB=Ze.acequire("ace/mode/text").Mode;Ze.acequire("ace/tokenizer");function vp(){}kB.inherits(vp,LB);(function(){this.HighlightRules=eC,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(vp.prototype);const FB=Ze.acequire("ace/lib/oop"),DB=Ze.acequire("ace/mode/text").Mode,BB=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,zB=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,qB=Ze.acequire("ace/mode/folding/cstyle").FoldMode,VB=Ze.acequire("ace/worker/worker_client").WorkerClient,HB=Ze.acequire("ace/tokenizer").Tokenizer;function yp(){this.$tokenizer=new HB(new gp().getRules()),this.$outdent=new BB,this.$behaviour=new zB,this.foldingRules=new qB,this.createModeDelegates({"script-":vp})}FB.inherits(yp,DB);(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new VB(["ace","sense_editor"],hB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(yp.prototype);var na={exports:{}};(function(){Ze.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,s,l){l(null,[])}}),Ze.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,s={lineNumber:r.row+1,column:r.column+1};a.autocompleter(s,o,i)}}])})();const WB=Ze.acequire("ace/range").Range,bs=({start:e,end:t})=>new WB(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class UB{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Rt(n),this.editor.setShowPrintMargin(!1),this.parser=new Xw(this),this.autocompleter=dB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new yp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=y_(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(bs(t))}getTokenProvider(){return new DM(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(bs(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(bs(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
- `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(bs(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&zM(t)){const n=qM(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Rt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,s=i.length>a,l=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-l,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-l){this.setActionsBar(0,"bottom");return}let y=0;if(s){const _=Rt(this.editor.container.querySelector("textArea")),x=this.getLineValue(r).length<a;if(_&&x)y+=this.getLineValue(r).length*_.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(na.exports==null?{}:na.exports).default||na.exports;(na.exports==null?{}:na.exports).getCompletions;const GB=Ze.acequire("ace/lib/oop"),KB=Ze.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function bp(){this.$rules={},Jw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===bp&&this.normalizeRules()}GB.inherits(bp,KB);const XB=Ze.acequire("ace/lib/oop"),YB=Ze.acequire("ace/mode/json").Mode,QB=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,JB=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,ZB=Ze.acequire("ace/mode/folding/cstyle").FoldMode;Ze.acequire("ace/worker/worker_client");const e4=Ze.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new e4(new bp().getRules()),this.$outdent=new QB,this.$behaviour=new JB,this.foldingRules=new ZB}XB.inherits(_p,YB);(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function t4(e){const t=Ze.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=y_(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),be.isUndefined(o)&&(o=!0);const a=t.getSession(),s=a.getLength();o&&t.moveCursorTo(Math.max(0,s-1),0),a.insert({row:s,column:0},`
274
+ `),E=!0}else E=!0,f.value==="["?C+="[]":f.value==="{"?C+="{}":E=!1;C=m.prefixToAdd+C+m.suffixToAdd,e.off("changeSelection",g),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,C):e.insert(C),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+b.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const w=so({editor:e,position:S});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(w);switch(O?O.type:"NOTOKEN"){case"paren.rparen":S=w.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(w),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(w),S=w.getCurrentPosition(),O&&O.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":w.stepForward(),S=w.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",g)}function r(f,m){const b={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:f};switch(b.autoCompleteType=o(m),b.autoCompleteType){case"path":d(b,m);break;case"url_params":y(b,m);break;case"method":p(b);break;case"body":_(b,m);break;default:return null}return b.autoCompleteSet?(i(b,m),b.createdWithToken=be.clone(b.updatedForToken),b):null}function o(f){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const b=so({editor:e,position:f});let C=b.getCurrentToken();for(;C.type==="url.comma";)C=b.stepBackward();switch(C.type){case"method":return"method";case"whitespace":switch(C=t.prevNonEmptyToken(b),(C||{}).type){case"method":return"path";default:return rv(C)?"path":Bf(C)?"url_params":null}default:return rv(C)?"path":Bf(C)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(f.lineNumber).trim()===""?(m=t.getRowParseMode(f.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(f,m,b){f.updatedForToken=be.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),f.updatedForToken||(f.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let C=f.createdWithToken;switch(C||(C=f.updatedForToken),f.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0;break;default:b&&f.updatedForToken.value===b?(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0):(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},f.replacingToken=!1);break}switch(f.textBoxPosition={lineNumber:f.rangeToReplace.start.lineNumber,column:f.rangeToReplace.start.column},f.autoCompleteType){case"path":c(f);break;case"url_params":s(f);break;case"method":l(f);break;case"body":a(f);break}}function a(f){f.prefixToAdd="",f.suffixToAdd="";let m=so({editor:e,position:e.getCurrentPosition()}),b=t.nextNonEmptyToken(m);switch(b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":f.addTemplate=!0;break;case"punctuation.colon":if(f.addTemplate=!1,b=t.nextNonEmptyToken(m),!(b&&b.value==="{")||(b=t.nextNonEmptyToken(m),!(b&&b.value==="}")))break;switch(f.addTemplate=!0,f.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),f.rangeToReplace.end.column=m.getCurrentTokenColumn()+b.value.length,b=t.nextNonEmptyToken(m),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:f.suffixToAdd=", "}break;default:f.addTemplate=!0,f.suffixToAdd=", ";break}m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentToken();let C;if(f.replacingToken)C=0;else{const E=e.getCurrentPosition();E.column===f.updatedForToken.position.column?C=-1:E.column<f.updatedForToken.position.column+f.updatedForToken.value.length?C=0:C=1}switch((t.isEmptyToken(b)||C<=0)&&(b=t.prevNonEmptyToken(m)),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:b&&b.type.indexOf("url")<0&&(f.prefixToAdd=", ")}return f}function s(f){f.prefixToAdd="",f.suffixToAdd=""}function l(f){f.prefixToAdd="",f.suffixToAdd="";const m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentPosition().lineNumber,C=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==b||!C)&&(f.suffixToAdd=" ")}function c(f){f.prefixToAdd="",f.suffixToAdd=""}function u(f,m){const b=[];let C=-1;return(f||[]).forEach((E,S)=>{const w=E.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&f.length>S+2&&S+2!=m){let O=f[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),b.push(O),C=S)}}),{indices:b.join(","),idx:C}}function p(f){f.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,b)=>({name:m,score:-b,meta:"method"}))}function d(f,m){var E,S;const b=Vs(e,m,t);f.method=b.method,f.token=b.token,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath;let C;if(b.method==="LOAD")C=fB();else if(b.method==="SELECT"){const w=(b.tokensLineCache||[]).findIndex(T=>T.value===b.token.value);let{indices:O,idx:P}=u(b.tokensLineCache,w);if(P>-1&&w<P){const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}const A=((E=b.otherTokenValues)==null?void 0:E.length)||0;if(A>0)switch(b.otherTokenValues[A-1].toUpperCase()){case"FROM":!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(A>1&&!b.token.value.includes("=")){O===""&&(O=b.otherTokenValues[A-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}}}else if(b.method=="FROM"){const w=(b.tokensLineCache||[]).findIndex(O=>O.value===b.token.value);if(b.tokensLineCache[w-2].value=="FROM")!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);else{let O=b.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const P=((S=b.otherTokenValues)==null?void 0:S.length)||0;let A=!0,T=null;for(let L=w-1;L>=0;L--){const D=b.tokensLineCache[L];if(T===null&&D.value.trim()!=""&&(T=D),D.type=="url.select_keyword"&&D.value.toUpperCase()!="SELECT"){A=!1;break}}switch(A&&T.value!=","&&T.value.toUpperCase()!="SELECT"&&(A=!1),b.otherTokenValues[P-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":A=!0}if(A&&!b.token.value.includes("=")){const L=Ji(O);f.autoCompleteSet=ys(L,"field");return}}}else C=qs(f.method);ti(f.urlTokenPath,f,e,!0,C),f.autoCompleteSet=ys(f.autoCompleteSet,"endpoint")}function y(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),!f.endpoint)||!b.urlParamsTokenPath)return f;let C=[];const E=b.urlParamsTokenPath.pop();return E&&(C=Object.keys(E),f.otherTokenValues=E[C[0]]),ti(C,f,e,!0,f.endpoint.paramsAutocomplete.getTopLevelComponents(f.method)),f}function _(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,f.requestStartRow=b.requestStartRow,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),f.bodyTokenPath=b.bodyTokenPath,!b.bodyTokenPath))return f;f.endpointComponentResolver=iB,f.globalComponentResolver=aB;let C;return f.endpoint?C=f.endpoint.bodyAutocompleteRootComponents:C=rB(),ti(b.bodyTokenPath,f,e,!0,C),f}const x=be.debounce(function(m){let b=null;try{b=e.getTokenAt(m)}catch{}if(!b){if(m.lineNumber===1){nr=null;return}b={position:{column:0,lineNumber:0},value:"",type:""}}if(b.position.lineNumber=m.lineNumber,t.isEmptyToken(b)){const C=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(C)?(b.position.column=m.column,nr=b):(C.position.lineNumber=m.lineNumber,nr=C);return}if(!nr){nr=b;return}if(nr.position.column!==b.position.column||nr.position.lineNumber!==b.position.lineNumber||nr.value===b.value){nr=b;return}switch(b.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}nr=b,e.execCommand("startAutocomplete")},100);function g(){const f=e.getCurrentPosition();f&&!e.isCompleterActive()&&x(f)}function v(f,m,b){try{const C=r(e,f);if(!C)b(null,[]);else{const E=be.map(C.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=be.clone(S);const w={value:S.name,meta:"API",score:0,context:C};return C.method==="LOAD"&&C.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),C.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),be.defaults(S,w)});E.sort(function(S,w){return S.score>w.score?-1:S.score<w.score?1:S.name<w.name?-1:S.name===w.name?0:1}),b(null,be.map(E,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(C){console.error(C),b(C,null)}}return e.on("changeSelection",g),{getCompletions:v}}async function pB(){return(await Promise.resolve().then(()=>require("./worker-COMjIpIG.cjs"))).someFunction()}const hB={id:"sense_editor/mode/worker",src:pB},{TextHighlightRules:mB}=Qe.acequire("ace/mode/text_highlight_rules"),gB=Qe.acequire("ace/lib/oop"),hp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};gB.inherits(hp,mB);const vB=Qe.acequire("ace/lib/oop"),{TextHighlightRules:yB}=Qe.acequire("ace/mode/text_highlight_rules"),bB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function mp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:bB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}vB.inherits(mp,yB);const{JsonHighlightRules:_B}=Qe.acequire("ace/mode/json_highlight_rules"),wB=Qe.acequire("ace/lib/oop"),Yw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Qw(){const e=Yw("start");this.$rules={...e},this.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}wB.inherits(Qw,_B);function Jw(e,t){e.$rules=be.defaultsDeep(e.$rules,Yw(t)),e.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function CB(){return(await Promise.resolve().then(()=>require("./x_json.ace.worker-ClEhbr73.cjs"))).someFunction()}const xB={id:"ace/mode/json_worker",src:CB},{WorkerClient:SB}=Qe.acequire("ace/worker/worker_client"),EB=Qe.acequire("ace/lib/oop"),{Mode:RB}=Qe.acequire("ace/mode/json"),{Tokenizer:OB}=Qe.acequire("ace/tokenizer"),{MatchingBraceOutdent:$B}=Qe.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:TB}=Qe.acequire("ace/mode/behaviour/cstyle"),{FoldMode:PB}=Qe.acequire("ace/mode/folding/cstyle"),Zw=function(){const t=new Qw;t.normalizeRules(),this.$tokenizer=new OB(t.getRules()),this.$outdent=new $B,this.$behaviour=new TB,this.foldingRules=new PB};EB.inherits(Zw,RB);Zw.prototype.createWorker=function(e){const t=new SB(["ace"],xB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Ht(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Qo(){return[].concat.apply([],arguments)}const NB=Qe.acequire("ace/lib/oop"),{TextHighlightRules:IB}=Qe.acequire("ace/mode/text_highlight_rules");function gp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Ht(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(s,l,c)=>o.includes(s==null?void 0:s.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Qo([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Ht(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Qo(Ht(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Ht(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Ht(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Ht(["whitespace"],/(\s+)/,"start","url")),url:Qo(Ht(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Ht(["url.comma"],/(,)/,"start"),Ht(["url.slash"],/(\/)/,"start"),Ht(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Ht(["url.param"],/([^&=]+)/,"start"),Ht(["url.amp"],/(&)/,"start")),"url-sql":Qo(Ht(["url.part"],/([^?\/,\s]+)/,"start-sql"),Ht(["url.comma"],/(,)/,"start-sql"),Ht(["url.slash"],/(\/)/,"start-sql"),Ht(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Ht(["url.param"],/([^&=]+)/,"start-sql"),Ht(["url.amp"],/(&)/,"start-sql"))},Jw(this),this.constructor===gp&&this.normalizeRules()}NB.inherits(gp,IB);const AB=Qe.acequire("ace/lib/oop"),{TextHighlightRules:MB}=Qe.acequire("ace/mode/text_highlight_rules"),jB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function eC(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:jB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}AB.inherits(eC,MB);const kB=Qe.acequire("ace/lib/oop"),LB=Qe.acequire("ace/mode/text").Mode;Qe.acequire("ace/tokenizer");function vp(){}kB.inherits(vp,LB);(function(){this.HighlightRules=eC,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(vp.prototype);const FB=Qe.acequire("ace/lib/oop"),DB=Qe.acequire("ace/mode/text").Mode,BB=Qe.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,zB=Qe.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,qB=Qe.acequire("ace/mode/folding/cstyle").FoldMode,VB=Qe.acequire("ace/worker/worker_client").WorkerClient,HB=Qe.acequire("ace/tokenizer").Tokenizer;function yp(){this.$tokenizer=new HB(new gp().getRules()),this.$outdent=new BB,this.$behaviour=new zB,this.foldingRules=new qB,this.createModeDelegates({"script-":vp})}FB.inherits(yp,DB);(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new VB(["ace","sense_editor"],hB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(yp.prototype);var na={exports:{}};(function(){Qe.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,s,l){l(null,[])}}),Qe.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,s={lineNumber:r.row+1,column:r.column+1};a.autocompleter(s,o,i)}}])})();const WB=Qe.acequire("ace/range").Range,bs=({start:e,end:t})=>new WB(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class UB{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Rt(n),this.editor.setShowPrintMargin(!1),this.parser=new Xw(this),this.autocompleter=dB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new yp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=y_(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(bs(t))}getTokenProvider(){return new DM(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(bs(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(bs(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
+ `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(bs(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&zM(t)){const n=qM(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Rt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,s=i.length>a,l=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-l,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-l){this.setActionsBar(0,"bottom");return}let y=0;if(s){const _=Rt(this.editor.container.querySelector("textArea")),x=this.getLineValue(r).length<a;if(_&&x)y+=this.getLineValue(r).length*_.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(na.exports==null?{}:na.exports).default||na.exports;(na.exports==null?{}:na.exports).getCompletions;const GB=Qe.acequire("ace/lib/oop"),KB=Qe.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function bp(){this.$rules={},Jw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===bp&&this.normalizeRules()}GB.inherits(bp,KB);const XB=Qe.acequire("ace/lib/oop"),YB=Qe.acequire("ace/mode/json").Mode,QB=Qe.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,JB=Qe.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,ZB=Qe.acequire("ace/mode/folding/cstyle").FoldMode;Qe.acequire("ace/worker/worker_client");const e4=Qe.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new e4(new bp().getRules()),this.$outdent=new QB,this.$behaviour=new JB,this.foldingRules=new ZB}XB.inherits(_p,YB);(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function t4(e){const t=Qe.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=y_(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),be.isUndefined(o)&&(o=!0);const a=t.getSession(),s=a.getLength();o&&t.moveCursorTo(Math.max(0,s-1),0),a.insert({row:s,column:0},`
276
276
  `+r),t.moveCursorTo(s+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const n4=({value:e=[],onChange:t})=>{const[n,r]=I.useState(!1),[o,i]=I.useState(""),a=u=>{i(u.target.value)},s=()=>{r(!0)},l=I.useCallback(u=>{if(u.target.value.length==0)return u_.warning(fe.jsx(tn.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=I.useCallback(u=>{const p=[...e];p.splice(u,1),t&&t(p)},[e,t]);return fe.jsxs("div",{children:[e.map((u,p)=>fe.jsx(ol,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(p),children:u},p)),n&&fe.jsx(Io,{value:o,onChange:a,style:{width:100},onBlur:l,onPressEnter:l}),!n&&fe.jsxs(ol,{onClick:s,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(Cr.PlusOutlined,{})," ",fe.jsx(tn.FormattedMessage,{id:"command.btn.newtag"})]})]})},r4=e=>{const[t]=An.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return fe.jsx(Ln,{title:fe.jsx(tn.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(tn.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(tn.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(An,{layout:"vertical",children:[fe.jsx(An.Item,{name:"title",label:fe.jsx(tn.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx(Io,{})}),fe.jsx(An.Item,{name:"tag",label:fe.jsx(tn.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(n4,{})})]})})};class o4 extends I.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=async()=>{this.closePopover();const n=await this.props.getDocumentation();n&&window.open(n,"_blank")},this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=async n=>{var a,s;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await MM(o))==null?void 0:a.json());i.error?Wi.error({message:((s=i.error)==null?void 0:s.reason)||i.error}):(this.handleClose(),Wi.success({message:fe.jsx(tn.FormattedMessage,{id:"app.message.save.success"})}),ij(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Wi.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Wi.error({message:"Could not copy request as cURL",placement:"bottomRight"})}}async copyText(t){var n;if((n=window.navigator)!=null&&n.clipboard){await window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")}render(){var t,n;return fe.jsxs("span",{onMouseEnter:this.mouseEnter,children:[fe.jsx(Od,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:fe.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?fe.jsx("div",{children:fe.jsx(ur,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(tn.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(ur,{type:"text",onClick:this.autoIndent,children:fe.jsx(tn.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(ur,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(tn.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:fe.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:fe.jsx(Cr.SettingOutlined,{})})}),this.state.modalVisible&&fe.jsx(r4,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function i4(e,t,n){const r=e.getLineValue(t.lineNumber),o={...Vs(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=qs(o.method);return ti(o.urlTokenPath,o,e,!0,i),o.endpoint}async function a4(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function s4(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=i4(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Gl=(e,t)=>()=>{const n=I.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var wp={};(function(e){var t=bt&&bt.__spreadArray||function(S,w,O){if(O||arguments.length===2)for(var P=0,A=w.length,T;P<A;P++)(T||!(P in w))&&(T||(T=Array.prototype.slice.call(w,0,P)),T[P]=w[P]);return S.concat(T||Array.prototype.slice.call(w))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=l,e.constant=c,e.flip=u,e.flow=p,e.tuple=d,e.increment=y,e.decrement=_,e.absurd=x,e.tupled=g,e.untupled=v,e.pipe=f,e.not=b;var n=function(S){return function(){return{meet:function(w,O){return function(P){return S.meet(w(P),O(P))}},join:function(w,O){return function(P){return S.join(w(P),O(P))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(w,O){return function(P){return S.implies(w(P),O(P))}},not:function(w){return function(O){return S.not(w(O))}}}}};e.getBooleanAlgebra=n;var r=function(S){return function(){return{concat:function(w,O){return function(P){return S.concat(w(P),O(P))}}}}};e.getSemigroup=r;var o=function(S){var w=(0,e.getSemigroup)(S);return function(){return{concat:w().concat,empty:function(){return S.empty}}}};e.getMonoid=o;var i=function(S){return{add:function(w,O){return function(P){return S.add(w(P),O(P))}},zero:function(){return S.zero},mul:function(w,O){return function(P){return S.mul(w(P),O(P))}},one:function(){return S.one}}};e.getSemiring=i;var a=function(S){var w=(0,e.getSemiring)(S);return{add:w.add,mul:w.mul,one:w.one,zero:w.zero,sub:function(O,P){return function(A){return S.sub(O(A),P(A))}}}};e.getRing=a;var s=function(S){return function(w){return w(S)}};e.apply=s;function l(S){return S}e.unsafeCoerce=l;function c(S){return function(){return S}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return w.length>1?S(w[1],w[0]):function(P){return S(P)(w[0])}}}function p(S,w,O,P,A,T,L,D,Q){switch(arguments.length){case 1:return S;case 2:return function(){return w(S.apply(this,arguments))};case 3:return function(){return O(w(S.apply(this,arguments)))};case 4:return function(){return P(O(w(S.apply(this,arguments))))};case 5:return function(){return A(P(O(w(S.apply(this,arguments)))))};case 6:return function(){return T(A(P(O(w(S.apply(this,arguments))))))};case 7:return function(){return L(T(A(P(O(w(S.apply(this,arguments)))))))};case 8:return function(){return D(L(T(A(P(O(w(S.apply(this,arguments))))))))};case 9:return function(){return Q(D(L(T(A(P(O(w(S.apply(this,arguments)))))))))}}}function d(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return S}function y(S){return S+1}function _(S){return S-1}function x(S){throw new Error("Called `absurd` function which should be uncallable")}function g(S){return function(w){return S.apply(void 0,w)}}function v(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return S(w)}}function f(S,w,O,P,A,T,L,D,Q){switch(arguments.length){case 1:return S;case 2:return w(S);case 3:return O(w(S));case 4:return P(O(w(S)));case 5:return A(P(O(w(S))));case 6:return T(A(P(O(w(S)))));case 7:return L(T(A(P(O(w(S))))));case 8:return D(L(T(A(P(O(w(S)))))));case 9:return Q(D(L(T(A(P(O(w(S))))))));default:{for(var G=arguments[0],z=1;z<arguments.length;z++)G=arguments[z](G);return G}}}e.hole=x;var m=function(S,w){return w};e.SK=m;function b(S){return function(w){return!S(w)}}var C=function(){return{concat:function(S,w){return p(S,w)},empty:l}};e.getEndomorphismMonoid=C;var E=function(S,w){var O=typeof S=="number"?function(P){return P.length>=S}:S;return function(){var P=Array.from(arguments);return O(arguments)?w.apply(this,P):function(A){return w.apply(void 0,t([A],P,!1))}}};e.dual=E})(wp);const zf={data:null,type:"unknown"},tC=hl.produce({requestInFlight:!1,lastResult:zf},wp.identity),l4=(e,t)=>hl.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=zf;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={...zf,error:t.payload};return}}),nC=I.createContext(tC),rC=I.createContext(()=>{});function c4({children:e}){const[t,n]=I.useReducer(l4,tC);return fe.jsx(nC.Provider,{value:t,children:fe.jsx(rC.Provider,{value:n,children:e})})}const oC=Gl(nC,"RequestReadContext"),u4=Gl(rC,"RequestActionContext"),iC=I.createContext(null);function f4({children:e,value:t}){return fe.jsx(iC.Provider,{value:t,children:e})}const Cp=()=>{const e=I.useContext(iC);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},aC=hl.produce({ready:!1,currentTextObject:null,sensorEditor:null},wp.identity),d4=(e,t)=>hl.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),sC=I.createContext(aC),lC=I.createContext(()=>{});function p4({children:e}){const[t,n]=I.useReducer(d4,aC,r=>({...r}));return fe.jsx(sC.Provider,{value:t,children:fe.jsx(lC.Provider,{value:n,children:e})})}const cC=Gl(sC,"EditorReadContext"),h4=Gl(lC,"EditorActionContext");function m4(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
277
  ${a}`}).join(`
278
278
  `)}const uC=e=>{const t=u4(),{clusterID:n}=Cp(),{sensorEditor:r}=cC();return I.useCallback(async()=>{let o="";try{if(!r)return;const i=await r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let s=0;s<i.length;s++){const{url:l,method:c,data:u}=i[s];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const p=u[0]?u[0].slice(4).trim():l,d=sj(p),y=r.getCoreEditor().getCurrentPosition().lineNumber,_=await r.getRequestRange(y),x=m4(d);await r.getCoreEditor().replaceRange(_,x);continue;case"CONFIG":const g=l;let v=0;if(u&&u.length>0){const O=u[0].split(" ");if(O.length>=3&&(v=parseInt(O[2]),isNaN(v))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+O[2]}}});continue}}g=="MaxTokenCount"&&localStorage.setItem("editor:"+g,v+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let f=i[s].data[0]||"";const m=f.search(/\s+(select)\s+/i);if(m==-1){const w=Error("invalid FROM request");throw w.name="FRONT_ERROR",w}const b=f.slice(0,m);f=f.slice(m);const C=f.search(/\s+(order|where|limit)\s+/i);C>-1?f=f.slice(0,C)+" "+b+f.slice(C):f=f+" "+b;let E={query:f.trim()};i[s].data[0]=JSON.stringify(E);break;case"SELECT":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let S={query:i[s].data[0]};i[s].data[0]=JSON.stringify(S);break}}t({type:"sendRequest",payload:void 0});const a=await e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}},[t,n,r])},g4=()=>{const e=h4();return I.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},v4=500,y4=()=>{const e=I.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=Cp(),{currentTextObject:n}=cC();return I.useCallback(be.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},v4,{trailing:!0}),[t,n])};function fC(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function ou(e){return[e.clientWidth,e.clientHeight]}class b4 extends Xd.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new pv(()=>{if(this.expectedSize){const r=be.isEqual(ou(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=ou(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=ou(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function dC(e,...t){const n=new b4(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const _4={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},w4=e=>{const t=y4(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=uC(r);return I.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Ur,{title:fe.jsx(tn.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:fe.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:fe.jsx(Cr.PlayCircleOutlined,{})})})},C4=`GET _search
@@ -280,11 +280,11 @@ ${a}`}).join(`
280
280
  "query": {
281
281
  "match_all": {}
282
282
  }
283
- }`,x4=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var v;const{id:i,endpoint:a}=e,s=I.useRef(null),l=I.useRef(null),c=I.useRef(null),u=g4(),p=I.useRef(null),d=I.useRef(null),y=I.useRef(()=>{}),_=I.useRef(()=>{});y.current=uC(o);const{services:{settings:x}}=Cp();I.useEffect(()=>{const f=Ze.edit(s.current);d.current=f;const m=new UB(f,l.current);f.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),f.execCommand("iSearch")}});const b=new jM(m);c.current=b,u(b),b.paneKey=r,b.update(t||C4),fC(b.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function C(){let w;b.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(E,500)})}function E(){try{const w=b.getCoreEditor().getValue();n(w)}catch(w){console.error(w)}}const S=dC(s.current,b);return C(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),I.useEffect(()=>{i&&(x_(x,x.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const g=async()=>{const f=c.current;if(f==null){console.warn("editor is null");return}const m=await f.getRequestsInRange();return m==null?void 0:m.map(C=>({method:C.method,path:C.url,body:(C.data||[]).join(`
283
+ }`,x4=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var v;const{id:i,endpoint:a}=e,s=I.useRef(null),l=I.useRef(null),c=I.useRef(null),u=g4(),p=I.useRef(null),d=I.useRef(null),y=I.useRef(()=>{}),_=I.useRef(()=>{});y.current=uC(o);const{services:{settings:x}}=Cp();I.useEffect(()=>{console.log(55555,s.current,s.current,Qe);const f=Qe.edit(s.current);console.log(666666,f),d.current=f;const m=new UB(f,l.current);f.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),f.execCommand("iSearch")}});const b=new jM(m);c.current=b,u(b),b.paneKey=r,b.update(t||C4),fC(b.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function C(){let w;b.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(E,500)})}function E(){try{const w=b.getCoreEditor().getValue();console.log(121212,w),n(w)}catch(w){console.error(w)}}const S=dC(s.current,b);return C(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),I.useEffect(()=>{i&&(x_(x,x.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const g=async()=>{const f=c.current;if(f==null){console.warn("editor is null");return}const m=await f.getRequestsInRange();return m==null?void 0:m.map(C=>({method:C.method,path:C.url,body:(C.data||[]).join(`
284
284
  `)}))};return fe.jsx("div",{style:{..._4,height:"100%"},"data-test-subj":"console-application",className:"conApp",children:fe.jsxs("div",{className:"conApp__editor",children:[fe.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),fe.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:l,children:[fe.jsx(w4,{saveCurrentTextObjectRef:_,sendRequestToES:o}),fe.jsx(o4,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>s4(c.current,""),autoIndent:f=>{a4(c.current,f)},saveAsCommonCommand:g,ref:p})]}),fe.jsx("div",{ref:s,id:`Editor_${(v=c.current)==null?void 0:v.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var f,m;(f=p.current)==null||f.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,s,l,c){var u=/^\s*/.exec(c)[0];return l.length<1?l.push(this.next):l[0]="mlString",l.length<2?l.push(u.length):l[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,s,l){var c=l[1];return c>=a.length?(this.next="start",l.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o});ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),(function(){this.getFoldWidgetRange=function(s,l,c){var u=this.indentationBlock(s,c);if(u)return u;var p=/\S/,d=s.getLine(c),y=d.search(p);if(!(y==-1||d[y]!="#")){for(var _=d.length,x=s.getLength(),g=c,v=c;++c<x;){d=s.getLine(c);var f=d.search(p);if(f!=-1){if(d[f]!="#")break;v=c}}if(v>g){var m=s.getLine(v).length;return new i(g,_,v,m)}}},this.getFoldWidget=function(s,l,c){var u=s.getLine(c),p=u.search(/\S/),d=s.getLine(c+1),y=s.getLine(c-1),_=y.search(/\S/),x=d.search(/\S/);if(p==-1)return s.foldWidgets[c-1]=_!=-1&&_<x?"start":"","";if(_==-1){if(p==x&&u[p]=="#"&&d[p]=="#")return s.foldWidgets[c-1]="",s.foldWidgets[c+1]="","start"}else if(_==p&&u[p]=="#"&&y[p]=="#"&&s.getLine(c-2).search(/\S/)==-1)return s.foldWidgets[c-1]="start",s.foldWidgets[c+1]="","";return _!=-1&&_<p?s.foldWidgets[c-1]="start":s.foldWidgets[c-1]="",p<x?"start":""}}).call(a.prototype)});ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/coffee").FoldMode,l=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};r.inherits(l,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,p){var d=this.$getIndent(u);if(c=="start"){var y=u.match(/^.*[\{\(\[]\s*$/);y&&(d+=p)}return d},this.checkOutdent=function(c,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(c,u,p){this.$outdent.autoOutdent(u,p)},this.$id="ace/mode/yaml"}).call(l.prototype),t.Mode=l});const pC=e=>!!(e&&e.indexOf("application/json")>=0);function S4(e){return e?pC(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function E4({clusterID:e}){const t=I.useRef(null),n=I.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=oC();return I.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),I.useEffect(()=>{n.current=t4(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),fC(n.current,{fontSize:12,wrapMode:!0});const s=dC(t.current,n.current);return()=>{s(),n.current.destroy()}},[]),I.useEffect(()=>{var s;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(l=>{const{value:c,contentType:u}=l.response;if(pC(u)){let p="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const _=d.indexOf(`
285
285
  `);p=d.slice(0,_),d=d.slice(_),y=p+`
286
286
  `+JSON.stringify(JSON.parse(d),null,2)}else y=JSON.stringify(JSON.parse(d),null,2);return y}catch(y){console.error(y)}}return c}).join(`
287
- `))}else if(i){const l=S4((s=i.response)==null?void 0:s.contentType);if(l=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),l);return}a.update(i.response.value,l)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class xp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const hC=I.createContext({registry:new xp});function mC({children:e,registry:t}){return fe.jsx(hC.Provider,{value:{registry:t},children:e})}const R4=()=>{const e=I.useContext(hC);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function ov({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=I.useState(`${n}%`),{registry:a}=R4(),s=I.useRef(null);return I.useEffect(()=>{a.registerPanel({width:n,setWidth(l){i(l+"%"),this.width=l},getWidth(){return s.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:s,style:{...r,width:o,display:"flex"},children:e})}function O4(e){return fe.jsx("button",{...e,children:fe.jsx(Cr.PauseOutlined,{})})}const iv={isDragging:!1,currentResizerPos:-1},av=(e,t)=>e/t*100,$4=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=I.Children.toArray(e),[i,a]=o,s=I.useRef(new xp),l=I.useRef(null),[c,u]=I.useState(iv),p=()=>l.current.getBoundingClientRect().width,d=I.useCallback(x=>{u({...c,isDragging:!0,currentResizerPos:x.clientX})},[c]),y=I.useCallback(x=>{const{key:g}=x;if(g==="ArrowLeft"||g==="ArrowRight"){x.preventDefault();const{current:v}=s,[f,m]=v.getPanels(),b=f.width-(g==="ArrowLeft"?1:-1),C=m.width-(g==="ArrowRight"?1:-1);f.setWidth(b),m.setWidth(C),n&&n([b,C])}},[n]);I.useEffect(()=>{var x;((x=ne==null?void 0:ne.env)==null?void 0:x.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const _=[i,fe.jsx(O4,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(mC,{registry:s.current,children:fe.jsx("div",{className:t,ref:l,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:x=>{if(c.isDragging){const{clientX:g}=x,{current:v}=s,[f,m]=v.getPanels(),b=g-c.currentResizerPos,C=p(),E=av(f.getWidth()+b,C),S=av(m.getWidth()-b,C);f.setWidth(E),m.setWidth(S),n&&n([E,S]),u({...c,currentResizerPos:g})}},onMouseUp:()=>{u(iv)},children:_})})},T4=100;class P4{constructor(t){this.storage=t,this.changeEmitter=new CC.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,T4),o.forEach(s=>{this.storage.delete(s)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function N4(e){return new P4(e.storage)}class I4{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(be.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return be.transform(be.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function A4(e){return new I4(e.engine,e.prefix)}class M4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function j4({storage:e}){return new M4(e)}const k4="text-object";class L4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=EC.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const F4=e=>({text:new L4(e,k4)}),qi="#00bb1b",sv="#fcca00",lv="#ff4d4f",D4="#bbbbbb",qf="#d8d8d8",gC={green:qi,yellow:sv,red:lv,available:qi,unavailable:qf,online:qi,offline:qf,active:sv,normal:qi,acknowledged:qi,error:lv,gray:D4};function B4(e){return gC[e]}const z4=({status:e,size:t=14})=>{if(e=="unavailable"||!gC[e])return fe.jsx("span",{children:fe.jsx(Cr.CloseCircleOutlined,{style:{fontSize:14,color:qf}})});const n=B4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},q4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",cv=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(tn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(z4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(ao,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:s,method:l,statusCode:c,statusText:u,timeElapsedMs:p}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:`${l} ${s.startsWith("/")?s:"/"+s}`}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:q4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:"default",children:[p," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},uv=50,fv="0px",V4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,p,d,y,_,x,g,v,f,m,b;const{requestInFlight:a,lastResult:{data:s,error:l}}=oC(),c=(s==null?void 0:s[s.length-1])??l;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs($4,{resizerClassName:"resizer",children:[fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(x4,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(cv,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(_=c.response)==null?void 0:_.header}:void 0})})]}),fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(_a,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(E4,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(_a,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Gm,{code:(x=c==null?void 0:c.request)==null?void 0:x.header})},{key:"2",label:"Response",children:fe.jsx(Gm,{code:(g=c==null?void 0:c.response)==null?void 0:g.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(cv,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(v=c.response)==null?void 0:v.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(b=c.response)==null?void 0:b.header}:void 0})})]})]})})},dv=e=>{var a;const t=I.useRef(new xp),{storage:n,history:r,objectStorageClient:o,settings:i}=I.useMemo(()=>{const s=A4({engine:window.localStorage,prefix:"sense:"}),l=N4({storage:s}),c=F4(s),u=j4({storage:s});return{storage:s,history:l,objectStorageClient:c,settings:u}},[]);return fe.jsx(mC,{registry:t.current,children:fe.jsx(c4,{children:fe.jsx(p4,{children:fe.jsx(f4,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(V4,{...e})})})})})},H4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=I.useRef(null),[,i]=iu.useDrop({accept:"DND_NODE",hover:l=>{const c=l.index,u=t;c!==u&&(n(c,u),l.index=u)}}),[{isDragging:a},s]=iu.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:l=>({isDragging:l.isDragging()})});return s(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},W4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(H4,{id:e,index:t,moveTabNode:n,children:r}),U4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:s,sendRequestToES:l,...c})=>{const[u,p]=I.useState(n),[d,y]=I.useState(n.activeKey),[_,x]=I.useState([]),g=I.useCallback(w=>{x(O=>O.map(P=>P.key===d?{...P,content:w}:P)),p(O=>{const P={...O};return P.panes=P.panes.map(A=>A.key===d?{...A,content:w}:A),P}),s(u)},[d]);I.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(P=>({label:P.title,children:fe.jsx(dv,{height:r-35,selectedCluster:P.cluster,paneKey:P.key,saveEditorContent:g,initialText:P.content,isActive:P.key==d,sendRequestToES:l}),key:P.key,closable:P.closable,icon:i&&i(P)}));x(w)},[]);const[v,f]=I.useState(n.order||[]),m=(w,O)=>{const P=[...v];I.Children.forEach(e,L=>{P.indexOf(L.key)===-1&&P.push(L.key)});const A=P.indexOf(w),T=P.indexOf(O);P.splice(A,1),P.splice(T,0,w),f(P),typeof t=="function"&&t(P)},b=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:P=>fe.jsx(W4,{id:P.key,index:P.key,moveTabNode:m,children:P},P.key)})}),C=w=>{y(w);const O={...u,activeKey:w};p(O),s(O)};I.useEffect(()=>{var P;if(!a)return;const w=[..._];w.unshift({label:a.title,children:fe.jsx(dv,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:g,initialText:a.content,isActive:a.key==d,sendRequestToES:l}),key:a.key,closable:a.closable,icon:i&&i(a)}),x(w),y(a.key);const O={...u};(P=O.panes)==null||P.unshift(a),p(O),s(O)},[a]);const E=w=>{var L;let O=d,P=-1;_==null||_.forEach((D,Q)=>{D.key===w&&(P=Q-1)});const A=_.filter(D=>D.key!==w);A.length&&O===w&&(P>=0?O=A[P].key:O=A[0].key),x(A),y(O);let T={...u};T.panes=(L=T.panes)==null?void 0:L.filter(D=>D.key!==w),p(T),s(T)},S=(w,O)=>{O==="add"||E(w)};return fe.jsx(iu.DndProvider,{backend:_C.HTML5Backend,children:fe.jsx(_a,{...c,type:"editable-card",hideAdd:!0,renderTabBar:b,tabBarExtraContent:o,activeKey:d,items:_,onChange:C,onEdit:S})})},G4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),K4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",X4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",Y4=e=>{const[t,n]=I.useState(e.data||[]);I.useEffect(()=>{o(t)},[t,e.panes]);const r=s=>{const{onItemClick:l}=e;l&&typeof l=="function"&&l(s)},o=(s={})=>{var l,c,u;((l=s.data)==null?void 0:l.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=s.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:s=>r(s),getClusterList:o,children:i}):null})},Q4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:K4}),J4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:X4});function Z4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const ez=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
287
+ `))}else if(i){const l=S4((s=i.response)==null?void 0:s.contentType);if(l=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),l);return}a.update(i.response.value,l)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class xp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const hC=I.createContext({registry:new xp});function mC({children:e,registry:t}){return fe.jsx(hC.Provider,{value:{registry:t},children:e})}const R4=()=>{const e=I.useContext(hC);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function ov({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=I.useState(`${n}%`),{registry:a}=R4(),s=I.useRef(null);return I.useEffect(()=>{a.registerPanel({width:n,setWidth(l){i(l+"%"),this.width=l},getWidth(){return s.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:s,style:{...r,width:o,display:"flex"},children:e})}function O4(e){return fe.jsx("button",{...e,children:fe.jsx(Cr.PauseOutlined,{})})}const iv={isDragging:!1,currentResizerPos:-1},av=(e,t)=>e/t*100,$4=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=I.Children.toArray(e),[i,a]=o,s=I.useRef(new xp),l=I.useRef(null),[c,u]=I.useState(iv),p=()=>l.current.getBoundingClientRect().width,d=I.useCallback(x=>{u({...c,isDragging:!0,currentResizerPos:x.clientX})},[c]),y=I.useCallback(x=>{const{key:g}=x;if(g==="ArrowLeft"||g==="ArrowRight"){x.preventDefault();const{current:v}=s,[f,m]=v.getPanels(),b=f.width-(g==="ArrowLeft"?1:-1),C=m.width-(g==="ArrowRight"?1:-1);f.setWidth(b),m.setWidth(C),n&&n([b,C])}},[n]);I.useEffect(()=>{var x;((x=ne==null?void 0:ne.env)==null?void 0:x.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const _=[i,fe.jsx(O4,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(mC,{registry:s.current,children:fe.jsx("div",{className:t,ref:l,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:x=>{if(c.isDragging){const{clientX:g}=x,{current:v}=s,[f,m]=v.getPanels(),b=g-c.currentResizerPos,C=p(),E=av(f.getWidth()+b,C),S=av(m.getWidth()-b,C);f.setWidth(E),m.setWidth(S),n&&n([E,S]),u({...c,currentResizerPos:g})}},onMouseUp:()=>{u(iv)},children:_})})},T4=100;class P4{constructor(t){this.storage=t,this.changeEmitter=new CC.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,T4),o.forEach(s=>{this.storage.delete(s)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function N4(e){return new P4(e.storage)}class I4{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(be.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return be.transform(be.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function A4(e){return new I4(e.engine,e.prefix)}class M4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function j4({storage:e}){return new M4(e)}const k4="text-object";class L4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=EC.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const F4=e=>({text:new L4(e,k4)}),qi="#00bb1b",sv="#fcca00",lv="#ff4d4f",D4="#bbbbbb",qf="#d8d8d8",gC={green:qi,yellow:sv,red:lv,available:qi,unavailable:qf,online:qi,offline:qf,active:sv,normal:qi,acknowledged:qi,error:lv,gray:D4};function B4(e){return gC[e]}const z4=({status:e,size:t=14})=>{if(e=="unavailable"||!gC[e])return fe.jsx("span",{children:fe.jsx(Cr.CloseCircleOutlined,{style:{fontSize:14,color:qf}})});const n=B4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},q4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",cv=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(tn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(z4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(ao,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:s,method:l,statusCode:c,statusText:u,timeElapsedMs:p}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:`${l} ${s.startsWith("/")?s:"/"+s}`}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:q4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:"default",children:[p," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},uv=50,fv="0px",V4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,p,d,y,_,x,g,v,f,m,b;const{requestInFlight:a,lastResult:{data:s,error:l}}=oC(),c=(s==null?void 0:s[s.length-1])??l;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs($4,{resizerClassName:"resizer",children:[fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(x4,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(cv,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(_=c.response)==null?void 0:_.header}:void 0})})]}),fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(_a,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(E4,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(_a,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Gm,{code:(x=c==null?void 0:c.request)==null?void 0:x.header})},{key:"2",label:"Response",children:fe.jsx(Gm,{code:(g=c==null?void 0:c.response)==null?void 0:g.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(cv,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(v=c.response)==null?void 0:v.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(b=c.response)==null?void 0:b.header}:void 0})})]})]})})},dv=e=>{var a;const t=I.useRef(new xp),{storage:n,history:r,objectStorageClient:o,settings:i}=I.useMemo(()=>{const s=A4({engine:window.localStorage,prefix:"sense:"}),l=N4({storage:s}),c=F4(s),u=j4({storage:s});return{storage:s,history:l,objectStorageClient:c,settings:u}},[]);return fe.jsx(mC,{registry:t.current,children:fe.jsx(c4,{children:fe.jsx(p4,{children:fe.jsx(f4,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(V4,{...e})})})})})},H4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=I.useRef(null),[,i]=iu.useDrop({accept:"DND_NODE",hover:l=>{const c=l.index,u=t;c!==u&&(n(c,u),l.index=u)}}),[{isDragging:a},s]=iu.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:l=>({isDragging:l.isDragging()})});return s(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},W4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(H4,{id:e,index:t,moveTabNode:n,children:r}),U4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:s,sendRequestToES:l,...c})=>{const[u,p]=I.useState(n),[d,y]=I.useState(n.activeKey),[_,x]=I.useState([]),g=I.useCallback(w=>{x(O=>O.map(P=>P.key===d?{...P,content:w}:P)),p(O=>{const P={...O};return P.panes=P.panes.map(A=>A.key===d?{...A,content:w}:A),P}),s(u)},[d]);I.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(P=>({label:P.title,children:fe.jsx(dv,{height:r-35,selectedCluster:P.cluster,paneKey:P.key,saveEditorContent:g,initialText:P.content,isActive:P.key==d,sendRequestToES:l}),key:P.key,closable:P.closable,icon:i&&i(P)}));x(w)},[]);const[v,f]=I.useState(n.order||[]),m=(w,O)=>{const P=[...v];I.Children.forEach(e,L=>{P.indexOf(L.key)===-1&&P.push(L.key)});const A=P.indexOf(w),T=P.indexOf(O);P.splice(A,1),P.splice(T,0,w),f(P),typeof t=="function"&&t(P)},b=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:P=>fe.jsx(W4,{id:P.key,index:P.key,moveTabNode:m,children:P},P.key)})}),C=w=>{y(w);const O={...u,activeKey:w};p(O),s(O)};I.useEffect(()=>{var P;if(!a)return;const w=[..._];w.unshift({label:a.title,children:fe.jsx(dv,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:g,initialText:a.content,isActive:a.key==d,sendRequestToES:l}),key:a.key,closable:a.closable,icon:i&&i(a)}),x(w),y(a.key);const O={...u};(P=O.panes)==null||P.unshift(a),p(O),s(O)},[a]);const E=w=>{var L;let O=d,P=-1;_==null||_.forEach((D,Q)=>{D.key===w&&(P=Q-1)});const A=_.filter(D=>D.key!==w);A.length&&O===w&&(P>=0?O=A[P].key:O=A[0].key),x(A),y(O);let T={...u};T.panes=(L=T.panes)==null?void 0:L.filter(D=>D.key!==w),p(T),s(T)},S=(w,O)=>{O==="add"||E(w)};return fe.jsx(iu.DndProvider,{backend:_C.HTML5Backend,children:fe.jsx(_a,{...c,type:"editable-card",hideAdd:!0,renderTabBar:b,tabBarExtraContent:o,activeKey:d,items:_,onChange:C,onEdit:S})})},G4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),K4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",X4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",Y4=e=>{const[t,n]=I.useState(e.data||[]);I.useEffect(()=>{o(t)},[t,e.panes]);const r=s=>{const{onItemClick:l}=e;l&&typeof l=="function"&&l(s)},o=(s={})=>{var l,c,u;((l=s.data)==null?void 0:l.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=s.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:s=>r(s),getClusterList:o,children:i}):null})},Q4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:K4}),J4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:X4});function Z4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const ez=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
288
  {
289
289
  "query": {
290
290
  "match_all": {}
@@ -300,4 +300,4 @@ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
300
300
  }
301
301
 
302
302
  GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
- `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:s=()=>{console.warn("onMinimizeClick function is null")},newTabClick:l=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const p=I.useRef(null),[d,y]=I.useState(!1),[_,x]=I.useState(Z4(n));I.useEffect(()=>{const S=()=>{d&&x(p.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const g=()=>{p.current!=null&&(d?(p.current.className=p.current.className.replace(" fullscreen",""),C()):p.current.className=p.current.className+" fullscreen"),x(p.current.clientHeight),y(!d)},v=I.useCallback(S=>{s(S),C()},[s]);lj((E=o.activeKey)==null?void 0:E.split(":")[0]);const f={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.CodeOutlined,{})}),fe.jsx(Y4,{onItemClick:l,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(Cr.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:g,children:d?fe.jsx(J4,{}):fe.jsx(Q4,{})})]})},m=I.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:f[w]}),{}),[]),b=()=>{document.body.style.overflow="hidden"},C=()=>{document.body.style.overflow=""};return fe.jsx(bC.Resizable,{defaultSize:{height:_},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(G4,{})},onResizeStop:(S,w,O,P)=>{x(_+P.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:b,onMouseOut:C,id:"console",ref:p,children:fe.jsx(U4,{editorHeight:_,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})};module.exports=ez;
303
+ `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:s=()=>{console.warn("onMinimizeClick function is null")},newTabClick:l=()=>{console.warn("newTabClick function is null")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const p=I.useRef(null),[d,y]=I.useState(!1),[_,x]=I.useState(Z4(n));I.useEffect(()=>{const S=()=>{d&&x(p.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const g=()=>{p.current!=null&&(d?(p.current.className=p.current.className.replace(" fullscreen",""),C()):p.current.className=p.current.className+" fullscreen"),x(p.current.clientHeight),y(!d)},v=I.useCallback(S=>{s(S),C()},[s]);lj((E=o.activeKey)==null?void 0:E.split(":")[0]);const f={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.CodeOutlined,{})}),fe.jsx(Y4,{onItemClick:l,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(Cr.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:g,children:d?fe.jsx(J4,{}):fe.jsx(Q4,{})})]})},m=I.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:f[w]}),{}),[]),b=()=>{document.body.style.overflow="hidden"},C=()=>{document.body.style.overflow=""};return fe.jsx(bC.Resizable,{defaultSize:{height:_},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(G4,{})},onResizeStop:(S,w,O,P)=>{x(_+P.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:b,onMouseOut:C,id:"console",ref:p,children:fe.jsx(U4,{editorHeight:_,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})};module.exports=ez;